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