Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/dnn/misc/tensorflow/graph.pb.h
16358 views
1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: graph.proto
3
4
#ifndef PROTOBUF_graph_2eproto__INCLUDED
5
#define PROTOBUF_graph_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 "function.pb.h"
37
#include "versions.pb.h"
38
// @@protoc_insertion_point(includes)
39
40
namespace protobuf_graph_2eproto {
41
// Internal implementation detail -- do not use these members.
42
struct TableStruct {
43
static const ::google::protobuf::internal::ParseTableField entries[];
44
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
45
static const ::google::protobuf::internal::ParseTable schema[3];
46
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
47
static const ::google::protobuf::internal::SerializationTable serialization_table[];
48
static const ::google::protobuf::uint32 offsets[];
49
};
50
void AddDescriptors();
51
void InitDefaultsGraphDefImpl();
52
void InitDefaultsGraphDef();
53
void InitDefaultsNodeDef_AttrEntry_DoNotUseImpl();
54
void InitDefaultsNodeDef_AttrEntry_DoNotUse();
55
void InitDefaultsNodeDefImpl();
56
void InitDefaultsNodeDef();
57
inline void InitDefaults() {
58
InitDefaultsGraphDef();
59
InitDefaultsNodeDef_AttrEntry_DoNotUse();
60
InitDefaultsNodeDef();
61
}
62
} // namespace protobuf_graph_2eproto
63
namespace opencv_tensorflow {
64
class GraphDef;
65
class GraphDefDefaultTypeInternal;
66
extern GraphDefDefaultTypeInternal _GraphDef_default_instance_;
67
class NodeDef;
68
class NodeDefDefaultTypeInternal;
69
extern NodeDefDefaultTypeInternal _NodeDef_default_instance_;
70
class NodeDef_AttrEntry_DoNotUse;
71
class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal;
72
extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_;
73
} // namespace opencv_tensorflow
74
namespace opencv_tensorflow {
75
76
// ===================================================================
77
78
class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.GraphDef) */ {
79
public:
80
GraphDef();
81
virtual ~GraphDef();
82
83
GraphDef(const GraphDef& from);
84
85
inline GraphDef& operator=(const GraphDef& from) {
86
CopyFrom(from);
87
return *this;
88
}
89
#if LANG_CXX11
90
GraphDef(GraphDef&& from) noexcept
91
: GraphDef() {
92
*this = ::std::move(from);
93
}
94
95
inline GraphDef& operator=(GraphDef&& from) noexcept {
96
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97
if (this != &from) InternalSwap(&from);
98
} else {
99
CopyFrom(from);
100
}
101
return *this;
102
}
103
#endif
104
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
105
return GetArenaNoVirtual();
106
}
107
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
108
return MaybeArenaPtr();
109
}
110
static const ::google::protobuf::Descriptor* descriptor();
111
static const GraphDef& default_instance();
112
113
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
114
static inline const GraphDef* internal_default_instance() {
115
return reinterpret_cast<const GraphDef*>(
116
&_GraphDef_default_instance_);
117
}
118
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
119
0;
120
121
void UnsafeArenaSwap(GraphDef* other);
122
void Swap(GraphDef* other);
123
friend void swap(GraphDef& a, GraphDef& b) {
124
a.Swap(&b);
125
}
126
127
// implements Message ----------------------------------------------
128
129
inline GraphDef* New() const PROTOBUF_FINAL { return New(NULL); }
130
131
GraphDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
132
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
133
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
134
void CopyFrom(const GraphDef& from);
135
void MergeFrom(const GraphDef& from);
136
void Clear() PROTOBUF_FINAL;
137
bool IsInitialized() const PROTOBUF_FINAL;
138
139
size_t ByteSizeLong() const PROTOBUF_FINAL;
140
bool MergePartialFromCodedStream(
141
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
142
void SerializeWithCachedSizes(
143
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
144
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
145
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
146
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
147
private:
148
void SharedCtor();
149
void SharedDtor();
150
void SetCachedSize(int size) const PROTOBUF_FINAL;
151
void InternalSwap(GraphDef* other);
152
protected:
153
explicit GraphDef(::google::protobuf::Arena* arena);
154
private:
155
static void ArenaDtor(void* object);
156
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
157
private:
158
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
159
return _internal_metadata_.arena();
160
}
161
inline void* MaybeArenaPtr() const {
162
return _internal_metadata_.raw_arena_ptr();
163
}
164
public:
165
166
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
167
168
// nested types ----------------------------------------------------
169
170
// accessors -------------------------------------------------------
171
172
// repeated .opencv_tensorflow.NodeDef node = 1;
173
int node_size() const;
174
void clear_node();
175
static const int kNodeFieldNumber = 1;
176
const ::opencv_tensorflow::NodeDef& node(int index) const;
177
::opencv_tensorflow::NodeDef* mutable_node(int index);
178
::opencv_tensorflow::NodeDef* add_node();
179
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*
180
mutable_node();
181
const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&
182
node() const;
183
184
// .opencv_tensorflow.FunctionDefLibrary library = 2;
185
bool has_library() const;
186
void clear_library();
187
static const int kLibraryFieldNumber = 2;
188
private:
189
void _slow_mutable_library();
190
public:
191
const ::opencv_tensorflow::FunctionDefLibrary& library() const;
192
::opencv_tensorflow::FunctionDefLibrary* release_library();
193
::opencv_tensorflow::FunctionDefLibrary* mutable_library();
194
void set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library);
195
void unsafe_arena_set_allocated_library(
196
::opencv_tensorflow::FunctionDefLibrary* library);
197
::opencv_tensorflow::FunctionDefLibrary* unsafe_arena_release_library();
198
199
// .opencv_tensorflow.VersionDef versions = 4;
200
bool has_versions() const;
201
void clear_versions();
202
static const int kVersionsFieldNumber = 4;
203
private:
204
void _slow_mutable_versions();
205
public:
206
const ::opencv_tensorflow::VersionDef& versions() const;
207
::opencv_tensorflow::VersionDef* release_versions();
208
::opencv_tensorflow::VersionDef* mutable_versions();
209
void set_allocated_versions(::opencv_tensorflow::VersionDef* versions);
210
void unsafe_arena_set_allocated_versions(
211
::opencv_tensorflow::VersionDef* versions);
212
::opencv_tensorflow::VersionDef* unsafe_arena_release_versions();
213
214
// int32 version = 3 [deprecated = true];
215
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_version();
216
GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kVersionFieldNumber = 3;
217
GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 version() const;
218
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_version(::google::protobuf::int32 value);
219
220
// @@protoc_insertion_point(class_scope:opencv_tensorflow.GraphDef)
221
private:
222
223
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
224
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
225
typedef void InternalArenaConstructable_;
226
typedef void DestructorSkippable_;
227
::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef > node_;
228
::opencv_tensorflow::FunctionDefLibrary* library_;
229
::opencv_tensorflow::VersionDef* versions_;
230
::google::protobuf::int32 version_;
231
mutable int _cached_size_;
232
friend struct ::protobuf_graph_2eproto::TableStruct;
233
friend void ::protobuf_graph_2eproto::InitDefaultsGraphDefImpl();
234
};
235
// -------------------------------------------------------------------
236
237
class NodeDef_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,
238
::std::string, ::opencv_tensorflow::AttrValue,
239
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
240
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
241
0 > {
242
public:
243
typedef ::google::protobuf::internal::MapEntry<NodeDef_AttrEntry_DoNotUse,
244
::std::string, ::opencv_tensorflow::AttrValue,
245
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
246
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
247
0 > SuperType;
248
NodeDef_AttrEntry_DoNotUse();
249
NodeDef_AttrEntry_DoNotUse(::google::protobuf::Arena* arena);
250
void MergeFrom(const NodeDef_AttrEntry_DoNotUse& other);
251
static const NodeDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NodeDef_AttrEntry_DoNotUse*>(&_NodeDef_AttrEntry_DoNotUse_default_instance_); }
252
void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
253
::google::protobuf::Metadata GetMetadata() const;
254
};
255
256
// -------------------------------------------------------------------
257
258
class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.NodeDef) */ {
259
public:
260
NodeDef();
261
virtual ~NodeDef();
262
263
NodeDef(const NodeDef& from);
264
265
inline NodeDef& operator=(const NodeDef& from) {
266
CopyFrom(from);
267
return *this;
268
}
269
#if LANG_CXX11
270
NodeDef(NodeDef&& from) noexcept
271
: NodeDef() {
272
*this = ::std::move(from);
273
}
274
275
inline NodeDef& operator=(NodeDef&& from) noexcept {
276
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
277
if (this != &from) InternalSwap(&from);
278
} else {
279
CopyFrom(from);
280
}
281
return *this;
282
}
283
#endif
284
inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
285
return GetArenaNoVirtual();
286
}
287
inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
288
return MaybeArenaPtr();
289
}
290
static const ::google::protobuf::Descriptor* descriptor();
291
static const NodeDef& default_instance();
292
293
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
294
static inline const NodeDef* internal_default_instance() {
295
return reinterpret_cast<const NodeDef*>(
296
&_NodeDef_default_instance_);
297
}
298
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
299
2;
300
301
void UnsafeArenaSwap(NodeDef* other);
302
void Swap(NodeDef* other);
303
friend void swap(NodeDef& a, NodeDef& b) {
304
a.Swap(&b);
305
}
306
307
// implements Message ----------------------------------------------
308
309
inline NodeDef* New() const PROTOBUF_FINAL { return New(NULL); }
310
311
NodeDef* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
312
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
313
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
314
void CopyFrom(const NodeDef& from);
315
void MergeFrom(const NodeDef& from);
316
void Clear() PROTOBUF_FINAL;
317
bool IsInitialized() const PROTOBUF_FINAL;
318
319
size_t ByteSizeLong() const PROTOBUF_FINAL;
320
bool MergePartialFromCodedStream(
321
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
322
void SerializeWithCachedSizes(
323
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
324
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
325
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
326
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
327
private:
328
void SharedCtor();
329
void SharedDtor();
330
void SetCachedSize(int size) const PROTOBUF_FINAL;
331
void InternalSwap(NodeDef* other);
332
protected:
333
explicit NodeDef(::google::protobuf::Arena* arena);
334
private:
335
static void ArenaDtor(void* object);
336
inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
337
private:
338
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
339
return _internal_metadata_.arena();
340
}
341
inline void* MaybeArenaPtr() const {
342
return _internal_metadata_.raw_arena_ptr();
343
}
344
public:
345
346
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
347
348
// nested types ----------------------------------------------------
349
350
351
// accessors -------------------------------------------------------
352
353
// repeated string input = 3;
354
int input_size() const;
355
void clear_input();
356
static const int kInputFieldNumber = 3;
357
const ::std::string& input(int index) const;
358
::std::string* mutable_input(int index);
359
void set_input(int index, const ::std::string& value);
360
#if LANG_CXX11
361
void set_input(int index, ::std::string&& value);
362
#endif
363
void set_input(int index, const char* value);
364
void set_input(int index, const char* value, size_t size);
365
::std::string* add_input();
366
void add_input(const ::std::string& value);
367
#if LANG_CXX11
368
void add_input(::std::string&& value);
369
#endif
370
void add_input(const char* value);
371
void add_input(const char* value, size_t size);
372
const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const;
373
::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input();
374
375
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
376
int attr_size() const;
377
void clear_attr();
378
static const int kAttrFieldNumber = 5;
379
const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
380
attr() const;
381
::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
382
mutable_attr();
383
384
// string name = 1;
385
void clear_name();
386
static const int kNameFieldNumber = 1;
387
const ::std::string& name() const;
388
void set_name(const ::std::string& value);
389
#if LANG_CXX11
390
void set_name(::std::string&& value);
391
#endif
392
void set_name(const char* value);
393
void set_name(const char* value, size_t size);
394
::std::string* mutable_name();
395
::std::string* release_name();
396
void set_allocated_name(::std::string* name);
397
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
398
" string fields are deprecated and will be removed in a"
399
" future release.")
400
::std::string* unsafe_arena_release_name();
401
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
402
" string fields are deprecated and will be removed in a"
403
" future release.")
404
void unsafe_arena_set_allocated_name(
405
::std::string* name);
406
407
// string op = 2;
408
void clear_op();
409
static const int kOpFieldNumber = 2;
410
const ::std::string& op() const;
411
void set_op(const ::std::string& value);
412
#if LANG_CXX11
413
void set_op(::std::string&& value);
414
#endif
415
void set_op(const char* value);
416
void set_op(const char* value, size_t size);
417
::std::string* mutable_op();
418
::std::string* release_op();
419
void set_allocated_op(::std::string* op);
420
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
421
" string fields are deprecated and will be removed in a"
422
" future release.")
423
::std::string* unsafe_arena_release_op();
424
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
425
" string fields are deprecated and will be removed in a"
426
" future release.")
427
void unsafe_arena_set_allocated_op(
428
::std::string* op);
429
430
// string device = 4;
431
void clear_device();
432
static const int kDeviceFieldNumber = 4;
433
const ::std::string& device() const;
434
void set_device(const ::std::string& value);
435
#if LANG_CXX11
436
void set_device(::std::string&& value);
437
#endif
438
void set_device(const char* value);
439
void set_device(const char* value, size_t size);
440
::std::string* mutable_device();
441
::std::string* release_device();
442
void set_allocated_device(::std::string* device);
443
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
444
" string fields are deprecated and will be removed in a"
445
" future release.")
446
::std::string* unsafe_arena_release_device();
447
PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
448
" string fields are deprecated and will be removed in a"
449
" future release.")
450
void unsafe_arena_set_allocated_device(
451
::std::string* device);
452
453
// @@protoc_insertion_point(class_scope:opencv_tensorflow.NodeDef)
454
private:
455
456
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
457
template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
458
typedef void InternalArenaConstructable_;
459
typedef void DestructorSkippable_;
460
::google::protobuf::RepeatedPtrField< ::std::string> input_;
461
::google::protobuf::internal::MapField<
462
NodeDef_AttrEntry_DoNotUse,
463
::std::string, ::opencv_tensorflow::AttrValue,
464
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
465
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
466
0 > attr_;
467
::google::protobuf::internal::ArenaStringPtr name_;
468
::google::protobuf::internal::ArenaStringPtr op_;
469
::google::protobuf::internal::ArenaStringPtr device_;
470
mutable int _cached_size_;
471
friend struct ::protobuf_graph_2eproto::TableStruct;
472
friend void ::protobuf_graph_2eproto::InitDefaultsNodeDefImpl();
473
};
474
// ===================================================================
475
476
477
// ===================================================================
478
479
#ifdef __GNUC__
480
#pragma GCC diagnostic push
481
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
482
#endif // __GNUC__
483
// GraphDef
484
485
// repeated .opencv_tensorflow.NodeDef node = 1;
486
inline int GraphDef::node_size() const {
487
return node_.size();
488
}
489
inline void GraphDef::clear_node() {
490
node_.Clear();
491
}
492
inline const ::opencv_tensorflow::NodeDef& GraphDef::node(int index) const {
493
// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.node)
494
return node_.Get(index);
495
}
496
inline ::opencv_tensorflow::NodeDef* GraphDef::mutable_node(int index) {
497
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.node)
498
return node_.Mutable(index);
499
}
500
inline ::opencv_tensorflow::NodeDef* GraphDef::add_node() {
501
// @@protoc_insertion_point(field_add:opencv_tensorflow.GraphDef.node)
502
return node_.Add();
503
}
504
inline ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >*
505
GraphDef::mutable_node() {
506
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.GraphDef.node)
507
return &node_;
508
}
509
inline const ::google::protobuf::RepeatedPtrField< ::opencv_tensorflow::NodeDef >&
510
GraphDef::node() const {
511
// @@protoc_insertion_point(field_list:opencv_tensorflow.GraphDef.node)
512
return node_;
513
}
514
515
// .opencv_tensorflow.VersionDef versions = 4;
516
inline bool GraphDef::has_versions() const {
517
return this != internal_default_instance() && versions_ != NULL;
518
}
519
inline const ::opencv_tensorflow::VersionDef& GraphDef::versions() const {
520
const ::opencv_tensorflow::VersionDef* p = versions_;
521
// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.versions)
522
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::VersionDef*>(
523
&::opencv_tensorflow::_VersionDef_default_instance_);
524
}
525
inline ::opencv_tensorflow::VersionDef* GraphDef::release_versions() {
526
// @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.versions)
527
528
::opencv_tensorflow::VersionDef* temp = versions_;
529
if (GetArenaNoVirtual() != NULL) {
530
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
531
}
532
versions_ = NULL;
533
return temp;
534
}
535
inline ::opencv_tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() {
536
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GraphDef.versions)
537
538
::opencv_tensorflow::VersionDef* temp = versions_;
539
versions_ = NULL;
540
return temp;
541
}
542
inline ::opencv_tensorflow::VersionDef* GraphDef::mutable_versions() {
543
544
if (versions_ == NULL) {
545
_slow_mutable_versions();
546
}
547
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.versions)
548
return versions_;
549
}
550
inline void GraphDef::set_allocated_versions(::opencv_tensorflow::VersionDef* versions) {
551
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
552
if (message_arena == NULL) {
553
delete reinterpret_cast< ::google::protobuf::MessageLite*>(versions_);
554
}
555
if (versions) {
556
::google::protobuf::Arena* submessage_arena =
557
reinterpret_cast< ::google::protobuf::MessageLite*>(versions)->GetArena();
558
if (message_arena != submessage_arena) {
559
versions = ::google::protobuf::internal::GetOwnedMessage(
560
message_arena, versions, submessage_arena);
561
}
562
563
} else {
564
565
}
566
versions_ = versions;
567
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.versions)
568
}
569
570
// int32 version = 3 [deprecated = true];
571
inline void GraphDef::clear_version() {
572
version_ = 0;
573
}
574
inline ::google::protobuf::int32 GraphDef::version() const {
575
// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.version)
576
return version_;
577
}
578
inline void GraphDef::set_version(::google::protobuf::int32 value) {
579
580
version_ = value;
581
// @@protoc_insertion_point(field_set:opencv_tensorflow.GraphDef.version)
582
}
583
584
// .opencv_tensorflow.FunctionDefLibrary library = 2;
585
inline bool GraphDef::has_library() const {
586
return this != internal_default_instance() && library_ != NULL;
587
}
588
inline const ::opencv_tensorflow::FunctionDefLibrary& GraphDef::library() const {
589
const ::opencv_tensorflow::FunctionDefLibrary* p = library_;
590
// @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.library)
591
return p != NULL ? *p : *reinterpret_cast<const ::opencv_tensorflow::FunctionDefLibrary*>(
592
&::opencv_tensorflow::_FunctionDefLibrary_default_instance_);
593
}
594
inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::release_library() {
595
// @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.library)
596
597
::opencv_tensorflow::FunctionDefLibrary* temp = library_;
598
if (GetArenaNoVirtual() != NULL) {
599
temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
600
}
601
library_ = NULL;
602
return temp;
603
}
604
inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() {
605
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.GraphDef.library)
606
607
::opencv_tensorflow::FunctionDefLibrary* temp = library_;
608
library_ = NULL;
609
return temp;
610
}
611
inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::mutable_library() {
612
613
if (library_ == NULL) {
614
_slow_mutable_library();
615
}
616
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.library)
617
return library_;
618
}
619
inline void GraphDef::set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library) {
620
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
621
if (message_arena == NULL) {
622
delete reinterpret_cast< ::google::protobuf::MessageLite*>(library_);
623
}
624
if (library) {
625
::google::protobuf::Arena* submessage_arena =
626
reinterpret_cast< ::google::protobuf::MessageLite*>(library)->GetArena();
627
if (message_arena != submessage_arena) {
628
library = ::google::protobuf::internal::GetOwnedMessage(
629
message_arena, library, submessage_arena);
630
}
631
632
} else {
633
634
}
635
library_ = library;
636
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.library)
637
}
638
639
// -------------------------------------------------------------------
640
641
// -------------------------------------------------------------------
642
643
// NodeDef
644
645
// string name = 1;
646
inline void NodeDef::clear_name() {
647
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
648
}
649
inline const ::std::string& NodeDef::name() const {
650
// @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.name)
651
return name_.Get();
652
}
653
inline void NodeDef::set_name(const ::std::string& value) {
654
655
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
656
// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.name)
657
}
658
#if LANG_CXX11
659
inline void NodeDef::set_name(::std::string&& value) {
660
661
name_.Set(
662
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
663
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.name)
664
}
665
#endif
666
inline void NodeDef::set_name(const char* value) {
667
GOOGLE_DCHECK(value != NULL);
668
669
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
670
GetArenaNoVirtual());
671
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.name)
672
}
673
inline void NodeDef::set_name(const char* value,
674
size_t size) {
675
676
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
677
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
678
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.name)
679
}
680
inline ::std::string* NodeDef::mutable_name() {
681
682
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.name)
683
return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
684
}
685
inline ::std::string* NodeDef::release_name() {
686
// @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.name)
687
688
return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
689
}
690
inline void NodeDef::set_allocated_name(::std::string* name) {
691
if (name != NULL) {
692
693
} else {
694
695
}
696
name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
697
GetArenaNoVirtual());
698
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.name)
699
}
700
inline ::std::string* NodeDef::unsafe_arena_release_name() {
701
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.name)
702
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
703
704
return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
705
GetArenaNoVirtual());
706
}
707
inline void NodeDef::unsafe_arena_set_allocated_name(
708
::std::string* name) {
709
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
710
if (name != NULL) {
711
712
} else {
713
714
}
715
name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
716
name, GetArenaNoVirtual());
717
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.name)
718
}
719
720
// string op = 2;
721
inline void NodeDef::clear_op() {
722
op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
723
}
724
inline const ::std::string& NodeDef::op() const {
725
// @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.op)
726
return op_.Get();
727
}
728
inline void NodeDef::set_op(const ::std::string& value) {
729
730
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
731
// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.op)
732
}
733
#if LANG_CXX11
734
inline void NodeDef::set_op(::std::string&& value) {
735
736
op_.Set(
737
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
738
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.op)
739
}
740
#endif
741
inline void NodeDef::set_op(const char* value) {
742
GOOGLE_DCHECK(value != NULL);
743
744
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
745
GetArenaNoVirtual());
746
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.op)
747
}
748
inline void NodeDef::set_op(const char* value,
749
size_t size) {
750
751
op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
752
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
753
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.op)
754
}
755
inline ::std::string* NodeDef::mutable_op() {
756
757
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.op)
758
return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
759
}
760
inline ::std::string* NodeDef::release_op() {
761
// @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.op)
762
763
return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
764
}
765
inline void NodeDef::set_allocated_op(::std::string* op) {
766
if (op != NULL) {
767
768
} else {
769
770
}
771
op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op,
772
GetArenaNoVirtual());
773
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.op)
774
}
775
inline ::std::string* NodeDef::unsafe_arena_release_op() {
776
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.op)
777
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
778
779
return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
780
GetArenaNoVirtual());
781
}
782
inline void NodeDef::unsafe_arena_set_allocated_op(
783
::std::string* op) {
784
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
785
if (op != NULL) {
786
787
} else {
788
789
}
790
op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
791
op, GetArenaNoVirtual());
792
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.op)
793
}
794
795
// repeated string input = 3;
796
inline int NodeDef::input_size() const {
797
return input_.size();
798
}
799
inline void NodeDef::clear_input() {
800
input_.Clear();
801
}
802
inline const ::std::string& NodeDef::input(int index) const {
803
// @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.input)
804
return input_.Get(index);
805
}
806
inline ::std::string* NodeDef::mutable_input(int index) {
807
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.input)
808
return input_.Mutable(index);
809
}
810
inline void NodeDef::set_input(int index, const ::std::string& value) {
811
// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input)
812
input_.Mutable(index)->assign(value);
813
}
814
#if LANG_CXX11
815
inline void NodeDef::set_input(int index, ::std::string&& value) {
816
// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input)
817
input_.Mutable(index)->assign(std::move(value));
818
}
819
#endif
820
inline void NodeDef::set_input(int index, const char* value) {
821
GOOGLE_DCHECK(value != NULL);
822
input_.Mutable(index)->assign(value);
823
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.input)
824
}
825
inline void NodeDef::set_input(int index, const char* value, size_t size) {
826
input_.Mutable(index)->assign(
827
reinterpret_cast<const char*>(value), size);
828
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.input)
829
}
830
inline ::std::string* NodeDef::add_input() {
831
// @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.NodeDef.input)
832
return input_.Add();
833
}
834
inline void NodeDef::add_input(const ::std::string& value) {
835
input_.Add()->assign(value);
836
// @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)
837
}
838
#if LANG_CXX11
839
inline void NodeDef::add_input(::std::string&& value) {
840
input_.Add(std::move(value));
841
// @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input)
842
}
843
#endif
844
inline void NodeDef::add_input(const char* value) {
845
GOOGLE_DCHECK(value != NULL);
846
input_.Add()->assign(value);
847
// @@protoc_insertion_point(field_add_char:opencv_tensorflow.NodeDef.input)
848
}
849
inline void NodeDef::add_input(const char* value, size_t size) {
850
input_.Add()->assign(reinterpret_cast<const char*>(value), size);
851
// @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.NodeDef.input)
852
}
853
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
854
NodeDef::input() const {
855
// @@protoc_insertion_point(field_list:opencv_tensorflow.NodeDef.input)
856
return input_;
857
}
858
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
859
NodeDef::mutable_input() {
860
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.NodeDef.input)
861
return &input_;
862
}
863
864
// string device = 4;
865
inline void NodeDef::clear_device() {
866
device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
867
}
868
inline const ::std::string& NodeDef::device() const {
869
// @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.device)
870
return device_.Get();
871
}
872
inline void NodeDef::set_device(const ::std::string& value) {
873
874
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
875
// @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.device)
876
}
877
#if LANG_CXX11
878
inline void NodeDef::set_device(::std::string&& value) {
879
880
device_.Set(
881
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
882
// @@protoc_insertion_point(field_set_rvalue:opencv_tensorflow.NodeDef.device)
883
}
884
#endif
885
inline void NodeDef::set_device(const char* value) {
886
GOOGLE_DCHECK(value != NULL);
887
888
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
889
GetArenaNoVirtual());
890
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.device)
891
}
892
inline void NodeDef::set_device(const char* value,
893
size_t size) {
894
895
device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
896
reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
897
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.device)
898
}
899
inline ::std::string* NodeDef::mutable_device() {
900
901
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.device)
902
return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
903
}
904
inline ::std::string* NodeDef::release_device() {
905
// @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.device)
906
907
return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
908
}
909
inline void NodeDef::set_allocated_device(::std::string* device) {
910
if (device != NULL) {
911
912
} else {
913
914
}
915
device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device,
916
GetArenaNoVirtual());
917
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.device)
918
}
919
inline ::std::string* NodeDef::unsafe_arena_release_device() {
920
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.NodeDef.device)
921
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
922
923
return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
924
GetArenaNoVirtual());
925
}
926
inline void NodeDef::unsafe_arena_set_allocated_device(
927
::std::string* device) {
928
GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
929
if (device != NULL) {
930
931
} else {
932
933
}
934
device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
935
device, GetArenaNoVirtual());
936
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.NodeDef.device)
937
}
938
939
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
940
inline int NodeDef::attr_size() const {
941
return attr_.size();
942
}
943
inline const ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >&
944
NodeDef::attr() const {
945
// @@protoc_insertion_point(field_map:opencv_tensorflow.NodeDef.attr)
946
return attr_.GetMap();
947
}
948
inline ::google::protobuf::Map< ::std::string, ::opencv_tensorflow::AttrValue >*
949
NodeDef::mutable_attr() {
950
// @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.NodeDef.attr)
951
return attr_.MutableMap();
952
}
953
954
#ifdef __GNUC__
955
#pragma GCC diagnostic pop
956
#endif // __GNUC__
957
// -------------------------------------------------------------------
958
959
// -------------------------------------------------------------------
960
961
962
// @@protoc_insertion_point(namespace_scope)
963
964
} // namespace opencv_tensorflow
965
966
// @@protoc_insertion_point(global_scope)
967
968
#endif // PROTOBUF_graph_2eproto__INCLUDED
969
970