1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensor.proto
3
4 #ifndef PROTOBUF_tensor_2eproto__INCLUDED
5 #define PROTOBUF_tensor_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/unknown_field_set.h>
32 #include "tensor_shape.pb.h"
33 #include "types.pb.h"
34 // @@protoc_insertion_point(includes)
35
36 namespace protobuf_tensor_2eproto {
37 // Internal implementation detail -- do not use these members.
38 struct TableStruct {
39 static const ::google::protobuf::internal::ParseTableField entries[];
40 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
41 static const ::google::protobuf::internal::ParseTable schema[1];
42 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
43 static const ::google::protobuf::internal::SerializationTable serialization_table[];
44 static const ::google::protobuf::uint32 offsets[];
45 };
46 void AddDescriptors();
47 void InitDefaultsTensorProtoImpl();
48 void InitDefaultsTensorProto();
InitDefaults()49 inline void InitDefaults() {
50 InitDefaultsTensorProto();
51 }
52 } // namespace protobuf_tensor_2eproto
53 namespace opencv_tensorflow {
54 class TensorProto;
55 class TensorProtoDefaultTypeInternal;
56 extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
57 } // namespace opencv_tensorflow
58 namespace opencv_tensorflow {
59
60 // ===================================================================
61
62 class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorProto) */ {
63 public:
64 TensorProto();
65 virtual ~TensorProto();
66
67 TensorProto(const TensorProto& from);
68
69 inline TensorProto& operator=(const TensorProto& from) {
70 CopyFrom(from);
71 return *this;
72 }
73 #if LANG_CXX11
TensorProto(TensorProto && from)74 TensorProto(TensorProto&& from) noexcept
75 : TensorProto() {
76 *this = ::std::move(from);
77 }
78
79 inline TensorProto& operator=(TensorProto&& from) noexcept {
80 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
81 if (this != &from) InternalSwap(&from);
82 } else {
83 CopyFrom(from);
84 }
85 return *this;
86 }
87 #endif
GetArena()88 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
89 return GetArenaNoVirtual();
90 }
GetMaybeArenaPointer()91 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
92 return MaybeArenaPtr();
93 }
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const TensorProto& default_instance();
96
97 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()98 static inline const TensorProto* internal_default_instance() {
99 return reinterpret_cast<const TensorProto*>(
100 &_TensorProto_default_instance_);
101 }
102 static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
103 0;
104
105 void UnsafeArenaSwap(TensorProto* other);
106 void Swap(TensorProto* other);
swap(TensorProto & a,TensorProto & b)107 friend void swap(TensorProto& a, TensorProto& b) {
108 a.Swap(&b);
109 }
110
111 // implements Message ----------------------------------------------
112
New()113 inline TensorProto* New() const PROTOBUF_FINAL { return New(NULL); }
114
115 TensorProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
116 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
117 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
118 void CopyFrom(const TensorProto& from);
119 void MergeFrom(const TensorProto& from);
120 void Clear() PROTOBUF_FINAL;
121 bool IsInitialized() const PROTOBUF_FINAL;
122
123 size_t ByteSizeLong() const PROTOBUF_FINAL;
124 bool MergePartialFromCodedStream(
125 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
126 void SerializeWithCachedSizes(
127 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
128 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
129 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
GetCachedSize()130 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
131 private:
132 void SharedCtor();
133 void SharedDtor();
134 void SetCachedSize(int size) const PROTOBUF_FINAL;
135 void InternalSwap(TensorProto* other);
136 protected:
137 explicit TensorProto(::google::protobuf::Arena* arena);
138 private:
139 static void ArenaDtor(void* object);
140 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
141 private:
GetArenaNoVirtual()142 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
143 return _internal_metadata_.arena();
144 }
MaybeArenaPtr()145 inline void* MaybeArenaPtr() const {
146 return _internal_metadata_.raw_arena_ptr();
147 }
148 public:
149
150 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
151
152 // nested types ----------------------------------------------------
153
154 // accessors -------------------------------------------------------
155
156 // repeated float float_val = 5 [packed = true];
157 int float_val_size() const;
158 void clear_float_val();
159 static const int kFloatValFieldNumber = 5;
160 float float_val(int index) const;
161 void set_float_val(int index, float value);
162 void add_float_val(float value);
163 const ::google::protobuf::RepeatedField< float >&
164 float_val() const;
165 ::google::protobuf::RepeatedField< float >*
166 mutable_float_val();
167
168 // repeated double double_val = 6 [packed = true];
169 int double_val_size() const;
170 void clear_double_val();
171 static const int kDoubleValFieldNumber = 6;
172 double double_val(int index) const;
173 void set_double_val(int index, double value);
174 void add_double_val(double value);
175 const ::google::protobuf::RepeatedField< double >&
176 double_val() const;
177 ::google::protobuf::RepeatedField< double >*
178 mutable_double_val();
179
180 // repeated int32 int_val = 7 [packed = true];
181 int int_val_size() const;
182 void clear_int_val();
183 static const int kIntValFieldNumber = 7;
184 ::google::protobuf::int32 int_val(int index) const;
185 void set_int_val(int index, ::google::protobuf::int32 value);
186 void add_int_val(::google::protobuf::int32 value);
187 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
188 int_val() const;
189 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
190 mutable_int_val();
191
192 // repeated bytes string_val = 8;
193 int string_val_size() const;
194 void clear_string_val();
195 static const int kStringValFieldNumber = 8;
196 const ::std::string& string_val(int index) const;
197 ::std::string* mutable_string_val(int index);
198 void set_string_val(int index, const ::std::string& value);
199 #if LANG_CXX11
200 void set_string_val(int index, ::std::string&& value);
201 #endif
202 void set_string_val(int index, const char* value);
203 void set_string_val(int index, const void* value, size_t size);
204 ::std::string* add_string_val();
205 void add_string_val(const ::std::string& value);
206 #if LANG_CXX11
207 void add_string_val(::std::string&& value);
208 #endif
209 void add_string_val(const char* value);
210 void add_string_val(const void* value, size_t size);
211 const ::google::protobuf::RepeatedPtrField< ::std::string>& string_val() const;
212 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_string_val();
213
214 // repeated float scomplex_val = 9 [packed = true];
215 int scomplex_val_size() const;
216 void clear_scomplex_val();
217 static const int kScomplexValFieldNumber = 9;
218 float scomplex_val(int index) const;
219 void set_scomplex_val(int index, float value);
220 void add_scomplex_val(float value);
221 const ::google::protobuf::RepeatedField< float >&
222 scomplex_val() const;
223 ::google::protobuf::RepeatedField< float >*
224 mutable_scomplex_val();
225
226 // repeated int64 int64_val = 10 [packed = true];
227 int int64_val_size() const;
228 void clear_int64_val();
229 static const int kInt64ValFieldNumber = 10;
230 ::google::protobuf::int64 int64_val(int index) const;
231 void set_int64_val(int index, ::google::protobuf::int64 value);
232 void add_int64_val(::google::protobuf::int64 value);
233 const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
234 int64_val() const;
235 ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
236 mutable_int64_val();
237
238 // repeated bool bool_val = 11 [packed = true];
239 int bool_val_size() const;
240 void clear_bool_val();
241 static const int kBoolValFieldNumber = 11;
242 bool bool_val(int index) const;
243 void set_bool_val(int index, bool value);
244 void add_bool_val(bool value);
245 const ::google::protobuf::RepeatedField< bool >&
246 bool_val() const;
247 ::google::protobuf::RepeatedField< bool >*
248 mutable_bool_val();
249
250 // repeated double dcomplex_val = 12 [packed = true];
251 int dcomplex_val_size() const;
252 void clear_dcomplex_val();
253 static const int kDcomplexValFieldNumber = 12;
254 double dcomplex_val(int index) const;
255 void set_dcomplex_val(int index, double value);
256 void add_dcomplex_val(double value);
257 const ::google::protobuf::RepeatedField< double >&
258 dcomplex_val() const;
259 ::google::protobuf::RepeatedField< double >*
260 mutable_dcomplex_val();
261
262 // repeated int32 half_val = 13 [packed = true];
263 int half_val_size() const;
264 void clear_half_val();
265 static const int kHalfValFieldNumber = 13;
266 ::google::protobuf::int32 half_val(int index) const;
267 void set_half_val(int index, ::google::protobuf::int32 value);
268 void add_half_val(::google::protobuf::int32 value);
269 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
270 half_val() const;
271 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
272 mutable_half_val();
273
274 // bytes tensor_content = 4;
275 void clear_tensor_content();
276 static const int kTensorContentFieldNumber = 4;
277 const ::std::string& tensor_content() const;
278 void set_tensor_content(const ::std::string& value);
279 #if LANG_CXX11
280 void set_tensor_content(::std::string&& value);
281 #endif
282 void set_tensor_content(const char* value);
283 void set_tensor_content(const void* value, size_t size);
284 ::std::string* mutable_tensor_content();
285 ::std::string* release_tensor_content();
286 void set_allocated_tensor_content(::std::string* tensor_content);
287 PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
288 " string fields are deprecated and will be removed in a"
289 " future release.")
290 ::std::string* unsafe_arena_release_tensor_content();
291 PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
292 " string fields are deprecated and will be removed in a"
293 " future release.")
294 void unsafe_arena_set_allocated_tensor_content(
295 ::std::string* tensor_content);
296
297 // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
298 bool has_tensor_shape() const;
299 void clear_tensor_shape();
300 static const int kTensorShapeFieldNumber = 2;
301 private:
302 void _slow_mutable_tensor_shape();
303 public:
304 const ::opencv_tensorflow::TensorShapeProto& tensor_shape() const;
305 ::opencv_tensorflow::TensorShapeProto* release_tensor_shape();
306 ::opencv_tensorflow::TensorShapeProto* mutable_tensor_shape();
307 void set_allocated_tensor_shape(::opencv_tensorflow::TensorShapeProto* tensor_shape);
308 void unsafe_arena_set_allocated_tensor_shape(
309 ::opencv_tensorflow::TensorShapeProto* tensor_shape);
310 ::opencv_tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape();
311
312 // .opencv_tensorflow.DataType dtype = 1;
313 void clear_dtype();
314 static const int kDtypeFieldNumber = 1;
315 ::opencv_tensorflow::DataType dtype() const;
316 void set_dtype(::opencv_tensorflow::DataType value);
317
318 // int32 version_number = 3;
319 void clear_version_number();
320 static const int kVersionNumberFieldNumber = 3;
321 ::google::protobuf::int32 version_number() const;
322 void set_version_number(::google::protobuf::int32 value);
323
324 // @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorProto)
325 private:
326
327 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
328 template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
329 typedef void InternalArenaConstructable_;
330 typedef void DestructorSkippable_;
331 ::google::protobuf::RepeatedField< float > float_val_;
332 mutable int _float_val_cached_byte_size_;
333 ::google::protobuf::RepeatedField< double > double_val_;
334 mutable int _double_val_cached_byte_size_;
335 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > int_val_;
336 mutable int _int_val_cached_byte_size_;
337 ::google::protobuf::RepeatedPtrField< ::std::string> string_val_;
338 ::google::protobuf::RepeatedField< float > scomplex_val_;
339 mutable int _scomplex_val_cached_byte_size_;
340 ::google::protobuf::RepeatedField< ::google::protobuf::int64 > int64_val_;
341 mutable int _int64_val_cached_byte_size_;
342 ::google::protobuf::RepeatedField< bool > bool_val_;
343 mutable int _bool_val_cached_byte_size_;
344 ::google::protobuf::RepeatedField< double > dcomplex_val_;
345 mutable int _dcomplex_val_cached_byte_size_;
346 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > half_val_;
347 mutable int _half_val_cached_byte_size_;
348 ::google::protobuf::internal::ArenaStringPtr tensor_content_;
349 ::opencv_tensorflow::TensorShapeProto* tensor_shape_;
350 int dtype_;
351 ::google::protobuf::int32 version_number_;
352 mutable int _cached_size_;
353 friend struct ::protobuf_tensor_2eproto::TableStruct;
354 friend void ::protobuf_tensor_2eproto::InitDefaultsTensorProtoImpl();
355 };
356 // ===================================================================
357
358
359 // ===================================================================
360
361 #ifdef __GNUC__
362 #pragma GCC diagnostic push
363 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
364 #endif // __GNUC__
365 // TensorProto
366
367 // .opencv_tensorflow.DataType dtype = 1;
clear_dtype()368 inline void TensorProto::clear_dtype() {
369 dtype_ = 0;
370 }
dtype()371 inline ::opencv_tensorflow::DataType TensorProto::dtype() const {
372 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.dtype)
373 return static_cast< ::opencv_tensorflow::DataType >(dtype_);
374 }
set_dtype(::opencv_tensorflow::DataType value)375 inline void TensorProto::set_dtype(::opencv_tensorflow::DataType value) {
376
377 dtype_ = value;
378 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.dtype)
379 }
380
381 // .opencv_tensorflow.TensorShapeProto tensor_shape = 2;
has_tensor_shape()382 inline bool TensorProto::has_tensor_shape() const {
383 return this != internal_default_instance() && tensor_shape_ != NULL;
384 }
tensor_shape()385 inline const ::opencv_tensorflow::TensorShapeProto& TensorProto::tensor_shape() const {
386 const ::opencv_tensorflow::TensorShapeProto* p = tensor_shape_;
387 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.tensor_shape)
388 return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::TensorShapeProto*>(
389 &::opencv_tensorflow::_TensorShapeProto_default_instance_);
390 }
release_tensor_shape()391 inline ::opencv_tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() {
392 // @@protoc_insertion_point(field_release:opencv_tensorflow.TensorProto.tensor_shape)
393
394 ::opencv_tensorflow::TensorShapeProto* temp = tensor_shape_;
395 if (GetArenaNoVirtual() != NULL) {
396 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
397 }
398 tensor_shape_ = NULL;
399 return temp;
400 }
unsafe_arena_release_tensor_shape()401 inline ::opencv_tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() {
402 // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.TensorProto.tensor_shape)
403
404 ::opencv_tensorflow::TensorShapeProto* temp = tensor_shape_;
405 tensor_shape_ = NULL;
406 return temp;
407 }
mutable_tensor_shape()408 inline ::opencv_tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() {
409
410 if (tensor_shape_ == NULL) {
411 _slow_mutable_tensor_shape();
412 }
413 // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.tensor_shape)
414 return tensor_shape_;
415 }
set_allocated_tensor_shape(::opencv_tensorflow::TensorShapeProto * tensor_shape)416 inline void TensorProto::set_allocated_tensor_shape(::opencv_tensorflow::TensorShapeProto* tensor_shape) {
417 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
418 if (message_arena == NULL) {
419 delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape_);
420 }
421 if (tensor_shape) {
422 ::google::protobuf::Arena* submessage_arena =
423 reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape)->GetArena();
424 if (message_arena != submessage_arena) {
425 tensor_shape = ::google::protobuf::internal::GetOwnedMessage(
426 message_arena, tensor_shape, submessage_arena);
427 }
428
429 } else {
430
431 }
432 tensor_shape_ = tensor_shape;
433 // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorProto.tensor_shape)
434 }
435
436 // int32 version_number = 3;
clear_version_number()437 inline void TensorProto::clear_version_number() {
438 version_number_ = 0;
439 }
version_number()440 inline ::google::protobuf::int32 TensorProto::version_number() const {
441 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.version_number)
442 return version_number_;
443 }
set_version_number(::google::protobuf::int32 value)444 inline void TensorProto::set_version_number(::google::protobuf::int32 value) {
445
446 version_number_ = value;
447 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.version_number)
448 }
449
450 // bytes tensor_content = 4;
clear_tensor_content()451 inline void TensorProto::clear_tensor_content() {
452 tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
453 }
tensor_content()454 inline const ::std::string& TensorProto::tensor_content() const {
455 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.tensor_content)
456 return tensor_content_.Get();
457 }
set_tensor_content(const::std::string & value)458 inline void TensorProto::set_tensor_content(const ::std::string& value) {
459
460 tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
461 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.tensor_content)
462 }
463 #if LANG_CXX11
set_tensor_content(::std::string && value)464 inline void TensorProto::set_tensor_content(::std::string&& value) {
465
466 tensor_content_.Set(
467 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
468 // @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.TensorProto.tensor_content)
469 }
470 #endif
set_tensor_content(const char * value)471 inline void TensorProto::set_tensor_content(const char* value) {
472 GOOGLE_DCHECK(value != NULL);
473
474 tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
475 GetArenaNoVirtual());
476 // @@protoc_insertion_point(field_set_char:opencv_tensorflow.TensorProto.tensor_content)
477 }
set_tensor_content(const void * value,size_t size)478 inline void TensorProto::set_tensor_content(const void* value,
479 size_t size) {
480
481 tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
482 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
483 // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.TensorProto.tensor_content)
484 }
mutable_tensor_content()485 inline ::std::string* TensorProto::mutable_tensor_content() {
486
487 // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.tensor_content)
488 return tensor_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
489 }
release_tensor_content()490 inline ::std::string* TensorProto::release_tensor_content() {
491 // @@protoc_insertion_point(field_release:opencv_tensorflow.TensorProto.tensor_content)
492
493 return tensor_content_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
494 }
set_allocated_tensor_content(::std::string * tensor_content)495 inline void TensorProto::set_allocated_tensor_content(::std::string* tensor_content) {
496 if (tensor_content != NULL) {
497
498 } else {
499
500 }
501 tensor_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensor_content,
502 GetArenaNoVirtual());
503 // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorProto.tensor_content)
504 }
unsafe_arena_release_tensor_content()505 inline ::std::string* TensorProto::unsafe_arena_release_tensor_content() {
506 // @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.TensorProto.tensor_content)
507 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
508
509 return tensor_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
510 GetArenaNoVirtual());
511 }
unsafe_arena_set_allocated_tensor_content(::std::string * tensor_content)512 inline void TensorProto::unsafe_arena_set_allocated_tensor_content(
513 ::std::string* tensor_content) {
514 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
515 if (tensor_content != NULL) {
516
517 } else {
518
519 }
520 tensor_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
521 tensor_content, GetArenaNoVirtual());
522 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.TensorProto.tensor_content)
523 }
524
525 // repeated int32 half_val = 13 [packed = true];
half_val_size()526 inline int TensorProto::half_val_size() const {
527 return half_val_.size();
528 }
clear_half_val()529 inline void TensorProto::clear_half_val() {
530 half_val_.Clear();
531 }
half_val(int index)532 inline ::google::protobuf::int32 TensorProto::half_val(int index) const {
533 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.half_val)
534 return half_val_.Get(index);
535 }
set_half_val(int index,::google::protobuf::int32 value)536 inline void TensorProto::set_half_val(int index, ::google::protobuf::int32 value) {
537 half_val_.Set(index, value);
538 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.half_val)
539 }
add_half_val(::google::protobuf::int32 value)540 inline void TensorProto::add_half_val(::google::protobuf::int32 value) {
541 half_val_.Add(value);
542 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.half_val)
543 }
544 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
half_val()545 TensorProto::half_val() const {
546 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.half_val)
547 return half_val_;
548 }
549 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_half_val()550 TensorProto::mutable_half_val() {
551 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.half_val)
552 return &half_val_;
553 }
554
555 // repeated float float_val = 5 [packed = true];
float_val_size()556 inline int TensorProto::float_val_size() const {
557 return float_val_.size();
558 }
clear_float_val()559 inline void TensorProto::clear_float_val() {
560 float_val_.Clear();
561 }
float_val(int index)562 inline float TensorProto::float_val(int index) const {
563 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.float_val)
564 return float_val_.Get(index);
565 }
set_float_val(int index,float value)566 inline void TensorProto::set_float_val(int index, float value) {
567 float_val_.Set(index, value);
568 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.float_val)
569 }
add_float_val(float value)570 inline void TensorProto::add_float_val(float value) {
571 float_val_.Add(value);
572 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.float_val)
573 }
574 inline const ::google::protobuf::RepeatedField< float >&
float_val()575 TensorProto::float_val() const {
576 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.float_val)
577 return float_val_;
578 }
579 inline ::google::protobuf::RepeatedField< float >*
mutable_float_val()580 TensorProto::mutable_float_val() {
581 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.float_val)
582 return &float_val_;
583 }
584
585 // repeated double double_val = 6 [packed = true];
double_val_size()586 inline int TensorProto::double_val_size() const {
587 return double_val_.size();
588 }
clear_double_val()589 inline void TensorProto::clear_double_val() {
590 double_val_.Clear();
591 }
double_val(int index)592 inline double TensorProto::double_val(int index) const {
593 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.double_val)
594 return double_val_.Get(index);
595 }
set_double_val(int index,double value)596 inline void TensorProto::set_double_val(int index, double value) {
597 double_val_.Set(index, value);
598 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.double_val)
599 }
add_double_val(double value)600 inline void TensorProto::add_double_val(double value) {
601 double_val_.Add(value);
602 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.double_val)
603 }
604 inline const ::google::protobuf::RepeatedField< double >&
double_val()605 TensorProto::double_val() const {
606 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.double_val)
607 return double_val_;
608 }
609 inline ::google::protobuf::RepeatedField< double >*
mutable_double_val()610 TensorProto::mutable_double_val() {
611 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.double_val)
612 return &double_val_;
613 }
614
615 // repeated int32 int_val = 7 [packed = true];
int_val_size()616 inline int TensorProto::int_val_size() const {
617 return int_val_.size();
618 }
clear_int_val()619 inline void TensorProto::clear_int_val() {
620 int_val_.Clear();
621 }
int_val(int index)622 inline ::google::protobuf::int32 TensorProto::int_val(int index) const {
623 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.int_val)
624 return int_val_.Get(index);
625 }
set_int_val(int index,::google::protobuf::int32 value)626 inline void TensorProto::set_int_val(int index, ::google::protobuf::int32 value) {
627 int_val_.Set(index, value);
628 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.int_val)
629 }
add_int_val(::google::protobuf::int32 value)630 inline void TensorProto::add_int_val(::google::protobuf::int32 value) {
631 int_val_.Add(value);
632 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.int_val)
633 }
634 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
int_val()635 TensorProto::int_val() const {
636 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.int_val)
637 return int_val_;
638 }
639 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_int_val()640 TensorProto::mutable_int_val() {
641 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.int_val)
642 return &int_val_;
643 }
644
645 // repeated bytes string_val = 8;
string_val_size()646 inline int TensorProto::string_val_size() const {
647 return string_val_.size();
648 }
clear_string_val()649 inline void TensorProto::clear_string_val() {
650 string_val_.Clear();
651 }
string_val(int index)652 inline const ::std::string& TensorProto::string_val(int index) const {
653 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.string_val)
654 return string_val_.Get(index);
655 }
mutable_string_val(int index)656 inline ::std::string* TensorProto::mutable_string_val(int index) {
657 // @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorProto.string_val)
658 return string_val_.Mutable(index);
659 }
set_string_val(int index,const::std::string & value)660 inline void TensorProto::set_string_val(int index, const ::std::string& value) {
661 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.string_val)
662 string_val_.Mutable(index)->assign(value);
663 }
664 #if LANG_CXX11
set_string_val(int index,::std::string && value)665 inline void TensorProto::set_string_val(int index, ::std::string&& value) {
666 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.string_val)
667 string_val_.Mutable(index)->assign(std::move(value));
668 }
669 #endif
set_string_val(int index,const char * value)670 inline void TensorProto::set_string_val(int index, const char* value) {
671 GOOGLE_DCHECK(value != NULL);
672 string_val_.Mutable(index)->assign(value);
673 // @@protoc_insertion_point(field_set_char:opencv_tensorflow.TensorProto.string_val)
674 }
set_string_val(int index,const void * value,size_t size)675 inline void TensorProto::set_string_val(int index, const void* value, size_t size) {
676 string_val_.Mutable(index)->assign(
677 reinterpret_cast<const char*>(value), size);
678 // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.TensorProto.string_val)
679 }
add_string_val()680 inline ::std::string* TensorProto::add_string_val() {
681 // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.TensorProto.string_val)
682 return string_val_.Add();
683 }
add_string_val(const::std::string & value)684 inline void TensorProto::add_string_val(const ::std::string& value) {
685 string_val_.Add()->assign(value);
686 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.string_val)
687 }
688 #if LANG_CXX11
add_string_val(::std::string && value)689 inline void TensorProto::add_string_val(::std::string&& value) {
690 string_val_.Add(std::move(value));
691 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.string_val)
692 }
693 #endif
add_string_val(const char * value)694 inline void TensorProto::add_string_val(const char* value) {
695 GOOGLE_DCHECK(value != NULL);
696 string_val_.Add()->assign(value);
697 // @@protoc_insertion_point(field_add_char:opencv_tensorflow.TensorProto.string_val)
698 }
add_string_val(const void * value,size_t size)699 inline void TensorProto::add_string_val(const void* value, size_t size) {
700 string_val_.Add()->assign(reinterpret_cast<const char*>(value), size);
701 // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.TensorProto.string_val)
702 }
703 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
string_val()704 TensorProto::string_val() const {
705 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.string_val)
706 return string_val_;
707 }
708 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_string_val()709 TensorProto::mutable_string_val() {
710 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.string_val)
711 return &string_val_;
712 }
713
714 // repeated float scomplex_val = 9 [packed = true];
scomplex_val_size()715 inline int TensorProto::scomplex_val_size() const {
716 return scomplex_val_.size();
717 }
clear_scomplex_val()718 inline void TensorProto::clear_scomplex_val() {
719 scomplex_val_.Clear();
720 }
scomplex_val(int index)721 inline float TensorProto::scomplex_val(int index) const {
722 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.scomplex_val)
723 return scomplex_val_.Get(index);
724 }
set_scomplex_val(int index,float value)725 inline void TensorProto::set_scomplex_val(int index, float value) {
726 scomplex_val_.Set(index, value);
727 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.scomplex_val)
728 }
add_scomplex_val(float value)729 inline void TensorProto::add_scomplex_val(float value) {
730 scomplex_val_.Add(value);
731 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.scomplex_val)
732 }
733 inline const ::google::protobuf::RepeatedField< float >&
scomplex_val()734 TensorProto::scomplex_val() const {
735 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.scomplex_val)
736 return scomplex_val_;
737 }
738 inline ::google::protobuf::RepeatedField< float >*
mutable_scomplex_val()739 TensorProto::mutable_scomplex_val() {
740 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.scomplex_val)
741 return &scomplex_val_;
742 }
743
744 // repeated int64 int64_val = 10 [packed = true];
int64_val_size()745 inline int TensorProto::int64_val_size() const {
746 return int64_val_.size();
747 }
clear_int64_val()748 inline void TensorProto::clear_int64_val() {
749 int64_val_.Clear();
750 }
int64_val(int index)751 inline ::google::protobuf::int64 TensorProto::int64_val(int index) const {
752 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.int64_val)
753 return int64_val_.Get(index);
754 }
set_int64_val(int index,::google::protobuf::int64 value)755 inline void TensorProto::set_int64_val(int index, ::google::protobuf::int64 value) {
756 int64_val_.Set(index, value);
757 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.int64_val)
758 }
add_int64_val(::google::protobuf::int64 value)759 inline void TensorProto::add_int64_val(::google::protobuf::int64 value) {
760 int64_val_.Add(value);
761 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.int64_val)
762 }
763 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
int64_val()764 TensorProto::int64_val() const {
765 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.int64_val)
766 return int64_val_;
767 }
768 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_int64_val()769 TensorProto::mutable_int64_val() {
770 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.int64_val)
771 return &int64_val_;
772 }
773
774 // repeated bool bool_val = 11 [packed = true];
bool_val_size()775 inline int TensorProto::bool_val_size() const {
776 return bool_val_.size();
777 }
clear_bool_val()778 inline void TensorProto::clear_bool_val() {
779 bool_val_.Clear();
780 }
bool_val(int index)781 inline bool TensorProto::bool_val(int index) const {
782 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.bool_val)
783 return bool_val_.Get(index);
784 }
set_bool_val(int index,bool value)785 inline void TensorProto::set_bool_val(int index, bool value) {
786 bool_val_.Set(index, value);
787 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.bool_val)
788 }
add_bool_val(bool value)789 inline void TensorProto::add_bool_val(bool value) {
790 bool_val_.Add(value);
791 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.bool_val)
792 }
793 inline const ::google::protobuf::RepeatedField< bool >&
bool_val()794 TensorProto::bool_val() const {
795 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.bool_val)
796 return bool_val_;
797 }
798 inline ::google::protobuf::RepeatedField< bool >*
mutable_bool_val()799 TensorProto::mutable_bool_val() {
800 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.bool_val)
801 return &bool_val_;
802 }
803
804 // repeated double dcomplex_val = 12 [packed = true];
dcomplex_val_size()805 inline int TensorProto::dcomplex_val_size() const {
806 return dcomplex_val_.size();
807 }
clear_dcomplex_val()808 inline void TensorProto::clear_dcomplex_val() {
809 dcomplex_val_.Clear();
810 }
dcomplex_val(int index)811 inline double TensorProto::dcomplex_val(int index) const {
812 // @@protoc_insertion_point(field_get:opencv_tensorflow.TensorProto.dcomplex_val)
813 return dcomplex_val_.Get(index);
814 }
set_dcomplex_val(int index,double value)815 inline void TensorProto::set_dcomplex_val(int index, double value) {
816 dcomplex_val_.Set(index, value);
817 // @@protoc_insertion_point(field_set:opencv_tensorflow.TensorProto.dcomplex_val)
818 }
add_dcomplex_val(double value)819 inline void TensorProto::add_dcomplex_val(double value) {
820 dcomplex_val_.Add(value);
821 // @@protoc_insertion_point(field_add:opencv_tensorflow.TensorProto.dcomplex_val)
822 }
823 inline const ::google::protobuf::RepeatedField< double >&
dcomplex_val()824 TensorProto::dcomplex_val() const {
825 // @@protoc_insertion_point(field_list:opencv_tensorflow.TensorProto.dcomplex_val)
826 return dcomplex_val_;
827 }
828 inline ::google::protobuf::RepeatedField< double >*
mutable_dcomplex_val()829 TensorProto::mutable_dcomplex_val() {
830 // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorProto.dcomplex_val)
831 return &dcomplex_val_;
832 }
833
834 #ifdef __GNUC__
835 #pragma GCC diagnostic pop
836 #endif // __GNUC__
837
838 // @@protoc_insertion_point(namespace_scope)
839
840 } // namespace opencv_tensorflow
841
842 // @@protoc_insertion_point(global_scope)
843
844 #endif // PROTOBUF_tensor_2eproto__INCLUDED
845