1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/framework/device_attributes.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdevice_5fattributes_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/unknown_field_set.h>
35// @@protoc_insertion_point(includes)
36#include <google/protobuf/port_def.inc>
37#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto
38PROTOBUF_NAMESPACE_OPEN
39namespace internal {
40class AnyMetadata;
41} // namespace internal
42PROTOBUF_NAMESPACE_CLOSE
43
44// Internal implementation detail -- do not use these members.
45struct TableStruct_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto {
46 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
47 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
48 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
49 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
51 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
53 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
54 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
55};
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
57namespace tensorflow {
58class DeviceAttributes;
59class DeviceAttributesDefaultTypeInternal;
60extern DeviceAttributesDefaultTypeInternal _DeviceAttributes_default_instance_;
61class DeviceLocality;
62class DeviceLocalityDefaultTypeInternal;
63extern DeviceLocalityDefaultTypeInternal _DeviceLocality_default_instance_;
64class InterconnectLink;
65class InterconnectLinkDefaultTypeInternal;
66extern InterconnectLinkDefaultTypeInternal _InterconnectLink_default_instance_;
67class LocalLinks;
68class LocalLinksDefaultTypeInternal;
69extern LocalLinksDefaultTypeInternal _LocalLinks_default_instance_;
70} // namespace tensorflow
71PROTOBUF_NAMESPACE_OPEN
72template<> ::tensorflow::DeviceAttributes* Arena::CreateMaybeMessage<::tensorflow::DeviceAttributes>(Arena*);
73template<> ::tensorflow::DeviceLocality* Arena::CreateMaybeMessage<::tensorflow::DeviceLocality>(Arena*);
74template<> ::tensorflow::InterconnectLink* Arena::CreateMaybeMessage<::tensorflow::InterconnectLink>(Arena*);
75template<> ::tensorflow::LocalLinks* Arena::CreateMaybeMessage<::tensorflow::LocalLinks>(Arena*);
76PROTOBUF_NAMESPACE_CLOSE
77namespace tensorflow {
78
79// ===================================================================
80
81class InterconnectLink :
82 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.InterconnectLink) */ {
83 public:
84 InterconnectLink();
85 virtual ~InterconnectLink();
86
87 InterconnectLink(const InterconnectLink& from);
88 InterconnectLink(InterconnectLink&& from) noexcept
89 : InterconnectLink() {
90 *this = ::std::move(from);
91 }
92
93 inline InterconnectLink& operator=(const InterconnectLink& from) {
94 CopyFrom(from);
95 return *this;
96 }
97 inline InterconnectLink& operator=(InterconnectLink&& from) noexcept {
98 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
99 if (this != &from) InternalSwap(&from);
100 } else {
101 CopyFrom(from);
102 }
103 return *this;
104 }
105
106 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
107 return GetArenaNoVirtual();
108 }
109 inline void* GetMaybeArenaPointer() const final {
110 return MaybeArenaPtr();
111 }
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
113 return GetDescriptor();
114 }
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
116 return GetMetadataStatic().descriptor;
117 }
118 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
119 return GetMetadataStatic().reflection;
120 }
121 static const InterconnectLink& default_instance();
122
123 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
124 static inline const InterconnectLink* internal_default_instance() {
125 return reinterpret_cast<const InterconnectLink*>(
126 &_InterconnectLink_default_instance_);
127 }
128 static constexpr int kIndexInFileMessages =
129 0;
130
131 friend void swap(InterconnectLink& a, InterconnectLink& b) {
132 a.Swap(&b);
133 }
134 inline void Swap(InterconnectLink* other) {
135 if (other == this) return;
136 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
137 InternalSwap(other);
138 } else {
139 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
140 }
141 }
142 void UnsafeArenaSwap(InterconnectLink* other) {
143 if (other == this) return;
144 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
145 InternalSwap(other);
146 }
147
148 // implements Message ----------------------------------------------
149
150 inline InterconnectLink* New() const final {
151 return CreateMaybeMessage<InterconnectLink>(nullptr);
152 }
153
154 InterconnectLink* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
155 return CreateMaybeMessage<InterconnectLink>(arena);
156 }
157 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
158 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
159 void CopyFrom(const InterconnectLink& from);
160 void MergeFrom(const InterconnectLink& from);
161 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
162 bool IsInitialized() const final;
163
164 size_t ByteSizeLong() const final;
165 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
166 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
167 #else
168 bool MergePartialFromCodedStream(
169 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
170 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
171 void SerializeWithCachedSizes(
172 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
173 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
174 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
175 int GetCachedSize() const final { return _cached_size_.Get(); }
176
177 private:
178 inline void SharedCtor();
179 inline void SharedDtor();
180 void SetCachedSize(int size) const final;
181 void InternalSwap(InterconnectLink* other);
182 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184 return "tensorflow.InterconnectLink";
185 }
186 protected:
187 explicit InterconnectLink(::PROTOBUF_NAMESPACE_ID::Arena* arena);
188 private:
189 static void ArenaDtor(void* object);
190 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
191 private:
192 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
193 return _internal_metadata_.arena();
194 }
195 inline void* MaybeArenaPtr() const {
196 return _internal_metadata_.raw_arena_ptr();
197 }
198 public:
199
200 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
201 private:
202 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
203 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto);
204 return ::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.file_level_metadata[kIndexInFileMessages];
205 }
206
207 public:
208
209 // nested types ----------------------------------------------------
210
211 // accessors -------------------------------------------------------
212
213 enum : int {
214 kTypeFieldNumber = 2,
215 kDeviceIdFieldNumber = 1,
216 kStrengthFieldNumber = 3,
217 };
218 // string type = 2;
219 void clear_type();
220 const std::string& type() const;
221 void set_type(const std::string& value);
222 void set_type(std::string&& value);
223 void set_type(const char* value);
224 void set_type(const char* value, size_t size);
225 std::string* mutable_type();
226 std::string* release_type();
227 void set_allocated_type(std::string* type);
228 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
229 " string fields are deprecated and will be removed in a"
230 " future release.")
231 std::string* unsafe_arena_release_type();
232 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
233 " string fields are deprecated and will be removed in a"
234 " future release.")
235 void unsafe_arena_set_allocated_type(
236 std::string* type);
237
238 // int32 device_id = 1;
239 void clear_device_id();
240 ::PROTOBUF_NAMESPACE_ID::int32 device_id() const;
241 void set_device_id(::PROTOBUF_NAMESPACE_ID::int32 value);
242
243 // int32 strength = 3;
244 void clear_strength();
245 ::PROTOBUF_NAMESPACE_ID::int32 strength() const;
246 void set_strength(::PROTOBUF_NAMESPACE_ID::int32 value);
247
248 // @@protoc_insertion_point(class_scope:tensorflow.InterconnectLink)
249 private:
250 class _Internal;
251
252 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
253 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
254 typedef void InternalArenaConstructable_;
255 typedef void DestructorSkippable_;
256 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_;
257 ::PROTOBUF_NAMESPACE_ID::int32 device_id_;
258 ::PROTOBUF_NAMESPACE_ID::int32 strength_;
259 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
260 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
261};
262// -------------------------------------------------------------------
263
264class LocalLinks :
265 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.LocalLinks) */ {
266 public:
267 LocalLinks();
268 virtual ~LocalLinks();
269
270 LocalLinks(const LocalLinks& from);
271 LocalLinks(LocalLinks&& from) noexcept
272 : LocalLinks() {
273 *this = ::std::move(from);
274 }
275
276 inline LocalLinks& operator=(const LocalLinks& from) {
277 CopyFrom(from);
278 return *this;
279 }
280 inline LocalLinks& operator=(LocalLinks&& from) noexcept {
281 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
282 if (this != &from) InternalSwap(&from);
283 } else {
284 CopyFrom(from);
285 }
286 return *this;
287 }
288
289 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
290 return GetArenaNoVirtual();
291 }
292 inline void* GetMaybeArenaPointer() const final {
293 return MaybeArenaPtr();
294 }
295 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
296 return GetDescriptor();
297 }
298 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
299 return GetMetadataStatic().descriptor;
300 }
301 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
302 return GetMetadataStatic().reflection;
303 }
304 static const LocalLinks& default_instance();
305
306 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
307 static inline const LocalLinks* internal_default_instance() {
308 return reinterpret_cast<const LocalLinks*>(
309 &_LocalLinks_default_instance_);
310 }
311 static constexpr int kIndexInFileMessages =
312 1;
313
314 friend void swap(LocalLinks& a, LocalLinks& b) {
315 a.Swap(&b);
316 }
317 inline void Swap(LocalLinks* other) {
318 if (other == this) return;
319 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
320 InternalSwap(other);
321 } else {
322 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
323 }
324 }
325 void UnsafeArenaSwap(LocalLinks* other) {
326 if (other == this) return;
327 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
328 InternalSwap(other);
329 }
330
331 // implements Message ----------------------------------------------
332
333 inline LocalLinks* New() const final {
334 return CreateMaybeMessage<LocalLinks>(nullptr);
335 }
336
337 LocalLinks* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
338 return CreateMaybeMessage<LocalLinks>(arena);
339 }
340 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
341 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
342 void CopyFrom(const LocalLinks& from);
343 void MergeFrom(const LocalLinks& from);
344 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
345 bool IsInitialized() const final;
346
347 size_t ByteSizeLong() const final;
348 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
349 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
350 #else
351 bool MergePartialFromCodedStream(
352 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
353 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
354 void SerializeWithCachedSizes(
355 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
356 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
357 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
358 int GetCachedSize() const final { return _cached_size_.Get(); }
359
360 private:
361 inline void SharedCtor();
362 inline void SharedDtor();
363 void SetCachedSize(int size) const final;
364 void InternalSwap(LocalLinks* other);
365 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
366 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
367 return "tensorflow.LocalLinks";
368 }
369 protected:
370 explicit LocalLinks(::PROTOBUF_NAMESPACE_ID::Arena* arena);
371 private:
372 static void ArenaDtor(void* object);
373 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
374 private:
375 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
376 return _internal_metadata_.arena();
377 }
378 inline void* MaybeArenaPtr() const {
379 return _internal_metadata_.raw_arena_ptr();
380 }
381 public:
382
383 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
384 private:
385 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
386 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto);
387 return ::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.file_level_metadata[kIndexInFileMessages];
388 }
389
390 public:
391
392 // nested types ----------------------------------------------------
393
394 // accessors -------------------------------------------------------
395
396 enum : int {
397 kLinkFieldNumber = 1,
398 };
399 // repeated .tensorflow.InterconnectLink link = 1;
400 int link_size() const;
401 void clear_link();
402 ::tensorflow::InterconnectLink* mutable_link(int index);
403 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::InterconnectLink >*
404 mutable_link();
405 const ::tensorflow::InterconnectLink& link(int index) const;
406 ::tensorflow::InterconnectLink* add_link();
407 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::InterconnectLink >&
408 link() const;
409
410 // @@protoc_insertion_point(class_scope:tensorflow.LocalLinks)
411 private:
412 class _Internal;
413
414 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
415 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
416 typedef void InternalArenaConstructable_;
417 typedef void DestructorSkippable_;
418 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::InterconnectLink > link_;
419 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
420 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
421};
422// -------------------------------------------------------------------
423
424class DeviceLocality :
425 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.DeviceLocality) */ {
426 public:
427 DeviceLocality();
428 virtual ~DeviceLocality();
429
430 DeviceLocality(const DeviceLocality& from);
431 DeviceLocality(DeviceLocality&& from) noexcept
432 : DeviceLocality() {
433 *this = ::std::move(from);
434 }
435
436 inline DeviceLocality& operator=(const DeviceLocality& from) {
437 CopyFrom(from);
438 return *this;
439 }
440 inline DeviceLocality& operator=(DeviceLocality&& from) noexcept {
441 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
442 if (this != &from) InternalSwap(&from);
443 } else {
444 CopyFrom(from);
445 }
446 return *this;
447 }
448
449 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
450 return GetArenaNoVirtual();
451 }
452 inline void* GetMaybeArenaPointer() const final {
453 return MaybeArenaPtr();
454 }
455 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
456 return GetDescriptor();
457 }
458 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
459 return GetMetadataStatic().descriptor;
460 }
461 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
462 return GetMetadataStatic().reflection;
463 }
464 static const DeviceLocality& default_instance();
465
466 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
467 static inline const DeviceLocality* internal_default_instance() {
468 return reinterpret_cast<const DeviceLocality*>(
469 &_DeviceLocality_default_instance_);
470 }
471 static constexpr int kIndexInFileMessages =
472 2;
473
474 friend void swap(DeviceLocality& a, DeviceLocality& b) {
475 a.Swap(&b);
476 }
477 inline void Swap(DeviceLocality* other) {
478 if (other == this) return;
479 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
480 InternalSwap(other);
481 } else {
482 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
483 }
484 }
485 void UnsafeArenaSwap(DeviceLocality* other) {
486 if (other == this) return;
487 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
488 InternalSwap(other);
489 }
490
491 // implements Message ----------------------------------------------
492
493 inline DeviceLocality* New() const final {
494 return CreateMaybeMessage<DeviceLocality>(nullptr);
495 }
496
497 DeviceLocality* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
498 return CreateMaybeMessage<DeviceLocality>(arena);
499 }
500 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
501 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
502 void CopyFrom(const DeviceLocality& from);
503 void MergeFrom(const DeviceLocality& from);
504 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
505 bool IsInitialized() const final;
506
507 size_t ByteSizeLong() const final;
508 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
509 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
510 #else
511 bool MergePartialFromCodedStream(
512 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
513 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
514 void SerializeWithCachedSizes(
515 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
516 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
517 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
518 int GetCachedSize() const final { return _cached_size_.Get(); }
519
520 private:
521 inline void SharedCtor();
522 inline void SharedDtor();
523 void SetCachedSize(int size) const final;
524 void InternalSwap(DeviceLocality* other);
525 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
526 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
527 return "tensorflow.DeviceLocality";
528 }
529 protected:
530 explicit DeviceLocality(::PROTOBUF_NAMESPACE_ID::Arena* arena);
531 private:
532 static void ArenaDtor(void* object);
533 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
534 private:
535 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
536 return _internal_metadata_.arena();
537 }
538 inline void* MaybeArenaPtr() const {
539 return _internal_metadata_.raw_arena_ptr();
540 }
541 public:
542
543 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
544 private:
545 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
546 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto);
547 return ::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.file_level_metadata[kIndexInFileMessages];
548 }
549
550 public:
551
552 // nested types ----------------------------------------------------
553
554 // accessors -------------------------------------------------------
555
556 enum : int {
557 kLinksFieldNumber = 3,
558 kBusIdFieldNumber = 1,
559 kNumaNodeFieldNumber = 2,
560 };
561 // .tensorflow.LocalLinks links = 3;
562 bool has_links() const;
563 void clear_links();
564 const ::tensorflow::LocalLinks& links() const;
565 ::tensorflow::LocalLinks* release_links();
566 ::tensorflow::LocalLinks* mutable_links();
567 void set_allocated_links(::tensorflow::LocalLinks* links);
568 void unsafe_arena_set_allocated_links(
569 ::tensorflow::LocalLinks* links);
570 ::tensorflow::LocalLinks* unsafe_arena_release_links();
571
572 // int32 bus_id = 1;
573 void clear_bus_id();
574 ::PROTOBUF_NAMESPACE_ID::int32 bus_id() const;
575 void set_bus_id(::PROTOBUF_NAMESPACE_ID::int32 value);
576
577 // int32 numa_node = 2;
578 void clear_numa_node();
579 ::PROTOBUF_NAMESPACE_ID::int32 numa_node() const;
580 void set_numa_node(::PROTOBUF_NAMESPACE_ID::int32 value);
581
582 // @@protoc_insertion_point(class_scope:tensorflow.DeviceLocality)
583 private:
584 class _Internal;
585
586 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
587 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
588 typedef void InternalArenaConstructable_;
589 typedef void DestructorSkippable_;
590 ::tensorflow::LocalLinks* links_;
591 ::PROTOBUF_NAMESPACE_ID::int32 bus_id_;
592 ::PROTOBUF_NAMESPACE_ID::int32 numa_node_;
593 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
594 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
595};
596// -------------------------------------------------------------------
597
598class DeviceAttributes :
599 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.DeviceAttributes) */ {
600 public:
601 DeviceAttributes();
602 virtual ~DeviceAttributes();
603
604 DeviceAttributes(const DeviceAttributes& from);
605 DeviceAttributes(DeviceAttributes&& from) noexcept
606 : DeviceAttributes() {
607 *this = ::std::move(from);
608 }
609
610 inline DeviceAttributes& operator=(const DeviceAttributes& from) {
611 CopyFrom(from);
612 return *this;
613 }
614 inline DeviceAttributes& operator=(DeviceAttributes&& from) noexcept {
615 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
616 if (this != &from) InternalSwap(&from);
617 } else {
618 CopyFrom(from);
619 }
620 return *this;
621 }
622
623 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
624 return GetArenaNoVirtual();
625 }
626 inline void* GetMaybeArenaPointer() const final {
627 return MaybeArenaPtr();
628 }
629 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
630 return GetDescriptor();
631 }
632 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
633 return GetMetadataStatic().descriptor;
634 }
635 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
636 return GetMetadataStatic().reflection;
637 }
638 static const DeviceAttributes& default_instance();
639
640 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
641 static inline const DeviceAttributes* internal_default_instance() {
642 return reinterpret_cast<const DeviceAttributes*>(
643 &_DeviceAttributes_default_instance_);
644 }
645 static constexpr int kIndexInFileMessages =
646 3;
647
648 friend void swap(DeviceAttributes& a, DeviceAttributes& b) {
649 a.Swap(&b);
650 }
651 inline void Swap(DeviceAttributes* other) {
652 if (other == this) return;
653 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
654 InternalSwap(other);
655 } else {
656 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
657 }
658 }
659 void UnsafeArenaSwap(DeviceAttributes* other) {
660 if (other == this) return;
661 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
662 InternalSwap(other);
663 }
664
665 // implements Message ----------------------------------------------
666
667 inline DeviceAttributes* New() const final {
668 return CreateMaybeMessage<DeviceAttributes>(nullptr);
669 }
670
671 DeviceAttributes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
672 return CreateMaybeMessage<DeviceAttributes>(arena);
673 }
674 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
675 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
676 void CopyFrom(const DeviceAttributes& from);
677 void MergeFrom(const DeviceAttributes& from);
678 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
679 bool IsInitialized() const final;
680
681 size_t ByteSizeLong() const final;
682 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
683 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
684 #else
685 bool MergePartialFromCodedStream(
686 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
687 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
688 void SerializeWithCachedSizes(
689 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
690 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
691 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
692 int GetCachedSize() const final { return _cached_size_.Get(); }
693
694 private:
695 inline void SharedCtor();
696 inline void SharedDtor();
697 void SetCachedSize(int size) const final;
698 void InternalSwap(DeviceAttributes* other);
699 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
700 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
701 return "tensorflow.DeviceAttributes";
702 }
703 protected:
704 explicit DeviceAttributes(::PROTOBUF_NAMESPACE_ID::Arena* arena);
705 private:
706 static void ArenaDtor(void* object);
707 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
708 private:
709 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
710 return _internal_metadata_.arena();
711 }
712 inline void* MaybeArenaPtr() const {
713 return _internal_metadata_.raw_arena_ptr();
714 }
715 public:
716
717 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
718 private:
719 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
720 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto);
721 return ::descriptor_table_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto.file_level_metadata[kIndexInFileMessages];
722 }
723
724 public:
725
726 // nested types ----------------------------------------------------
727
728 // accessors -------------------------------------------------------
729
730 enum : int {
731 kNameFieldNumber = 1,
732 kDeviceTypeFieldNumber = 2,
733 kPhysicalDeviceDescFieldNumber = 7,
734 kLocalityFieldNumber = 5,
735 kMemoryLimitFieldNumber = 4,
736 kIncarnationFieldNumber = 6,
737 kXlaGlobalIdFieldNumber = 8,
738 };
739 // string name = 1;
740 void clear_name();
741 const std::string& name() const;
742 void set_name(const std::string& value);
743 void set_name(std::string&& value);
744 void set_name(const char* value);
745 void set_name(const char* value, size_t size);
746 std::string* mutable_name();
747 std::string* release_name();
748 void set_allocated_name(std::string* name);
749 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
750 " string fields are deprecated and will be removed in a"
751 " future release.")
752 std::string* unsafe_arena_release_name();
753 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
754 " string fields are deprecated and will be removed in a"
755 " future release.")
756 void unsafe_arena_set_allocated_name(
757 std::string* name);
758
759 // string device_type = 2;
760 void clear_device_type();
761 const std::string& device_type() const;
762 void set_device_type(const std::string& value);
763 void set_device_type(std::string&& value);
764 void set_device_type(const char* value);
765 void set_device_type(const char* value, size_t size);
766 std::string* mutable_device_type();
767 std::string* release_device_type();
768 void set_allocated_device_type(std::string* device_type);
769 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
770 " string fields are deprecated and will be removed in a"
771 " future release.")
772 std::string* unsafe_arena_release_device_type();
773 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
774 " string fields are deprecated and will be removed in a"
775 " future release.")
776 void unsafe_arena_set_allocated_device_type(
777 std::string* device_type);
778
779 // string physical_device_desc = 7;
780 void clear_physical_device_desc();
781 const std::string& physical_device_desc() const;
782 void set_physical_device_desc(const std::string& value);
783 void set_physical_device_desc(std::string&& value);
784 void set_physical_device_desc(const char* value);
785 void set_physical_device_desc(const char* value, size_t size);
786 std::string* mutable_physical_device_desc();
787 std::string* release_physical_device_desc();
788 void set_allocated_physical_device_desc(std::string* physical_device_desc);
789 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
790 " string fields are deprecated and will be removed in a"
791 " future release.")
792 std::string* unsafe_arena_release_physical_device_desc();
793 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
794 " string fields are deprecated and will be removed in a"
795 " future release.")
796 void unsafe_arena_set_allocated_physical_device_desc(
797 std::string* physical_device_desc);
798
799 // .tensorflow.DeviceLocality locality = 5;
800 bool has_locality() const;
801 void clear_locality();
802 const ::tensorflow::DeviceLocality& locality() const;
803 ::tensorflow::DeviceLocality* release_locality();
804 ::tensorflow::DeviceLocality* mutable_locality();
805 void set_allocated_locality(::tensorflow::DeviceLocality* locality);
806 void unsafe_arena_set_allocated_locality(
807 ::tensorflow::DeviceLocality* locality);
808 ::tensorflow::DeviceLocality* unsafe_arena_release_locality();
809
810 // int64 memory_limit = 4;
811 void clear_memory_limit();
812 ::PROTOBUF_NAMESPACE_ID::int64 memory_limit() const;
813 void set_memory_limit(::PROTOBUF_NAMESPACE_ID::int64 value);
814
815 // fixed64 incarnation = 6;
816 void clear_incarnation();
817 ::PROTOBUF_NAMESPACE_ID::uint64 incarnation() const;
818 void set_incarnation(::PROTOBUF_NAMESPACE_ID::uint64 value);
819
820 // int64 xla_global_id = 8;
821 void clear_xla_global_id();
822 ::PROTOBUF_NAMESPACE_ID::int64 xla_global_id() const;
823 void set_xla_global_id(::PROTOBUF_NAMESPACE_ID::int64 value);
824
825 // @@protoc_insertion_point(class_scope:tensorflow.DeviceAttributes)
826 private:
827 class _Internal;
828
829 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
830 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
831 typedef void InternalArenaConstructable_;
832 typedef void DestructorSkippable_;
833 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
834 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_type_;
835 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr physical_device_desc_;
836 ::tensorflow::DeviceLocality* locality_;
837 ::PROTOBUF_NAMESPACE_ID::int64 memory_limit_;
838 ::PROTOBUF_NAMESPACE_ID::uint64 incarnation_;
839 ::PROTOBUF_NAMESPACE_ID::int64 xla_global_id_;
840 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
841 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto;
842};
843// ===================================================================
844
845
846// ===================================================================
847
848#ifdef __GNUC__
849 #pragma GCC diagnostic push
850 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
851#endif // __GNUC__
852// InterconnectLink
853
854// int32 device_id = 1;
855inline void InterconnectLink::clear_device_id() {
856 device_id_ = 0;
857}
858inline ::PROTOBUF_NAMESPACE_ID::int32 InterconnectLink::device_id() const {
859 // @@protoc_insertion_point(field_get:tensorflow.InterconnectLink.device_id)
860 return device_id_;
861}
862inline void InterconnectLink::set_device_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
863
864 device_id_ = value;
865 // @@protoc_insertion_point(field_set:tensorflow.InterconnectLink.device_id)
866}
867
868// string type = 2;
869inline void InterconnectLink::clear_type() {
870 type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
871}
872inline const std::string& InterconnectLink::type() const {
873 // @@protoc_insertion_point(field_get:tensorflow.InterconnectLink.type)
874 return type_.Get();
875}
876inline void InterconnectLink::set_type(const std::string& value) {
877
878 type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
879 // @@protoc_insertion_point(field_set:tensorflow.InterconnectLink.type)
880}
881inline void InterconnectLink::set_type(std::string&& value) {
882
883 type_.Set(
884 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
885 // @@protoc_insertion_point(field_set_rvalue:tensorflow.InterconnectLink.type)
886}
887inline void InterconnectLink::set_type(const char* value) {
888 GOOGLE_DCHECK(value != nullptr);
889
890 type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
891 GetArenaNoVirtual());
892 // @@protoc_insertion_point(field_set_char:tensorflow.InterconnectLink.type)
893}
894inline void InterconnectLink::set_type(const char* value,
895 size_t size) {
896
897 type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
898 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
899 // @@protoc_insertion_point(field_set_pointer:tensorflow.InterconnectLink.type)
900}
901inline std::string* InterconnectLink::mutable_type() {
902
903 // @@protoc_insertion_point(field_mutable:tensorflow.InterconnectLink.type)
904 return type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
905}
906inline std::string* InterconnectLink::release_type() {
907 // @@protoc_insertion_point(field_release:tensorflow.InterconnectLink.type)
908
909 return type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
910}
911inline void InterconnectLink::set_allocated_type(std::string* type) {
912 if (type != nullptr) {
913
914 } else {
915
916 }
917 type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type,
918 GetArenaNoVirtual());
919 // @@protoc_insertion_point(field_set_allocated:tensorflow.InterconnectLink.type)
920}
921inline std::string* InterconnectLink::unsafe_arena_release_type() {
922 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.InterconnectLink.type)
923 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
924
925 return type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
926 GetArenaNoVirtual());
927}
928inline void InterconnectLink::unsafe_arena_set_allocated_type(
929 std::string* type) {
930 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
931 if (type != nullptr) {
932
933 } else {
934
935 }
936 type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
937 type, GetArenaNoVirtual());
938 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.InterconnectLink.type)
939}
940
941// int32 strength = 3;
942inline void InterconnectLink::clear_strength() {
943 strength_ = 0;
944}
945inline ::PROTOBUF_NAMESPACE_ID::int32 InterconnectLink::strength() const {
946 // @@protoc_insertion_point(field_get:tensorflow.InterconnectLink.strength)
947 return strength_;
948}
949inline void InterconnectLink::set_strength(::PROTOBUF_NAMESPACE_ID::int32 value) {
950
951 strength_ = value;
952 // @@protoc_insertion_point(field_set:tensorflow.InterconnectLink.strength)
953}
954
955// -------------------------------------------------------------------
956
957// LocalLinks
958
959// repeated .tensorflow.InterconnectLink link = 1;
960inline int LocalLinks::link_size() const {
961 return link_.size();
962}
963inline void LocalLinks::clear_link() {
964 link_.Clear();
965}
966inline ::tensorflow::InterconnectLink* LocalLinks::mutable_link(int index) {
967 // @@protoc_insertion_point(field_mutable:tensorflow.LocalLinks.link)
968 return link_.Mutable(index);
969}
970inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::InterconnectLink >*
971LocalLinks::mutable_link() {
972 // @@protoc_insertion_point(field_mutable_list:tensorflow.LocalLinks.link)
973 return &link_;
974}
975inline const ::tensorflow::InterconnectLink& LocalLinks::link(int index) const {
976 // @@protoc_insertion_point(field_get:tensorflow.LocalLinks.link)
977 return link_.Get(index);
978}
979inline ::tensorflow::InterconnectLink* LocalLinks::add_link() {
980 // @@protoc_insertion_point(field_add:tensorflow.LocalLinks.link)
981 return link_.Add();
982}
983inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::InterconnectLink >&
984LocalLinks::link() const {
985 // @@protoc_insertion_point(field_list:tensorflow.LocalLinks.link)
986 return link_;
987}
988
989// -------------------------------------------------------------------
990
991// DeviceLocality
992
993// int32 bus_id = 1;
994inline void DeviceLocality::clear_bus_id() {
995 bus_id_ = 0;
996}
997inline ::PROTOBUF_NAMESPACE_ID::int32 DeviceLocality::bus_id() const {
998 // @@protoc_insertion_point(field_get:tensorflow.DeviceLocality.bus_id)
999 return bus_id_;
1000}
1001inline void DeviceLocality::set_bus_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
1002
1003 bus_id_ = value;
1004 // @@protoc_insertion_point(field_set:tensorflow.DeviceLocality.bus_id)
1005}
1006
1007// int32 numa_node = 2;
1008inline void DeviceLocality::clear_numa_node() {
1009 numa_node_ = 0;
1010}
1011inline ::PROTOBUF_NAMESPACE_ID::int32 DeviceLocality::numa_node() const {
1012 // @@protoc_insertion_point(field_get:tensorflow.DeviceLocality.numa_node)
1013 return numa_node_;
1014}
1015inline void DeviceLocality::set_numa_node(::PROTOBUF_NAMESPACE_ID::int32 value) {
1016
1017 numa_node_ = value;
1018 // @@protoc_insertion_point(field_set:tensorflow.DeviceLocality.numa_node)
1019}
1020
1021// .tensorflow.LocalLinks links = 3;
1022inline bool DeviceLocality::has_links() const {
1023 return this != internal_default_instance() && links_ != nullptr;
1024}
1025inline void DeviceLocality::clear_links() {
1026 if (GetArenaNoVirtual() == nullptr && links_ != nullptr) {
1027 delete links_;
1028 }
1029 links_ = nullptr;
1030}
1031inline const ::tensorflow::LocalLinks& DeviceLocality::links() const {
1032 const ::tensorflow::LocalLinks* p = links_;
1033 // @@protoc_insertion_point(field_get:tensorflow.DeviceLocality.links)
1034 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::LocalLinks*>(
1035 &::tensorflow::_LocalLinks_default_instance_);
1036}
1037inline ::tensorflow::LocalLinks* DeviceLocality::release_links() {
1038 // @@protoc_insertion_point(field_release:tensorflow.DeviceLocality.links)
1039
1040 ::tensorflow::LocalLinks* temp = links_;
1041 if (GetArenaNoVirtual() != nullptr) {
1042 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1043 }
1044 links_ = nullptr;
1045 return temp;
1046}
1047inline ::tensorflow::LocalLinks* DeviceLocality::unsafe_arena_release_links() {
1048 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceLocality.links)
1049
1050 ::tensorflow::LocalLinks* temp = links_;
1051 links_ = nullptr;
1052 return temp;
1053}
1054inline ::tensorflow::LocalLinks* DeviceLocality::mutable_links() {
1055
1056 if (links_ == nullptr) {
1057 auto* p = CreateMaybeMessage<::tensorflow::LocalLinks>(GetArenaNoVirtual());
1058 links_ = p;
1059 }
1060 // @@protoc_insertion_point(field_mutable:tensorflow.DeviceLocality.links)
1061 return links_;
1062}
1063inline void DeviceLocality::set_allocated_links(::tensorflow::LocalLinks* links) {
1064 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1065 if (message_arena == nullptr) {
1066 delete links_;
1067 }
1068 if (links) {
1069 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1070 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(links);
1071 if (message_arena != submessage_arena) {
1072 links = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1073 message_arena, links, submessage_arena);
1074 }
1075
1076 } else {
1077
1078 }
1079 links_ = links;
1080 // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceLocality.links)
1081}
1082
1083// -------------------------------------------------------------------
1084
1085// DeviceAttributes
1086
1087// string name = 1;
1088inline void DeviceAttributes::clear_name() {
1089 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1090}
1091inline const std::string& DeviceAttributes::name() const {
1092 // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.name)
1093 return name_.Get();
1094}
1095inline void DeviceAttributes::set_name(const std::string& value) {
1096
1097 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1098 // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.name)
1099}
1100inline void DeviceAttributes::set_name(std::string&& value) {
1101
1102 name_.Set(
1103 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1104 // @@protoc_insertion_point(field_set_rvalue:tensorflow.DeviceAttributes.name)
1105}
1106inline void DeviceAttributes::set_name(const char* value) {
1107 GOOGLE_DCHECK(value != nullptr);
1108
1109 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1110 GetArenaNoVirtual());
1111 // @@protoc_insertion_point(field_set_char:tensorflow.DeviceAttributes.name)
1112}
1113inline void DeviceAttributes::set_name(const char* value,
1114 size_t size) {
1115
1116 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1117 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1118 // @@protoc_insertion_point(field_set_pointer:tensorflow.DeviceAttributes.name)
1119}
1120inline std::string* DeviceAttributes::mutable_name() {
1121
1122 // @@protoc_insertion_point(field_mutable:tensorflow.DeviceAttributes.name)
1123 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1124}
1125inline std::string* DeviceAttributes::release_name() {
1126 // @@protoc_insertion_point(field_release:tensorflow.DeviceAttributes.name)
1127
1128 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1129}
1130inline void DeviceAttributes::set_allocated_name(std::string* name) {
1131 if (name != nullptr) {
1132
1133 } else {
1134
1135 }
1136 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
1137 GetArenaNoVirtual());
1138 // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceAttributes.name)
1139}
1140inline std::string* DeviceAttributes::unsafe_arena_release_name() {
1141 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceAttributes.name)
1142 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1143
1144 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1145 GetArenaNoVirtual());
1146}
1147inline void DeviceAttributes::unsafe_arena_set_allocated_name(
1148 std::string* name) {
1149 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1150 if (name != nullptr) {
1151
1152 } else {
1153
1154 }
1155 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1156 name, GetArenaNoVirtual());
1157 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.DeviceAttributes.name)
1158}
1159
1160// string device_type = 2;
1161inline void DeviceAttributes::clear_device_type() {
1162 device_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1163}
1164inline const std::string& DeviceAttributes::device_type() const {
1165 // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.device_type)
1166 return device_type_.Get();
1167}
1168inline void DeviceAttributes::set_device_type(const std::string& value) {
1169
1170 device_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1171 // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.device_type)
1172}
1173inline void DeviceAttributes::set_device_type(std::string&& value) {
1174
1175 device_type_.Set(
1176 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1177 // @@protoc_insertion_point(field_set_rvalue:tensorflow.DeviceAttributes.device_type)
1178}
1179inline void DeviceAttributes::set_device_type(const char* value) {
1180 GOOGLE_DCHECK(value != nullptr);
1181
1182 device_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1183 GetArenaNoVirtual());
1184 // @@protoc_insertion_point(field_set_char:tensorflow.DeviceAttributes.device_type)
1185}
1186inline void DeviceAttributes::set_device_type(const char* value,
1187 size_t size) {
1188
1189 device_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1190 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1191 // @@protoc_insertion_point(field_set_pointer:tensorflow.DeviceAttributes.device_type)
1192}
1193inline std::string* DeviceAttributes::mutable_device_type() {
1194
1195 // @@protoc_insertion_point(field_mutable:tensorflow.DeviceAttributes.device_type)
1196 return device_type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1197}
1198inline std::string* DeviceAttributes::release_device_type() {
1199 // @@protoc_insertion_point(field_release:tensorflow.DeviceAttributes.device_type)
1200
1201 return device_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1202}
1203inline void DeviceAttributes::set_allocated_device_type(std::string* device_type) {
1204 if (device_type != nullptr) {
1205
1206 } else {
1207
1208 }
1209 device_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_type,
1210 GetArenaNoVirtual());
1211 // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceAttributes.device_type)
1212}
1213inline std::string* DeviceAttributes::unsafe_arena_release_device_type() {
1214 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceAttributes.device_type)
1215 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1216
1217 return device_type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1218 GetArenaNoVirtual());
1219}
1220inline void DeviceAttributes::unsafe_arena_set_allocated_device_type(
1221 std::string* device_type) {
1222 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1223 if (device_type != nullptr) {
1224
1225 } else {
1226
1227 }
1228 device_type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1229 device_type, GetArenaNoVirtual());
1230 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.DeviceAttributes.device_type)
1231}
1232
1233// int64 memory_limit = 4;
1234inline void DeviceAttributes::clear_memory_limit() {
1235 memory_limit_ = PROTOBUF_LONGLONG(0);
1236}
1237inline ::PROTOBUF_NAMESPACE_ID::int64 DeviceAttributes::memory_limit() const {
1238 // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.memory_limit)
1239 return memory_limit_;
1240}
1241inline void DeviceAttributes::set_memory_limit(::PROTOBUF_NAMESPACE_ID::int64 value) {
1242
1243 memory_limit_ = value;
1244 // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.memory_limit)
1245}
1246
1247// .tensorflow.DeviceLocality locality = 5;
1248inline bool DeviceAttributes::has_locality() const {
1249 return this != internal_default_instance() && locality_ != nullptr;
1250}
1251inline void DeviceAttributes::clear_locality() {
1252 if (GetArenaNoVirtual() == nullptr && locality_ != nullptr) {
1253 delete locality_;
1254 }
1255 locality_ = nullptr;
1256}
1257inline const ::tensorflow::DeviceLocality& DeviceAttributes::locality() const {
1258 const ::tensorflow::DeviceLocality* p = locality_;
1259 // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.locality)
1260 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::DeviceLocality*>(
1261 &::tensorflow::_DeviceLocality_default_instance_);
1262}
1263inline ::tensorflow::DeviceLocality* DeviceAttributes::release_locality() {
1264 // @@protoc_insertion_point(field_release:tensorflow.DeviceAttributes.locality)
1265
1266 ::tensorflow::DeviceLocality* temp = locality_;
1267 if (GetArenaNoVirtual() != nullptr) {
1268 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1269 }
1270 locality_ = nullptr;
1271 return temp;
1272}
1273inline ::tensorflow::DeviceLocality* DeviceAttributes::unsafe_arena_release_locality() {
1274 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceAttributes.locality)
1275
1276 ::tensorflow::DeviceLocality* temp = locality_;
1277 locality_ = nullptr;
1278 return temp;
1279}
1280inline ::tensorflow::DeviceLocality* DeviceAttributes::mutable_locality() {
1281
1282 if (locality_ == nullptr) {
1283 auto* p = CreateMaybeMessage<::tensorflow::DeviceLocality>(GetArenaNoVirtual());
1284 locality_ = p;
1285 }
1286 // @@protoc_insertion_point(field_mutable:tensorflow.DeviceAttributes.locality)
1287 return locality_;
1288}
1289inline void DeviceAttributes::set_allocated_locality(::tensorflow::DeviceLocality* locality) {
1290 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1291 if (message_arena == nullptr) {
1292 delete locality_;
1293 }
1294 if (locality) {
1295 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1296 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(locality);
1297 if (message_arena != submessage_arena) {
1298 locality = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1299 message_arena, locality, submessage_arena);
1300 }
1301
1302 } else {
1303
1304 }
1305 locality_ = locality;
1306 // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceAttributes.locality)
1307}
1308
1309// fixed64 incarnation = 6;
1310inline void DeviceAttributes::clear_incarnation() {
1311 incarnation_ = PROTOBUF_ULONGLONG(0);
1312}
1313inline ::PROTOBUF_NAMESPACE_ID::uint64 DeviceAttributes::incarnation() const {
1314 // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.incarnation)
1315 return incarnation_;
1316}
1317inline void DeviceAttributes::set_incarnation(::PROTOBUF_NAMESPACE_ID::uint64 value) {
1318
1319 incarnation_ = value;
1320 // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.incarnation)
1321}
1322
1323// string physical_device_desc = 7;
1324inline void DeviceAttributes::clear_physical_device_desc() {
1325 physical_device_desc_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1326}
1327inline const std::string& DeviceAttributes::physical_device_desc() const {
1328 // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.physical_device_desc)
1329 return physical_device_desc_.Get();
1330}
1331inline void DeviceAttributes::set_physical_device_desc(const std::string& value) {
1332
1333 physical_device_desc_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1334 // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.physical_device_desc)
1335}
1336inline void DeviceAttributes::set_physical_device_desc(std::string&& value) {
1337
1338 physical_device_desc_.Set(
1339 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1340 // @@protoc_insertion_point(field_set_rvalue:tensorflow.DeviceAttributes.physical_device_desc)
1341}
1342inline void DeviceAttributes::set_physical_device_desc(const char* value) {
1343 GOOGLE_DCHECK(value != nullptr);
1344
1345 physical_device_desc_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1346 GetArenaNoVirtual());
1347 // @@protoc_insertion_point(field_set_char:tensorflow.DeviceAttributes.physical_device_desc)
1348}
1349inline void DeviceAttributes::set_physical_device_desc(const char* value,
1350 size_t size) {
1351
1352 physical_device_desc_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1353 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1354 // @@protoc_insertion_point(field_set_pointer:tensorflow.DeviceAttributes.physical_device_desc)
1355}
1356inline std::string* DeviceAttributes::mutable_physical_device_desc() {
1357
1358 // @@protoc_insertion_point(field_mutable:tensorflow.DeviceAttributes.physical_device_desc)
1359 return physical_device_desc_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1360}
1361inline std::string* DeviceAttributes::release_physical_device_desc() {
1362 // @@protoc_insertion_point(field_release:tensorflow.DeviceAttributes.physical_device_desc)
1363
1364 return physical_device_desc_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1365}
1366inline void DeviceAttributes::set_allocated_physical_device_desc(std::string* physical_device_desc) {
1367 if (physical_device_desc != nullptr) {
1368
1369 } else {
1370
1371 }
1372 physical_device_desc_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), physical_device_desc,
1373 GetArenaNoVirtual());
1374 // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceAttributes.physical_device_desc)
1375}
1376inline std::string* DeviceAttributes::unsafe_arena_release_physical_device_desc() {
1377 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceAttributes.physical_device_desc)
1378 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1379
1380 return physical_device_desc_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1381 GetArenaNoVirtual());
1382}
1383inline void DeviceAttributes::unsafe_arena_set_allocated_physical_device_desc(
1384 std::string* physical_device_desc) {
1385 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1386 if (physical_device_desc != nullptr) {
1387
1388 } else {
1389
1390 }
1391 physical_device_desc_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1392 physical_device_desc, GetArenaNoVirtual());
1393 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.DeviceAttributes.physical_device_desc)
1394}
1395
1396// int64 xla_global_id = 8;
1397inline void DeviceAttributes::clear_xla_global_id() {
1398 xla_global_id_ = PROTOBUF_LONGLONG(0);
1399}
1400inline ::PROTOBUF_NAMESPACE_ID::int64 DeviceAttributes::xla_global_id() const {
1401 // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.xla_global_id)
1402 return xla_global_id_;
1403}
1404inline void DeviceAttributes::set_xla_global_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
1405
1406 xla_global_id_ = value;
1407 // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.xla_global_id)
1408}
1409
1410#ifdef __GNUC__
1411 #pragma GCC diagnostic pop
1412#endif // __GNUC__
1413// -------------------------------------------------------------------
1414
1415// -------------------------------------------------------------------
1416
1417// -------------------------------------------------------------------
1418
1419
1420// @@protoc_insertion_point(namespace_scope)
1421
1422} // namespace tensorflow
1423
1424// @@protoc_insertion_point(global_scope)
1425
1426#include <google/protobuf/port_undef.inc>
1427#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto
1428