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