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