Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/dnn/misc/tensorflow/op_def.pb.h
16358 views
1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: op_def.proto
3
4
#ifndef PROTOBUF_op_5fdef_2eproto__INCLUDED
5
#define PROTOBUF_op_5fdef_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 "attr_value.pb.h"
33
#include "types.pb.h"
34
// @@protoc_insertion_point(includes)
35
36
namespace protobuf_op_5fdef_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[5];
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 InitDefaultsOpDef_ArgDefImpl();
48
void InitDefaultsOpDef_ArgDef();
49
void InitDefaultsOpDef_AttrDefImpl();
50
void InitDefaultsOpDef_AttrDef();
51
void InitDefaultsOpDefImpl();
52
void InitDefaultsOpDef();
53
void InitDefaultsOpDeprecationImpl();
54
void InitDefaultsOpDeprecation();
55
void InitDefaultsOpListImpl();
56
void InitDefaultsOpList();
57
inline void InitDefaults() {
58
InitDefaultsOpDef_ArgDef();
59
InitDefaultsOpDef_AttrDef();
60
InitDefaultsOpDef();
61
InitDefaultsOpDeprecation();
62
InitDefaultsOpList();
63
}
64
} // namespace protobuf_op_5fdef_2eproto
65
namespace opencv_tensorflow {
66
class OpDef;
67
class OpDefDefaultTypeInternal;
68
extern OpDefDefaultTypeInternal _OpDef_default_instance_;
69
class OpDef_ArgDef;
70
class OpDef_ArgDefDefaultTypeInternal;
71
extern OpDef_ArgDefDefaultTypeInternal _OpDef_ArgDef_default_instance_;
72
class OpDef_AttrDef;
73
class OpDef_AttrDefDefaultTypeInternal;
74
extern OpDef_AttrDefDefaultTypeInternal _OpDef_AttrDef_default_instance_;
75
class OpDeprecation;
76
class OpDeprecationDefaultTypeInternal;
77
extern OpDeprecationDefaultTypeInternal _OpDeprecation_default_instance_;
78
class OpList;
79
class OpListDefaultTypeInternal;
80
extern OpListDefaultTypeInternal _OpList_default_instance_;
81
} // namespace opencv_tensorflow
82
namespace opencv_tensorflow {
83
84
// ===================================================================
85
86
class OpDef_ArgDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpDef.ArgDef) */ {
87
public:
88
OpDef_ArgDef();
89
virtual ~OpDef_ArgDef();
90
91
OpDef_ArgDef(const OpDef_ArgDef& from);
92
93
inline OpDef_ArgDef& operator=(const OpDef_ArgDef& from) {
94
CopyFrom(from);
95
return *this;
96
}
97
#if LANG_CXX11
98
OpDef_ArgDef(OpDef_ArgDef&& from) noexcept
99
: OpDef_ArgDef() {
100
*this = ::std::move(from);
101
}
102
103
inline OpDef_ArgDef& operator=(OpDef_ArgDef&& from) noexcept {
104
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
105
if (this != &from) InternalSwap(&from);
106
} else {
107
CopyFrom(from);
108
}
109
return *this;
110
}
111
#endif
112
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
113
return GetArenaNoVirtual();
114
}
115
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
116
return MaybeArenaPtr();
117
}
118
static const ::google::protobuf::Descriptor* descriptor();
119
static const OpDef_ArgDef& default_instance();
120
121
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
122
static inline const OpDef_ArgDef* internal_default_instance() {
123
return reinterpret_cast<const OpDef_ArgDef*>(
124
&_OpDef_ArgDef_default_instance_);
125
}
126
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
127
0;
128
129
void UnsafeArenaSwap(OpDef_ArgDef* other);
130
void Swap(OpDef_ArgDef* other);
131
friend void swap(OpDef_ArgDef& a, OpDef_ArgDef& b) {
132
a.Swap(&b);
133
}
134
135
// implements Message ----------------------------------------------
136
137
inline OpDef_ArgDef* New() const PROTOBUF_FINAL { return New(NULL); }
138
139
OpDef_ArgDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
140
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
141
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
142
void CopyFrom(const OpDef_ArgDef& from);
143
void MergeFrom(const OpDef_ArgDef& from);
144
void Clear() PROTOBUF_FINAL;
145
bool IsInitialized() const PROTOBUF_FINAL;
146
147
size_t ByteSizeLong() const PROTOBUF_FINAL;
148
bool MergePartialFromCodedStream(
149
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
150
void SerializeWithCachedSizes(
151
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
152
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
153
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
154
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
155
private:
156
void SharedCtor();
157
void SharedDtor();
158
void SetCachedSize(int size) const PROTOBUF_FINAL;
159
void InternalSwap(OpDef_ArgDef* other);
160
protected:
161
explicit OpDef_ArgDef(::google::protobuf::Arena* arena);
162
private:
163
static void ArenaDtor(void* object);
164
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
165
private:
166
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
167
return _internal_metadata_.arena();
168
}
169
inline void* MaybeArenaPtr() const {
170
return _internal_metadata_.raw_arena_ptr();
171
}
172
public:
173
174
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
175
176
// nested types ----------------------------------------------------
177
178
// accessors -------------------------------------------------------
179
180
// string name = 1;
181
void clear_name();
182
static const int kNameFieldNumber = 1;
183
const ::std::string& name() const;
184
void set_name(const ::std::string& value);
185
#if LANG_CXX11
186
void set_name(::std::string&& value);
187
#endif
188
void set_name(const char* value);
189
void set_name(const char* value, size_t size);
190
::std::string* mutable_name();
191
::std::string* release_name();
192
void set_allocated_name(::std::string* name);
193
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
194
" string fields are deprecated and will be removed in a"
195
" future release.")
196
::std::string* unsafe_arena_release_name();
197
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
198
" string fields are deprecated and will be removed in a"
199
" future release.")
200
void unsafe_arena_set_allocated_name(
201
::std::string* name);
202
203
// string description = 2;
204
void clear_description();
205
static const int kDescriptionFieldNumber = 2;
206
const ::std::string& description() const;
207
void set_description(const ::std::string& value);
208
#if LANG_CXX11
209
void set_description(::std::string&& value);
210
#endif
211
void set_description(const char* value);
212
void set_description(const char* value, size_t size);
213
::std::string* mutable_description();
214
::std::string* release_description();
215
void set_allocated_description(::std::string* description);
216
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
217
" string fields are deprecated and will be removed in a"
218
" future release.")
219
::std::string* unsafe_arena_release_description();
220
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
221
" string fields are deprecated and will be removed in a"
222
" future release.")
223
void unsafe_arena_set_allocated_description(
224
::std::string* description);
225
226
// string type_attr = 4;
227
void clear_type_attr();
228
static const int kTypeAttrFieldNumber = 4;
229
const ::std::string& type_attr() const;
230
void set_type_attr(const ::std::string& value);
231
#if LANG_CXX11
232
void set_type_attr(::std::string&& value);
233
#endif
234
void set_type_attr(const char* value);
235
void set_type_attr(const char* value, size_t size);
236
::std::string* mutable_type_attr();
237
::std::string* release_type_attr();
238
void set_allocated_type_attr(::std::string* type_attr);
239
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
240
" string fields are deprecated and will be removed in a"
241
" future release.")
242
::std::string* unsafe_arena_release_type_attr();
243
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
244
" string fields are deprecated and will be removed in a"
245
" future release.")
246
void unsafe_arena_set_allocated_type_attr(
247
::std::string* type_attr);
248
249
// string number_attr = 5;
250
void clear_number_attr();
251
static const int kNumberAttrFieldNumber = 5;
252
const ::std::string& number_attr() const;
253
void set_number_attr(const ::std::string& value);
254
#if LANG_CXX11
255
void set_number_attr(::std::string&& value);
256
#endif
257
void set_number_attr(const char* value);
258
void set_number_attr(const char* value, size_t size);
259
::std::string* mutable_number_attr();
260
::std::string* release_number_attr();
261
void set_allocated_number_attr(::std::string* number_attr);
262
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
263
" string fields are deprecated and will be removed in a"
264
" future release.")
265
::std::string* unsafe_arena_release_number_attr();
266
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
267
" string fields are deprecated and will be removed in a"
268
" future release.")
269
void unsafe_arena_set_allocated_number_attr(
270
::std::string* number_attr);
271
272
// string type_list_attr = 6;
273
void clear_type_list_attr();
274
static const int kTypeListAttrFieldNumber = 6;
275
const ::std::string& type_list_attr() const;
276
void set_type_list_attr(const ::std::string& value);
277
#if LANG_CXX11
278
void set_type_list_attr(::std::string&& value);
279
#endif
280
void set_type_list_attr(const char* value);
281
void set_type_list_attr(const char* value, size_t size);
282
::std::string* mutable_type_list_attr();
283
::std::string* release_type_list_attr();
284
void set_allocated_type_list_attr(::std::string* type_list_attr);
285
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
286
" string fields are deprecated and will be removed in a"
287
" future release.")
288
::std::string* unsafe_arena_release_type_list_attr();
289
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
290
" string fields are deprecated and will be removed in a"
291
" future release.")
292
void unsafe_arena_set_allocated_type_list_attr(
293
::std::string* type_list_attr);
294
295
// .opencv_tensorflow.DataType type = 3;
296
void clear_type();
297
static const int kTypeFieldNumber = 3;
298
::opencv_tensorflow::DataType type() const;
299
void set_type(::opencv_tensorflow::DataType value);
300
301
// bool is_ref = 16;
302
void clear_is_ref();
303
static const int kIsRefFieldNumber = 16;
304
bool is_ref() const;
305
void set_is_ref(bool value);
306
307
// @@protoc_insertion_point(class_scope:opencv_tensorflow.OpDef.ArgDef)
308
private:
309
310
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
311
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
312
typedef void InternalArenaConstructable_;
313
typedef void DestructorSkippable_;
314
::google::protobuf::internal::ArenaStringPtr name_;
315
::google::protobuf::internal::ArenaStringPtr description_;
316
::google::protobuf::internal::ArenaStringPtr type_attr_;
317
::google::protobuf::internal::ArenaStringPtr number_attr_;
318
::google::protobuf::internal::ArenaStringPtr type_list_attr_;
319
int type_;
320
bool is_ref_;
321
mutable int _cached_size_;
322
friend struct ::protobuf_op_5fdef_2eproto::TableStruct;
323
friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDefImpl();
324
};
325
// -------------------------------------------------------------------
326
327
class OpDef_AttrDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpDef.AttrDef) */ {
328
public:
329
OpDef_AttrDef();
330
virtual ~OpDef_AttrDef();
331
332
OpDef_AttrDef(const OpDef_AttrDef& from);
333
334
inline OpDef_AttrDef& operator=(const OpDef_AttrDef& from) {
335
CopyFrom(from);
336
return *this;
337
}
338
#if LANG_CXX11
339
OpDef_AttrDef(OpDef_AttrDef&& from) noexcept
340
: OpDef_AttrDef() {
341
*this = ::std::move(from);
342
}
343
344
inline OpDef_AttrDef& operator=(OpDef_AttrDef&& from) noexcept {
345
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
346
if (this != &from) InternalSwap(&from);
347
} else {
348
CopyFrom(from);
349
}
350
return *this;
351
}
352
#endif
353
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
354
return GetArenaNoVirtual();
355
}
356
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
357
return MaybeArenaPtr();
358
}
359
static const ::google::protobuf::Descriptor* descriptor();
360
static const OpDef_AttrDef& default_instance();
361
362
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
363
static inline const OpDef_AttrDef* internal_default_instance() {
364
return reinterpret_cast<const OpDef_AttrDef*>(
365
&_OpDef_AttrDef_default_instance_);
366
}
367
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
368
1;
369
370
void UnsafeArenaSwap(OpDef_AttrDef* other);
371
void Swap(OpDef_AttrDef* other);
372
friend void swap(OpDef_AttrDef& a, OpDef_AttrDef& b) {
373
a.Swap(&b);
374
}
375
376
// implements Message ----------------------------------------------
377
378
inline OpDef_AttrDef* New() const PROTOBUF_FINAL { return New(NULL); }
379
380
OpDef_AttrDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
381
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
382
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
383
void CopyFrom(const OpDef_AttrDef& from);
384
void MergeFrom(const OpDef_AttrDef& from);
385
void Clear() PROTOBUF_FINAL;
386
bool IsInitialized() const PROTOBUF_FINAL;
387
388
size_t ByteSizeLong() const PROTOBUF_FINAL;
389
bool MergePartialFromCodedStream(
390
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
391
void SerializeWithCachedSizes(
392
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
393
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
394
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
395
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
396
private:
397
void SharedCtor();
398
void SharedDtor();
399
void SetCachedSize(int size) const PROTOBUF_FINAL;
400
void InternalSwap(OpDef_AttrDef* other);
401
protected:
402
explicit OpDef_AttrDef(::google::protobuf::Arena* arena);
403
private:
404
static void ArenaDtor(void* object);
405
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
406
private:
407
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
408
return _internal_metadata_.arena();
409
}
410
inline void* MaybeArenaPtr() const {
411
return _internal_metadata_.raw_arena_ptr();
412
}
413
public:
414
415
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
416
417
// nested types ----------------------------------------------------
418
419
// accessors -------------------------------------------------------
420
421
// string name = 1;
422
void clear_name();
423
static const int kNameFieldNumber = 1;
424
const ::std::string& name() const;
425
void set_name(const ::std::string& value);
426
#if LANG_CXX11
427
void set_name(::std::string&& value);
428
#endif
429
void set_name(const char* value);
430
void set_name(const char* value, size_t size);
431
::std::string* mutable_name();
432
::std::string* release_name();
433
void set_allocated_name(::std::string* name);
434
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
435
" string fields are deprecated and will be removed in a"
436
" future release.")
437
::std::string* unsafe_arena_release_name();
438
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
439
" string fields are deprecated and will be removed in a"
440
" future release.")
441
void unsafe_arena_set_allocated_name(
442
::std::string* name);
443
444
// string type = 2;
445
void clear_type();
446
static const int kTypeFieldNumber = 2;
447
const ::std::string& type() const;
448
void set_type(const ::std::string& value);
449
#if LANG_CXX11
450
void set_type(::std::string&& value);
451
#endif
452
void set_type(const char* value);
453
void set_type(const char* value, size_t size);
454
::std::string* mutable_type();
455
::std::string* release_type();
456
void set_allocated_type(::std::string* type);
457
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
458
" string fields are deprecated and will be removed in a"
459
" future release.")
460
::std::string* unsafe_arena_release_type();
461
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
462
" string fields are deprecated and will be removed in a"
463
" future release.")
464
void unsafe_arena_set_allocated_type(
465
::std::string* type);
466
467
// string description = 4;
468
void clear_description();
469
static const int kDescriptionFieldNumber = 4;
470
const ::std::string& description() const;
471
void set_description(const ::std::string& value);
472
#if LANG_CXX11
473
void set_description(::std::string&& value);
474
#endif
475
void set_description(const char* value);
476
void set_description(const char* value, size_t size);
477
::std::string* mutable_description();
478
::std::string* release_description();
479
void set_allocated_description(::std::string* description);
480
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
481
" string fields are deprecated and will be removed in a"
482
" future release.")
483
::std::string* unsafe_arena_release_description();
484
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
485
" string fields are deprecated and will be removed in a"
486
" future release.")
487
void unsafe_arena_set_allocated_description(
488
::std::string* description);
489
490
// .opencv_tensorflow.AttrValue default_value = 3;
491
bool has_default_value() const;
492
void clear_default_value();
493
static const int kDefaultValueFieldNumber = 3;
494
private:
495
void _slow_mutable_default_value();
496
public:
497
const ::opencv_tensorflow::AttrValue& default_value() const;
498
::opencv_tensorflow::AttrValue* release_default_value();
499
::opencv_tensorflow::AttrValue* mutable_default_value();
500
void set_allocated_default_value(::opencv_tensorflow::AttrValue* default_value);
501
void unsafe_arena_set_allocated_default_value(
502
::opencv_tensorflow::AttrValue* default_value);
503
::opencv_tensorflow::AttrValue* unsafe_arena_release_default_value();
504
505
// .opencv_tensorflow.AttrValue allowed_values = 7;
506
bool has_allowed_values() const;
507
void clear_allowed_values();
508
static const int kAllowedValuesFieldNumber = 7;
509
private:
510
void _slow_mutable_allowed_values();
511
public:
512
const ::opencv_tensorflow::AttrValue& allowed_values() const;
513
::opencv_tensorflow::AttrValue* release_allowed_values();
514
::opencv_tensorflow::AttrValue* mutable_allowed_values();
515
void set_allocated_allowed_values(::opencv_tensorflow::AttrValue* allowed_values);
516
void unsafe_arena_set_allocated_allowed_values(
517
::opencv_tensorflow::AttrValue* allowed_values);
518
::opencv_tensorflow::AttrValue* unsafe_arena_release_allowed_values();
519
520
// int64 minimum = 6;
521
void clear_minimum();
522
static const int kMinimumFieldNumber = 6;
523
::google::protobuf::int64 minimum() const;
524
void set_minimum(::google::protobuf::int64 value);
525
526
// bool has_minimum = 5;
527
void clear_has_minimum();
528
static const int kHasMinimumFieldNumber = 5;
529
bool has_minimum() const;
530
void set_has_minimum(bool value);
531
532
// @@protoc_insertion_point(class_scope:opencv_tensorflow.OpDef.AttrDef)
533
private:
534
535
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
536
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
537
typedef void InternalArenaConstructable_;
538
typedef void DestructorSkippable_;
539
::google::protobuf::internal::ArenaStringPtr name_;
540
::google::protobuf::internal::ArenaStringPtr type_;
541
::google::protobuf::internal::ArenaStringPtr description_;
542
::opencv_tensorflow::AttrValue* default_value_;
543
::opencv_tensorflow::AttrValue* allowed_values_;
544
::google::protobuf::int64 minimum_;
545
bool has_minimum_;
546
mutable int _cached_size_;
547
friend struct ::protobuf_op_5fdef_2eproto::TableStruct;
548
friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDefImpl();
549
};
550
// -------------------------------------------------------------------
551
552
class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpDef) */ {
553
public:
554
OpDef();
555
virtual ~OpDef();
556
557
OpDef(const OpDef& from);
558
559
inline OpDef& operator=(const OpDef& from) {
560
CopyFrom(from);
561
return *this;
562
}
563
#if LANG_CXX11
564
OpDef(OpDef&& from) noexcept
565
: OpDef() {
566
*this = ::std::move(from);
567
}
568
569
inline OpDef& operator=(OpDef&& from) noexcept {
570
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
571
if (this != &from) InternalSwap(&from);
572
} else {
573
CopyFrom(from);
574
}
575
return *this;
576
}
577
#endif
578
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
579
return GetArenaNoVirtual();
580
}
581
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
582
return MaybeArenaPtr();
583
}
584
static const ::google::protobuf::Descriptor* descriptor();
585
static const OpDef& default_instance();
586
587
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
588
static inline const OpDef* internal_default_instance() {
589
return reinterpret_cast<const OpDef*>(
590
&_OpDef_default_instance_);
591
}
592
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
593
2;
594
595
void UnsafeArenaSwap(OpDef* other);
596
void Swap(OpDef* other);
597
friend void swap(OpDef& a, OpDef& b) {
598
a.Swap(&b);
599
}
600
601
// implements Message ----------------------------------------------
602
603
inline OpDef* New() const PROTOBUF_FINAL { return New(NULL); }
604
605
OpDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
606
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
607
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
608
void CopyFrom(const OpDef& from);
609
void MergeFrom(const OpDef& from);
610
void Clear() PROTOBUF_FINAL;
611
bool IsInitialized() const PROTOBUF_FINAL;
612
613
size_t ByteSizeLong() const PROTOBUF_FINAL;
614
bool MergePartialFromCodedStream(
615
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
616
void SerializeWithCachedSizes(
617
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
618
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
619
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
620
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
621
private:
622
void SharedCtor();
623
void SharedDtor();
624
void SetCachedSize(int size) const PROTOBUF_FINAL;
625
void InternalSwap(OpDef* other);
626
protected:
627
explicit OpDef(::google::protobuf::Arena* arena);
628
private:
629
static void ArenaDtor(void* object);
630
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
631
private:
632
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
633
return _internal_metadata_.arena();
634
}
635
inline void* MaybeArenaPtr() const {
636
return _internal_metadata_.raw_arena_ptr();
637
}
638
public:
639
640
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
641
642
// nested types ----------------------------------------------------
643
644
typedef OpDef_ArgDef ArgDef;
645
typedef OpDef_AttrDef AttrDef;
646
647
// accessors -------------------------------------------------------
648
649
// repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
650
int input_arg_size() const;
651
void clear_input_arg();
652
static const int kInputArgFieldNumber = 2;
653
const ::opencv_tensorflow::OpDef_ArgDef& input_arg(int index) const;
654
::opencv_tensorflow::OpDef_ArgDef* mutable_input_arg(int index);
655
::opencv_tensorflow::OpDef_ArgDef* add_input_arg();
656
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >*
657
mutable_input_arg();
658
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >&
659
input_arg() const;
660
661
// repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
662
int output_arg_size() const;
663
void clear_output_arg();
664
static const int kOutputArgFieldNumber = 3;
665
const ::opencv_tensorflow::OpDef_ArgDef& output_arg(int index) const;
666
::opencv_tensorflow::OpDef_ArgDef* mutable_output_arg(int index);
667
::opencv_tensorflow::OpDef_ArgDef* add_output_arg();
668
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >*
669
mutable_output_arg();
670
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >&
671
output_arg() const;
672
673
// repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
674
int attr_size() const;
675
void clear_attr();
676
static const int kAttrFieldNumber = 4;
677
const ::opencv_tensorflow::OpDef_AttrDef& attr(int index) const;
678
::opencv_tensorflow::OpDef_AttrDef* mutable_attr(int index);
679
::opencv_tensorflow::OpDef_AttrDef* add_attr();
680
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef >*
681
mutable_attr();
682
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef >&
683
attr() const;
684
685
// string name = 1;
686
void clear_name();
687
static const int kNameFieldNumber = 1;
688
const ::std::string& name() const;
689
void set_name(const ::std::string& value);
690
#if LANG_CXX11
691
void set_name(::std::string&& value);
692
#endif
693
void set_name(const char* value);
694
void set_name(const char* value, size_t size);
695
::std::string* mutable_name();
696
::std::string* release_name();
697
void set_allocated_name(::std::string* name);
698
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
699
" string fields are deprecated and will be removed in a"
700
" future release.")
701
::std::string* unsafe_arena_release_name();
702
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
703
" string fields are deprecated and will be removed in a"
704
" future release.")
705
void unsafe_arena_set_allocated_name(
706
::std::string* name);
707
708
// string summary = 5;
709
void clear_summary();
710
static const int kSummaryFieldNumber = 5;
711
const ::std::string& summary() const;
712
void set_summary(const ::std::string& value);
713
#if LANG_CXX11
714
void set_summary(::std::string&& value);
715
#endif
716
void set_summary(const char* value);
717
void set_summary(const char* value, size_t size);
718
::std::string* mutable_summary();
719
::std::string* release_summary();
720
void set_allocated_summary(::std::string* summary);
721
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
722
" string fields are deprecated and will be removed in a"
723
" future release.")
724
::std::string* unsafe_arena_release_summary();
725
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
726
" string fields are deprecated and will be removed in a"
727
" future release.")
728
void unsafe_arena_set_allocated_summary(
729
::std::string* summary);
730
731
// string description = 6;
732
void clear_description();
733
static const int kDescriptionFieldNumber = 6;
734
const ::std::string& description() const;
735
void set_description(const ::std::string& value);
736
#if LANG_CXX11
737
void set_description(::std::string&& value);
738
#endif
739
void set_description(const char* value);
740
void set_description(const char* value, size_t size);
741
::std::string* mutable_description();
742
::std::string* release_description();
743
void set_allocated_description(::std::string* description);
744
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
745
" string fields are deprecated and will be removed in a"
746
" future release.")
747
::std::string* unsafe_arena_release_description();
748
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
749
" string fields are deprecated and will be removed in a"
750
" future release.")
751
void unsafe_arena_set_allocated_description(
752
::std::string* description);
753
754
// .opencv_tensorflow.OpDeprecation deprecation = 8;
755
bool has_deprecation() const;
756
void clear_deprecation();
757
static const int kDeprecationFieldNumber = 8;
758
private:
759
void _slow_mutable_deprecation();
760
public:
761
const ::opencv_tensorflow::OpDeprecation& deprecation() const;
762
::opencv_tensorflow::OpDeprecation* release_deprecation();
763
::opencv_tensorflow::OpDeprecation* mutable_deprecation();
764
void set_allocated_deprecation(::opencv_tensorflow::OpDeprecation* deprecation);
765
void unsafe_arena_set_allocated_deprecation(
766
::opencv_tensorflow::OpDeprecation* deprecation);
767
::opencv_tensorflow::OpDeprecation* unsafe_arena_release_deprecation();
768
769
// bool is_commutative = 18;
770
void clear_is_commutative();
771
static const int kIsCommutativeFieldNumber = 18;
772
bool is_commutative() const;
773
void set_is_commutative(bool value);
774
775
// bool is_aggregate = 16;
776
void clear_is_aggregate();
777
static const int kIsAggregateFieldNumber = 16;
778
bool is_aggregate() const;
779
void set_is_aggregate(bool value);
780
781
// bool is_stateful = 17;
782
void clear_is_stateful();
783
static const int kIsStatefulFieldNumber = 17;
784
bool is_stateful() const;
785
void set_is_stateful(bool value);
786
787
// bool allows_uninitialized_input = 19;
788
void clear_allows_uninitialized_input();
789
static const int kAllowsUninitializedInputFieldNumber = 19;
790
bool allows_uninitialized_input() const;
791
void set_allows_uninitialized_input(bool value);
792
793
// @@protoc_insertion_point(class_scope:opencv_tensorflow.OpDef)
794
private:
795
796
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
797
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
798
typedef void InternalArenaConstructable_;
799
typedef void DestructorSkippable_;
800
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef > input_arg_;
801
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef > output_arg_;
802
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef > attr_;
803
::google::protobuf::internal::ArenaStringPtr name_;
804
::google::protobuf::internal::ArenaStringPtr summary_;
805
::google::protobuf::internal::ArenaStringPtr description_;
806
::opencv_tensorflow::OpDeprecation* deprecation_;
807
bool is_commutative_;
808
bool is_aggregate_;
809
bool is_stateful_;
810
bool allows_uninitialized_input_;
811
mutable int _cached_size_;
812
friend struct ::protobuf_op_5fdef_2eproto::TableStruct;
813
friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpDefImpl();
814
};
815
// -------------------------------------------------------------------
816
817
class OpDeprecation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpDeprecation) */ {
818
public:
819
OpDeprecation();
820
virtual ~OpDeprecation();
821
822
OpDeprecation(const OpDeprecation& from);
823
824
inline OpDeprecation& operator=(const OpDeprecation& from) {
825
CopyFrom(from);
826
return *this;
827
}
828
#if LANG_CXX11
829
OpDeprecation(OpDeprecation&& from) noexcept
830
: OpDeprecation() {
831
*this = ::std::move(from);
832
}
833
834
inline OpDeprecation& operator=(OpDeprecation&& from) noexcept {
835
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
836
if (this != &from) InternalSwap(&from);
837
} else {
838
CopyFrom(from);
839
}
840
return *this;
841
}
842
#endif
843
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
844
return GetArenaNoVirtual();
845
}
846
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
847
return MaybeArenaPtr();
848
}
849
static const ::google::protobuf::Descriptor* descriptor();
850
static const OpDeprecation& default_instance();
851
852
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
853
static inline const OpDeprecation* internal_default_instance() {
854
return reinterpret_cast<const OpDeprecation*>(
855
&_OpDeprecation_default_instance_);
856
}
857
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
858
3;
859
860
void UnsafeArenaSwap(OpDeprecation* other);
861
void Swap(OpDeprecation* other);
862
friend void swap(OpDeprecation& a, OpDeprecation& b) {
863
a.Swap(&b);
864
}
865
866
// implements Message ----------------------------------------------
867
868
inline OpDeprecation* New() const PROTOBUF_FINAL { return New(NULL); }
869
870
OpDeprecation* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
871
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
872
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
873
void CopyFrom(const OpDeprecation& from);
874
void MergeFrom(const OpDeprecation& from);
875
void Clear() PROTOBUF_FINAL;
876
bool IsInitialized() const PROTOBUF_FINAL;
877
878
size_t ByteSizeLong() const PROTOBUF_FINAL;
879
bool MergePartialFromCodedStream(
880
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
881
void SerializeWithCachedSizes(
882
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
883
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
884
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
885
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
886
private:
887
void SharedCtor();
888
void SharedDtor();
889
void SetCachedSize(int size) const PROTOBUF_FINAL;
890
void InternalSwap(OpDeprecation* other);
891
protected:
892
explicit OpDeprecation(::google::protobuf::Arena* arena);
893
private:
894
static void ArenaDtor(void* object);
895
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
896
private:
897
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
898
return _internal_metadata_.arena();
899
}
900
inline void* MaybeArenaPtr() const {
901
return _internal_metadata_.raw_arena_ptr();
902
}
903
public:
904
905
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
906
907
// nested types ----------------------------------------------------
908
909
// accessors -------------------------------------------------------
910
911
// string explanation = 2;
912
void clear_explanation();
913
static const int kExplanationFieldNumber = 2;
914
const ::std::string& explanation() const;
915
void set_explanation(const ::std::string& value);
916
#if LANG_CXX11
917
void set_explanation(::std::string&& value);
918
#endif
919
void set_explanation(const char* value);
920
void set_explanation(const char* value, size_t size);
921
::std::string* mutable_explanation();
922
::std::string* release_explanation();
923
void set_allocated_explanation(::std::string* explanation);
924
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
925
" string fields are deprecated and will be removed in a"
926
" future release.")
927
::std::string* unsafe_arena_release_explanation();
928
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
929
" string fields are deprecated and will be removed in a"
930
" future release.")
931
void unsafe_arena_set_allocated_explanation(
932
::std::string* explanation);
933
934
// int32 version = 1;
935
void clear_version();
936
static const int kVersionFieldNumber = 1;
937
::google::protobuf::int32 version() const;
938
void set_version(::google::protobuf::int32 value);
939
940
// @@protoc_insertion_point(class_scope:opencv_tensorflow.OpDeprecation)
941
private:
942
943
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
944
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
945
typedef void InternalArenaConstructable_;
946
typedef void DestructorSkippable_;
947
::google::protobuf::internal::ArenaStringPtr explanation_;
948
::google::protobuf::int32 version_;
949
mutable int _cached_size_;
950
friend struct ::protobuf_op_5fdef_2eproto::TableStruct;
951
friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecationImpl();
952
};
953
// -------------------------------------------------------------------
954
955
class OpList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.OpList) */ {
956
public:
957
OpList();
958
virtual ~OpList();
959
960
OpList(const OpList& from);
961
962
inline OpList& operator=(const OpList& from) {
963
CopyFrom(from);
964
return *this;
965
}
966
#if LANG_CXX11
967
OpList(OpList&& from) noexcept
968
: OpList() {
969
*this = ::std::move(from);
970
}
971
972
inline OpList& operator=(OpList&& from) noexcept {
973
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
974
if (this != &from) InternalSwap(&from);
975
} else {
976
CopyFrom(from);
977
}
978
return *this;
979
}
980
#endif
981
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
982
return GetArenaNoVirtual();
983
}
984
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
985
return MaybeArenaPtr();
986
}
987
static const ::google::protobuf::Descriptor* descriptor();
988
static const OpList& default_instance();
989
990
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
991
static inline const OpList* internal_default_instance() {
992
return reinterpret_cast<const OpList*>(
993
&_OpList_default_instance_);
994
}
995
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
996
4;
997
998
void UnsafeArenaSwap(OpList* other);
999
void Swap(OpList* other);
1000
friend void swap(OpList& a, OpList& b) {
1001
a.Swap(&b);
1002
}
1003
1004
// implements Message ----------------------------------------------
1005
1006
inline OpList* New() const PROTOBUF_FINAL { return New(NULL); }
1007
1008
OpList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
1009
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
1010
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
1011
void CopyFrom(const OpList& from);
1012
void MergeFrom(const OpList& from);
1013
void Clear() PROTOBUF_FINAL;
1014
bool IsInitialized() const PROTOBUF_FINAL;
1015
1016
size_t ByteSizeLong() const PROTOBUF_FINAL;
1017
bool MergePartialFromCodedStream(
1018
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
1019
void SerializeWithCachedSizes(
1020
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
1021
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1022
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
1023
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
1024
private:
1025
void SharedCtor();
1026
void SharedDtor();
1027
void SetCachedSize(int size) const PROTOBUF_FINAL;
1028
void InternalSwap(OpList* other);
1029
protected:
1030
explicit OpList(::google::protobuf::Arena* arena);
1031
private:
1032
static void ArenaDtor(void* object);
1033
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
1034
private:
1035
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1036
return _internal_metadata_.arena();
1037
}
1038
inline void* MaybeArenaPtr() const {
1039
return _internal_metadata_.raw_arena_ptr();
1040
}
1041
public:
1042
1043
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
1044
1045
// nested types ----------------------------------------------------
1046
1047
// accessors -------------------------------------------------------
1048
1049
// repeated .opencv_tensorflow.OpDef op = 1;
1050
int op_size() const;
1051
void clear_op();
1052
static const int kOpFieldNumber = 1;
1053
const ::opencv_tensorflow::OpDef& op(int index) const;
1054
::opencv_tensorflow::OpDef* mutable_op(int index);
1055
::opencv_tensorflow::OpDef* add_op();
1056
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef >*
1057
mutable_op();
1058
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef >&
1059
op() const;
1060
1061
// @@protoc_insertion_point(class_scope:opencv_tensorflow.OpList)
1062
private:
1063
1064
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1065
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
1066
typedef void InternalArenaConstructable_;
1067
typedef void DestructorSkippable_;
1068
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef > op_;
1069
mutable int _cached_size_;
1070
friend struct ::protobuf_op_5fdef_2eproto::TableStruct;
1071
friend void ::protobuf_op_5fdef_2eproto::InitDefaultsOpListImpl();
1072
};
1073
// ===================================================================
1074
1075
1076
// ===================================================================
1077
1078
#ifdef __GNUC__
1079
#pragma GCC diagnostic push
1080
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1081
#endif // __GNUC__
1082
// OpDef_ArgDef
1083
1084
// string name = 1;
1085
inline void OpDef_ArgDef::clear_name() {
1086
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1087
}
1088
inline const ::std::string& OpDef_ArgDef::name() const {
1089
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.name)
1090
return name_.Get();
1091
}
1092
inline void OpDef_ArgDef::set_name(const ::std::string& value) {
1093
1094
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1095
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.name)
1096
}
1097
#if LANG_CXX11
1098
inline void OpDef_ArgDef::set_name(::std::string&& value) {
1099
1100
name_.Set(
1101
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1102
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.ArgDef.name)
1103
}
1104
#endif
1105
inline void OpDef_ArgDef::set_name(const char* value) {
1106
GOOGLE_DCHECK(value != NULL);
1107
1108
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1109
GetArenaNoVirtual());
1110
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.ArgDef.name)
1111
}
1112
inline void OpDef_ArgDef::set_name(const char* value,
1113
size_t size) {
1114
1115
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1116
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1117
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.ArgDef.name)
1118
}
1119
inline ::std::string* OpDef_ArgDef::mutable_name() {
1120
1121
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.name)
1122
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1123
}
1124
inline ::std::string* OpDef_ArgDef::release_name() {
1125
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.name)
1126
1127
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1128
}
1129
inline void OpDef_ArgDef::set_allocated_name(::std::string* name) {
1130
if (name != NULL) {
1131
1132
} else {
1133
1134
}
1135
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
1136
GetArenaNoVirtual());
1137
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.name)
1138
}
1139
inline ::std::string* OpDef_ArgDef::unsafe_arena_release_name() {
1140
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.ArgDef.name)
1141
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1142
1143
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1144
GetArenaNoVirtual());
1145
}
1146
inline void OpDef_ArgDef::unsafe_arena_set_allocated_name(
1147
::std::string* name) {
1148
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1149
if (name != NULL) {
1150
1151
} else {
1152
1153
}
1154
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1155
name, GetArenaNoVirtual());
1156
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.ArgDef.name)
1157
}
1158
1159
// string description = 2;
1160
inline void OpDef_ArgDef::clear_description() {
1161
description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1162
}
1163
inline const ::std::string& OpDef_ArgDef::description() const {
1164
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.description)
1165
return description_.Get();
1166
}
1167
inline void OpDef_ArgDef::set_description(const ::std::string& value) {
1168
1169
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1170
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.description)
1171
}
1172
#if LANG_CXX11
1173
inline void OpDef_ArgDef::set_description(::std::string&& value) {
1174
1175
description_.Set(
1176
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1177
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.ArgDef.description)
1178
}
1179
#endif
1180
inline void OpDef_ArgDef::set_description(const char* value) {
1181
GOOGLE_DCHECK(value != NULL);
1182
1183
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1184
GetArenaNoVirtual());
1185
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.ArgDef.description)
1186
}
1187
inline void OpDef_ArgDef::set_description(const char* value,
1188
size_t size) {
1189
1190
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1191
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1192
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.ArgDef.description)
1193
}
1194
inline ::std::string* OpDef_ArgDef::mutable_description() {
1195
1196
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.description)
1197
return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1198
}
1199
inline ::std::string* OpDef_ArgDef::release_description() {
1200
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.description)
1201
1202
return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1203
}
1204
inline void OpDef_ArgDef::set_allocated_description(::std::string* description) {
1205
if (description != NULL) {
1206
1207
} else {
1208
1209
}
1210
description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description,
1211
GetArenaNoVirtual());
1212
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.description)
1213
}
1214
inline ::std::string* OpDef_ArgDef::unsafe_arena_release_description() {
1215
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.ArgDef.description)
1216
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1217
1218
return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1219
GetArenaNoVirtual());
1220
}
1221
inline void OpDef_ArgDef::unsafe_arena_set_allocated_description(
1222
::std::string* description) {
1223
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1224
if (description != NULL) {
1225
1226
} else {
1227
1228
}
1229
description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1230
description, GetArenaNoVirtual());
1231
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.ArgDef.description)
1232
}
1233
1234
// .opencv_tensorflow.DataType type = 3;
1235
inline void OpDef_ArgDef::clear_type() {
1236
type_ = 0;
1237
}
1238
inline ::opencv_tensorflow::DataType OpDef_ArgDef::type() const {
1239
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.type)
1240
return static_cast< ::opencv_tensorflow::DataType >(type_);
1241
}
1242
inline void OpDef_ArgDef::set_type(::opencv_tensorflow::DataType value) {
1243
1244
type_ = value;
1245
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.type)
1246
}
1247
1248
// string type_attr = 4;
1249
inline void OpDef_ArgDef::clear_type_attr() {
1250
type_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1251
}
1252
inline const ::std::string& OpDef_ArgDef::type_attr() const {
1253
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.type_attr)
1254
return type_attr_.Get();
1255
}
1256
inline void OpDef_ArgDef::set_type_attr(const ::std::string& value) {
1257
1258
type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1259
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.type_attr)
1260
}
1261
#if LANG_CXX11
1262
inline void OpDef_ArgDef::set_type_attr(::std::string&& value) {
1263
1264
type_attr_.Set(
1265
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1266
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.ArgDef.type_attr)
1267
}
1268
#endif
1269
inline void OpDef_ArgDef::set_type_attr(const char* value) {
1270
GOOGLE_DCHECK(value != NULL);
1271
1272
type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1273
GetArenaNoVirtual());
1274
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.ArgDef.type_attr)
1275
}
1276
inline void OpDef_ArgDef::set_type_attr(const char* value,
1277
size_t size) {
1278
1279
type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1280
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1281
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.ArgDef.type_attr)
1282
}
1283
inline ::std::string* OpDef_ArgDef::mutable_type_attr() {
1284
1285
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.type_attr)
1286
return type_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1287
}
1288
inline ::std::string* OpDef_ArgDef::release_type_attr() {
1289
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.type_attr)
1290
1291
return type_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1292
}
1293
inline void OpDef_ArgDef::set_allocated_type_attr(::std::string* type_attr) {
1294
if (type_attr != NULL) {
1295
1296
} else {
1297
1298
}
1299
type_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_attr,
1300
GetArenaNoVirtual());
1301
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.type_attr)
1302
}
1303
inline ::std::string* OpDef_ArgDef::unsafe_arena_release_type_attr() {
1304
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.ArgDef.type_attr)
1305
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1306
1307
return type_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1308
GetArenaNoVirtual());
1309
}
1310
inline void OpDef_ArgDef::unsafe_arena_set_allocated_type_attr(
1311
::std::string* type_attr) {
1312
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1313
if (type_attr != NULL) {
1314
1315
} else {
1316
1317
}
1318
type_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1319
type_attr, GetArenaNoVirtual());
1320
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.ArgDef.type_attr)
1321
}
1322
1323
// string number_attr = 5;
1324
inline void OpDef_ArgDef::clear_number_attr() {
1325
number_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1326
}
1327
inline const ::std::string& OpDef_ArgDef::number_attr() const {
1328
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.number_attr)
1329
return number_attr_.Get();
1330
}
1331
inline void OpDef_ArgDef::set_number_attr(const ::std::string& value) {
1332
1333
number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1334
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.number_attr)
1335
}
1336
#if LANG_CXX11
1337
inline void OpDef_ArgDef::set_number_attr(::std::string&& value) {
1338
1339
number_attr_.Set(
1340
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1341
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.ArgDef.number_attr)
1342
}
1343
#endif
1344
inline void OpDef_ArgDef::set_number_attr(const char* value) {
1345
GOOGLE_DCHECK(value != NULL);
1346
1347
number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1348
GetArenaNoVirtual());
1349
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.ArgDef.number_attr)
1350
}
1351
inline void OpDef_ArgDef::set_number_attr(const char* value,
1352
size_t size) {
1353
1354
number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1355
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1356
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.ArgDef.number_attr)
1357
}
1358
inline ::std::string* OpDef_ArgDef::mutable_number_attr() {
1359
1360
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.number_attr)
1361
return number_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1362
}
1363
inline ::std::string* OpDef_ArgDef::release_number_attr() {
1364
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.number_attr)
1365
1366
return number_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1367
}
1368
inline void OpDef_ArgDef::set_allocated_number_attr(::std::string* number_attr) {
1369
if (number_attr != NULL) {
1370
1371
} else {
1372
1373
}
1374
number_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), number_attr,
1375
GetArenaNoVirtual());
1376
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.number_attr)
1377
}
1378
inline ::std::string* OpDef_ArgDef::unsafe_arena_release_number_attr() {
1379
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.ArgDef.number_attr)
1380
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1381
1382
return number_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1383
GetArenaNoVirtual());
1384
}
1385
inline void OpDef_ArgDef::unsafe_arena_set_allocated_number_attr(
1386
::std::string* number_attr) {
1387
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1388
if (number_attr != NULL) {
1389
1390
} else {
1391
1392
}
1393
number_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1394
number_attr, GetArenaNoVirtual());
1395
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.ArgDef.number_attr)
1396
}
1397
1398
// string type_list_attr = 6;
1399
inline void OpDef_ArgDef::clear_type_list_attr() {
1400
type_list_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1401
}
1402
inline const ::std::string& OpDef_ArgDef::type_list_attr() const {
1403
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1404
return type_list_attr_.Get();
1405
}
1406
inline void OpDef_ArgDef::set_type_list_attr(const ::std::string& value) {
1407
1408
type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1409
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1410
}
1411
#if LANG_CXX11
1412
inline void OpDef_ArgDef::set_type_list_attr(::std::string&& value) {
1413
1414
type_list_attr_.Set(
1415
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1416
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1417
}
1418
#endif
1419
inline void OpDef_ArgDef::set_type_list_attr(const char* value) {
1420
GOOGLE_DCHECK(value != NULL);
1421
1422
type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1423
GetArenaNoVirtual());
1424
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1425
}
1426
inline void OpDef_ArgDef::set_type_list_attr(const char* value,
1427
size_t size) {
1428
1429
type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1430
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1431
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1432
}
1433
inline ::std::string* OpDef_ArgDef::mutable_type_list_attr() {
1434
1435
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1436
return type_list_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1437
}
1438
inline ::std::string* OpDef_ArgDef::release_type_list_attr() {
1439
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1440
1441
return type_list_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1442
}
1443
inline void OpDef_ArgDef::set_allocated_type_list_attr(::std::string* type_list_attr) {
1444
if (type_list_attr != NULL) {
1445
1446
} else {
1447
1448
}
1449
type_list_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_list_attr,
1450
GetArenaNoVirtual());
1451
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1452
}
1453
inline ::std::string* OpDef_ArgDef::unsafe_arena_release_type_list_attr() {
1454
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1455
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1456
1457
return type_list_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1458
GetArenaNoVirtual());
1459
}
1460
inline void OpDef_ArgDef::unsafe_arena_set_allocated_type_list_attr(
1461
::std::string* type_list_attr) {
1462
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1463
if (type_list_attr != NULL) {
1464
1465
} else {
1466
1467
}
1468
type_list_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1469
type_list_attr, GetArenaNoVirtual());
1470
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.ArgDef.type_list_attr)
1471
}
1472
1473
// bool is_ref = 16;
1474
inline void OpDef_ArgDef::clear_is_ref() {
1475
is_ref_ = false;
1476
}
1477
inline bool OpDef_ArgDef::is_ref() const {
1478
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.ArgDef.is_ref)
1479
return is_ref_;
1480
}
1481
inline void OpDef_ArgDef::set_is_ref(bool value) {
1482
1483
is_ref_ = value;
1484
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.ArgDef.is_ref)
1485
}
1486
1487
// -------------------------------------------------------------------
1488
1489
// OpDef_AttrDef
1490
1491
// string name = 1;
1492
inline void OpDef_AttrDef::clear_name() {
1493
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1494
}
1495
inline const ::std::string& OpDef_AttrDef::name() const {
1496
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.name)
1497
return name_.Get();
1498
}
1499
inline void OpDef_AttrDef::set_name(const ::std::string& value) {
1500
1501
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1502
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.name)
1503
}
1504
#if LANG_CXX11
1505
inline void OpDef_AttrDef::set_name(::std::string&& value) {
1506
1507
name_.Set(
1508
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1509
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.AttrDef.name)
1510
}
1511
#endif
1512
inline void OpDef_AttrDef::set_name(const char* value) {
1513
GOOGLE_DCHECK(value != NULL);
1514
1515
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1516
GetArenaNoVirtual());
1517
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.AttrDef.name)
1518
}
1519
inline void OpDef_AttrDef::set_name(const char* value,
1520
size_t size) {
1521
1522
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1523
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1524
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.AttrDef.name)
1525
}
1526
inline ::std::string* OpDef_AttrDef::mutable_name() {
1527
1528
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.name)
1529
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1530
}
1531
inline ::std::string* OpDef_AttrDef::release_name() {
1532
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.name)
1533
1534
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1535
}
1536
inline void OpDef_AttrDef::set_allocated_name(::std::string* name) {
1537
if (name != NULL) {
1538
1539
} else {
1540
1541
}
1542
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
1543
GetArenaNoVirtual());
1544
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.name)
1545
}
1546
inline ::std::string* OpDef_AttrDef::unsafe_arena_release_name() {
1547
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.AttrDef.name)
1548
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1549
1550
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1551
GetArenaNoVirtual());
1552
}
1553
inline void OpDef_AttrDef::unsafe_arena_set_allocated_name(
1554
::std::string* name) {
1555
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1556
if (name != NULL) {
1557
1558
} else {
1559
1560
}
1561
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1562
name, GetArenaNoVirtual());
1563
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.AttrDef.name)
1564
}
1565
1566
// string type = 2;
1567
inline void OpDef_AttrDef::clear_type() {
1568
type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1569
}
1570
inline const ::std::string& OpDef_AttrDef::type() const {
1571
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.type)
1572
return type_.Get();
1573
}
1574
inline void OpDef_AttrDef::set_type(const ::std::string& value) {
1575
1576
type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1577
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.type)
1578
}
1579
#if LANG_CXX11
1580
inline void OpDef_AttrDef::set_type(::std::string&& value) {
1581
1582
type_.Set(
1583
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1584
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.AttrDef.type)
1585
}
1586
#endif
1587
inline void OpDef_AttrDef::set_type(const char* value) {
1588
GOOGLE_DCHECK(value != NULL);
1589
1590
type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1591
GetArenaNoVirtual());
1592
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.AttrDef.type)
1593
}
1594
inline void OpDef_AttrDef::set_type(const char* value,
1595
size_t size) {
1596
1597
type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1598
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1599
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.AttrDef.type)
1600
}
1601
inline ::std::string* OpDef_AttrDef::mutable_type() {
1602
1603
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.type)
1604
return type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1605
}
1606
inline ::std::string* OpDef_AttrDef::release_type() {
1607
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.type)
1608
1609
return type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1610
}
1611
inline void OpDef_AttrDef::set_allocated_type(::std::string* type) {
1612
if (type != NULL) {
1613
1614
} else {
1615
1616
}
1617
type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type,
1618
GetArenaNoVirtual());
1619
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.type)
1620
}
1621
inline ::std::string* OpDef_AttrDef::unsafe_arena_release_type() {
1622
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.AttrDef.type)
1623
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1624
1625
return type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1626
GetArenaNoVirtual());
1627
}
1628
inline void OpDef_AttrDef::unsafe_arena_set_allocated_type(
1629
::std::string* type) {
1630
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1631
if (type != NULL) {
1632
1633
} else {
1634
1635
}
1636
type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1637
type, GetArenaNoVirtual());
1638
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.AttrDef.type)
1639
}
1640
1641
// .opencv_tensorflow.AttrValue default_value = 3;
1642
inline bool OpDef_AttrDef::has_default_value() const {
1643
return this != internal_default_instance() && default_value_ != NULL;
1644
}
1645
inline const ::opencv_tensorflow::AttrValue& OpDef_AttrDef::default_value() const {
1646
const ::opencv_tensorflow::AttrValue* p = default_value_;
1647
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.default_value)
1648
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::AttrValue*>(
1649
&::opencv_tensorflow::_AttrValue_default_instance_);
1650
}
1651
inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::release_default_value() {
1652
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.default_value)
1653
1654
::opencv_tensorflow::AttrValue* temp = default_value_;
1655
if (GetArenaNoVirtual() != NULL) {
1656
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
1657
}
1658
default_value_ = NULL;
1659
return temp;
1660
}
1661
inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_default_value() {
1662
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.AttrDef.default_value)
1663
1664
::opencv_tensorflow::AttrValue* temp = default_value_;
1665
default_value_ = NULL;
1666
return temp;
1667
}
1668
inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::mutable_default_value() {
1669
1670
if (default_value_ == NULL) {
1671
_slow_mutable_default_value();
1672
}
1673
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.default_value)
1674
return default_value_;
1675
}
1676
inline void OpDef_AttrDef::set_allocated_default_value(::opencv_tensorflow::AttrValue* default_value) {
1677
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1678
if (message_arena == NULL) {
1679
delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_value_);
1680
}
1681
if (default_value) {
1682
::google::protobuf::Arena* submessage_arena =
1683
reinterpret_cast< ::google::protobuf::MessageLite*>(default_value)->GetArena();
1684
if (message_arena != submessage_arena) {
1685
default_value = ::google::protobuf::internal::GetOwnedMessage(
1686
message_arena, default_value, submessage_arena);
1687
}
1688
1689
} else {
1690
1691
}
1692
default_value_ = default_value;
1693
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.default_value)
1694
}
1695
1696
// string description = 4;
1697
inline void OpDef_AttrDef::clear_description() {
1698
description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1699
}
1700
inline const ::std::string& OpDef_AttrDef::description() const {
1701
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.description)
1702
return description_.Get();
1703
}
1704
inline void OpDef_AttrDef::set_description(const ::std::string& value) {
1705
1706
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1707
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.description)
1708
}
1709
#if LANG_CXX11
1710
inline void OpDef_AttrDef::set_description(::std::string&& value) {
1711
1712
description_.Set(
1713
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1714
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.AttrDef.description)
1715
}
1716
#endif
1717
inline void OpDef_AttrDef::set_description(const char* value) {
1718
GOOGLE_DCHECK(value != NULL);
1719
1720
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1721
GetArenaNoVirtual());
1722
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.AttrDef.description)
1723
}
1724
inline void OpDef_AttrDef::set_description(const char* value,
1725
size_t size) {
1726
1727
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1728
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1729
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.AttrDef.description)
1730
}
1731
inline ::std::string* OpDef_AttrDef::mutable_description() {
1732
1733
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.description)
1734
return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1735
}
1736
inline ::std::string* OpDef_AttrDef::release_description() {
1737
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.description)
1738
1739
return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1740
}
1741
inline void OpDef_AttrDef::set_allocated_description(::std::string* description) {
1742
if (description != NULL) {
1743
1744
} else {
1745
1746
}
1747
description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description,
1748
GetArenaNoVirtual());
1749
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.description)
1750
}
1751
inline ::std::string* OpDef_AttrDef::unsafe_arena_release_description() {
1752
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.AttrDef.description)
1753
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1754
1755
return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1756
GetArenaNoVirtual());
1757
}
1758
inline void OpDef_AttrDef::unsafe_arena_set_allocated_description(
1759
::std::string* description) {
1760
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1761
if (description != NULL) {
1762
1763
} else {
1764
1765
}
1766
description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1767
description, GetArenaNoVirtual());
1768
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.AttrDef.description)
1769
}
1770
1771
// bool has_minimum = 5;
1772
inline void OpDef_AttrDef::clear_has_minimum() {
1773
has_minimum_ = false;
1774
}
1775
inline bool OpDef_AttrDef::has_minimum() const {
1776
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.has_minimum)
1777
return has_minimum_;
1778
}
1779
inline void OpDef_AttrDef::set_has_minimum(bool value) {
1780
1781
has_minimum_ = value;
1782
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.has_minimum)
1783
}
1784
1785
// int64 minimum = 6;
1786
inline void OpDef_AttrDef::clear_minimum() {
1787
minimum_ = GOOGLE_LONGLONG(0);
1788
}
1789
inline ::google::protobuf::int64 OpDef_AttrDef::minimum() const {
1790
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.minimum)
1791
return minimum_;
1792
}
1793
inline void OpDef_AttrDef::set_minimum(::google::protobuf::int64 value) {
1794
1795
minimum_ = value;
1796
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.AttrDef.minimum)
1797
}
1798
1799
// .opencv_tensorflow.AttrValue allowed_values = 7;
1800
inline bool OpDef_AttrDef::has_allowed_values() const {
1801
return this != internal_default_instance() && allowed_values_ != NULL;
1802
}
1803
inline const ::opencv_tensorflow::AttrValue& OpDef_AttrDef::allowed_values() const {
1804
const ::opencv_tensorflow::AttrValue* p = allowed_values_;
1805
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.AttrDef.allowed_values)
1806
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::AttrValue*>(
1807
&::opencv_tensorflow::_AttrValue_default_instance_);
1808
}
1809
inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::release_allowed_values() {
1810
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.AttrDef.allowed_values)
1811
1812
::opencv_tensorflow::AttrValue* temp = allowed_values_;
1813
if (GetArenaNoVirtual() != NULL) {
1814
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
1815
}
1816
allowed_values_ = NULL;
1817
return temp;
1818
}
1819
inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_allowed_values() {
1820
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.AttrDef.allowed_values)
1821
1822
::opencv_tensorflow::AttrValue* temp = allowed_values_;
1823
allowed_values_ = NULL;
1824
return temp;
1825
}
1826
inline ::opencv_tensorflow::AttrValue* OpDef_AttrDef::mutable_allowed_values() {
1827
1828
if (allowed_values_ == NULL) {
1829
_slow_mutable_allowed_values();
1830
}
1831
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.AttrDef.allowed_values)
1832
return allowed_values_;
1833
}
1834
inline void OpDef_AttrDef::set_allocated_allowed_values(::opencv_tensorflow::AttrValue* allowed_values) {
1835
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1836
if (message_arena == NULL) {
1837
delete reinterpret_cast< ::google::protobuf::MessageLite*>(allowed_values_);
1838
}
1839
if (allowed_values) {
1840
::google::protobuf::Arena* submessage_arena =
1841
reinterpret_cast< ::google::protobuf::MessageLite*>(allowed_values)->GetArena();
1842
if (message_arena != submessage_arena) {
1843
allowed_values = ::google::protobuf::internal::GetOwnedMessage(
1844
message_arena, allowed_values, submessage_arena);
1845
}
1846
1847
} else {
1848
1849
}
1850
allowed_values_ = allowed_values;
1851
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.AttrDef.allowed_values)
1852
}
1853
1854
// -------------------------------------------------------------------
1855
1856
// OpDef
1857
1858
// string name = 1;
1859
inline void OpDef::clear_name() {
1860
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1861
}
1862
inline const ::std::string& OpDef::name() const {
1863
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.name)
1864
return name_.Get();
1865
}
1866
inline void OpDef::set_name(const ::std::string& value) {
1867
1868
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1869
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.name)
1870
}
1871
#if LANG_CXX11
1872
inline void OpDef::set_name(::std::string&& value) {
1873
1874
name_.Set(
1875
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1876
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.name)
1877
}
1878
#endif
1879
inline void OpDef::set_name(const char* value) {
1880
GOOGLE_DCHECK(value != NULL);
1881
1882
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1883
GetArenaNoVirtual());
1884
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.name)
1885
}
1886
inline void OpDef::set_name(const char* value,
1887
size_t size) {
1888
1889
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1890
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1891
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.name)
1892
}
1893
inline ::std::string* OpDef::mutable_name() {
1894
1895
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.name)
1896
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1897
}
1898
inline ::std::string* OpDef::release_name() {
1899
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.name)
1900
1901
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1902
}
1903
inline void OpDef::set_allocated_name(::std::string* name) {
1904
if (name != NULL) {
1905
1906
} else {
1907
1908
}
1909
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
1910
GetArenaNoVirtual());
1911
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.name)
1912
}
1913
inline ::std::string* OpDef::unsafe_arena_release_name() {
1914
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.name)
1915
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1916
1917
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1918
GetArenaNoVirtual());
1919
}
1920
inline void OpDef::unsafe_arena_set_allocated_name(
1921
::std::string* name) {
1922
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1923
if (name != NULL) {
1924
1925
} else {
1926
1927
}
1928
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1929
name, GetArenaNoVirtual());
1930
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.name)
1931
}
1932
1933
// repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
1934
inline int OpDef::input_arg_size() const {
1935
return input_arg_.size();
1936
}
1937
inline void OpDef::clear_input_arg() {
1938
input_arg_.Clear();
1939
}
1940
inline const ::opencv_tensorflow::OpDef_ArgDef& OpDef::input_arg(int index) const {
1941
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.input_arg)
1942
return input_arg_.Get(index);
1943
}
1944
inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::mutable_input_arg(int index) {
1945
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.input_arg)
1946
return input_arg_.Mutable(index);
1947
}
1948
inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::add_input_arg() {
1949
// @@protoc_insertion_point(field_add:opencv_tensorflow.OpDef.input_arg)
1950
return input_arg_.Add();
1951
}
1952
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >*
1953
OpDef::mutable_input_arg() {
1954
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.OpDef.input_arg)
1955
return &input_arg_;
1956
}
1957
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >&
1958
OpDef::input_arg() const {
1959
// @@protoc_insertion_point(field_list:opencv_tensorflow.OpDef.input_arg)
1960
return input_arg_;
1961
}
1962
1963
// repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
1964
inline int OpDef::output_arg_size() const {
1965
return output_arg_.size();
1966
}
1967
inline void OpDef::clear_output_arg() {
1968
output_arg_.Clear();
1969
}
1970
inline const ::opencv_tensorflow::OpDef_ArgDef& OpDef::output_arg(int index) const {
1971
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.output_arg)
1972
return output_arg_.Get(index);
1973
}
1974
inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::mutable_output_arg(int index) {
1975
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.output_arg)
1976
return output_arg_.Mutable(index);
1977
}
1978
inline ::opencv_tensorflow::OpDef_ArgDef* OpDef::add_output_arg() {
1979
// @@protoc_insertion_point(field_add:opencv_tensorflow.OpDef.output_arg)
1980
return output_arg_.Add();
1981
}
1982
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >*
1983
OpDef::mutable_output_arg() {
1984
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.OpDef.output_arg)
1985
return &output_arg_;
1986
}
1987
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_ArgDef >&
1988
OpDef::output_arg() const {
1989
// @@protoc_insertion_point(field_list:opencv_tensorflow.OpDef.output_arg)
1990
return output_arg_;
1991
}
1992
1993
// repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
1994
inline int OpDef::attr_size() const {
1995
return attr_.size();
1996
}
1997
inline void OpDef::clear_attr() {
1998
attr_.Clear();
1999
}
2000
inline const ::opencv_tensorflow::OpDef_AttrDef& OpDef::attr(int index) const {
2001
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.attr)
2002
return attr_.Get(index);
2003
}
2004
inline ::opencv_tensorflow::OpDef_AttrDef* OpDef::mutable_attr(int index) {
2005
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.attr)
2006
return attr_.Mutable(index);
2007
}
2008
inline ::opencv_tensorflow::OpDef_AttrDef* OpDef::add_attr() {
2009
// @@protoc_insertion_point(field_add:opencv_tensorflow.OpDef.attr)
2010
return attr_.Add();
2011
}
2012
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef >*
2013
OpDef::mutable_attr() {
2014
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.OpDef.attr)
2015
return &attr_;
2016
}
2017
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef_AttrDef >&
2018
OpDef::attr() const {
2019
// @@protoc_insertion_point(field_list:opencv_tensorflow.OpDef.attr)
2020
return attr_;
2021
}
2022
2023
// .opencv_tensorflow.OpDeprecation deprecation = 8;
2024
inline bool OpDef::has_deprecation() const {
2025
return this != internal_default_instance() && deprecation_ != NULL;
2026
}
2027
inline void OpDef::clear_deprecation() {
2028
if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) {
2029
delete deprecation_;
2030
}
2031
deprecation_ = NULL;
2032
}
2033
inline const ::opencv_tensorflow::OpDeprecation& OpDef::deprecation() const {
2034
const ::opencv_tensorflow::OpDeprecation* p = deprecation_;
2035
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.deprecation)
2036
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::OpDeprecation*>(
2037
&::opencv_tensorflow::_OpDeprecation_default_instance_);
2038
}
2039
inline ::opencv_tensorflow::OpDeprecation* OpDef::release_deprecation() {
2040
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.deprecation)
2041
2042
::opencv_tensorflow::OpDeprecation* temp = deprecation_;
2043
if (GetArenaNoVirtual() != NULL) {
2044
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
2045
}
2046
deprecation_ = NULL;
2047
return temp;
2048
}
2049
inline ::opencv_tensorflow::OpDeprecation* OpDef::unsafe_arena_release_deprecation() {
2050
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.deprecation)
2051
2052
::opencv_tensorflow::OpDeprecation* temp = deprecation_;
2053
deprecation_ = NULL;
2054
return temp;
2055
}
2056
inline ::opencv_tensorflow::OpDeprecation* OpDef::mutable_deprecation() {
2057
2058
if (deprecation_ == NULL) {
2059
_slow_mutable_deprecation();
2060
}
2061
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.deprecation)
2062
return deprecation_;
2063
}
2064
inline void OpDef::set_allocated_deprecation(::opencv_tensorflow::OpDeprecation* deprecation) {
2065
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2066
if (message_arena == NULL) {
2067
delete deprecation_;
2068
}
2069
if (deprecation) {
2070
::google::protobuf::Arena* submessage_arena =
2071
::google::protobuf::Arena::GetArena(deprecation);
2072
if (message_arena != submessage_arena) {
2073
deprecation = ::google::protobuf::internal::GetOwnedMessage(
2074
message_arena, deprecation, submessage_arena);
2075
}
2076
2077
} else {
2078
2079
}
2080
deprecation_ = deprecation;
2081
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.deprecation)
2082
}
2083
2084
// string summary = 5;
2085
inline void OpDef::clear_summary() {
2086
summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2087
}
2088
inline const ::std::string& OpDef::summary() const {
2089
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.summary)
2090
return summary_.Get();
2091
}
2092
inline void OpDef::set_summary(const ::std::string& value) {
2093
2094
summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
2095
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.summary)
2096
}
2097
#if LANG_CXX11
2098
inline void OpDef::set_summary(::std::string&& value) {
2099
2100
summary_.Set(
2101
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
2102
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.summary)
2103
}
2104
#endif
2105
inline void OpDef::set_summary(const char* value) {
2106
GOOGLE_DCHECK(value != NULL);
2107
2108
summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2109
GetArenaNoVirtual());
2110
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.summary)
2111
}
2112
inline void OpDef::set_summary(const char* value,
2113
size_t size) {
2114
2115
summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
2116
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2117
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.summary)
2118
}
2119
inline ::std::string* OpDef::mutable_summary() {
2120
2121
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.summary)
2122
return summary_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2123
}
2124
inline ::std::string* OpDef::release_summary() {
2125
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.summary)
2126
2127
return summary_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2128
}
2129
inline void OpDef::set_allocated_summary(::std::string* summary) {
2130
if (summary != NULL) {
2131
2132
} else {
2133
2134
}
2135
summary_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), summary,
2136
GetArenaNoVirtual());
2137
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.summary)
2138
}
2139
inline ::std::string* OpDef::unsafe_arena_release_summary() {
2140
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.summary)
2141
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2142
2143
return summary_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2144
GetArenaNoVirtual());
2145
}
2146
inline void OpDef::unsafe_arena_set_allocated_summary(
2147
::std::string* summary) {
2148
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2149
if (summary != NULL) {
2150
2151
} else {
2152
2153
}
2154
summary_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2155
summary, GetArenaNoVirtual());
2156
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.summary)
2157
}
2158
2159
// string description = 6;
2160
inline void OpDef::clear_description() {
2161
description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2162
}
2163
inline const ::std::string& OpDef::description() const {
2164
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.description)
2165
return description_.Get();
2166
}
2167
inline void OpDef::set_description(const ::std::string& value) {
2168
2169
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
2170
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.description)
2171
}
2172
#if LANG_CXX11
2173
inline void OpDef::set_description(::std::string&& value) {
2174
2175
description_.Set(
2176
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
2177
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDef.description)
2178
}
2179
#endif
2180
inline void OpDef::set_description(const char* value) {
2181
GOOGLE_DCHECK(value != NULL);
2182
2183
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2184
GetArenaNoVirtual());
2185
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDef.description)
2186
}
2187
inline void OpDef::set_description(const char* value,
2188
size_t size) {
2189
2190
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
2191
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2192
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDef.description)
2193
}
2194
inline ::std::string* OpDef::mutable_description() {
2195
2196
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDef.description)
2197
return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2198
}
2199
inline ::std::string* OpDef::release_description() {
2200
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDef.description)
2201
2202
return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2203
}
2204
inline void OpDef::set_allocated_description(::std::string* description) {
2205
if (description != NULL) {
2206
2207
} else {
2208
2209
}
2210
description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description,
2211
GetArenaNoVirtual());
2212
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDef.description)
2213
}
2214
inline ::std::string* OpDef::unsafe_arena_release_description() {
2215
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDef.description)
2216
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2217
2218
return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2219
GetArenaNoVirtual());
2220
}
2221
inline void OpDef::unsafe_arena_set_allocated_description(
2222
::std::string* description) {
2223
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2224
if (description != NULL) {
2225
2226
} else {
2227
2228
}
2229
description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2230
description, GetArenaNoVirtual());
2231
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.description)
2232
}
2233
2234
// bool is_commutative = 18;
2235
inline void OpDef::clear_is_commutative() {
2236
is_commutative_ = false;
2237
}
2238
inline bool OpDef::is_commutative() const {
2239
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.is_commutative)
2240
return is_commutative_;
2241
}
2242
inline void OpDef::set_is_commutative(bool value) {
2243
2244
is_commutative_ = value;
2245
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.is_commutative)
2246
}
2247
2248
// bool is_aggregate = 16;
2249
inline void OpDef::clear_is_aggregate() {
2250
is_aggregate_ = false;
2251
}
2252
inline bool OpDef::is_aggregate() const {
2253
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.is_aggregate)
2254
return is_aggregate_;
2255
}
2256
inline void OpDef::set_is_aggregate(bool value) {
2257
2258
is_aggregate_ = value;
2259
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.is_aggregate)
2260
}
2261
2262
// bool is_stateful = 17;
2263
inline void OpDef::clear_is_stateful() {
2264
is_stateful_ = false;
2265
}
2266
inline bool OpDef::is_stateful() const {
2267
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.is_stateful)
2268
return is_stateful_;
2269
}
2270
inline void OpDef::set_is_stateful(bool value) {
2271
2272
is_stateful_ = value;
2273
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.is_stateful)
2274
}
2275
2276
// bool allows_uninitialized_input = 19;
2277
inline void OpDef::clear_allows_uninitialized_input() {
2278
allows_uninitialized_input_ = false;
2279
}
2280
inline bool OpDef::allows_uninitialized_input() const {
2281
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDef.allows_uninitialized_input)
2282
return allows_uninitialized_input_;
2283
}
2284
inline void OpDef::set_allows_uninitialized_input(bool value) {
2285
2286
allows_uninitialized_input_ = value;
2287
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDef.allows_uninitialized_input)
2288
}
2289
2290
// -------------------------------------------------------------------
2291
2292
// OpDeprecation
2293
2294
// int32 version = 1;
2295
inline void OpDeprecation::clear_version() {
2296
version_ = 0;
2297
}
2298
inline ::google::protobuf::int32 OpDeprecation::version() const {
2299
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDeprecation.version)
2300
return version_;
2301
}
2302
inline void OpDeprecation::set_version(::google::protobuf::int32 value) {
2303
2304
version_ = value;
2305
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDeprecation.version)
2306
}
2307
2308
// string explanation = 2;
2309
inline void OpDeprecation::clear_explanation() {
2310
explanation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2311
}
2312
inline const ::std::string& OpDeprecation::explanation() const {
2313
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpDeprecation.explanation)
2314
return explanation_.Get();
2315
}
2316
inline void OpDeprecation::set_explanation(const ::std::string& value) {
2317
2318
explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
2319
// @@protoc_insertion_point(field_set:opencv_tensorflow.OpDeprecation.explanation)
2320
}
2321
#if LANG_CXX11
2322
inline void OpDeprecation::set_explanation(::std::string&& value) {
2323
2324
explanation_.Set(
2325
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
2326
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.OpDeprecation.explanation)
2327
}
2328
#endif
2329
inline void OpDeprecation::set_explanation(const char* value) {
2330
GOOGLE_DCHECK(value != NULL);
2331
2332
explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2333
GetArenaNoVirtual());
2334
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.OpDeprecation.explanation)
2335
}
2336
inline void OpDeprecation::set_explanation(const char* value,
2337
size_t size) {
2338
2339
explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
2340
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
2341
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.OpDeprecation.explanation)
2342
}
2343
inline ::std::string* OpDeprecation::mutable_explanation() {
2344
2345
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpDeprecation.explanation)
2346
return explanation_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2347
}
2348
inline ::std::string* OpDeprecation::release_explanation() {
2349
// @@protoc_insertion_point(field_release:opencv_tensorflow.OpDeprecation.explanation)
2350
2351
return explanation_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2352
}
2353
inline void OpDeprecation::set_allocated_explanation(::std::string* explanation) {
2354
if (explanation != NULL) {
2355
2356
} else {
2357
2358
}
2359
explanation_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), explanation,
2360
GetArenaNoVirtual());
2361
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.OpDeprecation.explanation)
2362
}
2363
inline ::std::string* OpDeprecation::unsafe_arena_release_explanation() {
2364
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.OpDeprecation.explanation)
2365
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2366
2367
return explanation_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2368
GetArenaNoVirtual());
2369
}
2370
inline void OpDeprecation::unsafe_arena_set_allocated_explanation(
2371
::std::string* explanation) {
2372
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
2373
if (explanation != NULL) {
2374
2375
} else {
2376
2377
}
2378
explanation_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2379
explanation, GetArenaNoVirtual());
2380
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDeprecation.explanation)
2381
}
2382
2383
// -------------------------------------------------------------------
2384
2385
// OpList
2386
2387
// repeated .opencv_tensorflow.OpDef op = 1;
2388
inline int OpList::op_size() const {
2389
return op_.size();
2390
}
2391
inline void OpList::clear_op() {
2392
op_.Clear();
2393
}
2394
inline const ::opencv_tensorflow::OpDef& OpList::op(int index) const {
2395
// @@protoc_insertion_point(field_get:opencv_tensorflow.OpList.op)
2396
return op_.Get(index);
2397
}
2398
inline ::opencv_tensorflow::OpDef* OpList::mutable_op(int index) {
2399
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.OpList.op)
2400
return op_.Mutable(index);
2401
}
2402
inline ::opencv_tensorflow::OpDef* OpList::add_op() {
2403
// @@protoc_insertion_point(field_add:opencv_tensorflow.OpList.op)
2404
return op_.Add();
2405
}
2406
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef >*
2407
OpList::mutable_op() {
2408
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.OpList.op)
2409
return &op_;
2410
}
2411
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::OpDef >&
2412
OpList::op() const {
2413
// @@protoc_insertion_point(field_list:opencv_tensorflow.OpList.op)
2414
return op_;
2415
}
2416
2417
#ifdef __GNUC__
2418
#pragma GCC diagnostic pop
2419
#endif // __GNUC__
2420
// -------------------------------------------------------------------
2421
2422
// -------------------------------------------------------------------
2423
2424
// -------------------------------------------------------------------
2425
2426
// -------------------------------------------------------------------
2427
2428
2429
// @@protoc_insertion_point(namespace_scope)
2430
2431
} // namespace opencv_tensorflow
2432
2433
// @@protoc_insertion_point(global_scope)
2434
2435
#endif // PROTOBUF_op_5fdef_2eproto__INCLUDED
2436
2437