1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/protobuf/cluster.proto
3
4 #include "tensorflow/core/protobuf/cluster.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 {
JobDef_TasksEntry_DoNotUse(::_pbi::ConstantInitialized)22 PROTOBUF_CONSTEXPR JobDef_TasksEntry_DoNotUse::JobDef_TasksEntry_DoNotUse(
23 ::_pbi::ConstantInitialized) {}
24 struct JobDef_TasksEntry_DoNotUseDefaultTypeInternal {
JobDef_TasksEntry_DoNotUseDefaultTypeInternaltensorflow::JobDef_TasksEntry_DoNotUseDefaultTypeInternal25 PROTOBUF_CONSTEXPR JobDef_TasksEntry_DoNotUseDefaultTypeInternal()
26 : _instance(::_pbi::ConstantInitialized{}) {}
~JobDef_TasksEntry_DoNotUseDefaultTypeInternaltensorflow::JobDef_TasksEntry_DoNotUseDefaultTypeInternal27 ~JobDef_TasksEntry_DoNotUseDefaultTypeInternal() {}
28 union { // NOLINT(misc-non-private-member-variables-in-classes)
29 JobDef_TasksEntry_DoNotUse _instance;
30 };
31 };
32 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JobDef_TasksEntry_DoNotUseDefaultTypeInternal _JobDef_TasksEntry_DoNotUse_default_instance_;
JobDef(::_pbi::ConstantInitialized)33 PROTOBUF_CONSTEXPR JobDef::JobDef(
34 ::_pbi::ConstantInitialized): _impl_{
35 /*decltype(_impl_.tasks_)*/{}
36 , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
37 , /*decltype(_impl_._cached_size_)*/{}} {}
38 struct JobDefDefaultTypeInternal {
JobDefDefaultTypeInternaltensorflow::JobDefDefaultTypeInternal39 PROTOBUF_CONSTEXPR JobDefDefaultTypeInternal()
40 : _instance(::_pbi::ConstantInitialized{}) {}
~JobDefDefaultTypeInternaltensorflow::JobDefDefaultTypeInternal41 ~JobDefDefaultTypeInternal() {}
42 union { // NOLINT(misc-non-private-member-variables-in-classes)
43 JobDef _instance;
44 };
45 };
46 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JobDefDefaultTypeInternal _JobDef_default_instance_;
ClusterDef(::_pbi::ConstantInitialized)47 PROTOBUF_CONSTEXPR ClusterDef::ClusterDef(
48 ::_pbi::ConstantInitialized): _impl_{
49 /*decltype(_impl_.job_)*/{}
50 , /*decltype(_impl_._cached_size_)*/{}} {}
51 struct ClusterDefDefaultTypeInternal {
ClusterDefDefaultTypeInternaltensorflow::ClusterDefDefaultTypeInternal52 PROTOBUF_CONSTEXPR ClusterDefDefaultTypeInternal()
53 : _instance(::_pbi::ConstantInitialized{}) {}
~ClusterDefDefaultTypeInternaltensorflow::ClusterDefDefaultTypeInternal54 ~ClusterDefDefaultTypeInternal() {}
55 union { // NOLINT(misc-non-private-member-variables-in-classes)
56 ClusterDef _instance;
57 };
58 };
59 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClusterDefDefaultTypeInternal _ClusterDef_default_instance_;
60 } // namespace tensorflow
61 namespace tensorflow {
62
63 // ===================================================================
64
JobDef_TasksEntry_DoNotUse()65 JobDef_TasksEntry_DoNotUse::JobDef_TasksEntry_DoNotUse() {}
JobDef_TasksEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena * arena)66 JobDef_TasksEntry_DoNotUse::JobDef_TasksEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
67 : SuperType(arena) {}
MergeFrom(const JobDef_TasksEntry_DoNotUse & other)68 void JobDef_TasksEntry_DoNotUse::MergeFrom(const JobDef_TasksEntry_DoNotUse& other) {
69 MergeFromInternal(other);
70 }
71
72 // ===================================================================
73
74 class JobDef::_Internal {
75 public:
76 };
77
JobDef(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)78 JobDef::JobDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
79 bool is_message_owned)
80 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
81 SharedCtor(arena, is_message_owned);
82 // @@protoc_insertion_point(arena_constructor:tensorflow.JobDef)
83 }
JobDef(const JobDef & from)84 JobDef::JobDef(const JobDef& from)
85 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
86 JobDef* const _this = this; (void)_this;
87 new (&_impl_) Impl_{
88 /*decltype(_impl_.tasks_)*/{}
89 , decltype(_impl_.name_){}
90 , /*decltype(_impl_._cached_size_)*/{}};
91
92 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
93 _this->_impl_.tasks_.MergeFrom(from._impl_.tasks_);
94 _impl_.name_.InitDefault();
95 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
96 _impl_.name_.Set("", GetArenaForAllocation());
97 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
98 if (!from._internal_name().empty()) {
99 _this->_impl_.name_.Set(from._internal_name(),
100 _this->GetArenaForAllocation());
101 }
102 // @@protoc_insertion_point(copy_constructor:tensorflow.JobDef)
103 }
104
SharedCtor(::_pb::Arena * arena,bool is_message_owned)105 inline void JobDef::SharedCtor(
106 ::_pb::Arena* arena, bool is_message_owned) {
107 (void)arena;
108 (void)is_message_owned;
109 new (&_impl_) Impl_{
110 /*decltype(_impl_.tasks_)*/{::_pbi::ArenaInitialized(), arena}
111 , decltype(_impl_.name_){}
112 , /*decltype(_impl_._cached_size_)*/{}
113 };
114 _impl_.name_.InitDefault();
115 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
116 _impl_.name_.Set("", GetArenaForAllocation());
117 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
118 }
119
~JobDef()120 JobDef::~JobDef() {
121 // @@protoc_insertion_point(destructor:tensorflow.JobDef)
122 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
123 (void)arena;
124 return;
125 }
126 SharedDtor();
127 }
128
SharedDtor()129 inline void JobDef::SharedDtor() {
130 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
131 _impl_.tasks_.Destruct();
132 _impl_.tasks_.~MapFieldLite();
133 _impl_.name_.Destroy();
134 }
135
SetCachedSize(int size) const136 void JobDef::SetCachedSize(int size) const {
137 _impl_._cached_size_.Set(size);
138 }
139
Clear()140 void JobDef::Clear() {
141 // @@protoc_insertion_point(message_clear_start:tensorflow.JobDef)
142 ::uint32_t cached_has_bits = 0;
143 // Prevent compiler warnings about cached_has_bits being unused
144 (void) cached_has_bits;
145
146 _impl_.tasks_.Clear();
147 _impl_.name_.ClearToEmpty();
148 _internal_metadata_.Clear<std::string>();
149 }
150
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)151 const char* JobDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
152 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
153 while (!ctx->Done(&ptr)) {
154 ::uint32_t tag;
155 ptr = ::_pbi::ReadTag(ptr, &tag);
156 switch (tag >> 3) {
157 // string name = 1;
158 case 1:
159 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
160 auto str = _internal_mutable_name();
161 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
162 CHK_(ptr);
163 CHK_(::_pbi::VerifyUTF8(str, nullptr));
164 } else {
165 goto handle_unusual;
166 }
167 continue;
168 // map<int32, string> tasks = 2;
169 case 2:
170 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
171 ptr -= 1;
172 do {
173 ptr += 1;
174 ptr = ctx->ParseMessage(&_impl_.tasks_, ptr);
175 CHK_(ptr);
176 if (!ctx->DataAvailable(ptr)) break;
177 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
178 } else {
179 goto handle_unusual;
180 }
181 continue;
182 default:
183 goto handle_unusual;
184 } // switch
185 handle_unusual:
186 if ((tag == 0) || ((tag & 7) == 4)) {
187 CHK_(ptr);
188 ctx->SetLastTag(tag);
189 goto message_done;
190 }
191 ptr = UnknownFieldParse(
192 tag,
193 _internal_metadata_.mutable_unknown_fields<std::string>(),
194 ptr, ctx);
195 CHK_(ptr != nullptr);
196 } // while
197 message_done:
198 return ptr;
199 failure:
200 ptr = nullptr;
201 goto message_done;
202 #undef CHK_
203 }
204
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const205 ::uint8_t* JobDef::_InternalSerialize(
206 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
207 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.JobDef)
208 ::uint32_t cached_has_bits = 0;
209 (void) cached_has_bits;
210
211 // string name = 1;
212 if (!this->_internal_name().empty()) {
213 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
214 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
215 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
216 "tensorflow.JobDef.name");
217 target = stream->WriteStringMaybeAliased(
218 1, this->_internal_name(), target);
219 }
220
221 // map<int32, string> tasks = 2;
222 if (!this->_internal_tasks().empty()) {
223 using MapType = ::_pb::Map<::int32_t, std::string>;
224 using WireHelper = JobDef_TasksEntry_DoNotUse::Funcs;
225 const auto& map_field = this->_internal_tasks();
226 auto check_utf8 = [](const MapType::value_type& entry) {
227 (void)entry;
228 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
229 entry.second.data(), static_cast<int>(entry.second.length()),
230 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
231 "tensorflow.JobDef.TasksEntry.value");
232 };
233
234 if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
235 for (const auto& entry : ::_pbi::MapSorterFlat<MapType>(map_field)) {
236 target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream);
237 check_utf8(entry);
238 }
239 } else {
240 for (const auto& entry : map_field) {
241 target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream);
242 check_utf8(entry);
243 }
244 }
245 }
246
247 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
248 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
249 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
250 }
251 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.JobDef)
252 return target;
253 }
254
ByteSizeLong() const255 size_t JobDef::ByteSizeLong() const {
256 // @@protoc_insertion_point(message_byte_size_start:tensorflow.JobDef)
257 size_t total_size = 0;
258
259 ::uint32_t cached_has_bits = 0;
260 // Prevent compiler warnings about cached_has_bits being unused
261 (void) cached_has_bits;
262
263 // map<int32, string> tasks = 2;
264 total_size += 1 *
265 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tasks_size());
266 for (::PROTOBUF_NAMESPACE_ID::Map< ::int32_t, std::string >::const_iterator
267 it = this->_internal_tasks().begin();
268 it != this->_internal_tasks().end(); ++it) {
269 total_size += JobDef_TasksEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
270 }
271
272 // string name = 1;
273 if (!this->_internal_name().empty()) {
274 total_size += 1 +
275 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
276 this->_internal_name());
277 }
278
279 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
280 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
281 }
282 int cached_size = ::_pbi::ToCachedSize(total_size);
283 SetCachedSize(cached_size);
284 return total_size;
285 }
286
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)287 void JobDef::CheckTypeAndMergeFrom(
288 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
289 MergeFrom(*::_pbi::DownCast<const JobDef*>(
290 &from));
291 }
292
MergeFrom(const JobDef & from)293 void JobDef::MergeFrom(const JobDef& from) {
294 JobDef* const _this = this;
295 // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.JobDef)
296 GOOGLE_DCHECK_NE(&from, _this);
297 ::uint32_t cached_has_bits = 0;
298 (void) cached_has_bits;
299
300 _this->_impl_.tasks_.MergeFrom(from._impl_.tasks_);
301 if (!from._internal_name().empty()) {
302 _this->_internal_set_name(from._internal_name());
303 }
304 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
305 }
306
CopyFrom(const JobDef & from)307 void JobDef::CopyFrom(const JobDef& from) {
308 // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.JobDef)
309 if (&from == this) return;
310 Clear();
311 MergeFrom(from);
312 }
313
IsInitialized() const314 bool JobDef::IsInitialized() const {
315 return true;
316 }
317
InternalSwap(JobDef * other)318 void JobDef::InternalSwap(JobDef* other) {
319 using std::swap;
320 auto* lhs_arena = GetArenaForAllocation();
321 auto* rhs_arena = other->GetArenaForAllocation();
322 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
323 _impl_.tasks_.InternalSwap(&other->_impl_.tasks_);
324 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
325 &_impl_.name_, lhs_arena,
326 &other->_impl_.name_, rhs_arena
327 );
328 }
329
GetTypeName() const330 std::string JobDef::GetTypeName() const {
331 return "tensorflow.JobDef";
332 }
333
334
335 // ===================================================================
336
337 class ClusterDef::_Internal {
338 public:
339 };
340
ClusterDef(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)341 ClusterDef::ClusterDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
342 bool is_message_owned)
343 : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
344 SharedCtor(arena, is_message_owned);
345 // @@protoc_insertion_point(arena_constructor:tensorflow.ClusterDef)
346 }
ClusterDef(const ClusterDef & from)347 ClusterDef::ClusterDef(const ClusterDef& from)
348 : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
349 ClusterDef* const _this = this; (void)_this;
350 new (&_impl_) Impl_{
351 decltype(_impl_.job_){from._impl_.job_}
352 , /*decltype(_impl_._cached_size_)*/{}};
353
354 _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
355 // @@protoc_insertion_point(copy_constructor:tensorflow.ClusterDef)
356 }
357
SharedCtor(::_pb::Arena * arena,bool is_message_owned)358 inline void ClusterDef::SharedCtor(
359 ::_pb::Arena* arena, bool is_message_owned) {
360 (void)arena;
361 (void)is_message_owned;
362 new (&_impl_) Impl_{
363 decltype(_impl_.job_){arena}
364 , /*decltype(_impl_._cached_size_)*/{}
365 };
366 }
367
~ClusterDef()368 ClusterDef::~ClusterDef() {
369 // @@protoc_insertion_point(destructor:tensorflow.ClusterDef)
370 if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
371 (void)arena;
372 return;
373 }
374 SharedDtor();
375 }
376
SharedDtor()377 inline void ClusterDef::SharedDtor() {
378 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
379 _impl_.job_.~RepeatedPtrField();
380 }
381
SetCachedSize(int size) const382 void ClusterDef::SetCachedSize(int size) const {
383 _impl_._cached_size_.Set(size);
384 }
385
Clear()386 void ClusterDef::Clear() {
387 // @@protoc_insertion_point(message_clear_start:tensorflow.ClusterDef)
388 ::uint32_t cached_has_bits = 0;
389 // Prevent compiler warnings about cached_has_bits being unused
390 (void) cached_has_bits;
391
392 _impl_.job_.Clear();
393 _internal_metadata_.Clear<std::string>();
394 }
395
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)396 const char* ClusterDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
397 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
398 while (!ctx->Done(&ptr)) {
399 ::uint32_t tag;
400 ptr = ::_pbi::ReadTag(ptr, &tag);
401 switch (tag >> 3) {
402 // repeated .tensorflow.JobDef job = 1;
403 case 1:
404 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
405 ptr -= 1;
406 do {
407 ptr += 1;
408 ptr = ctx->ParseMessage(_internal_add_job(), ptr);
409 CHK_(ptr);
410 if (!ctx->DataAvailable(ptr)) break;
411 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
412 } else {
413 goto handle_unusual;
414 }
415 continue;
416 default:
417 goto handle_unusual;
418 } // switch
419 handle_unusual:
420 if ((tag == 0) || ((tag & 7) == 4)) {
421 CHK_(ptr);
422 ctx->SetLastTag(tag);
423 goto message_done;
424 }
425 ptr = UnknownFieldParse(
426 tag,
427 _internal_metadata_.mutable_unknown_fields<std::string>(),
428 ptr, ctx);
429 CHK_(ptr != nullptr);
430 } // while
431 message_done:
432 return ptr;
433 failure:
434 ptr = nullptr;
435 goto message_done;
436 #undef CHK_
437 }
438
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const439 ::uint8_t* ClusterDef::_InternalSerialize(
440 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
441 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ClusterDef)
442 ::uint32_t cached_has_bits = 0;
443 (void) cached_has_bits;
444
445 // repeated .tensorflow.JobDef job = 1;
446 for (unsigned i = 0,
447 n = static_cast<unsigned>(this->_internal_job_size()); i < n; i++) {
448 const auto& repfield = this->_internal_job(i);
449 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
450 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
451 }
452
453 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
454 target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
455 static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
456 }
457 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ClusterDef)
458 return target;
459 }
460
ByteSizeLong() const461 size_t ClusterDef::ByteSizeLong() const {
462 // @@protoc_insertion_point(message_byte_size_start:tensorflow.ClusterDef)
463 size_t total_size = 0;
464
465 ::uint32_t cached_has_bits = 0;
466 // Prevent compiler warnings about cached_has_bits being unused
467 (void) cached_has_bits;
468
469 // repeated .tensorflow.JobDef job = 1;
470 total_size += 1UL * this->_internal_job_size();
471 for (const auto& msg : this->_impl_.job_) {
472 total_size +=
473 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
474 }
475
476 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
477 total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
478 }
479 int cached_size = ::_pbi::ToCachedSize(total_size);
480 SetCachedSize(cached_size);
481 return total_size;
482 }
483
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)484 void ClusterDef::CheckTypeAndMergeFrom(
485 const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
486 MergeFrom(*::_pbi::DownCast<const ClusterDef*>(
487 &from));
488 }
489
MergeFrom(const ClusterDef & from)490 void ClusterDef::MergeFrom(const ClusterDef& from) {
491 ClusterDef* const _this = this;
492 // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ClusterDef)
493 GOOGLE_DCHECK_NE(&from, _this);
494 ::uint32_t cached_has_bits = 0;
495 (void) cached_has_bits;
496
497 _this->_impl_.job_.MergeFrom(from._impl_.job_);
498 _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
499 }
500
CopyFrom(const ClusterDef & from)501 void ClusterDef::CopyFrom(const ClusterDef& from) {
502 // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ClusterDef)
503 if (&from == this) return;
504 Clear();
505 MergeFrom(from);
506 }
507
IsInitialized() const508 bool ClusterDef::IsInitialized() const {
509 return true;
510 }
511
InternalSwap(ClusterDef * other)512 void ClusterDef::InternalSwap(ClusterDef* other) {
513 using std::swap;
514 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
515 _impl_.job_.InternalSwap(&other->_impl_.job_);
516 }
517
GetTypeName() const518 std::string ClusterDef::GetTypeName() const {
519 return "tensorflow.ClusterDef";
520 }
521
522
523 // @@protoc_insertion_point(namespace_scope)
524 } // namespace tensorflow
525 PROTOBUF_NAMESPACE_OPEN
526 template<> PROTOBUF_NOINLINE ::tensorflow::JobDef_TasksEntry_DoNotUse*
CreateMaybeMessage(Arena * arena)527 Arena::CreateMaybeMessage< ::tensorflow::JobDef_TasksEntry_DoNotUse >(Arena* arena) {
528 return Arena::CreateMessageInternal< ::tensorflow::JobDef_TasksEntry_DoNotUse >(arena);
529 }
530 template<> PROTOBUF_NOINLINE ::tensorflow::JobDef*
CreateMaybeMessage(Arena * arena)531 Arena::CreateMaybeMessage< ::tensorflow::JobDef >(Arena* arena) {
532 return Arena::CreateMessageInternal< ::tensorflow::JobDef >(arena);
533 }
534 template<> PROTOBUF_NOINLINE ::tensorflow::ClusterDef*
CreateMaybeMessage(Arena * arena)535 Arena::CreateMaybeMessage< ::tensorflow::ClusterDef >(Arena* arena) {
536 return Arena::CreateMessageInternal< ::tensorflow::ClusterDef >(arena);
537 }
538 PROTOBUF_NAMESPACE_CLOSE
539
540 // @@protoc_insertion_point(global_scope)
541 #include <google/protobuf/port_undef.inc>
542