Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/dnn/misc/tensorflow/tensor_shape.pb.h
16358 views
1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: tensor_shape.proto
3
4
#ifndef PROTOBUF_tensor_5fshape_2eproto__INCLUDED
5
#define PROTOBUF_tensor_5fshape_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
// @@protoc_insertion_point(includes)
33
34
namespace protobuf_tensor_5fshape_2eproto {
35
// Internal implementation detail -- do not use these members.
36
struct TableStruct {
37
static const ::google::protobuf::internal::ParseTableField entries[];
38
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
39
static const ::google::protobuf::internal::ParseTable schema[2];
40
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
41
static const ::google::protobuf::internal::SerializationTable serialization_table[];
42
static const ::google::protobuf::uint32 offsets[];
43
};
44
void AddDescriptors();
45
void InitDefaultsTensorShapeProto_DimImpl();
46
void InitDefaultsTensorShapeProto_Dim();
47
void InitDefaultsTensorShapeProtoImpl();
48
void InitDefaultsTensorShapeProto();
49
inline void InitDefaults() {
50
InitDefaultsTensorShapeProto_Dim();
51
InitDefaultsTensorShapeProto();
52
}
53
} // namespace protobuf_tensor_5fshape_2eproto
54
namespace opencv_tensorflow {
55
class TensorShapeProto;
56
class TensorShapeProtoDefaultTypeInternal;
57
extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;
58
class TensorShapeProto_Dim;
59
class TensorShapeProto_DimDefaultTypeInternal;
60
extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_;
61
} // namespace opencv_tensorflow
62
namespace opencv_tensorflow {
63
64
// ===================================================================
65
66
class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorShapeProto.Dim) */ {
67
public:
68
TensorShapeProto_Dim();
69
virtual ~TensorShapeProto_Dim();
70
71
TensorShapeProto_Dim(const TensorShapeProto_Dim& from);
72
73
inline TensorShapeProto_Dim& operator=(const TensorShapeProto_Dim& from) {
74
CopyFrom(from);
75
return *this;
76
}
77
#if LANG_CXX11
78
TensorShapeProto_Dim(TensorShapeProto_Dim&& from) noexcept
79
: TensorShapeProto_Dim() {
80
*this = ::std::move(from);
81
}
82
83
inline TensorShapeProto_Dim& operator=(TensorShapeProto_Dim&& from) noexcept {
84
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85
if (this != &from) InternalSwap(&from);
86
} else {
87
CopyFrom(from);
88
}
89
return *this;
90
}
91
#endif
92
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
93
return GetArenaNoVirtual();
94
}
95
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
96
return MaybeArenaPtr();
97
}
98
static const ::google::protobuf::Descriptor* descriptor();
99
static const TensorShapeProto_Dim& default_instance();
100
101
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
102
static inline const TensorShapeProto_Dim* internal_default_instance() {
103
return reinterpret_cast<const TensorShapeProto_Dim*>(
104
&_TensorShapeProto_Dim_default_instance_);
105
}
106
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
107
0;
108
109
void UnsafeArenaSwap(TensorShapeProto_Dim* other);
110
void Swap(TensorShapeProto_Dim* other);
111
friend void swap(TensorShapeProto_Dim& a, TensorShapeProto_Dim& b) {
112
a.Swap(&b);
113
}
114
115
// implements Message ----------------------------------------------
116
117
inline TensorShapeProto_Dim* New() const PROTOBUF_FINAL { return New(NULL); }
118
119
TensorShapeProto_Dim* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
120
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
121
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
122
void CopyFrom(const TensorShapeProto_Dim& from);
123
void MergeFrom(const TensorShapeProto_Dim& from);
124
void Clear() PROTOBUF_FINAL;
125
bool IsInitialized() const PROTOBUF_FINAL;
126
127
size_t ByteSizeLong() const PROTOBUF_FINAL;
128
bool MergePartialFromCodedStream(
129
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
130
void SerializeWithCachedSizes(
131
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
132
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
133
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
134
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
135
private:
136
void SharedCtor();
137
void SharedDtor();
138
void SetCachedSize(int size) const PROTOBUF_FINAL;
139
void InternalSwap(TensorShapeProto_Dim* other);
140
protected:
141
explicit TensorShapeProto_Dim(::google::protobuf::Arena* arena);
142
private:
143
static void ArenaDtor(void* object);
144
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
145
private:
146
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
147
return _internal_metadata_.arena();
148
}
149
inline void* MaybeArenaPtr() const {
150
return _internal_metadata_.raw_arena_ptr();
151
}
152
public:
153
154
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
155
156
// nested types ----------------------------------------------------
157
158
// accessors -------------------------------------------------------
159
160
// string name = 2;
161
void clear_name();
162
static const int kNameFieldNumber = 2;
163
const ::std::string& name() const;
164
void set_name(const ::std::string& value);
165
#if LANG_CXX11
166
void set_name(::std::string&& value);
167
#endif
168
void set_name(const char* value);
169
void set_name(const char* value, size_t size);
170
::std::string* mutable_name();
171
::std::string* release_name();
172
void set_allocated_name(::std::string* name);
173
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
174
" string fields are deprecated and will be removed in a"
175
" future release.")
176
::std::string* unsafe_arena_release_name();
177
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
178
" string fields are deprecated and will be removed in a"
179
" future release.")
180
void unsafe_arena_set_allocated_name(
181
::std::string* name);
182
183
// int64 size = 1;
184
void clear_size();
185
static const int kSizeFieldNumber = 1;
186
::google::protobuf::int64 size() const;
187
void set_size(::google::protobuf::int64 value);
188
189
// @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto.Dim)
190
private:
191
192
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
193
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
194
typedef void InternalArenaConstructable_;
195
typedef void DestructorSkippable_;
196
::google::protobuf::internal::ArenaStringPtr name_;
197
::google::protobuf::int64 size_;
198
mutable int _cached_size_;
199
friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct;
200
friend void ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProto_DimImpl();
201
};
202
// -------------------------------------------------------------------
203
204
class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.TensorShapeProto) */ {
205
public:
206
TensorShapeProto();
207
virtual ~TensorShapeProto();
208
209
TensorShapeProto(const TensorShapeProto& from);
210
211
inline TensorShapeProto& operator=(const TensorShapeProto& from) {
212
CopyFrom(from);
213
return *this;
214
}
215
#if LANG_CXX11
216
TensorShapeProto(TensorShapeProto&& from) noexcept
217
: TensorShapeProto() {
218
*this = ::std::move(from);
219
}
220
221
inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept {
222
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
223
if (this != &from) InternalSwap(&from);
224
} else {
225
CopyFrom(from);
226
}
227
return *this;
228
}
229
#endif
230
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
231
return GetArenaNoVirtual();
232
}
233
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
234
return MaybeArenaPtr();
235
}
236
static const ::google::protobuf::Descriptor* descriptor();
237
static const TensorShapeProto& default_instance();
238
239
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
240
static inline const TensorShapeProto* internal_default_instance() {
241
return reinterpret_cast<const TensorShapeProto*>(
242
&_TensorShapeProto_default_instance_);
243
}
244
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
245
1;
246
247
void UnsafeArenaSwap(TensorShapeProto* other);
248
void Swap(TensorShapeProto* other);
249
friend void swap(TensorShapeProto& a, TensorShapeProto& b) {
250
a.Swap(&b);
251
}
252
253
// implements Message ----------------------------------------------
254
255
inline TensorShapeProto* New() const PROTOBUF_FINAL { return New(NULL); }
256
257
TensorShapeProto* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
258
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
259
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
260
void CopyFrom(const TensorShapeProto& from);
261
void MergeFrom(const TensorShapeProto& from);
262
void Clear() PROTOBUF_FINAL;
263
bool IsInitialized() const PROTOBUF_FINAL;
264
265
size_t ByteSizeLong() const PROTOBUF_FINAL;
266
bool MergePartialFromCodedStream(
267
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
268
void SerializeWithCachedSizes(
269
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
270
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
271
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
272
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
273
private:
274
void SharedCtor();
275
void SharedDtor();
276
void SetCachedSize(int size) const PROTOBUF_FINAL;
277
void InternalSwap(TensorShapeProto* other);
278
protected:
279
explicit TensorShapeProto(::google::protobuf::Arena* arena);
280
private:
281
static void ArenaDtor(void* object);
282
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
283
private:
284
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
285
return _internal_metadata_.arena();
286
}
287
inline void* MaybeArenaPtr() const {
288
return _internal_metadata_.raw_arena_ptr();
289
}
290
public:
291
292
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
293
294
// nested types ----------------------------------------------------
295
296
typedef TensorShapeProto_Dim Dim;
297
298
// accessors -------------------------------------------------------
299
300
// repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
301
int dim_size() const;
302
void clear_dim();
303
static const int kDimFieldNumber = 2;
304
const ::opencv_tensorflow::TensorShapeProto_Dim& dim(int index) const;
305
::opencv_tensorflow::TensorShapeProto_Dim* mutable_dim(int index);
306
::opencv_tensorflow::TensorShapeProto_Dim* add_dim();
307
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*
308
mutable_dim();
309
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&
310
dim() const;
311
312
// bool unknown_rank = 3;
313
void clear_unknown_rank();
314
static const int kUnknownRankFieldNumber = 3;
315
bool unknown_rank() const;
316
void set_unknown_rank(bool value);
317
318
// @@protoc_insertion_point(class_scope:opencv_tensorflow.TensorShapeProto)
319
private:
320
321
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
322
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
323
typedef void InternalArenaConstructable_;
324
typedef void DestructorSkippable_;
325
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim > dim_;
326
bool unknown_rank_;
327
mutable int _cached_size_;
328
friend struct ::protobuf_tensor_5fshape_2eproto::TableStruct;
329
friend void ::protobuf_tensor_5fshape_2eproto::InitDefaultsTensorShapeProtoImpl();
330
};
331
// ===================================================================
332
333
334
// ===================================================================
335
336
#ifdef __GNUC__
337
#pragma GCC diagnostic push
338
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
339
#endif // __GNUC__
340
// TensorShapeProto_Dim
341
342
// int64 size = 1;
343
inline void TensorShapeProto_Dim::clear_size() {
344
size_ = GOOGLE_LONGLONG(0);
345
}
346
inline ::google::protobuf::int64 TensorShapeProto_Dim::size() const {
347
// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.Dim.size)
348
return size_;
349
}
350
inline void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) {
351
352
size_ = value;
353
// @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.Dim.size)
354
}
355
356
// string name = 2;
357
inline void TensorShapeProto_Dim::clear_name() {
358
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
359
}
360
inline const ::std::string& TensorShapeProto_Dim::name() const {
361
// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.Dim.name)
362
return name_.Get();
363
}
364
inline void TensorShapeProto_Dim::set_name(const ::std::string& value) {
365
366
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
367
// @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.Dim.name)
368
}
369
#if LANG_CXX11
370
inline void TensorShapeProto_Dim::set_name(::std::string&& value) {
371
372
name_.Set(
373
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
374
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.TensorShapeProto.Dim.name)
375
}
376
#endif
377
inline void TensorShapeProto_Dim::set_name(const char* value) {
378
GOOGLE_DCHECK(value != NULL);
379
380
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
381
GetArenaNoVirtual());
382
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.TensorShapeProto.Dim.name)
383
}
384
inline void TensorShapeProto_Dim::set_name(const char* value,
385
size_t size) {
386
387
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
388
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
389
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.TensorShapeProto.Dim.name)
390
}
391
inline ::std::string* TensorShapeProto_Dim::mutable_name() {
392
393
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.Dim.name)
394
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
395
}
396
inline ::std::string* TensorShapeProto_Dim::release_name() {
397
// @@protoc_insertion_point(field_release:opencv_tensorflow.TensorShapeProto.Dim.name)
398
399
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
400
}
401
inline void TensorShapeProto_Dim::set_allocated_name(::std::string* name) {
402
if (name != NULL) {
403
404
} else {
405
406
}
407
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
408
GetArenaNoVirtual());
409
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.TensorShapeProto.Dim.name)
410
}
411
inline ::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() {
412
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.TensorShapeProto.Dim.name)
413
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
414
415
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
416
GetArenaNoVirtual());
417
}
418
inline void TensorShapeProto_Dim::unsafe_arena_set_allocated_name(
419
::std::string* name) {
420
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
421
if (name != NULL) {
422
423
} else {
424
425
}
426
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
427
name, GetArenaNoVirtual());
428
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.TensorShapeProto.Dim.name)
429
}
430
431
// -------------------------------------------------------------------
432
433
// TensorShapeProto
434
435
// repeated .opencv_tensorflow.TensorShapeProto.Dim dim = 2;
436
inline int TensorShapeProto::dim_size() const {
437
return dim_.size();
438
}
439
inline void TensorShapeProto::clear_dim() {
440
dim_.Clear();
441
}
442
inline const ::opencv_tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const {
443
// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.dim)
444
return dim_.Get(index);
445
}
446
inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) {
447
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.TensorShapeProto.dim)
448
return dim_.Mutable(index);
449
}
450
inline ::opencv_tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() {
451
// @@protoc_insertion_point(field_add:opencv_tensorflow.TensorShapeProto.dim)
452
return dim_.Add();
453
}
454
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >*
455
TensorShapeProto::mutable_dim() {
456
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.TensorShapeProto.dim)
457
return &dim_;
458
}
459
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto_Dim >&
460
TensorShapeProto::dim() const {
461
// @@protoc_insertion_point(field_list:opencv_tensorflow.TensorShapeProto.dim)
462
return dim_;
463
}
464
465
// bool unknown_rank = 3;
466
inline void TensorShapeProto::clear_unknown_rank() {
467
unknown_rank_ = false;
468
}
469
inline bool TensorShapeProto::unknown_rank() const {
470
// @@protoc_insertion_point(field_get:opencv_tensorflow.TensorShapeProto.unknown_rank)
471
return unknown_rank_;
472
}
473
inline void TensorShapeProto::set_unknown_rank(bool value) {
474
475
unknown_rank_ = value;
476
// @@protoc_insertion_point(field_set:opencv_tensorflow.TensorShapeProto.unknown_rank)
477
}
478
479
#ifdef __GNUC__
480
#pragma GCC diagnostic pop
481
#endif // __GNUC__
482
// -------------------------------------------------------------------
483
484
485
// @@protoc_insertion_point(namespace_scope)
486
487
} // namespace opencv_tensorflow
488
489
// @@protoc_insertion_point(global_scope)
490
491
#endif // PROTOBUF_tensor_5fshape_2eproto__INCLUDED
492
493