1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/cluster.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3009000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_table_driven.h>
27#include <google/protobuf/generated_message_util.h>
28#include <google/protobuf/inlined_string_field.h>
29#include <google/protobuf/metadata.h>
30#include <google/protobuf/generated_message_reflection.h>
31#include <google/protobuf/message.h>
32#include <google/protobuf/repeated_field.h> // IWYU pragma: export
33#include <google/protobuf/extension_set.h> // IWYU pragma: export
34#include <google/protobuf/map.h> // IWYU pragma: export
35#include <google/protobuf/map_entry.h>
36#include <google/protobuf/map_field_inl.h>
37#include <google/protobuf/unknown_field_set.h>
38// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
48struct TableStruct_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto {
49 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
50 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
52 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
54 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
56 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
57 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
58};
59extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto;
60namespace tensorflow {
61class ClusterDef;
62class ClusterDefDefaultTypeInternal;
63extern ClusterDefDefaultTypeInternal _ClusterDef_default_instance_;
64class JobDef;
65class JobDefDefaultTypeInternal;
66extern JobDefDefaultTypeInternal _JobDef_default_instance_;
67class JobDef_TasksEntry_DoNotUse;
68class JobDef_TasksEntry_DoNotUseDefaultTypeInternal;
69extern JobDef_TasksEntry_DoNotUseDefaultTypeInternal _JobDef_TasksEntry_DoNotUse_default_instance_;
70} // namespace tensorflow
71PROTOBUF_NAMESPACE_OPEN
72template<> ::tensorflow::ClusterDef* Arena::CreateMaybeMessage<::tensorflow::ClusterDef>(Arena*);
73template<> ::tensorflow::JobDef* Arena::CreateMaybeMessage<::tensorflow::JobDef>(Arena*);
74template<> ::tensorflow::JobDef_TasksEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::JobDef_TasksEntry_DoNotUse>(Arena*);
75PROTOBUF_NAMESPACE_CLOSE
76namespace tensorflow {
77
78// ===================================================================
79
80class JobDef_TasksEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<JobDef_TasksEntry_DoNotUse,
81 ::PROTOBUF_NAMESPACE_ID::int32, std::string,
82 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32,
83 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
84 0 > {
85public:
86 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<JobDef_TasksEntry_DoNotUse,
87 ::PROTOBUF_NAMESPACE_ID::int32, std::string,
88 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32,
89 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
90 0 > SuperType;
91 JobDef_TasksEntry_DoNotUse();
92 JobDef_TasksEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
93 void MergeFrom(const JobDef_TasksEntry_DoNotUse& other);
94 static const JobDef_TasksEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const JobDef_TasksEntry_DoNotUse*>(&_JobDef_TasksEntry_DoNotUse_default_instance_); }
95 static bool ValidateKey(void*) { return true; }
96 static bool ValidateValue(std::string* s) {
97 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.JobDef.TasksEntry.value");
98 }
99 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
100 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
101 private:
102 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
103 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto);
104 return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto.file_level_metadata[0];
105 }
106
107 public:
108};
109
110// -------------------------------------------------------------------
111
112class JobDef :
113 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.JobDef) */ {
114 public:
115 JobDef();
116 virtual ~JobDef();
117
118 JobDef(const JobDef& from);
119 JobDef(JobDef&& from) noexcept
120 : JobDef() {
121 *this = ::std::move(from);
122 }
123
124 inline JobDef& operator=(const JobDef& from) {
125 CopyFrom(from);
126 return *this;
127 }
128 inline JobDef& operator=(JobDef&& from) noexcept {
129 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
130 if (this != &from) InternalSwap(&from);
131 } else {
132 CopyFrom(from);
133 }
134 return *this;
135 }
136
137 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
138 return GetArenaNoVirtual();
139 }
140 inline void* GetMaybeArenaPointer() const final {
141 return MaybeArenaPtr();
142 }
143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
144 return GetDescriptor();
145 }
146 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
147 return GetMetadataStatic().descriptor;
148 }
149 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
150 return GetMetadataStatic().reflection;
151 }
152 static const JobDef& default_instance();
153
154 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
155 static inline const JobDef* internal_default_instance() {
156 return reinterpret_cast<const JobDef*>(
157 &_JobDef_default_instance_);
158 }
159 static constexpr int kIndexInFileMessages =
160 1;
161
162 friend void swap(JobDef& a, JobDef& b) {
163 a.Swap(&b);
164 }
165 inline void Swap(JobDef* other) {
166 if (other == this) return;
167 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
168 InternalSwap(other);
169 } else {
170 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
171 }
172 }
173 void UnsafeArenaSwap(JobDef* other) {
174 if (other == this) return;
175 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
176 InternalSwap(other);
177 }
178
179 // implements Message ----------------------------------------------
180
181 inline JobDef* New() const final {
182 return CreateMaybeMessage<JobDef>(nullptr);
183 }
184
185 JobDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
186 return CreateMaybeMessage<JobDef>(arena);
187 }
188 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
189 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
190 void CopyFrom(const JobDef& from);
191 void MergeFrom(const JobDef& from);
192 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
193 bool IsInitialized() const final;
194
195 size_t ByteSizeLong() const final;
196 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
197 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
198 #else
199 bool MergePartialFromCodedStream(
200 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
201 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
202 void SerializeWithCachedSizes(
203 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
204 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
205 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
206 int GetCachedSize() const final { return _cached_size_.Get(); }
207
208 private:
209 inline void SharedCtor();
210 inline void SharedDtor();
211 void SetCachedSize(int size) const final;
212 void InternalSwap(JobDef* other);
213 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
214 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
215 return "tensorflow.JobDef";
216 }
217 protected:
218 explicit JobDef(::PROTOBUF_NAMESPACE_ID::Arena* arena);
219 private:
220 static void ArenaDtor(void* object);
221 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
222 private:
223 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
224 return _internal_metadata_.arena();
225 }
226 inline void* MaybeArenaPtr() const {
227 return _internal_metadata_.raw_arena_ptr();
228 }
229 public:
230
231 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
232 private:
233 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
234 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto);
235 return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto.file_level_metadata[kIndexInFileMessages];
236 }
237
238 public:
239
240 // nested types ----------------------------------------------------
241
242
243 // accessors -------------------------------------------------------
244
245 enum : int {
246 kTasksFieldNumber = 2,
247 kNameFieldNumber = 1,
248 };
249 // map<int32, string> tasks = 2;
250 int tasks_size() const;
251 void clear_tasks();
252 const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, std::string >&
253 tasks() const;
254 ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, std::string >*
255 mutable_tasks();
256
257 // string name = 1;
258 void clear_name();
259 const std::string& name() const;
260 void set_name(const std::string& value);
261 void set_name(std::string&& value);
262 void set_name(const char* value);
263 void set_name(const char* value, size_t size);
264 std::string* mutable_name();
265 std::string* release_name();
266 void set_allocated_name(std::string* name);
267 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
268 " string fields are deprecated and will be removed in a"
269 " future release.")
270 std::string* unsafe_arena_release_name();
271 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
272 " string fields are deprecated and will be removed in a"
273 " future release.")
274 void unsafe_arena_set_allocated_name(
275 std::string* name);
276
277 // @@protoc_insertion_point(class_scope:tensorflow.JobDef)
278 private:
279 class _Internal;
280
281 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
282 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
283 typedef void InternalArenaConstructable_;
284 typedef void DestructorSkippable_;
285 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
286 JobDef_TasksEntry_DoNotUse,
287 ::PROTOBUF_NAMESPACE_ID::int32, std::string,
288 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32,
289 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
290 0 > tasks_;
291 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
292 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
293 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto;
294};
295// -------------------------------------------------------------------
296
297class ClusterDef :
298 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.ClusterDef) */ {
299 public:
300 ClusterDef();
301 virtual ~ClusterDef();
302
303 ClusterDef(const ClusterDef& from);
304 ClusterDef(ClusterDef&& from) noexcept
305 : ClusterDef() {
306 *this = ::std::move(from);
307 }
308
309 inline ClusterDef& operator=(const ClusterDef& from) {
310 CopyFrom(from);
311 return *this;
312 }
313 inline ClusterDef& operator=(ClusterDef&& from) noexcept {
314 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
315 if (this != &from) InternalSwap(&from);
316 } else {
317 CopyFrom(from);
318 }
319 return *this;
320 }
321
322 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
323 return GetArenaNoVirtual();
324 }
325 inline void* GetMaybeArenaPointer() const final {
326 return MaybeArenaPtr();
327 }
328 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
329 return GetDescriptor();
330 }
331 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
332 return GetMetadataStatic().descriptor;
333 }
334 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
335 return GetMetadataStatic().reflection;
336 }
337 static const ClusterDef& default_instance();
338
339 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
340 static inline const ClusterDef* internal_default_instance() {
341 return reinterpret_cast<const ClusterDef*>(
342 &_ClusterDef_default_instance_);
343 }
344 static constexpr int kIndexInFileMessages =
345 2;
346
347 friend void swap(ClusterDef& a, ClusterDef& b) {
348 a.Swap(&b);
349 }
350 inline void Swap(ClusterDef* other) {
351 if (other == this) return;
352 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
353 InternalSwap(other);
354 } else {
355 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
356 }
357 }
358 void UnsafeArenaSwap(ClusterDef* other) {
359 if (other == this) return;
360 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
361 InternalSwap(other);
362 }
363
364 // implements Message ----------------------------------------------
365
366 inline ClusterDef* New() const final {
367 return CreateMaybeMessage<ClusterDef>(nullptr);
368 }
369
370 ClusterDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
371 return CreateMaybeMessage<ClusterDef>(arena);
372 }
373 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
374 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
375 void CopyFrom(const ClusterDef& from);
376 void MergeFrom(const ClusterDef& from);
377 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
378 bool IsInitialized() const final;
379
380 size_t ByteSizeLong() const final;
381 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
382 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
383 #else
384 bool MergePartialFromCodedStream(
385 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
386 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
387 void SerializeWithCachedSizes(
388 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
389 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
390 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
391 int GetCachedSize() const final { return _cached_size_.Get(); }
392
393 private:
394 inline void SharedCtor();
395 inline void SharedDtor();
396 void SetCachedSize(int size) const final;
397 void InternalSwap(ClusterDef* other);
398 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
399 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
400 return "tensorflow.ClusterDef";
401 }
402 protected:
403 explicit ClusterDef(::PROTOBUF_NAMESPACE_ID::Arena* arena);
404 private:
405 static void ArenaDtor(void* object);
406 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
407 private:
408 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
409 return _internal_metadata_.arena();
410 }
411 inline void* MaybeArenaPtr() const {
412 return _internal_metadata_.raw_arena_ptr();
413 }
414 public:
415
416 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
417 private:
418 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
419 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto);
420 return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto.file_level_metadata[kIndexInFileMessages];
421 }
422
423 public:
424
425 // nested types ----------------------------------------------------
426
427 // accessors -------------------------------------------------------
428
429 enum : int {
430 kJobFieldNumber = 1,
431 };
432 // repeated .tensorflow.JobDef job = 1;
433 int job_size() const;
434 void clear_job();
435 ::tensorflow::JobDef* mutable_job(int index);
436 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDef >*
437 mutable_job();
438 const ::tensorflow::JobDef& job(int index) const;
439 ::tensorflow::JobDef* add_job();
440 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDef >&
441 job() const;
442
443 // @@protoc_insertion_point(class_scope:tensorflow.ClusterDef)
444 private:
445 class _Internal;
446
447 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
448 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
449 typedef void InternalArenaConstructable_;
450 typedef void DestructorSkippable_;
451 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDef > job_;
452 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
453 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto;
454};
455// ===================================================================
456
457
458// ===================================================================
459
460#ifdef __GNUC__
461 #pragma GCC diagnostic push
462 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
463#endif // __GNUC__
464// -------------------------------------------------------------------
465
466// JobDef
467
468// string name = 1;
469inline void JobDef::clear_name() {
470 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
471}
472inline const std::string& JobDef::name() const {
473 // @@protoc_insertion_point(field_get:tensorflow.JobDef.name)
474 return name_.Get();
475}
476inline void JobDef::set_name(const std::string& value) {
477
478 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
479 // @@protoc_insertion_point(field_set:tensorflow.JobDef.name)
480}
481inline void JobDef::set_name(std::string&& value) {
482
483 name_.Set(
484 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
485 // @@protoc_insertion_point(field_set_rvalue:tensorflow.JobDef.name)
486}
487inline void JobDef::set_name(const char* value) {
488 GOOGLE_DCHECK(value != nullptr);
489
490 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
491 GetArenaNoVirtual());
492 // @@protoc_insertion_point(field_set_char:tensorflow.JobDef.name)
493}
494inline void JobDef::set_name(const char* value,
495 size_t size) {
496
497 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
498 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
499 // @@protoc_insertion_point(field_set_pointer:tensorflow.JobDef.name)
500}
501inline std::string* JobDef::mutable_name() {
502
503 // @@protoc_insertion_point(field_mutable:tensorflow.JobDef.name)
504 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
505}
506inline std::string* JobDef::release_name() {
507 // @@protoc_insertion_point(field_release:tensorflow.JobDef.name)
508
509 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
510}
511inline void JobDef::set_allocated_name(std::string* name) {
512 if (name != nullptr) {
513
514 } else {
515
516 }
517 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
518 GetArenaNoVirtual());
519 // @@protoc_insertion_point(field_set_allocated:tensorflow.JobDef.name)
520}
521inline std::string* JobDef::unsafe_arena_release_name() {
522 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.JobDef.name)
523 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
524
525 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
526 GetArenaNoVirtual());
527}
528inline void JobDef::unsafe_arena_set_allocated_name(
529 std::string* name) {
530 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
531 if (name != nullptr) {
532
533 } else {
534
535 }
536 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
537 name, GetArenaNoVirtual());
538 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.JobDef.name)
539}
540
541// map<int32, string> tasks = 2;
542inline int JobDef::tasks_size() const {
543 return tasks_.size();
544}
545inline void JobDef::clear_tasks() {
546 tasks_.Clear();
547}
548inline const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, std::string >&
549JobDef::tasks() const {
550 // @@protoc_insertion_point(field_map:tensorflow.JobDef.tasks)
551 return tasks_.GetMap();
552}
553inline ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, std::string >*
554JobDef::mutable_tasks() {
555 // @@protoc_insertion_point(field_mutable_map:tensorflow.JobDef.tasks)
556 return tasks_.MutableMap();
557}
558
559// -------------------------------------------------------------------
560
561// ClusterDef
562
563// repeated .tensorflow.JobDef job = 1;
564inline int ClusterDef::job_size() const {
565 return job_.size();
566}
567inline void ClusterDef::clear_job() {
568 job_.Clear();
569}
570inline ::tensorflow::JobDef* ClusterDef::mutable_job(int index) {
571 // @@protoc_insertion_point(field_mutable:tensorflow.ClusterDef.job)
572 return job_.Mutable(index);
573}
574inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDef >*
575ClusterDef::mutable_job() {
576 // @@protoc_insertion_point(field_mutable_list:tensorflow.ClusterDef.job)
577 return &job_;
578}
579inline const ::tensorflow::JobDef& ClusterDef::job(int index) const {
580 // @@protoc_insertion_point(field_get:tensorflow.ClusterDef.job)
581 return job_.Get(index);
582}
583inline ::tensorflow::JobDef* ClusterDef::add_job() {
584 // @@protoc_insertion_point(field_add:tensorflow.ClusterDef.job)
585 return job_.Add();
586}
587inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDef >&
588ClusterDef::job() const {
589 // @@protoc_insertion_point(field_list:tensorflow.ClusterDef.job)
590 return job_;
591}
592
593#ifdef __GNUC__
594 #pragma GCC diagnostic pop
595#endif // __GNUC__
596// -------------------------------------------------------------------
597
598// -------------------------------------------------------------------
599
600
601// @@protoc_insertion_point(namespace_scope)
602
603} // namespace tensorflow
604
605// @@protoc_insertion_point(global_scope)
606
607#include <google/protobuf/port_undef.inc>
608#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcluster_2eproto
609