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