1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/framework/attr_value.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/map.h> // IWYU pragma: export
33 #include <google/protobuf/map_entry_lite.h>
34 #include <google/protobuf/map_field_lite.h>
35 #include "tensorflow/core/framework/tensor.pb.h"
36 #include "tensorflow/core/framework/tensor_shape.pb.h"
37 #include "tensorflow/core/framework/types.pb.h"
38 // @@protoc_insertion_point(includes)
39 #include <google/protobuf/port_def.inc>
40 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto
41 PROTOBUF_NAMESPACE_OPEN
42 namespace internal {
43 class AnyMetadata;
44 } // namespace internal
45 PROTOBUF_NAMESPACE_CLOSE
46
47 // Internal implementation detail -- do not use these members.
48 struct TableStruct_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto {
49 static const ::uint32_t offsets[];
50 };
51 namespace tensorflow {
52 class AttrValue;
53 struct AttrValueDefaultTypeInternal;
54 extern AttrValueDefaultTypeInternal _AttrValue_default_instance_;
55 class AttrValue_ListValue;
56 struct AttrValue_ListValueDefaultTypeInternal;
57 extern AttrValue_ListValueDefaultTypeInternal _AttrValue_ListValue_default_instance_;
58 class NameAttrList;
59 struct NameAttrListDefaultTypeInternal;
60 extern NameAttrListDefaultTypeInternal _NameAttrList_default_instance_;
61 class NameAttrList_AttrEntry_DoNotUse;
62 struct NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal;
63 extern NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal _NameAttrList_AttrEntry_DoNotUse_default_instance_;
64 } // namespace tensorflow
65 PROTOBUF_NAMESPACE_OPEN
66 template<> ::tensorflow::AttrValue* Arena::CreateMaybeMessage<::tensorflow::AttrValue>(Arena*);
67 template<> ::tensorflow::AttrValue_ListValue* Arena::CreateMaybeMessage<::tensorflow::AttrValue_ListValue>(Arena*);
68 template<> ::tensorflow::NameAttrList* Arena::CreateMaybeMessage<::tensorflow::NameAttrList>(Arena*);
69 template<> ::tensorflow::NameAttrList_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::NameAttrList_AttrEntry_DoNotUse>(Arena*);
70 PROTOBUF_NAMESPACE_CLOSE
71 namespace tensorflow {
72
73 // ===================================================================
74
75 class AttrValue_ListValue final :
76 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.AttrValue.ListValue) */ {
77 public:
AttrValue_ListValue()78 inline AttrValue_ListValue() : AttrValue_ListValue(nullptr) {}
79 ~AttrValue_ListValue() override;
80 explicit PROTOBUF_CONSTEXPR AttrValue_ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
81
82 AttrValue_ListValue(const AttrValue_ListValue& from);
AttrValue_ListValue(AttrValue_ListValue && from)83 AttrValue_ListValue(AttrValue_ListValue&& from) noexcept
84 : AttrValue_ListValue() {
85 *this = ::std::move(from);
86 }
87
88 inline AttrValue_ListValue& operator=(const AttrValue_ListValue& from) {
89 if (this == &from) return *this;
90 CopyFrom(from);
91 return *this;
92 }
93 inline AttrValue_ListValue& operator=(AttrValue_ListValue&& from) noexcept {
94 if (this == &from) return *this;
95 if (GetOwningArena() == from.GetOwningArena()
96 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97 && GetOwningArena() != nullptr
98 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
99 ) {
100 InternalSwap(&from);
101 } else {
102 CopyFrom(from);
103 }
104 return *this;
105 }
106
default_instance()107 static const AttrValue_ListValue& default_instance() {
108 return *internal_default_instance();
109 }
internal_default_instance()110 static inline const AttrValue_ListValue* internal_default_instance() {
111 return reinterpret_cast<const AttrValue_ListValue*>(
112 &_AttrValue_ListValue_default_instance_);
113 }
114 static constexpr int kIndexInFileMessages =
115 0;
116
swap(AttrValue_ListValue & a,AttrValue_ListValue & b)117 friend void swap(AttrValue_ListValue& a, AttrValue_ListValue& b) {
118 a.Swap(&b);
119 }
Swap(AttrValue_ListValue * other)120 inline void Swap(AttrValue_ListValue* other) {
121 if (other == this) return;
122 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
123 if (GetOwningArena() != nullptr &&
124 GetOwningArena() == other->GetOwningArena()) {
125 #else // PROTOBUF_FORCE_COPY_IN_SWAP
126 if (GetOwningArena() == other->GetOwningArena()) {
127 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
128 InternalSwap(other);
129 } else {
130 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
131 }
132 }
133 void UnsafeArenaSwap(AttrValue_ListValue* other) {
134 if (other == this) return;
135 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
136 InternalSwap(other);
137 }
138
139 // implements Message ----------------------------------------------
140
141 AttrValue_ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
142 return CreateMaybeMessage<AttrValue_ListValue>(arena);
143 }
144 AttrValue_ListValue* New() const {
145 return New(nullptr);
146 }
147 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
148 void CopyFrom(const AttrValue_ListValue& from);
149 void MergeFrom(const AttrValue_ListValue& from);
150 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
151 bool IsInitialized() const final;
152
153 size_t ByteSizeLong() const final;
154 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
155 ::uint8_t* _InternalSerialize(
156 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
157 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
158
159 private:
160 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
161 void SharedDtor();
162 void SetCachedSize(int size) const;
163 void InternalSwap(AttrValue_ListValue* other);
164
165 private:
166 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
167 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
168 return "tensorflow.AttrValue.ListValue";
169 }
170 protected:
171 explicit AttrValue_ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
172 bool is_message_owned = false);
173 public:
174
175 std::string GetTypeName() const final;
176
177 // nested types ----------------------------------------------------
178
179 // accessors -------------------------------------------------------
180
181 enum : int {
182 kSFieldNumber = 2,
183 kIFieldNumber = 3,
184 kFFieldNumber = 4,
185 kBFieldNumber = 5,
186 kTypeFieldNumber = 6,
187 kShapeFieldNumber = 7,
188 kTensorFieldNumber = 8,
189 kFuncFieldNumber = 9,
190 };
191 // repeated bytes s = 2;
192 int s_size() const;
193 private:
194 int _internal_s_size() const;
195 public:
196 void clear_s();
197 const std::string& s(int index) const;
198 std::string* mutable_s(int index);
199 void set_s(int index, const std::string& value);
200 void set_s(int index, std::string&& value);
201 void set_s(int index, const char* value);
202 void set_s(int index, const void* value, size_t size);
203 std::string* add_s();
204 void add_s(const std::string& value);
205 void add_s(std::string&& value);
206 void add_s(const char* value);
207 void add_s(const void* value, size_t size);
208 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& s() const;
209 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_s();
210 private:
211 const std::string& _internal_s(int index) const;
212 std::string* _internal_add_s();
213 public:
214
215 // repeated int64 i = 3 [packed = true];
216 int i_size() const;
217 private:
218 int _internal_i_size() const;
219 public:
220 void clear_i();
221 private:
222 ::int64_t _internal_i(int index) const;
223 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
224 _internal_i() const;
225 void _internal_add_i(::int64_t value);
226 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
227 _internal_mutable_i();
228 public:
229 ::int64_t i(int index) const;
230 void set_i(int index, ::int64_t value);
231 void add_i(::int64_t value);
232 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
233 i() const;
234 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
235 mutable_i();
236
237 // repeated float f = 4 [packed = true];
238 int f_size() const;
239 private:
240 int _internal_f_size() const;
241 public:
242 void clear_f();
243 private:
244 float _internal_f(int index) const;
245 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
246 _internal_f() const;
247 void _internal_add_f(float value);
248 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
249 _internal_mutable_f();
250 public:
251 float f(int index) const;
252 void set_f(int index, float value);
253 void add_f(float value);
254 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
255 f() const;
256 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
257 mutable_f();
258
259 // repeated bool b = 5 [packed = true];
260 int b_size() const;
261 private:
262 int _internal_b_size() const;
263 public:
264 void clear_b();
265 private:
266 bool _internal_b(int index) const;
267 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
268 _internal_b() const;
269 void _internal_add_b(bool value);
270 ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
271 _internal_mutable_b();
272 public:
273 bool b(int index) const;
274 void set_b(int index, bool value);
275 void add_b(bool value);
276 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
277 b() const;
278 ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
279 mutable_b();
280
281 // repeated .tensorflow.DataType type = 6 [packed = true];
282 int type_size() const;
283 private:
284 int _internal_type_size() const;
285 public:
286 void clear_type();
287 private:
288 ::tensorflow::DataType _internal_type(int index) const;
289 void _internal_add_type(::tensorflow::DataType value);
290 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_type();
291 public:
292 ::tensorflow::DataType type(int index) const;
293 void set_type(int index, ::tensorflow::DataType value);
294 void add_type(::tensorflow::DataType value);
295 const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& type() const;
296 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_type();
297
298 // repeated .tensorflow.TensorShapeProto shape = 7;
299 int shape_size() const;
300 private:
301 int _internal_shape_size() const;
302 public:
303 void clear_shape();
304 ::tensorflow::TensorShapeProto* mutable_shape(int index);
305 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto >*
306 mutable_shape();
307 private:
308 const ::tensorflow::TensorShapeProto& _internal_shape(int index) const;
309 ::tensorflow::TensorShapeProto* _internal_add_shape();
310 public:
311 const ::tensorflow::TensorShapeProto& shape(int index) const;
312 ::tensorflow::TensorShapeProto* add_shape();
313 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto >&
314 shape() const;
315
316 // repeated .tensorflow.TensorProto tensor = 8;
317 int tensor_size() const;
318 private:
319 int _internal_tensor_size() const;
320 public:
321 void clear_tensor();
322 ::tensorflow::TensorProto* mutable_tensor(int index);
323 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto >*
324 mutable_tensor();
325 private:
326 const ::tensorflow::TensorProto& _internal_tensor(int index) const;
327 ::tensorflow::TensorProto* _internal_add_tensor();
328 public:
329 const ::tensorflow::TensorProto& tensor(int index) const;
330 ::tensorflow::TensorProto* add_tensor();
331 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto >&
332 tensor() const;
333
334 // repeated .tensorflow.NameAttrList func = 9;
335 int func_size() const;
336 private:
337 int _internal_func_size() const;
338 public:
339 void clear_func();
340 ::tensorflow::NameAttrList* mutable_func(int index);
341 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NameAttrList >*
342 mutable_func();
343 private:
344 const ::tensorflow::NameAttrList& _internal_func(int index) const;
345 ::tensorflow::NameAttrList* _internal_add_func();
346 public:
347 const ::tensorflow::NameAttrList& func(int index) const;
348 ::tensorflow::NameAttrList* add_func();
349 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NameAttrList >&
350 func() const;
351
352 // @@protoc_insertion_point(class_scope:tensorflow.AttrValue.ListValue)
353 private:
354 class _Internal;
355
356 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
357 typedef void InternalArenaConstructable_;
358 typedef void DestructorSkippable_;
359 struct Impl_ {
360 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> s_;
361 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t > i_;
362 mutable std::atomic<int> _i_cached_byte_size_;
363 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > f_;
364 ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > b_;
365 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> type_;
366 mutable std::atomic<int> _type_cached_byte_size_;
367 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto > shape_;
368 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto > tensor_;
369 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NameAttrList > func_;
370 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
371 };
372 union { Impl_ _impl_; };
373 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto;
374 };
375 // -------------------------------------------------------------------
376
377 class AttrValue final :
378 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.AttrValue) */ {
379 public:
AttrValue()380 inline AttrValue() : AttrValue(nullptr) {}
381 ~AttrValue() override;
382 explicit PROTOBUF_CONSTEXPR AttrValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
383
384 AttrValue(const AttrValue& from);
AttrValue(AttrValue && from)385 AttrValue(AttrValue&& from) noexcept
386 : AttrValue() {
387 *this = ::std::move(from);
388 }
389
390 inline AttrValue& operator=(const AttrValue& from) {
391 if (this == &from) return *this;
392 CopyFrom(from);
393 return *this;
394 }
395 inline AttrValue& operator=(AttrValue&& from) noexcept {
396 if (this == &from) return *this;
397 if (GetOwningArena() == from.GetOwningArena()
398 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
399 && GetOwningArena() != nullptr
400 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
401 ) {
402 InternalSwap(&from);
403 } else {
404 CopyFrom(from);
405 }
406 return *this;
407 }
408
default_instance()409 static const AttrValue& default_instance() {
410 return *internal_default_instance();
411 }
412 enum ValueCase {
413 kS = 2,
414 kI = 3,
415 kF = 4,
416 kB = 5,
417 kType = 6,
418 kShape = 7,
419 kTensor = 8,
420 kList = 1,
421 kFunc = 10,
422 kPlaceholder = 9,
423 VALUE_NOT_SET = 0,
424 };
425
internal_default_instance()426 static inline const AttrValue* internal_default_instance() {
427 return reinterpret_cast<const AttrValue*>(
428 &_AttrValue_default_instance_);
429 }
430 static constexpr int kIndexInFileMessages =
431 1;
432
swap(AttrValue & a,AttrValue & b)433 friend void swap(AttrValue& a, AttrValue& b) {
434 a.Swap(&b);
435 }
Swap(AttrValue * other)436 inline void Swap(AttrValue* other) {
437 if (other == this) return;
438 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
439 if (GetOwningArena() != nullptr &&
440 GetOwningArena() == other->GetOwningArena()) {
441 #else // PROTOBUF_FORCE_COPY_IN_SWAP
442 if (GetOwningArena() == other->GetOwningArena()) {
443 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
444 InternalSwap(other);
445 } else {
446 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
447 }
448 }
449 void UnsafeArenaSwap(AttrValue* other) {
450 if (other == this) return;
451 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
452 InternalSwap(other);
453 }
454
455 // implements Message ----------------------------------------------
456
457 AttrValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
458 return CreateMaybeMessage<AttrValue>(arena);
459 }
460 AttrValue* New() const {
461 return New(nullptr);
462 }
463 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
464 void CopyFrom(const AttrValue& from);
465 void MergeFrom(const AttrValue& from);
466 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
467 bool IsInitialized() const final;
468
469 size_t ByteSizeLong() const final;
470 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
471 ::uint8_t* _InternalSerialize(
472 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
473 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
474
475 private:
476 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
477 void SharedDtor();
478 void SetCachedSize(int size) const;
479 void InternalSwap(AttrValue* other);
480
481 private:
482 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
483 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
484 return "tensorflow.AttrValue";
485 }
486 protected:
487 explicit AttrValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
488 bool is_message_owned = false);
489 public:
490
491 std::string GetTypeName() const final;
492
493 // nested types ----------------------------------------------------
494
495 typedef AttrValue_ListValue ListValue;
496
497 // accessors -------------------------------------------------------
498
499 enum : int {
500 kSFieldNumber = 2,
501 kIFieldNumber = 3,
502 kFFieldNumber = 4,
503 kBFieldNumber = 5,
504 kTypeFieldNumber = 6,
505 kShapeFieldNumber = 7,
506 kTensorFieldNumber = 8,
507 kListFieldNumber = 1,
508 kFuncFieldNumber = 10,
509 kPlaceholderFieldNumber = 9,
510 };
511 // bytes s = 2;
512 bool has_s() const;
513 private:
514 bool _internal_has_s() const;
515 public:
516 void clear_s();
517 const std::string& s() const;
518 template <typename ArgT0 = const std::string&, typename... ArgT>
519 void set_s(ArgT0&& arg0, ArgT... args);
520 std::string* mutable_s();
521 PROTOBUF_NODISCARD std::string* release_s();
522 void set_allocated_s(std::string* s);
523 private:
524 const std::string& _internal_s() const;
525 inline PROTOBUF_ALWAYS_INLINE void _internal_set_s(const std::string& value);
526 std::string* _internal_mutable_s();
527 public:
528
529 // int64 i = 3;
530 bool has_i() const;
531 private:
532 bool _internal_has_i() const;
533 public:
534 void clear_i();
535 ::int64_t i() const;
536 void set_i(::int64_t value);
537 private:
538 ::int64_t _internal_i() const;
539 void _internal_set_i(::int64_t value);
540 public:
541
542 // float f = 4;
543 bool has_f() const;
544 private:
545 bool _internal_has_f() const;
546 public:
547 void clear_f();
548 float f() const;
549 void set_f(float value);
550 private:
551 float _internal_f() const;
552 void _internal_set_f(float value);
553 public:
554
555 // bool b = 5;
556 bool has_b() const;
557 private:
558 bool _internal_has_b() const;
559 public:
560 void clear_b();
561 bool b() const;
562 void set_b(bool value);
563 private:
564 bool _internal_b() const;
565 void _internal_set_b(bool value);
566 public:
567
568 // .tensorflow.DataType type = 6;
569 bool has_type() const;
570 private:
571 bool _internal_has_type() const;
572 public:
573 void clear_type();
574 ::tensorflow::DataType type() const;
575 void set_type(::tensorflow::DataType value);
576 private:
577 ::tensorflow::DataType _internal_type() const;
578 void _internal_set_type(::tensorflow::DataType value);
579 public:
580
581 // .tensorflow.TensorShapeProto shape = 7;
582 bool has_shape() const;
583 private:
584 bool _internal_has_shape() const;
585 public:
586 void clear_shape();
587 const ::tensorflow::TensorShapeProto& shape() const;
588 PROTOBUF_NODISCARD ::tensorflow::TensorShapeProto* release_shape();
589 ::tensorflow::TensorShapeProto* mutable_shape();
590 void set_allocated_shape(::tensorflow::TensorShapeProto* shape);
591 private:
592 const ::tensorflow::TensorShapeProto& _internal_shape() const;
593 ::tensorflow::TensorShapeProto* _internal_mutable_shape();
594 public:
595 void unsafe_arena_set_allocated_shape(
596 ::tensorflow::TensorShapeProto* shape);
597 ::tensorflow::TensorShapeProto* unsafe_arena_release_shape();
598
599 // .tensorflow.TensorProto tensor = 8;
600 bool has_tensor() const;
601 private:
602 bool _internal_has_tensor() const;
603 public:
604 void clear_tensor();
605 const ::tensorflow::TensorProto& tensor() const;
606 PROTOBUF_NODISCARD ::tensorflow::TensorProto* release_tensor();
607 ::tensorflow::TensorProto* mutable_tensor();
608 void set_allocated_tensor(::tensorflow::TensorProto* tensor);
609 private:
610 const ::tensorflow::TensorProto& _internal_tensor() const;
611 ::tensorflow::TensorProto* _internal_mutable_tensor();
612 public:
613 void unsafe_arena_set_allocated_tensor(
614 ::tensorflow::TensorProto* tensor);
615 ::tensorflow::TensorProto* unsafe_arena_release_tensor();
616
617 // .tensorflow.AttrValue.ListValue list = 1;
618 bool has_list() const;
619 private:
620 bool _internal_has_list() const;
621 public:
622 void clear_list();
623 const ::tensorflow::AttrValue_ListValue& list() const;
624 PROTOBUF_NODISCARD ::tensorflow::AttrValue_ListValue* release_list();
625 ::tensorflow::AttrValue_ListValue* mutable_list();
626 void set_allocated_list(::tensorflow::AttrValue_ListValue* list);
627 private:
628 const ::tensorflow::AttrValue_ListValue& _internal_list() const;
629 ::tensorflow::AttrValue_ListValue* _internal_mutable_list();
630 public:
631 void unsafe_arena_set_allocated_list(
632 ::tensorflow::AttrValue_ListValue* list);
633 ::tensorflow::AttrValue_ListValue* unsafe_arena_release_list();
634
635 // .tensorflow.NameAttrList func = 10;
636 bool has_func() const;
637 private:
638 bool _internal_has_func() const;
639 public:
640 void clear_func();
641 const ::tensorflow::NameAttrList& func() const;
642 PROTOBUF_NODISCARD ::tensorflow::NameAttrList* release_func();
643 ::tensorflow::NameAttrList* mutable_func();
644 void set_allocated_func(::tensorflow::NameAttrList* func);
645 private:
646 const ::tensorflow::NameAttrList& _internal_func() const;
647 ::tensorflow::NameAttrList* _internal_mutable_func();
648 public:
649 void unsafe_arena_set_allocated_func(
650 ::tensorflow::NameAttrList* func);
651 ::tensorflow::NameAttrList* unsafe_arena_release_func();
652
653 // string placeholder = 9;
654 bool has_placeholder() const;
655 private:
656 bool _internal_has_placeholder() const;
657 public:
658 void clear_placeholder();
659 const std::string& placeholder() const;
660 template <typename ArgT0 = const std::string&, typename... ArgT>
661 void set_placeholder(ArgT0&& arg0, ArgT... args);
662 std::string* mutable_placeholder();
663 PROTOBUF_NODISCARD std::string* release_placeholder();
664 void set_allocated_placeholder(std::string* placeholder);
665 private:
666 const std::string& _internal_placeholder() const;
667 inline PROTOBUF_ALWAYS_INLINE void _internal_set_placeholder(const std::string& value);
668 std::string* _internal_mutable_placeholder();
669 public:
670
671 void clear_value();
672 ValueCase value_case() const;
673 // @@protoc_insertion_point(class_scope:tensorflow.AttrValue)
674 private:
675 class _Internal;
676 void set_has_s();
677 void set_has_i();
678 void set_has_f();
679 void set_has_b();
680 void set_has_type();
681 void set_has_shape();
682 void set_has_tensor();
683 void set_has_list();
684 void set_has_func();
685 void set_has_placeholder();
686
687 inline bool has_value() const;
688 inline void clear_has_value();
689
690 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
691 typedef void InternalArenaConstructable_;
692 typedef void DestructorSkippable_;
693 struct Impl_ {
694 union ValueUnion {
695 constexpr ValueUnion() : _constinit_{} {}
696 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
697 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
698 ::int64_t i_;
699 float f_;
700 bool b_;
701 int type_;
702 ::tensorflow::TensorShapeProto* shape_;
703 ::tensorflow::TensorProto* tensor_;
704 ::tensorflow::AttrValue_ListValue* list_;
705 ::tensorflow::NameAttrList* func_;
706 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr placeholder_;
707 } value_;
708 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
709 ::uint32_t _oneof_case_[1];
710
711 };
712 union { Impl_ _impl_; };
713 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto;
714 };
715 // -------------------------------------------------------------------
716
717 class NameAttrList_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<NameAttrList_AttrEntry_DoNotUse,
718 std::string, ::tensorflow::AttrValue,
719 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
720 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> {
721 public:
722 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<NameAttrList_AttrEntry_DoNotUse,
723 std::string, ::tensorflow::AttrValue,
724 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
725 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
726 NameAttrList_AttrEntry_DoNotUse();
727 explicit PROTOBUF_CONSTEXPR NameAttrList_AttrEntry_DoNotUse(
728 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
729 explicit NameAttrList_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
730 void MergeFrom(const NameAttrList_AttrEntry_DoNotUse& other);
internal_default_instance()731 static const NameAttrList_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NameAttrList_AttrEntry_DoNotUse*>(&_NameAttrList_AttrEntry_DoNotUse_default_instance_); }
ValidateKey(std::string * s)732 static bool ValidateKey(std::string* s) {
733 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.NameAttrList.AttrEntry.key");
734 }
ValidateValue(void *)735 static bool ValidateValue(void*) { return true; }
736 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto;
737 };
738
739 // -------------------------------------------------------------------
740
741 class NameAttrList final :
742 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.NameAttrList) */ {
743 public:
NameAttrList()744 inline NameAttrList() : NameAttrList(nullptr) {}
745 ~NameAttrList() override;
746 explicit PROTOBUF_CONSTEXPR NameAttrList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
747
748 NameAttrList(const NameAttrList& from);
NameAttrList(NameAttrList && from)749 NameAttrList(NameAttrList&& from) noexcept
750 : NameAttrList() {
751 *this = ::std::move(from);
752 }
753
754 inline NameAttrList& operator=(const NameAttrList& from) {
755 if (this == &from) return *this;
756 CopyFrom(from);
757 return *this;
758 }
759 inline NameAttrList& operator=(NameAttrList&& from) noexcept {
760 if (this == &from) return *this;
761 if (GetOwningArena() == from.GetOwningArena()
762 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
763 && GetOwningArena() != nullptr
764 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
765 ) {
766 InternalSwap(&from);
767 } else {
768 CopyFrom(from);
769 }
770 return *this;
771 }
772
default_instance()773 static const NameAttrList& default_instance() {
774 return *internal_default_instance();
775 }
internal_default_instance()776 static inline const NameAttrList* internal_default_instance() {
777 return reinterpret_cast<const NameAttrList*>(
778 &_NameAttrList_default_instance_);
779 }
780 static constexpr int kIndexInFileMessages =
781 3;
782
swap(NameAttrList & a,NameAttrList & b)783 friend void swap(NameAttrList& a, NameAttrList& b) {
784 a.Swap(&b);
785 }
Swap(NameAttrList * other)786 inline void Swap(NameAttrList* other) {
787 if (other == this) return;
788 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
789 if (GetOwningArena() != nullptr &&
790 GetOwningArena() == other->GetOwningArena()) {
791 #else // PROTOBUF_FORCE_COPY_IN_SWAP
792 if (GetOwningArena() == other->GetOwningArena()) {
793 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
794 InternalSwap(other);
795 } else {
796 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
797 }
798 }
799 void UnsafeArenaSwap(NameAttrList* other) {
800 if (other == this) return;
801 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
802 InternalSwap(other);
803 }
804
805 // implements Message ----------------------------------------------
806
807 NameAttrList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
808 return CreateMaybeMessage<NameAttrList>(arena);
809 }
810 NameAttrList* New() const {
811 return New(nullptr);
812 }
813 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
814 void CopyFrom(const NameAttrList& from);
815 void MergeFrom(const NameAttrList& from);
816 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
817 bool IsInitialized() const final;
818
819 size_t ByteSizeLong() const final;
820 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
821 ::uint8_t* _InternalSerialize(
822 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
823 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
824
825 private:
826 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
827 void SharedDtor();
828 void SetCachedSize(int size) const;
829 void InternalSwap(NameAttrList* other);
830
831 private:
832 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
833 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
834 return "tensorflow.NameAttrList";
835 }
836 protected:
837 explicit NameAttrList(::PROTOBUF_NAMESPACE_ID::Arena* arena,
838 bool is_message_owned = false);
839 public:
840
841 std::string GetTypeName() const final;
842
843 // nested types ----------------------------------------------------
844
845
846 // accessors -------------------------------------------------------
847
848 enum : int {
849 kAttrFieldNumber = 2,
850 kNameFieldNumber = 1,
851 };
852 // map<string, .tensorflow.AttrValue> attr = 2;
853 int attr_size() const;
854 private:
855 int _internal_attr_size() const;
856 public:
857 void clear_attr();
858 private:
859 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
860 _internal_attr() const;
861 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
862 _internal_mutable_attr();
863 public:
864 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
865 attr() const;
866 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
867 mutable_attr();
868
869 // string name = 1;
870 void clear_name();
871 const std::string& name() const;
872 template <typename ArgT0 = const std::string&, typename... ArgT>
873 void set_name(ArgT0&& arg0, ArgT... args);
874 std::string* mutable_name();
875 PROTOBUF_NODISCARD std::string* release_name();
876 void set_allocated_name(std::string* name);
877 private:
878 const std::string& _internal_name() const;
879 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
880 std::string* _internal_mutable_name();
881 public:
882
883 // @@protoc_insertion_point(class_scope:tensorflow.NameAttrList)
884 private:
885 class _Internal;
886
887 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
888 typedef void InternalArenaConstructable_;
889 typedef void DestructorSkippable_;
890 struct Impl_ {
891 ::PROTOBUF_NAMESPACE_ID::internal::MapFieldLite<
892 NameAttrList_AttrEntry_DoNotUse,
893 std::string, ::tensorflow::AttrValue,
894 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
895 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> attr_;
896 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
897 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
898 };
899 union { Impl_ _impl_; };
900 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto;
901 };
902 // ===================================================================
903
904
905 // ===================================================================
906
907 #ifdef __GNUC__
908 #pragma GCC diagnostic push
909 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
910 #endif // __GNUC__
911 // AttrValue_ListValue
912
913 // repeated bytes s = 2;
_internal_s_size()914 inline int AttrValue_ListValue::_internal_s_size() const {
915 return _impl_.s_.size();
916 }
s_size()917 inline int AttrValue_ListValue::s_size() const {
918 return _internal_s_size();
919 }
clear_s()920 inline void AttrValue_ListValue::clear_s() {
921 _impl_.s_.Clear();
922 }
add_s()923 inline std::string* AttrValue_ListValue::add_s() {
924 std::string* _s = _internal_add_s();
925 // @@protoc_insertion_point(field_add_mutable:tensorflow.AttrValue.ListValue.s)
926 return _s;
927 }
_internal_s(int index)928 inline const std::string& AttrValue_ListValue::_internal_s(int index) const {
929 return _impl_.s_.Get(index);
930 }
s(int index)931 inline const std::string& AttrValue_ListValue::s(int index) const {
932 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.s)
933 return _internal_s(index);
934 }
mutable_s(int index)935 inline std::string* AttrValue_ListValue::mutable_s(int index) {
936 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.s)
937 return _impl_.s_.Mutable(index);
938 }
set_s(int index,const std::string & value)939 inline void AttrValue_ListValue::set_s(int index, const std::string& value) {
940 _impl_.s_.Mutable(index)->assign(value);
941 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.s)
942 }
set_s(int index,std::string && value)943 inline void AttrValue_ListValue::set_s(int index, std::string&& value) {
944 _impl_.s_.Mutable(index)->assign(std::move(value));
945 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.s)
946 }
set_s(int index,const char * value)947 inline void AttrValue_ListValue::set_s(int index, const char* value) {
948 GOOGLE_DCHECK(value != nullptr);
949 _impl_.s_.Mutable(index)->assign(value);
950 // @@protoc_insertion_point(field_set_char:tensorflow.AttrValue.ListValue.s)
951 }
set_s(int index,const void * value,size_t size)952 inline void AttrValue_ListValue::set_s(int index, const void* value, size_t size) {
953 _impl_.s_.Mutable(index)->assign(
954 reinterpret_cast<const char*>(value), size);
955 // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.ListValue.s)
956 }
_internal_add_s()957 inline std::string* AttrValue_ListValue::_internal_add_s() {
958 return _impl_.s_.Add();
959 }
add_s(const std::string & value)960 inline void AttrValue_ListValue::add_s(const std::string& value) {
961 _impl_.s_.Add()->assign(value);
962 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.s)
963 }
add_s(std::string && value)964 inline void AttrValue_ListValue::add_s(std::string&& value) {
965 _impl_.s_.Add(std::move(value));
966 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.s)
967 }
add_s(const char * value)968 inline void AttrValue_ListValue::add_s(const char* value) {
969 GOOGLE_DCHECK(value != nullptr);
970 _impl_.s_.Add()->assign(value);
971 // @@protoc_insertion_point(field_add_char:tensorflow.AttrValue.ListValue.s)
972 }
add_s(const void * value,size_t size)973 inline void AttrValue_ListValue::add_s(const void* value, size_t size) {
974 _impl_.s_.Add()->assign(reinterpret_cast<const char*>(value), size);
975 // @@protoc_insertion_point(field_add_pointer:tensorflow.AttrValue.ListValue.s)
976 }
977 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
s()978 AttrValue_ListValue::s() const {
979 // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.s)
980 return _impl_.s_;
981 }
982 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_s()983 AttrValue_ListValue::mutable_s() {
984 // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.s)
985 return &_impl_.s_;
986 }
987
988 // repeated int64 i = 3 [packed = true];
_internal_i_size()989 inline int AttrValue_ListValue::_internal_i_size() const {
990 return _impl_.i_.size();
991 }
i_size()992 inline int AttrValue_ListValue::i_size() const {
993 return _internal_i_size();
994 }
clear_i()995 inline void AttrValue_ListValue::clear_i() {
996 _impl_.i_.Clear();
997 }
_internal_i(int index)998 inline ::int64_t AttrValue_ListValue::_internal_i(int index) const {
999 return _impl_.i_.Get(index);
1000 }
i(int index)1001 inline ::int64_t AttrValue_ListValue::i(int index) const {
1002 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.i)
1003 return _internal_i(index);
1004 }
set_i(int index,::int64_t value)1005 inline void AttrValue_ListValue::set_i(int index, ::int64_t value) {
1006 _impl_.i_.Set(index, value);
1007 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.i)
1008 }
_internal_add_i(::int64_t value)1009 inline void AttrValue_ListValue::_internal_add_i(::int64_t value) {
1010 _impl_.i_.Add(value);
1011 }
add_i(::int64_t value)1012 inline void AttrValue_ListValue::add_i(::int64_t value) {
1013 _internal_add_i(value);
1014 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.i)
1015 }
1016 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
_internal_i()1017 AttrValue_ListValue::_internal_i() const {
1018 return _impl_.i_;
1019 }
1020 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
i()1021 AttrValue_ListValue::i() const {
1022 // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.i)
1023 return _internal_i();
1024 }
1025 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
_internal_mutable_i()1026 AttrValue_ListValue::_internal_mutable_i() {
1027 return &_impl_.i_;
1028 }
1029 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
mutable_i()1030 AttrValue_ListValue::mutable_i() {
1031 // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.i)
1032 return _internal_mutable_i();
1033 }
1034
1035 // repeated float f = 4 [packed = true];
_internal_f_size()1036 inline int AttrValue_ListValue::_internal_f_size() const {
1037 return _impl_.f_.size();
1038 }
f_size()1039 inline int AttrValue_ListValue::f_size() const {
1040 return _internal_f_size();
1041 }
clear_f()1042 inline void AttrValue_ListValue::clear_f() {
1043 _impl_.f_.Clear();
1044 }
_internal_f(int index)1045 inline float AttrValue_ListValue::_internal_f(int index) const {
1046 return _impl_.f_.Get(index);
1047 }
f(int index)1048 inline float AttrValue_ListValue::f(int index) const {
1049 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.f)
1050 return _internal_f(index);
1051 }
set_f(int index,float value)1052 inline void AttrValue_ListValue::set_f(int index, float value) {
1053 _impl_.f_.Set(index, value);
1054 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.f)
1055 }
_internal_add_f(float value)1056 inline void AttrValue_ListValue::_internal_add_f(float value) {
1057 _impl_.f_.Add(value);
1058 }
add_f(float value)1059 inline void AttrValue_ListValue::add_f(float value) {
1060 _internal_add_f(value);
1061 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.f)
1062 }
1063 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
_internal_f()1064 AttrValue_ListValue::_internal_f() const {
1065 return _impl_.f_;
1066 }
1067 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
f()1068 AttrValue_ListValue::f() const {
1069 // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.f)
1070 return _internal_f();
1071 }
1072 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
_internal_mutable_f()1073 AttrValue_ListValue::_internal_mutable_f() {
1074 return &_impl_.f_;
1075 }
1076 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
mutable_f()1077 AttrValue_ListValue::mutable_f() {
1078 // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.f)
1079 return _internal_mutable_f();
1080 }
1081
1082 // repeated bool b = 5 [packed = true];
_internal_b_size()1083 inline int AttrValue_ListValue::_internal_b_size() const {
1084 return _impl_.b_.size();
1085 }
b_size()1086 inline int AttrValue_ListValue::b_size() const {
1087 return _internal_b_size();
1088 }
clear_b()1089 inline void AttrValue_ListValue::clear_b() {
1090 _impl_.b_.Clear();
1091 }
_internal_b(int index)1092 inline bool AttrValue_ListValue::_internal_b(int index) const {
1093 return _impl_.b_.Get(index);
1094 }
b(int index)1095 inline bool AttrValue_ListValue::b(int index) const {
1096 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.b)
1097 return _internal_b(index);
1098 }
set_b(int index,bool value)1099 inline void AttrValue_ListValue::set_b(int index, bool value) {
1100 _impl_.b_.Set(index, value);
1101 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.b)
1102 }
_internal_add_b(bool value)1103 inline void AttrValue_ListValue::_internal_add_b(bool value) {
1104 _impl_.b_.Add(value);
1105 }
add_b(bool value)1106 inline void AttrValue_ListValue::add_b(bool value) {
1107 _internal_add_b(value);
1108 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.b)
1109 }
1110 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
_internal_b()1111 AttrValue_ListValue::_internal_b() const {
1112 return _impl_.b_;
1113 }
1114 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
b()1115 AttrValue_ListValue::b() const {
1116 // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.b)
1117 return _internal_b();
1118 }
1119 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
_internal_mutable_b()1120 AttrValue_ListValue::_internal_mutable_b() {
1121 return &_impl_.b_;
1122 }
1123 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
mutable_b()1124 AttrValue_ListValue::mutable_b() {
1125 // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.b)
1126 return _internal_mutable_b();
1127 }
1128
1129 // repeated .tensorflow.DataType type = 6 [packed = true];
_internal_type_size()1130 inline int AttrValue_ListValue::_internal_type_size() const {
1131 return _impl_.type_.size();
1132 }
type_size()1133 inline int AttrValue_ListValue::type_size() const {
1134 return _internal_type_size();
1135 }
clear_type()1136 inline void AttrValue_ListValue::clear_type() {
1137 _impl_.type_.Clear();
1138 }
_internal_type(int index)1139 inline ::tensorflow::DataType AttrValue_ListValue::_internal_type(int index) const {
1140 return static_cast< ::tensorflow::DataType >(_impl_.type_.Get(index));
1141 }
type(int index)1142 inline ::tensorflow::DataType AttrValue_ListValue::type(int index) const {
1143 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.type)
1144 return _internal_type(index);
1145 }
set_type(int index,::tensorflow::DataType value)1146 inline void AttrValue_ListValue::set_type(int index, ::tensorflow::DataType value) {
1147 _impl_.type_.Set(index, value);
1148 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.type)
1149 }
_internal_add_type(::tensorflow::DataType value)1150 inline void AttrValue_ListValue::_internal_add_type(::tensorflow::DataType value) {
1151 _impl_.type_.Add(value);
1152 }
add_type(::tensorflow::DataType value)1153 inline void AttrValue_ListValue::add_type(::tensorflow::DataType value) {
1154 _internal_add_type(value);
1155 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.type)
1156 }
1157 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>&
type()1158 AttrValue_ListValue::type() const {
1159 // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.type)
1160 return _impl_.type_;
1161 }
1162 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
_internal_mutable_type()1163 AttrValue_ListValue::_internal_mutable_type() {
1164 return &_impl_.type_;
1165 }
1166 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
mutable_type()1167 AttrValue_ListValue::mutable_type() {
1168 // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.type)
1169 return _internal_mutable_type();
1170 }
1171
1172 // repeated .tensorflow.TensorShapeProto shape = 7;
_internal_shape_size()1173 inline int AttrValue_ListValue::_internal_shape_size() const {
1174 return _impl_.shape_.size();
1175 }
shape_size()1176 inline int AttrValue_ListValue::shape_size() const {
1177 return _internal_shape_size();
1178 }
mutable_shape(int index)1179 inline ::tensorflow::TensorShapeProto* AttrValue_ListValue::mutable_shape(int index) {
1180 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.shape)
1181 return _impl_.shape_.Mutable(index);
1182 }
1183 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto >*
mutable_shape()1184 AttrValue_ListValue::mutable_shape() {
1185 // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.shape)
1186 return &_impl_.shape_;
1187 }
_internal_shape(int index)1188 inline const ::tensorflow::TensorShapeProto& AttrValue_ListValue::_internal_shape(int index) const {
1189 return _impl_.shape_.Get(index);
1190 }
shape(int index)1191 inline const ::tensorflow::TensorShapeProto& AttrValue_ListValue::shape(int index) const {
1192 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.shape)
1193 return _internal_shape(index);
1194 }
_internal_add_shape()1195 inline ::tensorflow::TensorShapeProto* AttrValue_ListValue::_internal_add_shape() {
1196 return _impl_.shape_.Add();
1197 }
add_shape()1198 inline ::tensorflow::TensorShapeProto* AttrValue_ListValue::add_shape() {
1199 ::tensorflow::TensorShapeProto* _add = _internal_add_shape();
1200 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.shape)
1201 return _add;
1202 }
1203 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto >&
shape()1204 AttrValue_ListValue::shape() const {
1205 // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.shape)
1206 return _impl_.shape_;
1207 }
1208
1209 // repeated .tensorflow.TensorProto tensor = 8;
_internal_tensor_size()1210 inline int AttrValue_ListValue::_internal_tensor_size() const {
1211 return _impl_.tensor_.size();
1212 }
tensor_size()1213 inline int AttrValue_ListValue::tensor_size() const {
1214 return _internal_tensor_size();
1215 }
mutable_tensor(int index)1216 inline ::tensorflow::TensorProto* AttrValue_ListValue::mutable_tensor(int index) {
1217 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.tensor)
1218 return _impl_.tensor_.Mutable(index);
1219 }
1220 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto >*
mutable_tensor()1221 AttrValue_ListValue::mutable_tensor() {
1222 // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.tensor)
1223 return &_impl_.tensor_;
1224 }
_internal_tensor(int index)1225 inline const ::tensorflow::TensorProto& AttrValue_ListValue::_internal_tensor(int index) const {
1226 return _impl_.tensor_.Get(index);
1227 }
tensor(int index)1228 inline const ::tensorflow::TensorProto& AttrValue_ListValue::tensor(int index) const {
1229 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.tensor)
1230 return _internal_tensor(index);
1231 }
_internal_add_tensor()1232 inline ::tensorflow::TensorProto* AttrValue_ListValue::_internal_add_tensor() {
1233 return _impl_.tensor_.Add();
1234 }
add_tensor()1235 inline ::tensorflow::TensorProto* AttrValue_ListValue::add_tensor() {
1236 ::tensorflow::TensorProto* _add = _internal_add_tensor();
1237 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.tensor)
1238 return _add;
1239 }
1240 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto >&
tensor()1241 AttrValue_ListValue::tensor() const {
1242 // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.tensor)
1243 return _impl_.tensor_;
1244 }
1245
1246 // repeated .tensorflow.NameAttrList func = 9;
_internal_func_size()1247 inline int AttrValue_ListValue::_internal_func_size() const {
1248 return _impl_.func_.size();
1249 }
func_size()1250 inline int AttrValue_ListValue::func_size() const {
1251 return _internal_func_size();
1252 }
clear_func()1253 inline void AttrValue_ListValue::clear_func() {
1254 _impl_.func_.Clear();
1255 }
mutable_func(int index)1256 inline ::tensorflow::NameAttrList* AttrValue_ListValue::mutable_func(int index) {
1257 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.func)
1258 return _impl_.func_.Mutable(index);
1259 }
1260 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NameAttrList >*
mutable_func()1261 AttrValue_ListValue::mutable_func() {
1262 // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.func)
1263 return &_impl_.func_;
1264 }
_internal_func(int index)1265 inline const ::tensorflow::NameAttrList& AttrValue_ListValue::_internal_func(int index) const {
1266 return _impl_.func_.Get(index);
1267 }
func(int index)1268 inline const ::tensorflow::NameAttrList& AttrValue_ListValue::func(int index) const {
1269 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.func)
1270 return _internal_func(index);
1271 }
_internal_add_func()1272 inline ::tensorflow::NameAttrList* AttrValue_ListValue::_internal_add_func() {
1273 return _impl_.func_.Add();
1274 }
add_func()1275 inline ::tensorflow::NameAttrList* AttrValue_ListValue::add_func() {
1276 ::tensorflow::NameAttrList* _add = _internal_add_func();
1277 // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.func)
1278 return _add;
1279 }
1280 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NameAttrList >&
func()1281 AttrValue_ListValue::func() const {
1282 // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.func)
1283 return _impl_.func_;
1284 }
1285
1286 // -------------------------------------------------------------------
1287
1288 // AttrValue
1289
1290 // bytes s = 2;
_internal_has_s()1291 inline bool AttrValue::_internal_has_s() const {
1292 return value_case() == kS;
1293 }
has_s()1294 inline bool AttrValue::has_s() const {
1295 return _internal_has_s();
1296 }
set_has_s()1297 inline void AttrValue::set_has_s() {
1298 _impl_._oneof_case_[0] = kS;
1299 }
clear_s()1300 inline void AttrValue::clear_s() {
1301 if (_internal_has_s()) {
1302 _impl_.value_.s_.Destroy();
1303 clear_has_value();
1304 }
1305 }
s()1306 inline const std::string& AttrValue::s() const {
1307 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.s)
1308 return _internal_s();
1309 }
1310 template <typename ArgT0, typename... ArgT>
set_s(ArgT0 && arg0,ArgT...args)1311 inline void AttrValue::set_s(ArgT0&& arg0, ArgT... args) {
1312 if (!_internal_has_s()) {
1313 clear_value();
1314 set_has_s();
1315 _impl_.value_.s_.InitDefault();
1316 }
1317 _impl_.value_.s_.SetBytes( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1318 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.s)
1319 }
mutable_s()1320 inline std::string* AttrValue::mutable_s() {
1321 std::string* _s = _internal_mutable_s();
1322 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.s)
1323 return _s;
1324 }
_internal_s()1325 inline const std::string& AttrValue::_internal_s() const {
1326 if (_internal_has_s()) {
1327 return _impl_.value_.s_.Get();
1328 }
1329 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
1330 }
_internal_set_s(const std::string & value)1331 inline void AttrValue::_internal_set_s(const std::string& value) {
1332 if (!_internal_has_s()) {
1333 clear_value();
1334 set_has_s();
1335 _impl_.value_.s_.InitDefault();
1336 }
1337 _impl_.value_.s_.Set(value, GetArenaForAllocation());
1338 }
_internal_mutable_s()1339 inline std::string* AttrValue::_internal_mutable_s() {
1340 if (!_internal_has_s()) {
1341 clear_value();
1342 set_has_s();
1343 _impl_.value_.s_.InitDefault();
1344 }
1345 return _impl_.value_.s_.Mutable( GetArenaForAllocation());
1346 }
release_s()1347 inline std::string* AttrValue::release_s() {
1348 // @@protoc_insertion_point(field_release:tensorflow.AttrValue.s)
1349 if (_internal_has_s()) {
1350 clear_has_value();
1351 return _impl_.value_.s_.Release();
1352 } else {
1353 return nullptr;
1354 }
1355 }
set_allocated_s(std::string * s)1356 inline void AttrValue::set_allocated_s(std::string* s) {
1357 if (has_value()) {
1358 clear_value();
1359 }
1360 if (s != nullptr) {
1361 set_has_s();
1362 _impl_.value_.s_.InitAllocated(s, GetArenaForAllocation());
1363 }
1364 // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.s)
1365 }
1366
1367 // int64 i = 3;
_internal_has_i()1368 inline bool AttrValue::_internal_has_i() const {
1369 return value_case() == kI;
1370 }
has_i()1371 inline bool AttrValue::has_i() const {
1372 return _internal_has_i();
1373 }
set_has_i()1374 inline void AttrValue::set_has_i() {
1375 _impl_._oneof_case_[0] = kI;
1376 }
clear_i()1377 inline void AttrValue::clear_i() {
1378 if (_internal_has_i()) {
1379 _impl_.value_.i_ = ::int64_t{0};
1380 clear_has_value();
1381 }
1382 }
_internal_i()1383 inline ::int64_t AttrValue::_internal_i() const {
1384 if (_internal_has_i()) {
1385 return _impl_.value_.i_;
1386 }
1387 return ::int64_t{0};
1388 }
_internal_set_i(::int64_t value)1389 inline void AttrValue::_internal_set_i(::int64_t value) {
1390 if (!_internal_has_i()) {
1391 clear_value();
1392 set_has_i();
1393 }
1394 _impl_.value_.i_ = value;
1395 }
i()1396 inline ::int64_t AttrValue::i() const {
1397 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.i)
1398 return _internal_i();
1399 }
set_i(::int64_t value)1400 inline void AttrValue::set_i(::int64_t value) {
1401 _internal_set_i(value);
1402 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.i)
1403 }
1404
1405 // float f = 4;
_internal_has_f()1406 inline bool AttrValue::_internal_has_f() const {
1407 return value_case() == kF;
1408 }
has_f()1409 inline bool AttrValue::has_f() const {
1410 return _internal_has_f();
1411 }
set_has_f()1412 inline void AttrValue::set_has_f() {
1413 _impl_._oneof_case_[0] = kF;
1414 }
clear_f()1415 inline void AttrValue::clear_f() {
1416 if (_internal_has_f()) {
1417 _impl_.value_.f_ = 0;
1418 clear_has_value();
1419 }
1420 }
_internal_f()1421 inline float AttrValue::_internal_f() const {
1422 if (_internal_has_f()) {
1423 return _impl_.value_.f_;
1424 }
1425 return 0;
1426 }
_internal_set_f(float value)1427 inline void AttrValue::_internal_set_f(float value) {
1428 if (!_internal_has_f()) {
1429 clear_value();
1430 set_has_f();
1431 }
1432 _impl_.value_.f_ = value;
1433 }
f()1434 inline float AttrValue::f() const {
1435 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.f)
1436 return _internal_f();
1437 }
set_f(float value)1438 inline void AttrValue::set_f(float value) {
1439 _internal_set_f(value);
1440 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.f)
1441 }
1442
1443 // bool b = 5;
_internal_has_b()1444 inline bool AttrValue::_internal_has_b() const {
1445 return value_case() == kB;
1446 }
has_b()1447 inline bool AttrValue::has_b() const {
1448 return _internal_has_b();
1449 }
set_has_b()1450 inline void AttrValue::set_has_b() {
1451 _impl_._oneof_case_[0] = kB;
1452 }
clear_b()1453 inline void AttrValue::clear_b() {
1454 if (_internal_has_b()) {
1455 _impl_.value_.b_ = false;
1456 clear_has_value();
1457 }
1458 }
_internal_b()1459 inline bool AttrValue::_internal_b() const {
1460 if (_internal_has_b()) {
1461 return _impl_.value_.b_;
1462 }
1463 return false;
1464 }
_internal_set_b(bool value)1465 inline void AttrValue::_internal_set_b(bool value) {
1466 if (!_internal_has_b()) {
1467 clear_value();
1468 set_has_b();
1469 }
1470 _impl_.value_.b_ = value;
1471 }
b()1472 inline bool AttrValue::b() const {
1473 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.b)
1474 return _internal_b();
1475 }
set_b(bool value)1476 inline void AttrValue::set_b(bool value) {
1477 _internal_set_b(value);
1478 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.b)
1479 }
1480
1481 // .tensorflow.DataType type = 6;
_internal_has_type()1482 inline bool AttrValue::_internal_has_type() const {
1483 return value_case() == kType;
1484 }
has_type()1485 inline bool AttrValue::has_type() const {
1486 return _internal_has_type();
1487 }
set_has_type()1488 inline void AttrValue::set_has_type() {
1489 _impl_._oneof_case_[0] = kType;
1490 }
clear_type()1491 inline void AttrValue::clear_type() {
1492 if (_internal_has_type()) {
1493 _impl_.value_.type_ = 0;
1494 clear_has_value();
1495 }
1496 }
_internal_type()1497 inline ::tensorflow::DataType AttrValue::_internal_type() const {
1498 if (_internal_has_type()) {
1499 return static_cast< ::tensorflow::DataType >(_impl_.value_.type_);
1500 }
1501 return static_cast< ::tensorflow::DataType >(0);
1502 }
type()1503 inline ::tensorflow::DataType AttrValue::type() const {
1504 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.type)
1505 return _internal_type();
1506 }
_internal_set_type(::tensorflow::DataType value)1507 inline void AttrValue::_internal_set_type(::tensorflow::DataType value) {
1508 if (!_internal_has_type()) {
1509 clear_value();
1510 set_has_type();
1511 }
1512 _impl_.value_.type_ = value;
1513 }
set_type(::tensorflow::DataType value)1514 inline void AttrValue::set_type(::tensorflow::DataType value) {
1515 _internal_set_type(value);
1516 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.type)
1517 }
1518
1519 // .tensorflow.TensorShapeProto shape = 7;
_internal_has_shape()1520 inline bool AttrValue::_internal_has_shape() const {
1521 return value_case() == kShape;
1522 }
has_shape()1523 inline bool AttrValue::has_shape() const {
1524 return _internal_has_shape();
1525 }
set_has_shape()1526 inline void AttrValue::set_has_shape() {
1527 _impl_._oneof_case_[0] = kShape;
1528 }
release_shape()1529 inline ::tensorflow::TensorShapeProto* AttrValue::release_shape() {
1530 // @@protoc_insertion_point(field_release:tensorflow.AttrValue.shape)
1531 if (_internal_has_shape()) {
1532 clear_has_value();
1533 ::tensorflow::TensorShapeProto* temp = _impl_.value_.shape_;
1534 if (GetArenaForAllocation() != nullptr) {
1535 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1536 }
1537 _impl_.value_.shape_ = nullptr;
1538 return temp;
1539 } else {
1540 return nullptr;
1541 }
1542 }
_internal_shape()1543 inline const ::tensorflow::TensorShapeProto& AttrValue::_internal_shape() const {
1544 return _internal_has_shape()
1545 ? *_impl_.value_.shape_
1546 : reinterpret_cast< ::tensorflow::TensorShapeProto&>(::tensorflow::_TensorShapeProto_default_instance_);
1547 }
shape()1548 inline const ::tensorflow::TensorShapeProto& AttrValue::shape() const {
1549 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.shape)
1550 return _internal_shape();
1551 }
unsafe_arena_release_shape()1552 inline ::tensorflow::TensorShapeProto* AttrValue::unsafe_arena_release_shape() {
1553 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.shape)
1554 if (_internal_has_shape()) {
1555 clear_has_value();
1556 ::tensorflow::TensorShapeProto* temp = _impl_.value_.shape_;
1557 _impl_.value_.shape_ = nullptr;
1558 return temp;
1559 } else {
1560 return nullptr;
1561 }
1562 }
unsafe_arena_set_allocated_shape(::tensorflow::TensorShapeProto * shape)1563 inline void AttrValue::unsafe_arena_set_allocated_shape(::tensorflow::TensorShapeProto* shape) {
1564 clear_value();
1565 if (shape) {
1566 set_has_shape();
1567 _impl_.value_.shape_ = shape;
1568 }
1569 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.shape)
1570 }
_internal_mutable_shape()1571 inline ::tensorflow::TensorShapeProto* AttrValue::_internal_mutable_shape() {
1572 if (!_internal_has_shape()) {
1573 clear_value();
1574 set_has_shape();
1575 _impl_.value_.shape_ = CreateMaybeMessage< ::tensorflow::TensorShapeProto >(GetArenaForAllocation());
1576 }
1577 return _impl_.value_.shape_;
1578 }
mutable_shape()1579 inline ::tensorflow::TensorShapeProto* AttrValue::mutable_shape() {
1580 ::tensorflow::TensorShapeProto* _msg = _internal_mutable_shape();
1581 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.shape)
1582 return _msg;
1583 }
1584
1585 // .tensorflow.TensorProto tensor = 8;
_internal_has_tensor()1586 inline bool AttrValue::_internal_has_tensor() const {
1587 return value_case() == kTensor;
1588 }
has_tensor()1589 inline bool AttrValue::has_tensor() const {
1590 return _internal_has_tensor();
1591 }
set_has_tensor()1592 inline void AttrValue::set_has_tensor() {
1593 _impl_._oneof_case_[0] = kTensor;
1594 }
release_tensor()1595 inline ::tensorflow::TensorProto* AttrValue::release_tensor() {
1596 // @@protoc_insertion_point(field_release:tensorflow.AttrValue.tensor)
1597 if (_internal_has_tensor()) {
1598 clear_has_value();
1599 ::tensorflow::TensorProto* temp = _impl_.value_.tensor_;
1600 if (GetArenaForAllocation() != nullptr) {
1601 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1602 }
1603 _impl_.value_.tensor_ = nullptr;
1604 return temp;
1605 } else {
1606 return nullptr;
1607 }
1608 }
_internal_tensor()1609 inline const ::tensorflow::TensorProto& AttrValue::_internal_tensor() const {
1610 return _internal_has_tensor()
1611 ? *_impl_.value_.tensor_
1612 : reinterpret_cast< ::tensorflow::TensorProto&>(::tensorflow::_TensorProto_default_instance_);
1613 }
tensor()1614 inline const ::tensorflow::TensorProto& AttrValue::tensor() const {
1615 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.tensor)
1616 return _internal_tensor();
1617 }
unsafe_arena_release_tensor()1618 inline ::tensorflow::TensorProto* AttrValue::unsafe_arena_release_tensor() {
1619 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.tensor)
1620 if (_internal_has_tensor()) {
1621 clear_has_value();
1622 ::tensorflow::TensorProto* temp = _impl_.value_.tensor_;
1623 _impl_.value_.tensor_ = nullptr;
1624 return temp;
1625 } else {
1626 return nullptr;
1627 }
1628 }
unsafe_arena_set_allocated_tensor(::tensorflow::TensorProto * tensor)1629 inline void AttrValue::unsafe_arena_set_allocated_tensor(::tensorflow::TensorProto* tensor) {
1630 clear_value();
1631 if (tensor) {
1632 set_has_tensor();
1633 _impl_.value_.tensor_ = tensor;
1634 }
1635 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.tensor)
1636 }
_internal_mutable_tensor()1637 inline ::tensorflow::TensorProto* AttrValue::_internal_mutable_tensor() {
1638 if (!_internal_has_tensor()) {
1639 clear_value();
1640 set_has_tensor();
1641 _impl_.value_.tensor_ = CreateMaybeMessage< ::tensorflow::TensorProto >(GetArenaForAllocation());
1642 }
1643 return _impl_.value_.tensor_;
1644 }
mutable_tensor()1645 inline ::tensorflow::TensorProto* AttrValue::mutable_tensor() {
1646 ::tensorflow::TensorProto* _msg = _internal_mutable_tensor();
1647 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.tensor)
1648 return _msg;
1649 }
1650
1651 // .tensorflow.AttrValue.ListValue list = 1;
_internal_has_list()1652 inline bool AttrValue::_internal_has_list() const {
1653 return value_case() == kList;
1654 }
has_list()1655 inline bool AttrValue::has_list() const {
1656 return _internal_has_list();
1657 }
set_has_list()1658 inline void AttrValue::set_has_list() {
1659 _impl_._oneof_case_[0] = kList;
1660 }
clear_list()1661 inline void AttrValue::clear_list() {
1662 if (_internal_has_list()) {
1663 if (GetArenaForAllocation() == nullptr) {
1664 delete _impl_.value_.list_;
1665 }
1666 clear_has_value();
1667 }
1668 }
release_list()1669 inline ::tensorflow::AttrValue_ListValue* AttrValue::release_list() {
1670 // @@protoc_insertion_point(field_release:tensorflow.AttrValue.list)
1671 if (_internal_has_list()) {
1672 clear_has_value();
1673 ::tensorflow::AttrValue_ListValue* temp = _impl_.value_.list_;
1674 if (GetArenaForAllocation() != nullptr) {
1675 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1676 }
1677 _impl_.value_.list_ = nullptr;
1678 return temp;
1679 } else {
1680 return nullptr;
1681 }
1682 }
_internal_list()1683 inline const ::tensorflow::AttrValue_ListValue& AttrValue::_internal_list() const {
1684 return _internal_has_list()
1685 ? *_impl_.value_.list_
1686 : reinterpret_cast< ::tensorflow::AttrValue_ListValue&>(::tensorflow::_AttrValue_ListValue_default_instance_);
1687 }
list()1688 inline const ::tensorflow::AttrValue_ListValue& AttrValue::list() const {
1689 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.list)
1690 return _internal_list();
1691 }
unsafe_arena_release_list()1692 inline ::tensorflow::AttrValue_ListValue* AttrValue::unsafe_arena_release_list() {
1693 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.list)
1694 if (_internal_has_list()) {
1695 clear_has_value();
1696 ::tensorflow::AttrValue_ListValue* temp = _impl_.value_.list_;
1697 _impl_.value_.list_ = nullptr;
1698 return temp;
1699 } else {
1700 return nullptr;
1701 }
1702 }
unsafe_arena_set_allocated_list(::tensorflow::AttrValue_ListValue * list)1703 inline void AttrValue::unsafe_arena_set_allocated_list(::tensorflow::AttrValue_ListValue* list) {
1704 clear_value();
1705 if (list) {
1706 set_has_list();
1707 _impl_.value_.list_ = list;
1708 }
1709 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.list)
1710 }
_internal_mutable_list()1711 inline ::tensorflow::AttrValue_ListValue* AttrValue::_internal_mutable_list() {
1712 if (!_internal_has_list()) {
1713 clear_value();
1714 set_has_list();
1715 _impl_.value_.list_ = CreateMaybeMessage< ::tensorflow::AttrValue_ListValue >(GetArenaForAllocation());
1716 }
1717 return _impl_.value_.list_;
1718 }
mutable_list()1719 inline ::tensorflow::AttrValue_ListValue* AttrValue::mutable_list() {
1720 ::tensorflow::AttrValue_ListValue* _msg = _internal_mutable_list();
1721 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.list)
1722 return _msg;
1723 }
1724
1725 // .tensorflow.NameAttrList func = 10;
_internal_has_func()1726 inline bool AttrValue::_internal_has_func() const {
1727 return value_case() == kFunc;
1728 }
has_func()1729 inline bool AttrValue::has_func() const {
1730 return _internal_has_func();
1731 }
set_has_func()1732 inline void AttrValue::set_has_func() {
1733 _impl_._oneof_case_[0] = kFunc;
1734 }
clear_func()1735 inline void AttrValue::clear_func() {
1736 if (_internal_has_func()) {
1737 if (GetArenaForAllocation() == nullptr) {
1738 delete _impl_.value_.func_;
1739 }
1740 clear_has_value();
1741 }
1742 }
release_func()1743 inline ::tensorflow::NameAttrList* AttrValue::release_func() {
1744 // @@protoc_insertion_point(field_release:tensorflow.AttrValue.func)
1745 if (_internal_has_func()) {
1746 clear_has_value();
1747 ::tensorflow::NameAttrList* temp = _impl_.value_.func_;
1748 if (GetArenaForAllocation() != nullptr) {
1749 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1750 }
1751 _impl_.value_.func_ = nullptr;
1752 return temp;
1753 } else {
1754 return nullptr;
1755 }
1756 }
_internal_func()1757 inline const ::tensorflow::NameAttrList& AttrValue::_internal_func() const {
1758 return _internal_has_func()
1759 ? *_impl_.value_.func_
1760 : reinterpret_cast< ::tensorflow::NameAttrList&>(::tensorflow::_NameAttrList_default_instance_);
1761 }
func()1762 inline const ::tensorflow::NameAttrList& AttrValue::func() const {
1763 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.func)
1764 return _internal_func();
1765 }
unsafe_arena_release_func()1766 inline ::tensorflow::NameAttrList* AttrValue::unsafe_arena_release_func() {
1767 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.func)
1768 if (_internal_has_func()) {
1769 clear_has_value();
1770 ::tensorflow::NameAttrList* temp = _impl_.value_.func_;
1771 _impl_.value_.func_ = nullptr;
1772 return temp;
1773 } else {
1774 return nullptr;
1775 }
1776 }
unsafe_arena_set_allocated_func(::tensorflow::NameAttrList * func)1777 inline void AttrValue::unsafe_arena_set_allocated_func(::tensorflow::NameAttrList* func) {
1778 clear_value();
1779 if (func) {
1780 set_has_func();
1781 _impl_.value_.func_ = func;
1782 }
1783 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.func)
1784 }
_internal_mutable_func()1785 inline ::tensorflow::NameAttrList* AttrValue::_internal_mutable_func() {
1786 if (!_internal_has_func()) {
1787 clear_value();
1788 set_has_func();
1789 _impl_.value_.func_ = CreateMaybeMessage< ::tensorflow::NameAttrList >(GetArenaForAllocation());
1790 }
1791 return _impl_.value_.func_;
1792 }
mutable_func()1793 inline ::tensorflow::NameAttrList* AttrValue::mutable_func() {
1794 ::tensorflow::NameAttrList* _msg = _internal_mutable_func();
1795 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.func)
1796 return _msg;
1797 }
1798
1799 // string placeholder = 9;
_internal_has_placeholder()1800 inline bool AttrValue::_internal_has_placeholder() const {
1801 return value_case() == kPlaceholder;
1802 }
has_placeholder()1803 inline bool AttrValue::has_placeholder() const {
1804 return _internal_has_placeholder();
1805 }
set_has_placeholder()1806 inline void AttrValue::set_has_placeholder() {
1807 _impl_._oneof_case_[0] = kPlaceholder;
1808 }
clear_placeholder()1809 inline void AttrValue::clear_placeholder() {
1810 if (_internal_has_placeholder()) {
1811 _impl_.value_.placeholder_.Destroy();
1812 clear_has_value();
1813 }
1814 }
placeholder()1815 inline const std::string& AttrValue::placeholder() const {
1816 // @@protoc_insertion_point(field_get:tensorflow.AttrValue.placeholder)
1817 return _internal_placeholder();
1818 }
1819 template <typename ArgT0, typename... ArgT>
set_placeholder(ArgT0 && arg0,ArgT...args)1820 inline void AttrValue::set_placeholder(ArgT0&& arg0, ArgT... args) {
1821 if (!_internal_has_placeholder()) {
1822 clear_value();
1823 set_has_placeholder();
1824 _impl_.value_.placeholder_.InitDefault();
1825 }
1826 _impl_.value_.placeholder_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1827 // @@protoc_insertion_point(field_set:tensorflow.AttrValue.placeholder)
1828 }
mutable_placeholder()1829 inline std::string* AttrValue::mutable_placeholder() {
1830 std::string* _s = _internal_mutable_placeholder();
1831 // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.placeholder)
1832 return _s;
1833 }
_internal_placeholder()1834 inline const std::string& AttrValue::_internal_placeholder() const {
1835 if (_internal_has_placeholder()) {
1836 return _impl_.value_.placeholder_.Get();
1837 }
1838 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
1839 }
_internal_set_placeholder(const std::string & value)1840 inline void AttrValue::_internal_set_placeholder(const std::string& value) {
1841 if (!_internal_has_placeholder()) {
1842 clear_value();
1843 set_has_placeholder();
1844 _impl_.value_.placeholder_.InitDefault();
1845 }
1846 _impl_.value_.placeholder_.Set(value, GetArenaForAllocation());
1847 }
_internal_mutable_placeholder()1848 inline std::string* AttrValue::_internal_mutable_placeholder() {
1849 if (!_internal_has_placeholder()) {
1850 clear_value();
1851 set_has_placeholder();
1852 _impl_.value_.placeholder_.InitDefault();
1853 }
1854 return _impl_.value_.placeholder_.Mutable( GetArenaForAllocation());
1855 }
release_placeholder()1856 inline std::string* AttrValue::release_placeholder() {
1857 // @@protoc_insertion_point(field_release:tensorflow.AttrValue.placeholder)
1858 if (_internal_has_placeholder()) {
1859 clear_has_value();
1860 return _impl_.value_.placeholder_.Release();
1861 } else {
1862 return nullptr;
1863 }
1864 }
set_allocated_placeholder(std::string * placeholder)1865 inline void AttrValue::set_allocated_placeholder(std::string* placeholder) {
1866 if (has_value()) {
1867 clear_value();
1868 }
1869 if (placeholder != nullptr) {
1870 set_has_placeholder();
1871 _impl_.value_.placeholder_.InitAllocated(placeholder, GetArenaForAllocation());
1872 }
1873 // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.placeholder)
1874 }
1875
has_value()1876 inline bool AttrValue::has_value() const {
1877 return value_case() != VALUE_NOT_SET;
1878 }
clear_has_value()1879 inline void AttrValue::clear_has_value() {
1880 _impl_._oneof_case_[0] = VALUE_NOT_SET;
1881 }
value_case()1882 inline AttrValue::ValueCase AttrValue::value_case() const {
1883 return AttrValue::ValueCase(_impl_._oneof_case_[0]);
1884 }
1885 // -------------------------------------------------------------------
1886
1887 // -------------------------------------------------------------------
1888
1889 // NameAttrList
1890
1891 // string name = 1;
clear_name()1892 inline void NameAttrList::clear_name() {
1893 _impl_.name_.ClearToEmpty();
1894 }
name()1895 inline const std::string& NameAttrList::name() const {
1896 // @@protoc_insertion_point(field_get:tensorflow.NameAttrList.name)
1897 return _internal_name();
1898 }
1899 template <typename ArgT0, typename... ArgT>
1900 inline PROTOBUF_ALWAYS_INLINE
set_name(ArgT0 && arg0,ArgT...args)1901 void NameAttrList::set_name(ArgT0&& arg0, ArgT... args) {
1902
1903 _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1904 // @@protoc_insertion_point(field_set:tensorflow.NameAttrList.name)
1905 }
mutable_name()1906 inline std::string* NameAttrList::mutable_name() {
1907 std::string* _s = _internal_mutable_name();
1908 // @@protoc_insertion_point(field_mutable:tensorflow.NameAttrList.name)
1909 return _s;
1910 }
_internal_name()1911 inline const std::string& NameAttrList::_internal_name() const {
1912 return _impl_.name_.Get();
1913 }
_internal_set_name(const std::string & value)1914 inline void NameAttrList::_internal_set_name(const std::string& value) {
1915
1916 _impl_.name_.Set(value, GetArenaForAllocation());
1917 }
_internal_mutable_name()1918 inline std::string* NameAttrList::_internal_mutable_name() {
1919
1920 return _impl_.name_.Mutable(GetArenaForAllocation());
1921 }
release_name()1922 inline std::string* NameAttrList::release_name() {
1923 // @@protoc_insertion_point(field_release:tensorflow.NameAttrList.name)
1924 return _impl_.name_.Release();
1925 }
set_allocated_name(std::string * name)1926 inline void NameAttrList::set_allocated_name(std::string* name) {
1927 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
1928 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1929 if (_impl_.name_.IsDefault()) {
1930 _impl_.name_.Set("", GetArenaForAllocation());
1931 }
1932 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1933 // @@protoc_insertion_point(field_set_allocated:tensorflow.NameAttrList.name)
1934 }
1935
1936 // map<string, .tensorflow.AttrValue> attr = 2;
_internal_attr_size()1937 inline int NameAttrList::_internal_attr_size() const {
1938 return _impl_.attr_.size();
1939 }
attr_size()1940 inline int NameAttrList::attr_size() const {
1941 return _internal_attr_size();
1942 }
clear_attr()1943 inline void NameAttrList::clear_attr() {
1944 _impl_.attr_.Clear();
1945 }
1946 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
_internal_attr()1947 NameAttrList::_internal_attr() const {
1948 return _impl_.attr_.GetMap();
1949 }
1950 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
attr()1951 NameAttrList::attr() const {
1952 // @@protoc_insertion_point(field_map:tensorflow.NameAttrList.attr)
1953 return _internal_attr();
1954 }
1955 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
_internal_mutable_attr()1956 NameAttrList::_internal_mutable_attr() {
1957 return _impl_.attr_.MutableMap();
1958 }
1959 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
mutable_attr()1960 NameAttrList::mutable_attr() {
1961 // @@protoc_insertion_point(field_mutable_map:tensorflow.NameAttrList.attr)
1962 return _internal_mutable_attr();
1963 }
1964
1965 #ifdef __GNUC__
1966 #pragma GCC diagnostic pop
1967 #endif // __GNUC__
1968 // -------------------------------------------------------------------
1969
1970 // -------------------------------------------------------------------
1971
1972 // -------------------------------------------------------------------
1973
1974
1975 // @@protoc_insertion_point(namespace_scope)
1976
1977 } // namespace tensorflow
1978
1979 // @@protoc_insertion_point(global_scope)
1980
1981 #include <google/protobuf/port_undef.inc>
1982 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto
1983