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