1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/protobuf/device_properties.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdevice_5fproperties_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdevice_5fproperties_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/map.h> // IWYU pragma: export
33 #include <google/protobuf/map_entry_lite.h>
34 #include <google/protobuf/map_field_lite.h>
35 // @@protoc_insertion_point(includes)
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdevice_5fproperties_2eproto
38 PROTOBUF_NAMESPACE_OPEN
39 namespace internal {
40 class AnyMetadata;
41 } // namespace internal
42 PROTOBUF_NAMESPACE_CLOSE
43
44 // Internal implementation detail -- do not use these members.
45 struct TableStruct_tensorflow_2fcore_2fprotobuf_2fdevice_5fproperties_2eproto {
46 static const ::uint32_t offsets[];
47 };
48 namespace tensorflow {
49 class DeviceProperties;
50 struct DevicePropertiesDefaultTypeInternal;
51 extern DevicePropertiesDefaultTypeInternal _DeviceProperties_default_instance_;
52 class DeviceProperties_EnvironmentEntry_DoNotUse;
53 struct DeviceProperties_EnvironmentEntry_DoNotUseDefaultTypeInternal;
54 extern DeviceProperties_EnvironmentEntry_DoNotUseDefaultTypeInternal _DeviceProperties_EnvironmentEntry_DoNotUse_default_instance_;
55 class NamedDevice;
56 struct NamedDeviceDefaultTypeInternal;
57 extern NamedDeviceDefaultTypeInternal _NamedDevice_default_instance_;
58 } // namespace tensorflow
59 PROTOBUF_NAMESPACE_OPEN
60 template<> ::tensorflow::DeviceProperties* Arena::CreateMaybeMessage<::tensorflow::DeviceProperties>(Arena*);
61 template<> ::tensorflow::DeviceProperties_EnvironmentEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::DeviceProperties_EnvironmentEntry_DoNotUse>(Arena*);
62 template<> ::tensorflow::NamedDevice* Arena::CreateMaybeMessage<::tensorflow::NamedDevice>(Arena*);
63 PROTOBUF_NAMESPACE_CLOSE
64 namespace tensorflow {
65
66 // ===================================================================
67
68 class DeviceProperties_EnvironmentEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<DeviceProperties_EnvironmentEntry_DoNotUse,
69 std::string, std::string,
70 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
71 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
72 public:
73 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<DeviceProperties_EnvironmentEntry_DoNotUse,
74 std::string, std::string,
75 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
76 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
77 DeviceProperties_EnvironmentEntry_DoNotUse();
78 explicit PROTOBUF_CONSTEXPR DeviceProperties_EnvironmentEntry_DoNotUse(
79 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
80 explicit DeviceProperties_EnvironmentEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
81 void MergeFrom(const DeviceProperties_EnvironmentEntry_DoNotUse& other);
internal_default_instance()82 static const DeviceProperties_EnvironmentEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const DeviceProperties_EnvironmentEntry_DoNotUse*>(&_DeviceProperties_EnvironmentEntry_DoNotUse_default_instance_); }
ValidateKey(std::string * s)83 static bool ValidateKey(std::string* s) {
84 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.DeviceProperties.EnvironmentEntry.key");
85 }
ValidateValue(std::string * s)86 static bool ValidateValue(std::string* s) {
87 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.DeviceProperties.EnvironmentEntry.value");
88 }
89 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fdevice_5fproperties_2eproto;
90 };
91
92 // -------------------------------------------------------------------
93
94 class DeviceProperties final :
95 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.DeviceProperties) */ {
96 public:
DeviceProperties()97 inline DeviceProperties() : DeviceProperties(nullptr) {}
98 ~DeviceProperties() override;
99 explicit PROTOBUF_CONSTEXPR DeviceProperties(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
100
101 DeviceProperties(const DeviceProperties& from);
DeviceProperties(DeviceProperties && from)102 DeviceProperties(DeviceProperties&& from) noexcept
103 : DeviceProperties() {
104 *this = ::std::move(from);
105 }
106
107 inline DeviceProperties& operator=(const DeviceProperties& from) {
108 if (this == &from) return *this;
109 CopyFrom(from);
110 return *this;
111 }
112 inline DeviceProperties& operator=(DeviceProperties&& from) noexcept {
113 if (this == &from) return *this;
114 if (GetOwningArena() == from.GetOwningArena()
115 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
116 && GetOwningArena() != nullptr
117 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
118 ) {
119 InternalSwap(&from);
120 } else {
121 CopyFrom(from);
122 }
123 return *this;
124 }
125
default_instance()126 static const DeviceProperties& default_instance() {
127 return *internal_default_instance();
128 }
internal_default_instance()129 static inline const DeviceProperties* internal_default_instance() {
130 return reinterpret_cast<const DeviceProperties*>(
131 &_DeviceProperties_default_instance_);
132 }
133 static constexpr int kIndexInFileMessages =
134 1;
135
swap(DeviceProperties & a,DeviceProperties & b)136 friend void swap(DeviceProperties& a, DeviceProperties& b) {
137 a.Swap(&b);
138 }
Swap(DeviceProperties * other)139 inline void Swap(DeviceProperties* other) {
140 if (other == this) return;
141 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
142 if (GetOwningArena() != nullptr &&
143 GetOwningArena() == other->GetOwningArena()) {
144 #else // PROTOBUF_FORCE_COPY_IN_SWAP
145 if (GetOwningArena() == other->GetOwningArena()) {
146 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
147 InternalSwap(other);
148 } else {
149 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
150 }
151 }
152 void UnsafeArenaSwap(DeviceProperties* other) {
153 if (other == this) return;
154 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
155 InternalSwap(other);
156 }
157
158 // implements Message ----------------------------------------------
159
160 DeviceProperties* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
161 return CreateMaybeMessage<DeviceProperties>(arena);
162 }
163 DeviceProperties* New() const {
164 return New(nullptr);
165 }
166 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
167 void CopyFrom(const DeviceProperties& from);
168 void MergeFrom(const DeviceProperties& from);
169 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170 bool IsInitialized() const final;
171
172 size_t ByteSizeLong() const final;
173 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174 ::uint8_t* _InternalSerialize(
175 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
177
178 private:
179 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
180 void SharedDtor();
181 void SetCachedSize(int size) const;
182 void InternalSwap(DeviceProperties* other);
183
184 private:
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "tensorflow.DeviceProperties";
188 }
189 protected:
190 explicit DeviceProperties(::PROTOBUF_NAMESPACE_ID::Arena* arena,
191 bool is_message_owned = false);
192 public:
193
194 std::string GetTypeName() const final;
195
196 // nested types ----------------------------------------------------
197
198
199 // accessors -------------------------------------------------------
200
201 enum : int {
202 kEnvironmentFieldNumber = 6,
203 kTypeFieldNumber = 1,
204 kVendorFieldNumber = 2,
205 kModelFieldNumber = 3,
206 kFrequencyFieldNumber = 4,
207 kNumCoresFieldNumber = 5,
208 kNumRegistersFieldNumber = 7,
209 kL1CacheSizeFieldNumber = 8,
210 kL2CacheSizeFieldNumber = 9,
211 kL3CacheSizeFieldNumber = 10,
212 kSharedMemorySizePerMultiprocessorFieldNumber = 11,
213 kMemorySizeFieldNumber = 12,
214 kBandwidthFieldNumber = 13,
215 };
216 // map<string, string> environment = 6;
217 int environment_size() const;
218 private:
219 int _internal_environment_size() const;
220 public:
221 void clear_environment();
222 private:
223 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
224 _internal_environment() const;
225 ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
226 _internal_mutable_environment();
227 public:
228 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
229 environment() const;
230 ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
231 mutable_environment();
232
233 // string type = 1;
234 void clear_type();
235 const std::string& type() const;
236 template <typename ArgT0 = const std::string&, typename... ArgT>
237 void set_type(ArgT0&& arg0, ArgT... args);
238 std::string* mutable_type();
239 PROTOBUF_NODISCARD std::string* release_type();
240 void set_allocated_type(std::string* type);
241 private:
242 const std::string& _internal_type() const;
243 inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value);
244 std::string* _internal_mutable_type();
245 public:
246
247 // string vendor = 2;
248 void clear_vendor();
249 const std::string& vendor() const;
250 template <typename ArgT0 = const std::string&, typename... ArgT>
251 void set_vendor(ArgT0&& arg0, ArgT... args);
252 std::string* mutable_vendor();
253 PROTOBUF_NODISCARD std::string* release_vendor();
254 void set_allocated_vendor(std::string* vendor);
255 private:
256 const std::string& _internal_vendor() const;
257 inline PROTOBUF_ALWAYS_INLINE void _internal_set_vendor(const std::string& value);
258 std::string* _internal_mutable_vendor();
259 public:
260
261 // string model = 3;
262 void clear_model();
263 const std::string& model() const;
264 template <typename ArgT0 = const std::string&, typename... ArgT>
265 void set_model(ArgT0&& arg0, ArgT... args);
266 std::string* mutable_model();
267 PROTOBUF_NODISCARD std::string* release_model();
268 void set_allocated_model(std::string* model);
269 private:
270 const std::string& _internal_model() const;
271 inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value);
272 std::string* _internal_mutable_model();
273 public:
274
275 // int64 frequency = 4;
276 void clear_frequency();
277 ::int64_t frequency() const;
278 void set_frequency(::int64_t value);
279 private:
280 ::int64_t _internal_frequency() const;
281 void _internal_set_frequency(::int64_t value);
282 public:
283
284 // int64 num_cores = 5;
285 void clear_num_cores();
286 ::int64_t num_cores() const;
287 void set_num_cores(::int64_t value);
288 private:
289 ::int64_t _internal_num_cores() const;
290 void _internal_set_num_cores(::int64_t value);
291 public:
292
293 // int64 num_registers = 7;
294 void clear_num_registers();
295 ::int64_t num_registers() const;
296 void set_num_registers(::int64_t value);
297 private:
298 ::int64_t _internal_num_registers() const;
299 void _internal_set_num_registers(::int64_t value);
300 public:
301
302 // int64 l1_cache_size = 8;
303 void clear_l1_cache_size();
304 ::int64_t l1_cache_size() const;
305 void set_l1_cache_size(::int64_t value);
306 private:
307 ::int64_t _internal_l1_cache_size() const;
308 void _internal_set_l1_cache_size(::int64_t value);
309 public:
310
311 // int64 l2_cache_size = 9;
312 void clear_l2_cache_size();
313 ::int64_t l2_cache_size() const;
314 void set_l2_cache_size(::int64_t value);
315 private:
316 ::int64_t _internal_l2_cache_size() const;
317 void _internal_set_l2_cache_size(::int64_t value);
318 public:
319
320 // int64 l3_cache_size = 10;
321 void clear_l3_cache_size();
322 ::int64_t l3_cache_size() const;
323 void set_l3_cache_size(::int64_t value);
324 private:
325 ::int64_t _internal_l3_cache_size() const;
326 void _internal_set_l3_cache_size(::int64_t value);
327 public:
328
329 // int64 shared_memory_size_per_multiprocessor = 11;
330 void clear_shared_memory_size_per_multiprocessor();
331 ::int64_t shared_memory_size_per_multiprocessor() const;
332 void set_shared_memory_size_per_multiprocessor(::int64_t value);
333 private:
334 ::int64_t _internal_shared_memory_size_per_multiprocessor() const;
335 void _internal_set_shared_memory_size_per_multiprocessor(::int64_t value);
336 public:
337
338 // int64 memory_size = 12;
339 void clear_memory_size();
340 ::int64_t memory_size() const;
341 void set_memory_size(::int64_t value);
342 private:
343 ::int64_t _internal_memory_size() const;
344 void _internal_set_memory_size(::int64_t value);
345 public:
346
347 // int64 bandwidth = 13;
348 void clear_bandwidth();
349 ::int64_t bandwidth() const;
350 void set_bandwidth(::int64_t value);
351 private:
352 ::int64_t _internal_bandwidth() const;
353 void _internal_set_bandwidth(::int64_t value);
354 public:
355
356 // @@protoc_insertion_point(class_scope:tensorflow.DeviceProperties)
357 private:
358 class _Internal;
359
360 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
361 typedef void InternalArenaConstructable_;
362 typedef void DestructorSkippable_;
363 struct Impl_ {
364 ::PROTOBUF_NAMESPACE_ID::internal::MapFieldLite<
365 DeviceProperties_EnvironmentEntry_DoNotUse,
366 std::string, std::string,
367 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
368 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> environment_;
369 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_;
370 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vendor_;
371 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_;
372 ::int64_t frequency_;
373 ::int64_t num_cores_;
374 ::int64_t num_registers_;
375 ::int64_t l1_cache_size_;
376 ::int64_t l2_cache_size_;
377 ::int64_t l3_cache_size_;
378 ::int64_t shared_memory_size_per_multiprocessor_;
379 ::int64_t memory_size_;
380 ::int64_t bandwidth_;
381 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
382 };
383 union { Impl_ _impl_; };
384 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fdevice_5fproperties_2eproto;
385 };
386 // -------------------------------------------------------------------
387
388 class NamedDevice final :
389 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.NamedDevice) */ {
390 public:
NamedDevice()391 inline NamedDevice() : NamedDevice(nullptr) {}
392 ~NamedDevice() override;
393 explicit PROTOBUF_CONSTEXPR NamedDevice(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
394
395 NamedDevice(const NamedDevice& from);
NamedDevice(NamedDevice && from)396 NamedDevice(NamedDevice&& from) noexcept
397 : NamedDevice() {
398 *this = ::std::move(from);
399 }
400
401 inline NamedDevice& operator=(const NamedDevice& from) {
402 if (this == &from) return *this;
403 CopyFrom(from);
404 return *this;
405 }
406 inline NamedDevice& operator=(NamedDevice&& from) noexcept {
407 if (this == &from) return *this;
408 if (GetOwningArena() == from.GetOwningArena()
409 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
410 && GetOwningArena() != nullptr
411 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
412 ) {
413 InternalSwap(&from);
414 } else {
415 CopyFrom(from);
416 }
417 return *this;
418 }
419
default_instance()420 static const NamedDevice& default_instance() {
421 return *internal_default_instance();
422 }
internal_default_instance()423 static inline const NamedDevice* internal_default_instance() {
424 return reinterpret_cast<const NamedDevice*>(
425 &_NamedDevice_default_instance_);
426 }
427 static constexpr int kIndexInFileMessages =
428 2;
429
swap(NamedDevice & a,NamedDevice & b)430 friend void swap(NamedDevice& a, NamedDevice& b) {
431 a.Swap(&b);
432 }
Swap(NamedDevice * other)433 inline void Swap(NamedDevice* other) {
434 if (other == this) return;
435 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
436 if (GetOwningArena() != nullptr &&
437 GetOwningArena() == other->GetOwningArena()) {
438 #else // PROTOBUF_FORCE_COPY_IN_SWAP
439 if (GetOwningArena() == other->GetOwningArena()) {
440 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
441 InternalSwap(other);
442 } else {
443 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
444 }
445 }
446 void UnsafeArenaSwap(NamedDevice* other) {
447 if (other == this) return;
448 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
449 InternalSwap(other);
450 }
451
452 // implements Message ----------------------------------------------
453
454 NamedDevice* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
455 return CreateMaybeMessage<NamedDevice>(arena);
456 }
457 NamedDevice* New() const {
458 return New(nullptr);
459 }
460 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
461 void CopyFrom(const NamedDevice& from);
462 void MergeFrom(const NamedDevice& from);
463 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
464 bool IsInitialized() const final;
465
466 size_t ByteSizeLong() const final;
467 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
468 ::uint8_t* _InternalSerialize(
469 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
470 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
471
472 private:
473 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
474 void SharedDtor();
475 void SetCachedSize(int size) const;
476 void InternalSwap(NamedDevice* other);
477
478 private:
479 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
480 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
481 return "tensorflow.NamedDevice";
482 }
483 protected:
484 explicit NamedDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena,
485 bool is_message_owned = false);
486 public:
487
488 std::string GetTypeName() const final;
489
490 // nested types ----------------------------------------------------
491
492 // accessors -------------------------------------------------------
493
494 enum : int {
495 kNameFieldNumber = 1,
496 kPropertiesFieldNumber = 2,
497 };
498 // string name = 1;
499 void clear_name();
500 const std::string& name() const;
501 template <typename ArgT0 = const std::string&, typename... ArgT>
502 void set_name(ArgT0&& arg0, ArgT... args);
503 std::string* mutable_name();
504 PROTOBUF_NODISCARD std::string* release_name();
505 void set_allocated_name(std::string* name);
506 private:
507 const std::string& _internal_name() const;
508 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
509 std::string* _internal_mutable_name();
510 public:
511
512 // .tensorflow.DeviceProperties properties = 2;
513 bool has_properties() const;
514 private:
515 bool _internal_has_properties() const;
516 public:
517 void clear_properties();
518 const ::tensorflow::DeviceProperties& properties() const;
519 PROTOBUF_NODISCARD ::tensorflow::DeviceProperties* release_properties();
520 ::tensorflow::DeviceProperties* mutable_properties();
521 void set_allocated_properties(::tensorflow::DeviceProperties* properties);
522 private:
523 const ::tensorflow::DeviceProperties& _internal_properties() const;
524 ::tensorflow::DeviceProperties* _internal_mutable_properties();
525 public:
526 void unsafe_arena_set_allocated_properties(
527 ::tensorflow::DeviceProperties* properties);
528 ::tensorflow::DeviceProperties* unsafe_arena_release_properties();
529
530 // @@protoc_insertion_point(class_scope:tensorflow.NamedDevice)
531 private:
532 class _Internal;
533
534 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
535 typedef void InternalArenaConstructable_;
536 typedef void DestructorSkippable_;
537 struct Impl_ {
538 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
539 ::tensorflow::DeviceProperties* properties_;
540 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
541 };
542 union { Impl_ _impl_; };
543 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fdevice_5fproperties_2eproto;
544 };
545 // ===================================================================
546
547
548 // ===================================================================
549
550 #ifdef __GNUC__
551 #pragma GCC diagnostic push
552 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
553 #endif // __GNUC__
554 // -------------------------------------------------------------------
555
556 // DeviceProperties
557
558 // string type = 1;
clear_type()559 inline void DeviceProperties::clear_type() {
560 _impl_.type_.ClearToEmpty();
561 }
type()562 inline const std::string& DeviceProperties::type() const {
563 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.type)
564 return _internal_type();
565 }
566 template <typename ArgT0, typename... ArgT>
567 inline PROTOBUF_ALWAYS_INLINE
set_type(ArgT0 && arg0,ArgT...args)568 void DeviceProperties::set_type(ArgT0&& arg0, ArgT... args) {
569
570 _impl_.type_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
571 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.type)
572 }
mutable_type()573 inline std::string* DeviceProperties::mutable_type() {
574 std::string* _s = _internal_mutable_type();
575 // @@protoc_insertion_point(field_mutable:tensorflow.DeviceProperties.type)
576 return _s;
577 }
_internal_type()578 inline const std::string& DeviceProperties::_internal_type() const {
579 return _impl_.type_.Get();
580 }
_internal_set_type(const std::string & value)581 inline void DeviceProperties::_internal_set_type(const std::string& value) {
582
583 _impl_.type_.Set(value, GetArenaForAllocation());
584 }
_internal_mutable_type()585 inline std::string* DeviceProperties::_internal_mutable_type() {
586
587 return _impl_.type_.Mutable(GetArenaForAllocation());
588 }
release_type()589 inline std::string* DeviceProperties::release_type() {
590 // @@protoc_insertion_point(field_release:tensorflow.DeviceProperties.type)
591 return _impl_.type_.Release();
592 }
set_allocated_type(std::string * type)593 inline void DeviceProperties::set_allocated_type(std::string* type) {
594 _impl_.type_.SetAllocated(type, GetArenaForAllocation());
595 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
596 if (_impl_.type_.IsDefault()) {
597 _impl_.type_.Set("", GetArenaForAllocation());
598 }
599 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
600 // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceProperties.type)
601 }
602
603 // string vendor = 2;
clear_vendor()604 inline void DeviceProperties::clear_vendor() {
605 _impl_.vendor_.ClearToEmpty();
606 }
vendor()607 inline const std::string& DeviceProperties::vendor() const {
608 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.vendor)
609 return _internal_vendor();
610 }
611 template <typename ArgT0, typename... ArgT>
612 inline PROTOBUF_ALWAYS_INLINE
set_vendor(ArgT0 && arg0,ArgT...args)613 void DeviceProperties::set_vendor(ArgT0&& arg0, ArgT... args) {
614
615 _impl_.vendor_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
616 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.vendor)
617 }
mutable_vendor()618 inline std::string* DeviceProperties::mutable_vendor() {
619 std::string* _s = _internal_mutable_vendor();
620 // @@protoc_insertion_point(field_mutable:tensorflow.DeviceProperties.vendor)
621 return _s;
622 }
_internal_vendor()623 inline const std::string& DeviceProperties::_internal_vendor() const {
624 return _impl_.vendor_.Get();
625 }
_internal_set_vendor(const std::string & value)626 inline void DeviceProperties::_internal_set_vendor(const std::string& value) {
627
628 _impl_.vendor_.Set(value, GetArenaForAllocation());
629 }
_internal_mutable_vendor()630 inline std::string* DeviceProperties::_internal_mutable_vendor() {
631
632 return _impl_.vendor_.Mutable(GetArenaForAllocation());
633 }
release_vendor()634 inline std::string* DeviceProperties::release_vendor() {
635 // @@protoc_insertion_point(field_release:tensorflow.DeviceProperties.vendor)
636 return _impl_.vendor_.Release();
637 }
set_allocated_vendor(std::string * vendor)638 inline void DeviceProperties::set_allocated_vendor(std::string* vendor) {
639 _impl_.vendor_.SetAllocated(vendor, GetArenaForAllocation());
640 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
641 if (_impl_.vendor_.IsDefault()) {
642 _impl_.vendor_.Set("", GetArenaForAllocation());
643 }
644 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
645 // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceProperties.vendor)
646 }
647
648 // string model = 3;
clear_model()649 inline void DeviceProperties::clear_model() {
650 _impl_.model_.ClearToEmpty();
651 }
model()652 inline const std::string& DeviceProperties::model() const {
653 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.model)
654 return _internal_model();
655 }
656 template <typename ArgT0, typename... ArgT>
657 inline PROTOBUF_ALWAYS_INLINE
set_model(ArgT0 && arg0,ArgT...args)658 void DeviceProperties::set_model(ArgT0&& arg0, ArgT... args) {
659
660 _impl_.model_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
661 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.model)
662 }
mutable_model()663 inline std::string* DeviceProperties::mutable_model() {
664 std::string* _s = _internal_mutable_model();
665 // @@protoc_insertion_point(field_mutable:tensorflow.DeviceProperties.model)
666 return _s;
667 }
_internal_model()668 inline const std::string& DeviceProperties::_internal_model() const {
669 return _impl_.model_.Get();
670 }
_internal_set_model(const std::string & value)671 inline void DeviceProperties::_internal_set_model(const std::string& value) {
672
673 _impl_.model_.Set(value, GetArenaForAllocation());
674 }
_internal_mutable_model()675 inline std::string* DeviceProperties::_internal_mutable_model() {
676
677 return _impl_.model_.Mutable(GetArenaForAllocation());
678 }
release_model()679 inline std::string* DeviceProperties::release_model() {
680 // @@protoc_insertion_point(field_release:tensorflow.DeviceProperties.model)
681 return _impl_.model_.Release();
682 }
set_allocated_model(std::string * model)683 inline void DeviceProperties::set_allocated_model(std::string* model) {
684 _impl_.model_.SetAllocated(model, GetArenaForAllocation());
685 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
686 if (_impl_.model_.IsDefault()) {
687 _impl_.model_.Set("", GetArenaForAllocation());
688 }
689 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
690 // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceProperties.model)
691 }
692
693 // int64 frequency = 4;
clear_frequency()694 inline void DeviceProperties::clear_frequency() {
695 _impl_.frequency_ = ::int64_t{0};
696 }
_internal_frequency()697 inline ::int64_t DeviceProperties::_internal_frequency() const {
698 return _impl_.frequency_;
699 }
frequency()700 inline ::int64_t DeviceProperties::frequency() const {
701 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.frequency)
702 return _internal_frequency();
703 }
_internal_set_frequency(::int64_t value)704 inline void DeviceProperties::_internal_set_frequency(::int64_t value) {
705
706 _impl_.frequency_ = value;
707 }
set_frequency(::int64_t value)708 inline void DeviceProperties::set_frequency(::int64_t value) {
709 _internal_set_frequency(value);
710 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.frequency)
711 }
712
713 // int64 num_cores = 5;
clear_num_cores()714 inline void DeviceProperties::clear_num_cores() {
715 _impl_.num_cores_ = ::int64_t{0};
716 }
_internal_num_cores()717 inline ::int64_t DeviceProperties::_internal_num_cores() const {
718 return _impl_.num_cores_;
719 }
num_cores()720 inline ::int64_t DeviceProperties::num_cores() const {
721 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.num_cores)
722 return _internal_num_cores();
723 }
_internal_set_num_cores(::int64_t value)724 inline void DeviceProperties::_internal_set_num_cores(::int64_t value) {
725
726 _impl_.num_cores_ = value;
727 }
set_num_cores(::int64_t value)728 inline void DeviceProperties::set_num_cores(::int64_t value) {
729 _internal_set_num_cores(value);
730 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.num_cores)
731 }
732
733 // map<string, string> environment = 6;
_internal_environment_size()734 inline int DeviceProperties::_internal_environment_size() const {
735 return _impl_.environment_.size();
736 }
environment_size()737 inline int DeviceProperties::environment_size() const {
738 return _internal_environment_size();
739 }
clear_environment()740 inline void DeviceProperties::clear_environment() {
741 _impl_.environment_.Clear();
742 }
743 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
_internal_environment()744 DeviceProperties::_internal_environment() const {
745 return _impl_.environment_.GetMap();
746 }
747 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
environment()748 DeviceProperties::environment() const {
749 // @@protoc_insertion_point(field_map:tensorflow.DeviceProperties.environment)
750 return _internal_environment();
751 }
752 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
_internal_mutable_environment()753 DeviceProperties::_internal_mutable_environment() {
754 return _impl_.environment_.MutableMap();
755 }
756 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
mutable_environment()757 DeviceProperties::mutable_environment() {
758 // @@protoc_insertion_point(field_mutable_map:tensorflow.DeviceProperties.environment)
759 return _internal_mutable_environment();
760 }
761
762 // int64 num_registers = 7;
clear_num_registers()763 inline void DeviceProperties::clear_num_registers() {
764 _impl_.num_registers_ = ::int64_t{0};
765 }
_internal_num_registers()766 inline ::int64_t DeviceProperties::_internal_num_registers() const {
767 return _impl_.num_registers_;
768 }
num_registers()769 inline ::int64_t DeviceProperties::num_registers() const {
770 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.num_registers)
771 return _internal_num_registers();
772 }
_internal_set_num_registers(::int64_t value)773 inline void DeviceProperties::_internal_set_num_registers(::int64_t value) {
774
775 _impl_.num_registers_ = value;
776 }
set_num_registers(::int64_t value)777 inline void DeviceProperties::set_num_registers(::int64_t value) {
778 _internal_set_num_registers(value);
779 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.num_registers)
780 }
781
782 // int64 l1_cache_size = 8;
clear_l1_cache_size()783 inline void DeviceProperties::clear_l1_cache_size() {
784 _impl_.l1_cache_size_ = ::int64_t{0};
785 }
_internal_l1_cache_size()786 inline ::int64_t DeviceProperties::_internal_l1_cache_size() const {
787 return _impl_.l1_cache_size_;
788 }
l1_cache_size()789 inline ::int64_t DeviceProperties::l1_cache_size() const {
790 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.l1_cache_size)
791 return _internal_l1_cache_size();
792 }
_internal_set_l1_cache_size(::int64_t value)793 inline void DeviceProperties::_internal_set_l1_cache_size(::int64_t value) {
794
795 _impl_.l1_cache_size_ = value;
796 }
set_l1_cache_size(::int64_t value)797 inline void DeviceProperties::set_l1_cache_size(::int64_t value) {
798 _internal_set_l1_cache_size(value);
799 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.l1_cache_size)
800 }
801
802 // int64 l2_cache_size = 9;
clear_l2_cache_size()803 inline void DeviceProperties::clear_l2_cache_size() {
804 _impl_.l2_cache_size_ = ::int64_t{0};
805 }
_internal_l2_cache_size()806 inline ::int64_t DeviceProperties::_internal_l2_cache_size() const {
807 return _impl_.l2_cache_size_;
808 }
l2_cache_size()809 inline ::int64_t DeviceProperties::l2_cache_size() const {
810 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.l2_cache_size)
811 return _internal_l2_cache_size();
812 }
_internal_set_l2_cache_size(::int64_t value)813 inline void DeviceProperties::_internal_set_l2_cache_size(::int64_t value) {
814
815 _impl_.l2_cache_size_ = value;
816 }
set_l2_cache_size(::int64_t value)817 inline void DeviceProperties::set_l2_cache_size(::int64_t value) {
818 _internal_set_l2_cache_size(value);
819 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.l2_cache_size)
820 }
821
822 // int64 l3_cache_size = 10;
clear_l3_cache_size()823 inline void DeviceProperties::clear_l3_cache_size() {
824 _impl_.l3_cache_size_ = ::int64_t{0};
825 }
_internal_l3_cache_size()826 inline ::int64_t DeviceProperties::_internal_l3_cache_size() const {
827 return _impl_.l3_cache_size_;
828 }
l3_cache_size()829 inline ::int64_t DeviceProperties::l3_cache_size() const {
830 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.l3_cache_size)
831 return _internal_l3_cache_size();
832 }
_internal_set_l3_cache_size(::int64_t value)833 inline void DeviceProperties::_internal_set_l3_cache_size(::int64_t value) {
834
835 _impl_.l3_cache_size_ = value;
836 }
set_l3_cache_size(::int64_t value)837 inline void DeviceProperties::set_l3_cache_size(::int64_t value) {
838 _internal_set_l3_cache_size(value);
839 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.l3_cache_size)
840 }
841
842 // int64 shared_memory_size_per_multiprocessor = 11;
clear_shared_memory_size_per_multiprocessor()843 inline void DeviceProperties::clear_shared_memory_size_per_multiprocessor() {
844 _impl_.shared_memory_size_per_multiprocessor_ = ::int64_t{0};
845 }
_internal_shared_memory_size_per_multiprocessor()846 inline ::int64_t DeviceProperties::_internal_shared_memory_size_per_multiprocessor() const {
847 return _impl_.shared_memory_size_per_multiprocessor_;
848 }
shared_memory_size_per_multiprocessor()849 inline ::int64_t DeviceProperties::shared_memory_size_per_multiprocessor() const {
850 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.shared_memory_size_per_multiprocessor)
851 return _internal_shared_memory_size_per_multiprocessor();
852 }
_internal_set_shared_memory_size_per_multiprocessor(::int64_t value)853 inline void DeviceProperties::_internal_set_shared_memory_size_per_multiprocessor(::int64_t value) {
854
855 _impl_.shared_memory_size_per_multiprocessor_ = value;
856 }
set_shared_memory_size_per_multiprocessor(::int64_t value)857 inline void DeviceProperties::set_shared_memory_size_per_multiprocessor(::int64_t value) {
858 _internal_set_shared_memory_size_per_multiprocessor(value);
859 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.shared_memory_size_per_multiprocessor)
860 }
861
862 // int64 memory_size = 12;
clear_memory_size()863 inline void DeviceProperties::clear_memory_size() {
864 _impl_.memory_size_ = ::int64_t{0};
865 }
_internal_memory_size()866 inline ::int64_t DeviceProperties::_internal_memory_size() const {
867 return _impl_.memory_size_;
868 }
memory_size()869 inline ::int64_t DeviceProperties::memory_size() const {
870 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.memory_size)
871 return _internal_memory_size();
872 }
_internal_set_memory_size(::int64_t value)873 inline void DeviceProperties::_internal_set_memory_size(::int64_t value) {
874
875 _impl_.memory_size_ = value;
876 }
set_memory_size(::int64_t value)877 inline void DeviceProperties::set_memory_size(::int64_t value) {
878 _internal_set_memory_size(value);
879 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.memory_size)
880 }
881
882 // int64 bandwidth = 13;
clear_bandwidth()883 inline void DeviceProperties::clear_bandwidth() {
884 _impl_.bandwidth_ = ::int64_t{0};
885 }
_internal_bandwidth()886 inline ::int64_t DeviceProperties::_internal_bandwidth() const {
887 return _impl_.bandwidth_;
888 }
bandwidth()889 inline ::int64_t DeviceProperties::bandwidth() const {
890 // @@protoc_insertion_point(field_get:tensorflow.DeviceProperties.bandwidth)
891 return _internal_bandwidth();
892 }
_internal_set_bandwidth(::int64_t value)893 inline void DeviceProperties::_internal_set_bandwidth(::int64_t value) {
894
895 _impl_.bandwidth_ = value;
896 }
set_bandwidth(::int64_t value)897 inline void DeviceProperties::set_bandwidth(::int64_t value) {
898 _internal_set_bandwidth(value);
899 // @@protoc_insertion_point(field_set:tensorflow.DeviceProperties.bandwidth)
900 }
901
902 // -------------------------------------------------------------------
903
904 // NamedDevice
905
906 // string name = 1;
clear_name()907 inline void NamedDevice::clear_name() {
908 _impl_.name_.ClearToEmpty();
909 }
name()910 inline const std::string& NamedDevice::name() const {
911 // @@protoc_insertion_point(field_get:tensorflow.NamedDevice.name)
912 return _internal_name();
913 }
914 template <typename ArgT0, typename... ArgT>
915 inline PROTOBUF_ALWAYS_INLINE
set_name(ArgT0 && arg0,ArgT...args)916 void NamedDevice::set_name(ArgT0&& arg0, ArgT... args) {
917
918 _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
919 // @@protoc_insertion_point(field_set:tensorflow.NamedDevice.name)
920 }
mutable_name()921 inline std::string* NamedDevice::mutable_name() {
922 std::string* _s = _internal_mutable_name();
923 // @@protoc_insertion_point(field_mutable:tensorflow.NamedDevice.name)
924 return _s;
925 }
_internal_name()926 inline const std::string& NamedDevice::_internal_name() const {
927 return _impl_.name_.Get();
928 }
_internal_set_name(const std::string & value)929 inline void NamedDevice::_internal_set_name(const std::string& value) {
930
931 _impl_.name_.Set(value, GetArenaForAllocation());
932 }
_internal_mutable_name()933 inline std::string* NamedDevice::_internal_mutable_name() {
934
935 return _impl_.name_.Mutable(GetArenaForAllocation());
936 }
release_name()937 inline std::string* NamedDevice::release_name() {
938 // @@protoc_insertion_point(field_release:tensorflow.NamedDevice.name)
939 return _impl_.name_.Release();
940 }
set_allocated_name(std::string * name)941 inline void NamedDevice::set_allocated_name(std::string* name) {
942 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
943 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
944 if (_impl_.name_.IsDefault()) {
945 _impl_.name_.Set("", GetArenaForAllocation());
946 }
947 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
948 // @@protoc_insertion_point(field_set_allocated:tensorflow.NamedDevice.name)
949 }
950
951 // .tensorflow.DeviceProperties properties = 2;
_internal_has_properties()952 inline bool NamedDevice::_internal_has_properties() const {
953 return this != internal_default_instance() && _impl_.properties_ != nullptr;
954 }
has_properties()955 inline bool NamedDevice::has_properties() const {
956 return _internal_has_properties();
957 }
clear_properties()958 inline void NamedDevice::clear_properties() {
959 if (GetArenaForAllocation() == nullptr && _impl_.properties_ != nullptr) {
960 delete _impl_.properties_;
961 }
962 _impl_.properties_ = nullptr;
963 }
_internal_properties()964 inline const ::tensorflow::DeviceProperties& NamedDevice::_internal_properties() const {
965 const ::tensorflow::DeviceProperties* p = _impl_.properties_;
966 return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::DeviceProperties&>(
967 ::tensorflow::_DeviceProperties_default_instance_);
968 }
properties()969 inline const ::tensorflow::DeviceProperties& NamedDevice::properties() const {
970 // @@protoc_insertion_point(field_get:tensorflow.NamedDevice.properties)
971 return _internal_properties();
972 }
unsafe_arena_set_allocated_properties(::tensorflow::DeviceProperties * properties)973 inline void NamedDevice::unsafe_arena_set_allocated_properties(
974 ::tensorflow::DeviceProperties* properties) {
975 if (GetArenaForAllocation() == nullptr) {
976 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.properties_);
977 }
978 _impl_.properties_ = properties;
979 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NamedDevice.properties)
980 }
release_properties()981 inline ::tensorflow::DeviceProperties* NamedDevice::release_properties() {
982
983 ::tensorflow::DeviceProperties* temp = _impl_.properties_;
984 _impl_.properties_ = nullptr;
985 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
986 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
987 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
988 if (GetArenaForAllocation() == nullptr) { delete old; }
989 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
990 if (GetArenaForAllocation() != nullptr) {
991 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
992 }
993 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
994 return temp;
995 }
unsafe_arena_release_properties()996 inline ::tensorflow::DeviceProperties* NamedDevice::unsafe_arena_release_properties() {
997 // @@protoc_insertion_point(field_release:tensorflow.NamedDevice.properties)
998
999 ::tensorflow::DeviceProperties* temp = _impl_.properties_;
1000 _impl_.properties_ = nullptr;
1001 return temp;
1002 }
_internal_mutable_properties()1003 inline ::tensorflow::DeviceProperties* NamedDevice::_internal_mutable_properties() {
1004
1005 if (_impl_.properties_ == nullptr) {
1006 auto* p = CreateMaybeMessage<::tensorflow::DeviceProperties>(GetArenaForAllocation());
1007 _impl_.properties_ = p;
1008 }
1009 return _impl_.properties_;
1010 }
mutable_properties()1011 inline ::tensorflow::DeviceProperties* NamedDevice::mutable_properties() {
1012 ::tensorflow::DeviceProperties* _msg = _internal_mutable_properties();
1013 // @@protoc_insertion_point(field_mutable:tensorflow.NamedDevice.properties)
1014 return _msg;
1015 }
set_allocated_properties(::tensorflow::DeviceProperties * properties)1016 inline void NamedDevice::set_allocated_properties(::tensorflow::DeviceProperties* properties) {
1017 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1018 if (message_arena == nullptr) {
1019 delete _impl_.properties_;
1020 }
1021 if (properties) {
1022 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1023 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(properties);
1024 if (message_arena != submessage_arena) {
1025 properties = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1026 message_arena, properties, submessage_arena);
1027 }
1028
1029 } else {
1030
1031 }
1032 _impl_.properties_ = properties;
1033 // @@protoc_insertion_point(field_set_allocated:tensorflow.NamedDevice.properties)
1034 }
1035
1036 #ifdef __GNUC__
1037 #pragma GCC diagnostic pop
1038 #endif // __GNUC__
1039 // -------------------------------------------------------------------
1040
1041 // -------------------------------------------------------------------
1042
1043
1044 // @@protoc_insertion_point(namespace_scope)
1045
1046 } // namespace tensorflow
1047
1048 // @@protoc_insertion_point(global_scope)
1049
1050 #include <google/protobuf/port_undef.inc>
1051 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdevice_5fproperties_2eproto
1052