Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/dnn/misc/tensorflow/function.pb.h
16358 views
1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: function.proto
3
4
#ifndef PROTOBUF_function_2eproto__INCLUDED
5
#define PROTOBUF_function_2eproto__INCLUDED
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3005000
12
#error This file was generated by a newer version of protoc which is
13
#error incompatible with your Protocol Buffer headers. Please update
14
#error your headers.
15
#endif
16
#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17
#error This file was generated by an older version of protoc which is
18
#error incompatible with your Protocol Buffer headers. Please
19
#error regenerate this file with a newer version of protoc.
20
#endif
21
22
#include <google/protobuf/io/coded_stream.h>
23
#include <google/protobuf/arena.h>
24
#include <google/protobuf/arenastring.h>
25
#include <google/protobuf/generated_message_table_driven.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/metadata.h>
28
#include <google/protobuf/message.h>
29
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
30
#include <google/protobuf/extension_set.h> // IWYU pragma: export
31
#include <google/protobuf/map.h> // IWYU pragma: export
32
#include <google/protobuf/map_entry.h>
33
#include <google/protobuf/map_field_inl.h>
34
#include <google/protobuf/unknown_field_set.h>
35
#include "attr_value.pb.h"
36
#include "op_def.pb.h"
37
// @@protoc_insertion_point(includes)
38
39
namespace protobuf_function_2eproto {
40
// Internal implementation detail -- do not use these members.
41
struct TableStruct {
42
static const ::google::protobuf::internal::ParseTableField entries[];
43
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44
static const ::google::protobuf::internal::ParseTable schema[5];
45
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46
static const ::google::protobuf::internal::SerializationTable serialization_table[];
47
static const ::google::protobuf::uint32 offsets[];
48
};
49
void AddDescriptors();
50
void InitDefaultsFunctionDefLibraryImpl();
51
void InitDefaultsFunctionDefLibrary();
52
void InitDefaultsFunctionDef_Node_AttrEntry_DoNotUseImpl();
53
void InitDefaultsFunctionDef_Node_AttrEntry_DoNotUse();
54
void InitDefaultsFunctionDef_NodeImpl();
55
void InitDefaultsFunctionDef_Node();
56
void InitDefaultsFunctionDefImpl();
57
void InitDefaultsFunctionDef();
58
void InitDefaultsGradientDefImpl();
59
void InitDefaultsGradientDef();
60
inline void InitDefaults() {
61
InitDefaultsFunctionDefLibrary();
62
InitDefaultsFunctionDef_Node_AttrEntry_DoNotUse();
63
InitDefaultsFunctionDef_Node();
64
InitDefaultsFunctionDef();
65
InitDefaultsGradientDef();
66
}
67
} // namespace protobuf_function_2eproto
68
namespace opencv_tensorflow {
69
class FunctionDef;
70
class FunctionDefDefaultTypeInternal;
71
extern FunctionDefDefaultTypeInternal _FunctionDef_default_instance_;
72
class FunctionDefLibrary;
73
class FunctionDefLibraryDefaultTypeInternal;
74
extern FunctionDefLibraryDefaultTypeInternal _FunctionDefLibrary_default_instance_;
75
class FunctionDef_Node;
76
class FunctionDef_NodeDefaultTypeInternal;
77
extern FunctionDef_NodeDefaultTypeInternal _FunctionDef_Node_default_instance_;
78
class FunctionDef_Node_AttrEntry_DoNotUse;
79
class FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal;
80
extern FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_Node_AttrEntry_DoNotUse_default_instance_;
81
class GradientDef;
82
class GradientDefDefaultTypeInternal;
83
extern GradientDefDefaultTypeInternal _GradientDef_default_instance_;
84
} // namespace opencv_tensorflow
85
namespace opencv_tensorflow {
86
87
// ===================================================================
88
89
class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDefLibrary) */ {
90
public:
91
FunctionDefLibrary();
92
virtual ~FunctionDefLibrary();
93
94
FunctionDefLibrary(const FunctionDefLibrary& from);
95
96
inline FunctionDefLibrary& operator=(const FunctionDefLibrary& from) {
97
CopyFrom(from);
98
return *this;
99
}
100
#if LANG_CXX11
101
FunctionDefLibrary(FunctionDefLibrary&& from) noexcept
102
: FunctionDefLibrary() {
103
*this = ::std::move(from);
104
}
105
106
inline FunctionDefLibrary& operator=(FunctionDefLibrary&& from) noexcept {
107
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
108
if (this != &from) InternalSwap(&from);
109
} else {
110
CopyFrom(from);
111
}
112
return *this;
113
}
114
#endif
115
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
116
return GetArenaNoVirtual();
117
}
118
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
119
return MaybeArenaPtr();
120
}
121
static const ::google::protobuf::Descriptor* descriptor();
122
static const FunctionDefLibrary& default_instance();
123
124
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
125
static inline const FunctionDefLibrary* internal_default_instance() {
126
return reinterpret_cast<const FunctionDefLibrary*>(
127
&_FunctionDefLibrary_default_instance_);
128
}
129
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
130
0;
131
132
void UnsafeArenaSwap(FunctionDefLibrary* other);
133
void Swap(FunctionDefLibrary* other);
134
friend void swap(FunctionDefLibrary& a, FunctionDefLibrary& b) {
135
a.Swap(&b);
136
}
137
138
// implements Message ----------------------------------------------
139
140
inline FunctionDefLibrary* New() const PROTOBUF_FINAL { return New(NULL); }
141
142
FunctionDefLibrary* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
143
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
144
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
145
void CopyFrom(const FunctionDefLibrary& from);
146
void MergeFrom(const FunctionDefLibrary& from);
147
void Clear() PROTOBUF_FINAL;
148
bool IsInitialized() const PROTOBUF_FINAL;
149
150
size_t ByteSizeLong() const PROTOBUF_FINAL;
151
bool MergePartialFromCodedStream(
152
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
153
void SerializeWithCachedSizes(
154
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
155
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
156
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
157
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
158
private:
159
void SharedCtor();
160
void SharedDtor();
161
void SetCachedSize(int size) const PROTOBUF_FINAL;
162
void InternalSwap(FunctionDefLibrary* other);
163
protected:
164
explicit FunctionDefLibrary(::google::protobuf::Arena* arena);
165
private:
166
static void ArenaDtor(void* object);
167
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
168
private:
169
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
170
return _internal_metadata_.arena();
171
}
172
inline void* MaybeArenaPtr() const {
173
return _internal_metadata_.raw_arena_ptr();
174
}
175
public:
176
177
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
178
179
// nested types ----------------------------------------------------
180
181
// accessors -------------------------------------------------------
182
183
// repeated .opencv_tensorflow.FunctionDef function = 1;
184
int function_size() const;
185
void clear_function();
186
static const int kFunctionFieldNumber = 1;
187
const ::opencv_tensorflow::FunctionDef& function(int index) const;
188
::opencv_tensorflow::FunctionDef* mutable_function(int index);
189
::opencv_tensorflow::FunctionDef* add_function();
190
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >*
191
mutable_function();
192
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >&
193
function() const;
194
195
// repeated .opencv_tensorflow.GradientDef gradient = 2;
196
int gradient_size() const;
197
void clear_gradient();
198
static const int kGradientFieldNumber = 2;
199
const ::opencv_tensorflow::GradientDef& gradient(int index) const;
200
::opencv_tensorflow::GradientDef* mutable_gradient(int index);
201
::opencv_tensorflow::GradientDef* add_gradient();
202
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef >*
203
mutable_gradient();
204
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef >&
205
gradient() const;
206
207
// @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDefLibrary)
208
private:
209
210
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
211
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
212
typedef void InternalArenaConstructable_;
213
typedef void DestructorSkippable_;
214
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef > function_;
215
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef > gradient_;
216
mutable int _cached_size_;
217
friend struct ::protobuf_function_2eproto::TableStruct;
218
friend void ::protobuf_function_2eproto::InitDefaultsFunctionDefLibraryImpl();
219
};
220
// -------------------------------------------------------------------
221
222
class FunctionDef_Node_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<FunctionDef_Node_AttrEntry_DoNotUse,
223
::std::string, ::opencv_tensorflow::AttrValue,
224
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
225
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
226
0 > {
227
public:
228
typedef ::google::protobuf::internal::MapEntry<FunctionDef_Node_AttrEntry_DoNotUse,
229
::std::string, ::opencv_tensorflow::AttrValue,
230
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
231
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
232
0 > SuperType;
233
FunctionDef_Node_AttrEntry_DoNotUse();
234
FunctionDef_Node_AttrEntry_DoNotUse(::google::protobuf::Arena* arena);
235
void MergeFrom(const FunctionDef_Node_AttrEntry_DoNotUse& other);
236
static const FunctionDef_Node_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FunctionDef_Node_AttrEntry_DoNotUse*>(&_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_); }
237
void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
238
::google::protobuf::Metadata GetMetadata() const;
239
};
240
241
// -------------------------------------------------------------------
242
243
class FunctionDef_Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDef.Node) */ {
244
public:
245
FunctionDef_Node();
246
virtual ~FunctionDef_Node();
247
248
FunctionDef_Node(const FunctionDef_Node& from);
249
250
inline FunctionDef_Node& operator=(const FunctionDef_Node& from) {
251
CopyFrom(from);
252
return *this;
253
}
254
#if LANG_CXX11
255
FunctionDef_Node(FunctionDef_Node&& from) noexcept
256
: FunctionDef_Node() {
257
*this = ::std::move(from);
258
}
259
260
inline FunctionDef_Node& operator=(FunctionDef_Node&& from) noexcept {
261
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
262
if (this != &from) InternalSwap(&from);
263
} else {
264
CopyFrom(from);
265
}
266
return *this;
267
}
268
#endif
269
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
270
return GetArenaNoVirtual();
271
}
272
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
273
return MaybeArenaPtr();
274
}
275
static const ::google::protobuf::Descriptor* descriptor();
276
static const FunctionDef_Node& default_instance();
277
278
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
279
static inline const FunctionDef_Node* internal_default_instance() {
280
return reinterpret_cast<const FunctionDef_Node*>(
281
&_FunctionDef_Node_default_instance_);
282
}
283
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
284
2;
285
286
void UnsafeArenaSwap(FunctionDef_Node* other);
287
void Swap(FunctionDef_Node* other);
288
friend void swap(FunctionDef_Node& a, FunctionDef_Node& b) {
289
a.Swap(&b);
290
}
291
292
// implements Message ----------------------------------------------
293
294
inline FunctionDef_Node* New() const PROTOBUF_FINAL { return New(NULL); }
295
296
FunctionDef_Node* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
297
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
298
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
299
void CopyFrom(const FunctionDef_Node& from);
300
void MergeFrom(const FunctionDef_Node& from);
301
void Clear() PROTOBUF_FINAL;
302
bool IsInitialized() const PROTOBUF_FINAL;
303
304
size_t ByteSizeLong() const PROTOBUF_FINAL;
305
bool MergePartialFromCodedStream(
306
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
307
void SerializeWithCachedSizes(
308
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
309
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
310
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
311
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
312
private:
313
void SharedCtor();
314
void SharedDtor();
315
void SetCachedSize(int size) const PROTOBUF_FINAL;
316
void InternalSwap(FunctionDef_Node* other);
317
protected:
318
explicit FunctionDef_Node(::google::protobuf::Arena* arena);
319
private:
320
static void ArenaDtor(void* object);
321
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
322
private:
323
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
324
return _internal_metadata_.arena();
325
}
326
inline void* MaybeArenaPtr() const {
327
return _internal_metadata_.raw_arena_ptr();
328
}
329
public:
330
331
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
332
333
// nested types ----------------------------------------------------
334
335
336
// accessors -------------------------------------------------------
337
338
// repeated string ret = 1;
339
int ret_size() const;
340
void clear_ret();
341
static const int kRetFieldNumber = 1;
342
const ::std::string& ret(int index) const;
343
::std::string* mutable_ret(int index);
344
void set_ret(int index, const ::std::string& value);
345
#if LANG_CXX11
346
void set_ret(int index, ::std::string&& value);
347
#endif
348
void set_ret(int index, const char* value);
349
void set_ret(int index, const char* value, size_t size);
350
::std::string* add_ret();
351
void add_ret(const ::std::string& value);
352
#if LANG_CXX11
353
void add_ret(::std::string&& value);
354
#endif
355
void add_ret(const char* value);
356
void add_ret(const char* value, size_t size);
357
const ::google::protobuf::RepeatedPtrField< ::std::string>& ret() const;
358
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_ret();
359
360
// repeated string arg = 3;
361
int arg_size() const;
362
void clear_arg();
363
static const int kArgFieldNumber = 3;
364
const ::std::string& arg(int index) const;
365
::std::string* mutable_arg(int index);
366
void set_arg(int index, const ::std::string& value);
367
#if LANG_CXX11
368
void set_arg(int index, ::std::string&& value);
369
#endif
370
void set_arg(int index, const char* value);
371
void set_arg(int index, const char* value, size_t size);
372
::std::string* add_arg();
373
void add_arg(const ::std::string& value);
374
#if LANG_CXX11
375
void add_arg(::std::string&& value);
376
#endif
377
void add_arg(const char* value);
378
void add_arg(const char* value, size_t size);
379
const ::google::protobuf::RepeatedPtrField< ::std::string>& arg() const;
380
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_arg();
381
382
// repeated string dep = 4;
383
int dep_size() const;
384
void clear_dep();
385
static const int kDepFieldNumber = 4;
386
const ::std::string& dep(int index) const;
387
::std::string* mutable_dep(int index);
388
void set_dep(int index, const ::std::string& value);
389
#if LANG_CXX11
390
void set_dep(int index, ::std::string&& value);
391
#endif
392
void set_dep(int index, const char* value);
393
void set_dep(int index, const char* value, size_t size);
394
::std::string* add_dep();
395
void add_dep(const ::std::string& value);
396
#if LANG_CXX11
397
void add_dep(::std::string&& value);
398
#endif
399
void add_dep(const char* value);
400
void add_dep(const char* value, size_t size);
401
const ::google::protobuf::RepeatedPtrField< ::std::string>& dep() const;
402
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dep();
403
404
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
405
int attr_size() const;
406
void clear_attr();
407
static const int kAttrFieldNumber = 5;
408
const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
409
attr() const;
410
::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
411
mutable_attr();
412
413
// string op = 2;
414
void clear_op();
415
static const int kOpFieldNumber = 2;
416
const ::std::string& op() const;
417
void set_op(const ::std::string& value);
418
#if LANG_CXX11
419
void set_op(::std::string&& value);
420
#endif
421
void set_op(const char* value);
422
void set_op(const char* value, size_t size);
423
::std::string* mutable_op();
424
::std::string* release_op();
425
void set_allocated_op(::std::string* op);
426
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
427
" string fields are deprecated and will be removed in a"
428
" future release.")
429
::std::string* unsafe_arena_release_op();
430
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
431
" string fields are deprecated and will be removed in a"
432
" future release.")
433
void unsafe_arena_set_allocated_op(
434
::std::string* op);
435
436
// @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDef.Node)
437
private:
438
439
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
440
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
441
typedef void InternalArenaConstructable_;
442
typedef void DestructorSkippable_;
443
::google::protobuf::RepeatedPtrField< ::std::string> ret_;
444
::google::protobuf::RepeatedPtrField< ::std::string> arg_;
445
::google::protobuf::RepeatedPtrField< ::std::string> dep_;
446
::google::protobuf::internal::MapField<
447
FunctionDef_Node_AttrEntry_DoNotUse,
448
::std::string, ::opencv_tensorflow::AttrValue,
449
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
450
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
451
0 > attr_;
452
::google::protobuf::internal::ArenaStringPtr op_;
453
mutable int _cached_size_;
454
friend struct ::protobuf_function_2eproto::TableStruct;
455
friend void ::protobuf_function_2eproto::InitDefaultsFunctionDef_NodeImpl();
456
};
457
// -------------------------------------------------------------------
458
459
class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.FunctionDef) */ {
460
public:
461
FunctionDef();
462
virtual ~FunctionDef();
463
464
FunctionDef(const FunctionDef& from);
465
466
inline FunctionDef& operator=(const FunctionDef& from) {
467
CopyFrom(from);
468
return *this;
469
}
470
#if LANG_CXX11
471
FunctionDef(FunctionDef&& from) noexcept
472
: FunctionDef() {
473
*this = ::std::move(from);
474
}
475
476
inline FunctionDef& operator=(FunctionDef&& from) noexcept {
477
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
478
if (this != &from) InternalSwap(&from);
479
} else {
480
CopyFrom(from);
481
}
482
return *this;
483
}
484
#endif
485
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
486
return GetArenaNoVirtual();
487
}
488
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
489
return MaybeArenaPtr();
490
}
491
static const ::google::protobuf::Descriptor* descriptor();
492
static const FunctionDef& default_instance();
493
494
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
495
static inline const FunctionDef* internal_default_instance() {
496
return reinterpret_cast<const FunctionDef*>(
497
&_FunctionDef_default_instance_);
498
}
499
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
500
3;
501
502
void UnsafeArenaSwap(FunctionDef* other);
503
void Swap(FunctionDef* other);
504
friend void swap(FunctionDef& a, FunctionDef& b) {
505
a.Swap(&b);
506
}
507
508
// implements Message ----------------------------------------------
509
510
inline FunctionDef* New() const PROTOBUF_FINAL { return New(NULL); }
511
512
FunctionDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
513
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
514
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
515
void CopyFrom(const FunctionDef& from);
516
void MergeFrom(const FunctionDef& from);
517
void Clear() PROTOBUF_FINAL;
518
bool IsInitialized() const PROTOBUF_FINAL;
519
520
size_t ByteSizeLong() const PROTOBUF_FINAL;
521
bool MergePartialFromCodedStream(
522
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
523
void SerializeWithCachedSizes(
524
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
525
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
526
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
527
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
528
private:
529
void SharedCtor();
530
void SharedDtor();
531
void SetCachedSize(int size) const PROTOBUF_FINAL;
532
void InternalSwap(FunctionDef* other);
533
protected:
534
explicit FunctionDef(::google::protobuf::Arena* arena);
535
private:
536
static void ArenaDtor(void* object);
537
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
538
private:
539
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
540
return _internal_metadata_.arena();
541
}
542
inline void* MaybeArenaPtr() const {
543
return _internal_metadata_.raw_arena_ptr();
544
}
545
public:
546
547
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
548
549
// nested types ----------------------------------------------------
550
551
typedef FunctionDef_Node Node;
552
553
// accessors -------------------------------------------------------
554
555
// repeated .opencv_tensorflow.FunctionDef.Node node = 2;
556
int node_size() const;
557
void clear_node();
558
static const int kNodeFieldNumber = 2;
559
const ::opencv_tensorflow::FunctionDef_Node& node(int index) const;
560
::opencv_tensorflow::FunctionDef_Node* mutable_node(int index);
561
::opencv_tensorflow::FunctionDef_Node* add_node();
562
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >*
563
mutable_node();
564
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >&
565
node() const;
566
567
// .opencv_tensorflow.OpDef signature = 1;
568
bool has_signature() const;
569
void clear_signature();
570
static const int kSignatureFieldNumber = 1;
571
private:
572
void _slow_mutable_signature();
573
public:
574
const ::opencv_tensorflow::OpDef& signature() const;
575
::opencv_tensorflow::OpDef* release_signature();
576
::opencv_tensorflow::OpDef* mutable_signature();
577
void set_allocated_signature(::opencv_tensorflow::OpDef* signature);
578
void unsafe_arena_set_allocated_signature(
579
::opencv_tensorflow::OpDef* signature);
580
::opencv_tensorflow::OpDef* unsafe_arena_release_signature();
581
582
// @@protoc_insertion_point(class_scope:opencv_tensorflow.FunctionDef)
583
private:
584
585
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
586
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
587
typedef void InternalArenaConstructable_;
588
typedef void DestructorSkippable_;
589
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node > node_;
590
::opencv_tensorflow::OpDef* signature_;
591
mutable int _cached_size_;
592
friend struct ::protobuf_function_2eproto::TableStruct;
593
friend void ::protobuf_function_2eproto::InitDefaultsFunctionDefImpl();
594
};
595
// -------------------------------------------------------------------
596
597
class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.GradientDef) */ {
598
public:
599
GradientDef();
600
virtual ~GradientDef();
601
602
GradientDef(const GradientDef& from);
603
604
inline GradientDef& operator=(const GradientDef& from) {
605
CopyFrom(from);
606
return *this;
607
}
608
#if LANG_CXX11
609
GradientDef(GradientDef&& from) noexcept
610
: GradientDef() {
611
*this = ::std::move(from);
612
}
613
614
inline GradientDef& operator=(GradientDef&& from) noexcept {
615
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
616
if (this != &from) InternalSwap(&from);
617
} else {
618
CopyFrom(from);
619
}
620
return *this;
621
}
622
#endif
623
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
624
return GetArenaNoVirtual();
625
}
626
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
627
return MaybeArenaPtr();
628
}
629
static const ::google::protobuf::Descriptor* descriptor();
630
static const GradientDef& default_instance();
631
632
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
633
static inline const GradientDef* internal_default_instance() {
634
return reinterpret_cast<const GradientDef*>(
635
&_GradientDef_default_instance_);
636
}
637
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
638
4;
639
640
void UnsafeArenaSwap(GradientDef* other);
641
void Swap(GradientDef* other);
642
friend void swap(GradientDef& a, GradientDef& b) {
643
a.Swap(&b);
644
}
645
646
// implements Message ----------------------------------------------
647
648
inline GradientDef* New() const PROTOBUF_FINAL { return New(NULL); }
649
650
GradientDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
651
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
652
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
653
void CopyFrom(const GradientDef& from);
654
void MergeFrom(const GradientDef& from);
655
void Clear() PROTOBUF_FINAL;
656
bool IsInitialized() const PROTOBUF_FINAL;
657
658
size_t ByteSizeLong() const PROTOBUF_FINAL;
659
bool MergePartialFromCodedStream(
660
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
661
void SerializeWithCachedSizes(
662
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
663
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
664
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
665
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
666
private:
667
void SharedCtor();
668
void SharedDtor();
669
void SetCachedSize(int size) const PROTOBUF_FINAL;
670
void InternalSwap(GradientDef* other);
671
protected:
672
explicit GradientDef(::google::protobuf::Arena* arena);
673
private:
674
static void ArenaDtor(void* object);
675
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
676
private:
677
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
678
return _internal_metadata_.arena();
679
}
680
inline void* MaybeArenaPtr() const {
681
return _internal_metadata_.raw_arena_ptr();
682
}
683
public:
684
685
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
686
687
// nested types ----------------------------------------------------
688
689
// accessors -------------------------------------------------------
690
691
// string function_name = 1;
692
void clear_function_name();
693
static const int kFunctionNameFieldNumber = 1;
694
const ::std::string& function_name() const;
695
void set_function_name(const ::std::string& value);
696
#if LANG_CXX11
697
void set_function_name(::std::string&& value);
698
#endif
699
void set_function_name(const char* value);
700
void set_function_name(const char* value, size_t size);
701
::std::string* mutable_function_name();
702
::std::string* release_function_name();
703
void set_allocated_function_name(::std::string* function_name);
704
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
705
" string fields are deprecated and will be removed in a"
706
" future release.")
707
::std::string* unsafe_arena_release_function_name();
708
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
709
" string fields are deprecated and will be removed in a"
710
" future release.")
711
void unsafe_arena_set_allocated_function_name(
712
::std::string* function_name);
713
714
// string gradient_func = 2;
715
void clear_gradient_func();
716
static const int kGradientFuncFieldNumber = 2;
717
const ::std::string& gradient_func() const;
718
void set_gradient_func(const ::std::string& value);
719
#if LANG_CXX11
720
void set_gradient_func(::std::string&& value);
721
#endif
722
void set_gradient_func(const char* value);
723
void set_gradient_func(const char* value, size_t size);
724
::std::string* mutable_gradient_func();
725
::std::string* release_gradient_func();
726
void set_allocated_gradient_func(::std::string* gradient_func);
727
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
728
" string fields are deprecated and will be removed in a"
729
" future release.")
730
::std::string* unsafe_arena_release_gradient_func();
731
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
732
" string fields are deprecated and will be removed in a"
733
" future release.")
734
void unsafe_arena_set_allocated_gradient_func(
735
::std::string* gradient_func);
736
737
// @@protoc_insertion_point(class_scope:opencv_tensorflow.GradientDef)
738
private:
739
740
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
741
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
742
typedef void InternalArenaConstructable_;
743
typedef void DestructorSkippable_;
744
::google::protobuf::internal::ArenaStringPtr function_name_;
745
::google::protobuf::internal::ArenaStringPtr gradient_func_;
746
mutable int _cached_size_;
747
friend struct ::protobuf_function_2eproto::TableStruct;
748
friend void ::protobuf_function_2eproto::InitDefaultsGradientDefImpl();
749
};
750
// ===================================================================
751
752
753
// ===================================================================
754
755
#ifdef __GNUC__
756
#pragma GCC diagnostic push
757
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
758
#endif // __GNUC__
759
// FunctionDefLibrary
760
761
// repeated .opencv_tensorflow.FunctionDef function = 1;
762
inline int FunctionDefLibrary::function_size() const {
763
return function_.size();
764
}
765
inline void FunctionDefLibrary::clear_function() {
766
function_.Clear();
767
}
768
inline const ::opencv_tensorflow::FunctionDef& FunctionDefLibrary::function(int index) const {
769
// @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDefLibrary.function)
770
return function_.Get(index);
771
}
772
inline ::opencv_tensorflow::FunctionDef* FunctionDefLibrary::mutable_function(int index) {
773
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDefLibrary.function)
774
return function_.Mutable(index);
775
}
776
inline ::opencv_tensorflow::FunctionDef* FunctionDefLibrary::add_function() {
777
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDefLibrary.function)
778
return function_.Add();
779
}
780
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >*
781
FunctionDefLibrary::mutable_function() {
782
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDefLibrary.function)
783
return &function_;
784
}
785
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef >&
786
FunctionDefLibrary::function() const {
787
// @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDefLibrary.function)
788
return function_;
789
}
790
791
// repeated .opencv_tensorflow.GradientDef gradient = 2;
792
inline int FunctionDefLibrary::gradient_size() const {
793
return gradient_.size();
794
}
795
inline void FunctionDefLibrary::clear_gradient() {
796
gradient_.Clear();
797
}
798
inline const ::opencv_tensorflow::GradientDef& FunctionDefLibrary::gradient(int index) const {
799
// @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDefLibrary.gradient)
800
return gradient_.Get(index);
801
}
802
inline ::opencv_tensorflow::GradientDef* FunctionDefLibrary::mutable_gradient(int index) {
803
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDefLibrary.gradient)
804
return gradient_.Mutable(index);
805
}
806
inline ::opencv_tensorflow::GradientDef* FunctionDefLibrary::add_gradient() {
807
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDefLibrary.gradient)
808
return gradient_.Add();
809
}
810
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef >*
811
FunctionDefLibrary::mutable_gradient() {
812
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDefLibrary.gradient)
813
return &gradient_;
814
}
815
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::GradientDef >&
816
FunctionDefLibrary::gradient() const {
817
// @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDefLibrary.gradient)
818
return gradient_;
819
}
820
821
// -------------------------------------------------------------------
822
823
// -------------------------------------------------------------------
824
825
// FunctionDef_Node
826
827
// repeated string ret = 1;
828
inline int FunctionDef_Node::ret_size() const {
829
return ret_.size();
830
}
831
inline void FunctionDef_Node::clear_ret() {
832
ret_.Clear();
833
}
834
inline const ::std::string& FunctionDef_Node::ret(int index) const {
835
// @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.ret)
836
return ret_.Get(index);
837
}
838
inline ::std::string* FunctionDef_Node::mutable_ret(int index) {
839
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.ret)
840
return ret_.Mutable(index);
841
}
842
inline void FunctionDef_Node::set_ret(int index, const ::std::string& value) {
843
// @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.ret)
844
ret_.Mutable(index)->assign(value);
845
}
846
#if LANG_CXX11
847
inline void FunctionDef_Node::set_ret(int index, ::std::string&& value) {
848
// @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.ret)
849
ret_.Mutable(index)->assign(std::move(value));
850
}
851
#endif
852
inline void FunctionDef_Node::set_ret(int index, const char* value) {
853
GOOGLE_DCHECK(value != NULL);
854
ret_.Mutable(index)->assign(value);
855
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.ret)
856
}
857
inline void FunctionDef_Node::set_ret(int index, const char* value, size_t size) {
858
ret_.Mutable(index)->assign(
859
reinterpret_cast<const char*>(value), size);
860
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.ret)
861
}
862
inline ::std::string* FunctionDef_Node::add_ret() {
863
// @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.ret)
864
return ret_.Add();
865
}
866
inline void FunctionDef_Node::add_ret(const ::std::string& value) {
867
ret_.Add()->assign(value);
868
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.ret)
869
}
870
#if LANG_CXX11
871
inline void FunctionDef_Node::add_ret(::std::string&& value) {
872
ret_.Add(std::move(value));
873
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.ret)
874
}
875
#endif
876
inline void FunctionDef_Node::add_ret(const char* value) {
877
GOOGLE_DCHECK(value != NULL);
878
ret_.Add()->assign(value);
879
// @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.ret)
880
}
881
inline void FunctionDef_Node::add_ret(const char* value, size_t size) {
882
ret_.Add()->assign(reinterpret_cast<const char*>(value), size);
883
// @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.ret)
884
}
885
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
886
FunctionDef_Node::ret() const {
887
// @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.ret)
888
return ret_;
889
}
890
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
891
FunctionDef_Node::mutable_ret() {
892
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.ret)
893
return &ret_;
894
}
895
896
// string op = 2;
897
inline void FunctionDef_Node::clear_op() {
898
op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
899
}
900
inline const ::std::string& FunctionDef_Node::op() const {
901
// @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.op)
902
return op_.Get();
903
}
904
inline void FunctionDef_Node::set_op(const ::std::string& value) {
905
906
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
907
// @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.op)
908
}
909
#if LANG_CXX11
910
inline void FunctionDef_Node::set_op(::std::string&& value) {
911
912
op_.Set(
913
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
914
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.FunctionDef.Node.op)
915
}
916
#endif
917
inline void FunctionDef_Node::set_op(const char* value) {
918
GOOGLE_DCHECK(value != NULL);
919
920
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
921
GetArenaNoVirtual());
922
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.op)
923
}
924
inline void FunctionDef_Node::set_op(const char* value,
925
size_t size) {
926
927
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
928
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
929
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.op)
930
}
931
inline ::std::string* FunctionDef_Node::mutable_op() {
932
933
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.op)
934
return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
935
}
936
inline ::std::string* FunctionDef_Node::release_op() {
937
// @@protoc_insertion_point(field_release:opencv_tensorflow.FunctionDef.Node.op)
938
939
return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
940
}
941
inline void FunctionDef_Node::set_allocated_op(::std::string* op) {
942
if (op != NULL) {
943
944
} else {
945
946
}
947
op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op,
948
GetArenaNoVirtual());
949
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.FunctionDef.Node.op)
950
}
951
inline ::std::string* FunctionDef_Node::unsafe_arena_release_op() {
952
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.FunctionDef.Node.op)
953
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
954
955
return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
956
GetArenaNoVirtual());
957
}
958
inline void FunctionDef_Node::unsafe_arena_set_allocated_op(
959
::std::string* op) {
960
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
961
if (op != NULL) {
962
963
} else {
964
965
}
966
op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
967
op, GetArenaNoVirtual());
968
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.FunctionDef.Node.op)
969
}
970
971
// repeated string arg = 3;
972
inline int FunctionDef_Node::arg_size() const {
973
return arg_.size();
974
}
975
inline void FunctionDef_Node::clear_arg() {
976
arg_.Clear();
977
}
978
inline const ::std::string& FunctionDef_Node::arg(int index) const {
979
// @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.arg)
980
return arg_.Get(index);
981
}
982
inline ::std::string* FunctionDef_Node::mutable_arg(int index) {
983
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.arg)
984
return arg_.Mutable(index);
985
}
986
inline void FunctionDef_Node::set_arg(int index, const ::std::string& value) {
987
// @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.arg)
988
arg_.Mutable(index)->assign(value);
989
}
990
#if LANG_CXX11
991
inline void FunctionDef_Node::set_arg(int index, ::std::string&& value) {
992
// @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.arg)
993
arg_.Mutable(index)->assign(std::move(value));
994
}
995
#endif
996
inline void FunctionDef_Node::set_arg(int index, const char* value) {
997
GOOGLE_DCHECK(value != NULL);
998
arg_.Mutable(index)->assign(value);
999
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.arg)
1000
}
1001
inline void FunctionDef_Node::set_arg(int index, const char* value, size_t size) {
1002
arg_.Mutable(index)->assign(
1003
reinterpret_cast<const char*>(value), size);
1004
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.arg)
1005
}
1006
inline ::std::string* FunctionDef_Node::add_arg() {
1007
// @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.arg)
1008
return arg_.Add();
1009
}
1010
inline void FunctionDef_Node::add_arg(const ::std::string& value) {
1011
arg_.Add()->assign(value);
1012
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.arg)
1013
}
1014
#if LANG_CXX11
1015
inline void FunctionDef_Node::add_arg(::std::string&& value) {
1016
arg_.Add(std::move(value));
1017
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.arg)
1018
}
1019
#endif
1020
inline void FunctionDef_Node::add_arg(const char* value) {
1021
GOOGLE_DCHECK(value != NULL);
1022
arg_.Add()->assign(value);
1023
// @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.arg)
1024
}
1025
inline void FunctionDef_Node::add_arg(const char* value, size_t size) {
1026
arg_.Add()->assign(reinterpret_cast<const char*>(value), size);
1027
// @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.arg)
1028
}
1029
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1030
FunctionDef_Node::arg() const {
1031
// @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.arg)
1032
return arg_;
1033
}
1034
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1035
FunctionDef_Node::mutable_arg() {
1036
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.arg)
1037
return &arg_;
1038
}
1039
1040
// repeated string dep = 4;
1041
inline int FunctionDef_Node::dep_size() const {
1042
return dep_.size();
1043
}
1044
inline void FunctionDef_Node::clear_dep() {
1045
dep_.Clear();
1046
}
1047
inline const ::std::string& FunctionDef_Node::dep(int index) const {
1048
// @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.Node.dep)
1049
return dep_.Get(index);
1050
}
1051
inline ::std::string* FunctionDef_Node::mutable_dep(int index) {
1052
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.Node.dep)
1053
return dep_.Mutable(index);
1054
}
1055
inline void FunctionDef_Node::set_dep(int index, const ::std::string& value) {
1056
// @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.dep)
1057
dep_.Mutable(index)->assign(value);
1058
}
1059
#if LANG_CXX11
1060
inline void FunctionDef_Node::set_dep(int index, ::std::string&& value) {
1061
// @@protoc_insertion_point(field_set:opencv_tensorflow.FunctionDef.Node.dep)
1062
dep_.Mutable(index)->assign(std::move(value));
1063
}
1064
#endif
1065
inline void FunctionDef_Node::set_dep(int index, const char* value) {
1066
GOOGLE_DCHECK(value != NULL);
1067
dep_.Mutable(index)->assign(value);
1068
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.FunctionDef.Node.dep)
1069
}
1070
inline void FunctionDef_Node::set_dep(int index, const char* value, size_t size) {
1071
dep_.Mutable(index)->assign(
1072
reinterpret_cast<const char*>(value), size);
1073
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.FunctionDef.Node.dep)
1074
}
1075
inline ::std::string* FunctionDef_Node::add_dep() {
1076
// @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.FunctionDef.Node.dep)
1077
return dep_.Add();
1078
}
1079
inline void FunctionDef_Node::add_dep(const ::std::string& value) {
1080
dep_.Add()->assign(value);
1081
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.dep)
1082
}
1083
#if LANG_CXX11
1084
inline void FunctionDef_Node::add_dep(::std::string&& value) {
1085
dep_.Add(std::move(value));
1086
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.Node.dep)
1087
}
1088
#endif
1089
inline void FunctionDef_Node::add_dep(const char* value) {
1090
GOOGLE_DCHECK(value != NULL);
1091
dep_.Add()->assign(value);
1092
// @@protoc_insertion_point(field_add_char:opencv_tensorflow.FunctionDef.Node.dep)
1093
}
1094
inline void FunctionDef_Node::add_dep(const char* value, size_t size) {
1095
dep_.Add()->assign(reinterpret_cast<const char*>(value), size);
1096
// @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.FunctionDef.Node.dep)
1097
}
1098
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1099
FunctionDef_Node::dep() const {
1100
// @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.Node.dep)
1101
return dep_;
1102
}
1103
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1104
FunctionDef_Node::mutable_dep() {
1105
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.Node.dep)
1106
return &dep_;
1107
}
1108
1109
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
1110
inline int FunctionDef_Node::attr_size() const {
1111
return attr_.size();
1112
}
1113
inline const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
1114
FunctionDef_Node::attr() const {
1115
// @@protoc_insertion_point(field_map:opencv_tensorflow.FunctionDef.Node.attr)
1116
return attr_.GetMap();
1117
}
1118
inline ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
1119
FunctionDef_Node::mutable_attr() {
1120
// @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.FunctionDef.Node.attr)
1121
return attr_.MutableMap();
1122
}
1123
1124
// -------------------------------------------------------------------
1125
1126
// FunctionDef
1127
1128
// .opencv_tensorflow.OpDef signature = 1;
1129
inline bool FunctionDef::has_signature() const {
1130
return this != internal_default_instance() && signature_ != NULL;
1131
}
1132
inline const ::opencv_tensorflow::OpDef& FunctionDef::signature() const {
1133
const ::opencv_tensorflow::OpDef* p = signature_;
1134
// @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.signature)
1135
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::OpDef*>(
1136
&::opencv_tensorflow::_OpDef_default_instance_);
1137
}
1138
inline ::opencv_tensorflow::OpDef* FunctionDef::release_signature() {
1139
// @@protoc_insertion_point(field_release:opencv_tensorflow.FunctionDef.signature)
1140
1141
::opencv_tensorflow::OpDef* temp = signature_;
1142
if (GetArenaNoVirtual() != NULL) {
1143
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
1144
}
1145
signature_ = NULL;
1146
return temp;
1147
}
1148
inline ::opencv_tensorflow::OpDef* FunctionDef::unsafe_arena_release_signature() {
1149
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.FunctionDef.signature)
1150
1151
::opencv_tensorflow::OpDef* temp = signature_;
1152
signature_ = NULL;
1153
return temp;
1154
}
1155
inline ::opencv_tensorflow::OpDef* FunctionDef::mutable_signature() {
1156
1157
if (signature_ == NULL) {
1158
_slow_mutable_signature();
1159
}
1160
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.signature)
1161
return signature_;
1162
}
1163
inline void FunctionDef::set_allocated_signature(::opencv_tensorflow::OpDef* signature) {
1164
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1165
if (message_arena == NULL) {
1166
delete reinterpret_cast< ::google::protobuf::MessageLite*>(signature_);
1167
}
1168
if (signature) {
1169
::google::protobuf::Arena* submessage_arena =
1170
reinterpret_cast< ::google::protobuf::MessageLite*>(signature)->GetArena();
1171
if (message_arena != submessage_arena) {
1172
signature = ::google::protobuf::internal::GetOwnedMessage(
1173
message_arena, signature, submessage_arena);
1174
}
1175
1176
} else {
1177
1178
}
1179
signature_ = signature;
1180
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.FunctionDef.signature)
1181
}
1182
1183
// repeated .opencv_tensorflow.FunctionDef.Node node = 2;
1184
inline int FunctionDef::node_size() const {
1185
return node_.size();
1186
}
1187
inline void FunctionDef::clear_node() {
1188
node_.Clear();
1189
}
1190
inline const ::opencv_tensorflow::FunctionDef_Node& FunctionDef::node(int index) const {
1191
// @@protoc_insertion_point(field_get:opencv_tensorflow.FunctionDef.node)
1192
return node_.Get(index);
1193
}
1194
inline ::opencv_tensorflow::FunctionDef_Node* FunctionDef::mutable_node(int index) {
1195
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.FunctionDef.node)
1196
return node_.Mutable(index);
1197
}
1198
inline ::opencv_tensorflow::FunctionDef_Node* FunctionDef::add_node() {
1199
// @@protoc_insertion_point(field_add:opencv_tensorflow.FunctionDef.node)
1200
return node_.Add();
1201
}
1202
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >*
1203
FunctionDef::mutable_node() {
1204
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.FunctionDef.node)
1205
return &node_;
1206
}
1207
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::FunctionDef_Node >&
1208
FunctionDef::node() const {
1209
// @@protoc_insertion_point(field_list:opencv_tensorflow.FunctionDef.node)
1210
return node_;
1211
}
1212
1213
// -------------------------------------------------------------------
1214
1215
// GradientDef
1216
1217
// string function_name = 1;
1218
inline void GradientDef::clear_function_name() {
1219
function_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1220
}
1221
inline const ::std::string& GradientDef::function_name() const {
1222
// @@protoc_insertion_point(field_get:opencv_tensorflow.GradientDef.function_name)
1223
return function_name_.Get();
1224
}
1225
inline void GradientDef::set_function_name(const ::std::string& value) {
1226
1227
function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1228
// @@protoc_insertion_point(field_set:opencv_tensorflow.GradientDef.function_name)
1229
}
1230
#if LANG_CXX11
1231
inline void GradientDef::set_function_name(::std::string&& value) {
1232
1233
function_name_.Set(
1234
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1235
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.GradientDef.function_name)
1236
}
1237
#endif
1238
inline void GradientDef::set_function_name(const char* value) {
1239
GOOGLE_DCHECK(value != NULL);
1240
1241
function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1242
GetArenaNoVirtual());
1243
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.GradientDef.function_name)
1244
}
1245
inline void GradientDef::set_function_name(const char* value,
1246
size_t size) {
1247
1248
function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1249
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1250
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.GradientDef.function_name)
1251
}
1252
inline ::std::string* GradientDef::mutable_function_name() {
1253
1254
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GradientDef.function_name)
1255
return function_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1256
}
1257
inline ::std::string* GradientDef::release_function_name() {
1258
// @@protoc_insertion_point(field_release:opencv_tensorflow.GradientDef.function_name)
1259
1260
return function_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1261
}
1262
inline void GradientDef::set_allocated_function_name(::std::string* function_name) {
1263
if (function_name != NULL) {
1264
1265
} else {
1266
1267
}
1268
function_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), function_name,
1269
GetArenaNoVirtual());
1270
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GradientDef.function_name)
1271
}
1272
inline ::std::string* GradientDef::unsafe_arena_release_function_name() {
1273
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GradientDef.function_name)
1274
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1275
1276
return function_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1277
GetArenaNoVirtual());
1278
}
1279
inline void GradientDef::unsafe_arena_set_allocated_function_name(
1280
::std::string* function_name) {
1281
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1282
if (function_name != NULL) {
1283
1284
} else {
1285
1286
}
1287
function_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1288
function_name, GetArenaNoVirtual());
1289
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GradientDef.function_name)
1290
}
1291
1292
// string gradient_func = 2;
1293
inline void GradientDef::clear_gradient_func() {
1294
gradient_func_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1295
}
1296
inline const ::std::string& GradientDef::gradient_func() const {
1297
// @@protoc_insertion_point(field_get:opencv_tensorflow.GradientDef.gradient_func)
1298
return gradient_func_.Get();
1299
}
1300
inline void GradientDef::set_gradient_func(const ::std::string& value) {
1301
1302
gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1303
// @@protoc_insertion_point(field_set:opencv_tensorflow.GradientDef.gradient_func)
1304
}
1305
#if LANG_CXX11
1306
inline void GradientDef::set_gradient_func(::std::string&& value) {
1307
1308
gradient_func_.Set(
1309
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1310
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.GradientDef.gradient_func)
1311
}
1312
#endif
1313
inline void GradientDef::set_gradient_func(const char* value) {
1314
GOOGLE_DCHECK(value != NULL);
1315
1316
gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1317
GetArenaNoVirtual());
1318
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.GradientDef.gradient_func)
1319
}
1320
inline void GradientDef::set_gradient_func(const char* value,
1321
size_t size) {
1322
1323
gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
1324
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1325
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.GradientDef.gradient_func)
1326
}
1327
inline ::std::string* GradientDef::mutable_gradient_func() {
1328
1329
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GradientDef.gradient_func)
1330
return gradient_func_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1331
}
1332
inline ::std::string* GradientDef::release_gradient_func() {
1333
// @@protoc_insertion_point(field_release:opencv_tensorflow.GradientDef.gradient_func)
1334
1335
return gradient_func_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1336
}
1337
inline void GradientDef::set_allocated_gradient_func(::std::string* gradient_func) {
1338
if (gradient_func != NULL) {
1339
1340
} else {
1341
1342
}
1343
gradient_func_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gradient_func,
1344
GetArenaNoVirtual());
1345
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GradientDef.gradient_func)
1346
}
1347
inline ::std::string* GradientDef::unsafe_arena_release_gradient_func() {
1348
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GradientDef.gradient_func)
1349
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1350
1351
return gradient_func_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1352
GetArenaNoVirtual());
1353
}
1354
inline void GradientDef::unsafe_arena_set_allocated_gradient_func(
1355
::std::string* gradient_func) {
1356
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
1357
if (gradient_func != NULL) {
1358
1359
} else {
1360
1361
}
1362
gradient_func_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1363
gradient_func, GetArenaNoVirtual());
1364
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GradientDef.gradient_func)
1365
}
1366
1367
#ifdef __GNUC__
1368
#pragma GCC diagnostic pop
1369
#endif // __GNUC__
1370
// -------------------------------------------------------------------
1371
1372
// -------------------------------------------------------------------
1373
1374
// -------------------------------------------------------------------
1375
1376
// -------------------------------------------------------------------
1377
1378
1379
// @@protoc_insertion_point(namespace_scope)
1380
1381
} // namespace opencv_tensorflow
1382
1383
// @@protoc_insertion_point(global_scope)
1384
1385
#endif // PROTOBUF_function_2eproto__INCLUDED
1386
1387