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