1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
---|---|
2 | // source: graph.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_graph_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_graph_2eproto |
6 | |
7 | #include <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3019000 |
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 3019001 < 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/port_undef.inc> |
23 | #include <google/protobuf/io/coded_stream.h> |
24 | #include <google/protobuf/arena.h> |
25 | #include <google/protobuf/arenastring.h> |
26 | #include <google/protobuf/generated_message_table_driven.h> |
27 | #include <google/protobuf/generated_message_util.h> |
28 | #include <google/protobuf/metadata_lite.h> |
29 | #include <google/protobuf/generated_message_reflection.h> |
30 | #include <google/protobuf/message.h> |
31 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
32 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
33 | #include <google/protobuf/map.h> // IWYU pragma: export |
34 | #include <google/protobuf/map_entry.h> |
35 | #include <google/protobuf/map_field_inl.h> |
36 | #include <google/protobuf/unknown_field_set.h> |
37 | #include "attr_value.pb.h" |
38 | #include "function.pb.h" |
39 | #include "versions.pb.h" |
40 | // @@protoc_insertion_point(includes) |
41 | #include <google/protobuf/port_def.inc> |
42 | #define PROTOBUF_INTERNAL_EXPORT_graph_2eproto |
43 | PROTOBUF_NAMESPACE_OPEN |
44 | namespace internal { |
45 | class AnyMetadata; |
46 | } // namespace internal |
47 | PROTOBUF_NAMESPACE_CLOSE |
48 | |
49 | // Internal implementation detail -- do not use these members. |
50 | struct TableStruct_graph_2eproto { |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
52 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] |
54 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
55 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] |
56 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
57 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
58 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
59 | static const uint32_t offsets[]; |
60 | }; |
61 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_graph_2eproto; |
62 | namespace opencv_tensorflow { |
63 | class GraphDef; |
64 | struct GraphDefDefaultTypeInternal; |
65 | extern GraphDefDefaultTypeInternal _GraphDef_default_instance_; |
66 | class NodeDef; |
67 | struct NodeDefDefaultTypeInternal; |
68 | extern NodeDefDefaultTypeInternal _NodeDef_default_instance_; |
69 | class NodeDef_AttrEntry_DoNotUse; |
70 | struct NodeDef_AttrEntry_DoNotUseDefaultTypeInternal; |
71 | extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_; |
72 | } // namespace opencv_tensorflow |
73 | PROTOBUF_NAMESPACE_OPEN |
74 | template<> ::opencv_tensorflow::GraphDef* Arena::CreateMaybeMessage<::opencv_tensorflow::GraphDef>(Arena*); |
75 | template<> ::opencv_tensorflow::NodeDef* Arena::CreateMaybeMessage<::opencv_tensorflow::NodeDef>(Arena*); |
76 | template<> ::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse>(Arena*); |
77 | PROTOBUF_NAMESPACE_CLOSE |
78 | namespace opencv_tensorflow { |
79 | |
80 | // =================================================================== |
81 | |
82 | class GraphDef final : |
83 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.GraphDef) */ { |
84 | public: |
85 | inline GraphDef() : GraphDef(nullptr) {} |
86 | ~GraphDef() override; |
87 | explicit constexpr GraphDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
88 | |
89 | GraphDef(const GraphDef& from); |
90 | GraphDef(GraphDef&& from) noexcept |
91 | : GraphDef() { |
92 | *this = ::std::move(from); |
93 | } |
94 | |
95 | inline GraphDef& operator=(const GraphDef& from) { |
96 | CopyFrom(from); |
97 | return *this; |
98 | } |
99 | inline GraphDef& operator=(GraphDef&& from) noexcept { |
100 | if (this == &from) return *this; |
101 | if (GetOwningArena() == from.GetOwningArena() |
102 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
103 | && GetOwningArena() != nullptr |
104 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
105 | ) { |
106 | InternalSwap(other: &from); |
107 | } else { |
108 | CopyFrom(from); |
109 | } |
110 | return *this; |
111 | } |
112 | |
113 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
114 | return GetDescriptor(); |
115 | } |
116 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
117 | return default_instance().GetMetadata().descriptor; |
118 | } |
119 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
120 | return default_instance().GetMetadata().reflection; |
121 | } |
122 | static const GraphDef& default_instance() { |
123 | return *internal_default_instance(); |
124 | } |
125 | static inline const GraphDef* internal_default_instance() { |
126 | return reinterpret_cast<const GraphDef*>( |
127 | &_GraphDef_default_instance_); |
128 | } |
129 | static constexpr int kIndexInFileMessages = |
130 | 0; |
131 | |
132 | friend void swap(GraphDef& a, GraphDef& b) { |
133 | a.Swap(other: &b); |
134 | } |
135 | inline void Swap(GraphDef* other) { |
136 | if (other == this) return; |
137 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
138 | if (GetOwningArena() != nullptr && |
139 | GetOwningArena() == other->GetOwningArena()) { |
140 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
141 | if (GetOwningArena() == other->GetOwningArena()) { |
142 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
143 | InternalSwap(other); |
144 | } else { |
145 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other); |
146 | } |
147 | } |
148 | void UnsafeArenaSwap(GraphDef* other) { |
149 | if (other == this) return; |
150 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
151 | InternalSwap(other); |
152 | } |
153 | |
154 | // implements Message ---------------------------------------------- |
155 | |
156 | GraphDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
157 | return CreateMaybeMessage<GraphDef>(arena); |
158 | } |
159 | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
160 | void CopyFrom(const GraphDef& from); |
161 | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
162 | void MergeFrom(const GraphDef& from); |
163 | private: |
164 | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); |
165 | public: |
166 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
167 | bool IsInitialized() const final; |
168 | |
169 | size_t ByteSizeLong() const final; |
170 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
171 | uint8_t* _InternalSerialize( |
172 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
173 | int GetCachedSize() const final { return _cached_size_.Get(); } |
174 | |
175 | private: |
176 | void SharedCtor(); |
177 | void SharedDtor(); |
178 | void SetCachedSize(int size) const final; |
179 | void InternalSwap(GraphDef* other); |
180 | |
181 | private: |
182 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
183 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
184 | return "opencv_tensorflow.GraphDef"; |
185 | } |
186 | protected: |
187 | explicit GraphDef(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
188 | bool is_message_owned = false); |
189 | private: |
190 | static void ArenaDtor(void* object); |
191 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
192 | public: |
193 | |
194 | static const ClassData _class_data_; |
195 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
196 | |
197 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
198 | |
199 | // nested types ---------------------------------------------------- |
200 | |
201 | // accessors ------------------------------------------------------- |
202 | |
203 | enum : int { |
204 | kNodeFieldNumber = 1, |
205 | kLibraryFieldNumber = 2, |
206 | kVersionsFieldNumber = 4, |
207 | kVersionFieldNumber = 3, |
208 | }; |
209 | // repeated .opencv_tensorflow.NodeDef node = 1; |
210 | int node_size() const; |
211 | private: |
212 | int _internal_node_size() const; |
213 | public: |
214 | void clear_node(); |
215 | ::opencv_tensorflow::NodeDef* mutable_node(int index); |
216 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef >* |
217 | mutable_node(); |
218 | private: |
219 | const ::opencv_tensorflow::NodeDef& _internal_node(int index) const; |
220 | ::opencv_tensorflow::NodeDef* _internal_add_node(); |
221 | public: |
222 | const ::opencv_tensorflow::NodeDef& node(int index) const; |
223 | ::opencv_tensorflow::NodeDef* add_node(); |
224 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef >& |
225 | node() const; |
226 | |
227 | // .opencv_tensorflow.FunctionDefLibrary library = 2; |
228 | bool has_library() const; |
229 | private: |
230 | bool _internal_has_library() const; |
231 | public: |
232 | void clear_library(); |
233 | const ::opencv_tensorflow::FunctionDefLibrary& library() const; |
234 | PROTOBUF_NODISCARD ::opencv_tensorflow::FunctionDefLibrary* release_library(); |
235 | ::opencv_tensorflow::FunctionDefLibrary* mutable_library(); |
236 | void set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library); |
237 | private: |
238 | const ::opencv_tensorflow::FunctionDefLibrary& _internal_library() const; |
239 | ::opencv_tensorflow::FunctionDefLibrary* _internal_mutable_library(); |
240 | public: |
241 | void unsafe_arena_set_allocated_library( |
242 | ::opencv_tensorflow::FunctionDefLibrary* library); |
243 | ::opencv_tensorflow::FunctionDefLibrary* unsafe_arena_release_library(); |
244 | |
245 | // .opencv_tensorflow.VersionDef versions = 4; |
246 | bool has_versions() const; |
247 | private: |
248 | bool _internal_has_versions() const; |
249 | public: |
250 | void clear_versions(); |
251 | const ::opencv_tensorflow::VersionDef& versions() const; |
252 | PROTOBUF_NODISCARD ::opencv_tensorflow::VersionDef* release_versions(); |
253 | ::opencv_tensorflow::VersionDef* mutable_versions(); |
254 | void set_allocated_versions(::opencv_tensorflow::VersionDef* versions); |
255 | private: |
256 | const ::opencv_tensorflow::VersionDef& _internal_versions() const; |
257 | ::opencv_tensorflow::VersionDef* _internal_mutable_versions(); |
258 | public: |
259 | void unsafe_arena_set_allocated_versions( |
260 | ::opencv_tensorflow::VersionDef* versions); |
261 | ::opencv_tensorflow::VersionDef* unsafe_arena_release_versions(); |
262 | |
263 | // int32 version = 3 [deprecated = true]; |
264 | PROTOBUF_DEPRECATED void clear_version(); |
265 | PROTOBUF_DEPRECATED int32_t version() const; |
266 | PROTOBUF_DEPRECATED void set_version(int32_t value); |
267 | private: |
268 | int32_t _internal_version() const; |
269 | void _internal_set_version(int32_t value); |
270 | public: |
271 | |
272 | // @@protoc_insertion_point(class_scope:opencv_tensorflow.GraphDef) |
273 | private: |
274 | class _Internal; |
275 | |
276 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
277 | typedef void InternalArenaConstructable_; |
278 | typedef void DestructorSkippable_; |
279 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef > node_; |
280 | ::opencv_tensorflow::FunctionDefLibrary* library_; |
281 | ::opencv_tensorflow::VersionDef* versions_; |
282 | int32_t version_; |
283 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
284 | friend struct ::TableStruct_graph_2eproto; |
285 | }; |
286 | // ------------------------------------------------------------------- |
287 | |
288 | class NodeDef_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NodeDef_AttrEntry_DoNotUse, |
289 | std::string, ::opencv_tensorflow::AttrValue, |
290 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
291 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> { |
292 | public: |
293 | typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NodeDef_AttrEntry_DoNotUse, |
294 | std::string, ::opencv_tensorflow::AttrValue, |
295 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
296 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType; |
297 | NodeDef_AttrEntry_DoNotUse(); |
298 | explicit constexpr NodeDef_AttrEntry_DoNotUse( |
299 | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
300 | explicit NodeDef_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
301 | void MergeFrom(const NodeDef_AttrEntry_DoNotUse& other); |
302 | static const NodeDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NodeDef_AttrEntry_DoNotUse*>(&_NodeDef_AttrEntry_DoNotUse_default_instance_); } |
303 | static bool ValidateKey(std::string* s) { |
304 | return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(data: s->data(), size: static_cast<int>(s->size()), op: ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, field_name: "opencv_tensorflow.NodeDef.AttrEntry.key"); |
305 | } |
306 | static bool ValidateValue(void*) { return true; } |
307 | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
308 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
309 | }; |
310 | |
311 | // ------------------------------------------------------------------- |
312 | |
313 | class NodeDef final : |
314 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.NodeDef) */ { |
315 | public: |
316 | inline NodeDef() : NodeDef(nullptr) {} |
317 | ~NodeDef() override; |
318 | explicit constexpr NodeDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
319 | |
320 | NodeDef(const NodeDef& from); |
321 | NodeDef(NodeDef&& from) noexcept |
322 | : NodeDef() { |
323 | *this = ::std::move(from); |
324 | } |
325 | |
326 | inline NodeDef& operator=(const NodeDef& from) { |
327 | CopyFrom(from); |
328 | return *this; |
329 | } |
330 | inline NodeDef& operator=(NodeDef&& from) noexcept { |
331 | if (this == &from) return *this; |
332 | if (GetOwningArena() == from.GetOwningArena() |
333 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
334 | && GetOwningArena() != nullptr |
335 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
336 | ) { |
337 | InternalSwap(other: &from); |
338 | } else { |
339 | CopyFrom(from); |
340 | } |
341 | return *this; |
342 | } |
343 | |
344 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
345 | return GetDescriptor(); |
346 | } |
347 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
348 | return default_instance().GetMetadata().descriptor; |
349 | } |
350 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
351 | return default_instance().GetMetadata().reflection; |
352 | } |
353 | static const NodeDef& default_instance() { |
354 | return *internal_default_instance(); |
355 | } |
356 | static inline const NodeDef* internal_default_instance() { |
357 | return reinterpret_cast<const NodeDef*>( |
358 | &_NodeDef_default_instance_); |
359 | } |
360 | static constexpr int kIndexInFileMessages = |
361 | 2; |
362 | |
363 | friend void swap(NodeDef& a, NodeDef& b) { |
364 | a.Swap(other: &b); |
365 | } |
366 | inline void Swap(NodeDef* other) { |
367 | if (other == this) return; |
368 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
369 | if (GetOwningArena() != nullptr && |
370 | GetOwningArena() == other->GetOwningArena()) { |
371 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
372 | if (GetOwningArena() == other->GetOwningArena()) { |
373 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
374 | InternalSwap(other); |
375 | } else { |
376 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other); |
377 | } |
378 | } |
379 | void UnsafeArenaSwap(NodeDef* other) { |
380 | if (other == this) return; |
381 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
382 | InternalSwap(other); |
383 | } |
384 | |
385 | // implements Message ---------------------------------------------- |
386 | |
387 | NodeDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
388 | return CreateMaybeMessage<NodeDef>(arena); |
389 | } |
390 | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
391 | void CopyFrom(const NodeDef& from); |
392 | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
393 | void MergeFrom(const NodeDef& from); |
394 | private: |
395 | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); |
396 | public: |
397 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
398 | bool IsInitialized() const final; |
399 | |
400 | size_t ByteSizeLong() const final; |
401 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
402 | uint8_t* _InternalSerialize( |
403 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
404 | int GetCachedSize() const final { return _cached_size_.Get(); } |
405 | |
406 | private: |
407 | void SharedCtor(); |
408 | void SharedDtor(); |
409 | void SetCachedSize(int size) const final; |
410 | void InternalSwap(NodeDef* other); |
411 | |
412 | private: |
413 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
414 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
415 | return "opencv_tensorflow.NodeDef"; |
416 | } |
417 | protected: |
418 | explicit NodeDef(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
419 | bool is_message_owned = false); |
420 | private: |
421 | static void ArenaDtor(void* object); |
422 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
423 | public: |
424 | |
425 | static const ClassData _class_data_; |
426 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
427 | |
428 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
429 | |
430 | // nested types ---------------------------------------------------- |
431 | |
432 | |
433 | // accessors ------------------------------------------------------- |
434 | |
435 | enum : int { |
436 | kInputFieldNumber = 3, |
437 | kAttrFieldNumber = 5, |
438 | kNameFieldNumber = 1, |
439 | kOpFieldNumber = 2, |
440 | kDeviceFieldNumber = 4, |
441 | }; |
442 | // repeated string input = 3; |
443 | int input_size() const; |
444 | private: |
445 | int _internal_input_size() const; |
446 | public: |
447 | void clear_input(); |
448 | const std::string& input(int index) const; |
449 | std::string* mutable_input(int index); |
450 | void set_input(int index, const std::string& value); |
451 | void set_input(int index, std::string&& value); |
452 | void set_input(int index, const char* value); |
453 | void set_input(int index, const char* value, size_t size); |
454 | std::string* add_input(); |
455 | void add_input(const std::string& value); |
456 | void add_input(std::string&& value); |
457 | void add_input(const char* value); |
458 | void add_input(const char* value, size_t size); |
459 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input() const; |
460 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input(); |
461 | private: |
462 | const std::string& _internal_input(int index) const; |
463 | std::string* _internal_add_input(); |
464 | public: |
465 | |
466 | // map<string, .opencv_tensorflow.AttrValue> attr = 5; |
467 | int attr_size() const; |
468 | private: |
469 | int _internal_attr_size() const; |
470 | public: |
471 | void clear_attr(); |
472 | private: |
473 | const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >& |
474 | _internal_attr() const; |
475 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >* |
476 | _internal_mutable_attr(); |
477 | public: |
478 | const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >& |
479 | attr() const; |
480 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >* |
481 | mutable_attr(); |
482 | |
483 | // string name = 1; |
484 | void clear_name(); |
485 | const std::string& name() const; |
486 | template <typename ArgT0 = const std::string&, typename... ArgT> |
487 | void set_name(ArgT0&& arg0, ArgT... args); |
488 | std::string* mutable_name(); |
489 | PROTOBUF_NODISCARD std::string* release_name(); |
490 | void set_allocated_name(std::string* name); |
491 | private: |
492 | const std::string& _internal_name() const; |
493 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); |
494 | std::string* _internal_mutable_name(); |
495 | public: |
496 | |
497 | // string op = 2; |
498 | void clear_op(); |
499 | const std::string& op() const; |
500 | template <typename ArgT0 = const std::string&, typename... ArgT> |
501 | void set_op(ArgT0&& arg0, ArgT... args); |
502 | std::string* mutable_op(); |
503 | PROTOBUF_NODISCARD std::string* release_op(); |
504 | void set_allocated_op(std::string* op); |
505 | private: |
506 | const std::string& _internal_op() const; |
507 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_op(const std::string& value); |
508 | std::string* _internal_mutable_op(); |
509 | public: |
510 | |
511 | // string device = 4; |
512 | void clear_device(); |
513 | const std::string& device() const; |
514 | template <typename ArgT0 = const std::string&, typename... ArgT> |
515 | void set_device(ArgT0&& arg0, ArgT... args); |
516 | std::string* mutable_device(); |
517 | PROTOBUF_NODISCARD std::string* release_device(); |
518 | void set_allocated_device(std::string* device); |
519 | private: |
520 | const std::string& _internal_device() const; |
521 | inline PROTOBUF_ALWAYS_INLINE void _internal_set_device(const std::string& value); |
522 | std::string* _internal_mutable_device(); |
523 | public: |
524 | |
525 | // @@protoc_insertion_point(class_scope:opencv_tensorflow.NodeDef) |
526 | private: |
527 | class _Internal; |
528 | |
529 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
530 | typedef void InternalArenaConstructable_; |
531 | typedef void DestructorSkippable_; |
532 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> input_; |
533 | ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
534 | NodeDef_AttrEntry_DoNotUse, |
535 | std::string, ::opencv_tensorflow::AttrValue, |
536 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
537 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> attr_; |
538 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
539 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_; |
540 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_; |
541 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
542 | friend struct ::TableStruct_graph_2eproto; |
543 | }; |
544 | // =================================================================== |
545 | |
546 | |
547 | // =================================================================== |
548 | |
549 | #ifdef __GNUC__ |
550 | #pragma GCC diagnostic push |
551 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
552 | #endif // __GNUC__ |
553 | // GraphDef |
554 | |
555 | // repeated .opencv_tensorflow.NodeDef node = 1; |
556 | inline int GraphDef::_internal_node_size() const { |
557 | return node_.size(); |
558 | } |
559 | inline int GraphDef::node_size() const { |
560 | return _internal_node_size(); |
561 | } |
562 | inline void GraphDef::clear_node() { |
563 | node_.Clear(); |
564 | } |
565 | inline ::opencv_tensorflow::NodeDef* GraphDef::mutable_node(int index) { |
566 | // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.node) |
567 | return node_.Mutable(index); |
568 | } |
569 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef >* |
570 | GraphDef::mutable_node() { |
571 | // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.GraphDef.node) |
572 | return &node_; |
573 | } |
574 | inline const ::opencv_tensorflow::NodeDef& GraphDef::_internal_node(int index) const { |
575 | return node_.Get(index); |
576 | } |
577 | inline const ::opencv_tensorflow::NodeDef& GraphDef::node(int index) const { |
578 | // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.node) |
579 | return _internal_node(index); |
580 | } |
581 | inline ::opencv_tensorflow::NodeDef* GraphDef::_internal_add_node() { |
582 | return node_.Add(); |
583 | } |
584 | inline ::opencv_tensorflow::NodeDef* GraphDef::add_node() { |
585 | ::opencv_tensorflow::NodeDef* _add = _internal_add_node(); |
586 | // @@protoc_insertion_point(field_add:opencv_tensorflow.GraphDef.node) |
587 | return _add; |
588 | } |
589 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::NodeDef >& |
590 | GraphDef::node() const { |
591 | // @@protoc_insertion_point(field_list:opencv_tensorflow.GraphDef.node) |
592 | return node_; |
593 | } |
594 | |
595 | // .opencv_tensorflow.VersionDef versions = 4; |
596 | inline bool GraphDef::_internal_has_versions() const { |
597 | return this != internal_default_instance() && versions_ != nullptr; |
598 | } |
599 | inline bool GraphDef::has_versions() const { |
600 | return _internal_has_versions(); |
601 | } |
602 | inline const ::opencv_tensorflow::VersionDef& GraphDef::_internal_versions() const { |
603 | const ::opencv_tensorflow::VersionDef* p = versions_; |
604 | return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::VersionDef&>( |
605 | ::opencv_tensorflow::_VersionDef_default_instance_); |
606 | } |
607 | inline const ::opencv_tensorflow::VersionDef& GraphDef::versions() const { |
608 | // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.versions) |
609 | return _internal_versions(); |
610 | } |
611 | inline void GraphDef::unsafe_arena_set_allocated_versions( |
612 | ::opencv_tensorflow::VersionDef* versions) { |
613 | if (GetArenaForAllocation() == nullptr) { |
614 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions_); |
615 | } |
616 | versions_ = versions; |
617 | if (versions) { |
618 | |
619 | } else { |
620 | |
621 | } |
622 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GraphDef.versions) |
623 | } |
624 | inline ::opencv_tensorflow::VersionDef* GraphDef::release_versions() { |
625 | |
626 | ::opencv_tensorflow::VersionDef* temp = versions_; |
627 | versions_ = nullptr; |
628 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
629 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
630 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
631 | if (GetArenaForAllocation() == nullptr) { delete old; } |
632 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
633 | if (GetArenaForAllocation() != nullptr) { |
634 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(message: temp); |
635 | } |
636 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
637 | return temp; |
638 | } |
639 | inline ::opencv_tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() { |
640 | // @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.versions) |
641 | |
642 | ::opencv_tensorflow::VersionDef* temp = versions_; |
643 | versions_ = nullptr; |
644 | return temp; |
645 | } |
646 | inline ::opencv_tensorflow::VersionDef* GraphDef::_internal_mutable_versions() { |
647 | |
648 | if (versions_ == nullptr) { |
649 | auto* p = CreateMaybeMessage<::opencv_tensorflow::VersionDef>(arena: GetArenaForAllocation()); |
650 | versions_ = p; |
651 | } |
652 | return versions_; |
653 | } |
654 | inline ::opencv_tensorflow::VersionDef* GraphDef::mutable_versions() { |
655 | ::opencv_tensorflow::VersionDef* _msg = _internal_mutable_versions(); |
656 | // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.versions) |
657 | return _msg; |
658 | } |
659 | inline void GraphDef::set_allocated_versions(::opencv_tensorflow::VersionDef* versions) { |
660 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
661 | if (message_arena == nullptr) { |
662 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions_); |
663 | } |
664 | if (versions) { |
665 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
666 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< |
667 | ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( |
668 | p: reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions)); |
669 | if (message_arena != submessage_arena) { |
670 | versions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
671 | message_arena, submessage: versions, submessage_arena); |
672 | } |
673 | |
674 | } else { |
675 | |
676 | } |
677 | versions_ = versions; |
678 | // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.versions) |
679 | } |
680 | |
681 | // int32 version = 3 [deprecated = true]; |
682 | inline void GraphDef::clear_version() { |
683 | version_ = 0; |
684 | } |
685 | inline int32_t GraphDef::_internal_version() const { |
686 | return version_; |
687 | } |
688 | inline int32_t GraphDef::version() const { |
689 | // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.version) |
690 | return _internal_version(); |
691 | } |
692 | inline void GraphDef::_internal_set_version(int32_t value) { |
693 | |
694 | version_ = value; |
695 | } |
696 | inline void GraphDef::set_version(int32_t value) { |
697 | _internal_set_version(value); |
698 | // @@protoc_insertion_point(field_set:opencv_tensorflow.GraphDef.version) |
699 | } |
700 | |
701 | // .opencv_tensorflow.FunctionDefLibrary library = 2; |
702 | inline bool GraphDef::_internal_has_library() const { |
703 | return this != internal_default_instance() && library_ != nullptr; |
704 | } |
705 | inline bool GraphDef::has_library() const { |
706 | return _internal_has_library(); |
707 | } |
708 | inline const ::opencv_tensorflow::FunctionDefLibrary& GraphDef::_internal_library() const { |
709 | const ::opencv_tensorflow::FunctionDefLibrary* p = library_; |
710 | return p != nullptr ? *p : reinterpret_cast<const ::opencv_tensorflow::FunctionDefLibrary&>( |
711 | ::opencv_tensorflow::_FunctionDefLibrary_default_instance_); |
712 | } |
713 | inline const ::opencv_tensorflow::FunctionDefLibrary& GraphDef::library() const { |
714 | // @@protoc_insertion_point(field_get:opencv_tensorflow.GraphDef.library) |
715 | return _internal_library(); |
716 | } |
717 | inline void GraphDef::unsafe_arena_set_allocated_library( |
718 | ::opencv_tensorflow::FunctionDefLibrary* library) { |
719 | if (GetArenaForAllocation() == nullptr) { |
720 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(library_); |
721 | } |
722 | library_ = library; |
723 | if (library) { |
724 | |
725 | } else { |
726 | |
727 | } |
728 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.GraphDef.library) |
729 | } |
730 | inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::release_library() { |
731 | |
732 | ::opencv_tensorflow::FunctionDefLibrary* temp = library_; |
733 | library_ = nullptr; |
734 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
735 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
736 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
737 | if (GetArenaForAllocation() == nullptr) { delete old; } |
738 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
739 | if (GetArenaForAllocation() != nullptr) { |
740 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(message: temp); |
741 | } |
742 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
743 | return temp; |
744 | } |
745 | inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() { |
746 | // @@protoc_insertion_point(field_release:opencv_tensorflow.GraphDef.library) |
747 | |
748 | ::opencv_tensorflow::FunctionDefLibrary* temp = library_; |
749 | library_ = nullptr; |
750 | return temp; |
751 | } |
752 | inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::_internal_mutable_library() { |
753 | |
754 | if (library_ == nullptr) { |
755 | auto* p = CreateMaybeMessage<::opencv_tensorflow::FunctionDefLibrary>(arena: GetArenaForAllocation()); |
756 | library_ = p; |
757 | } |
758 | return library_; |
759 | } |
760 | inline ::opencv_tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { |
761 | ::opencv_tensorflow::FunctionDefLibrary* _msg = _internal_mutable_library(); |
762 | // @@protoc_insertion_point(field_mutable:opencv_tensorflow.GraphDef.library) |
763 | return _msg; |
764 | } |
765 | inline void GraphDef::set_allocated_library(::opencv_tensorflow::FunctionDefLibrary* library) { |
766 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
767 | if (message_arena == nullptr) { |
768 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(library_); |
769 | } |
770 | if (library) { |
771 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
772 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper< |
773 | ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena( |
774 | p: reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(library)); |
775 | if (message_arena != submessage_arena) { |
776 | library = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
777 | message_arena, submessage: library, submessage_arena); |
778 | } |
779 | |
780 | } else { |
781 | |
782 | } |
783 | library_ = library; |
784 | // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.GraphDef.library) |
785 | } |
786 | |
787 | // ------------------------------------------------------------------- |
788 | |
789 | // ------------------------------------------------------------------- |
790 | |
791 | // NodeDef |
792 | |
793 | // string name = 1; |
794 | inline void NodeDef::clear_name() { |
795 | name_.ClearToEmpty(); |
796 | } |
797 | inline const std::string& NodeDef::name() const { |
798 | // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.name) |
799 | return _internal_name(); |
800 | } |
801 | template <typename ArgT0, typename... ArgT> |
802 | inline PROTOBUF_ALWAYS_INLINE |
803 | void NodeDef::set_name(ArgT0&& arg0, ArgT... args) { |
804 | |
805 | name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
806 | // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.name) |
807 | } |
808 | inline std::string* NodeDef::mutable_name() { |
809 | std::string* _s = _internal_mutable_name(); |
810 | // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.name) |
811 | return _s; |
812 | } |
813 | inline const std::string& NodeDef::_internal_name() const { |
814 | return name_.Get(); |
815 | } |
816 | inline void NodeDef::_internal_set_name(const std::string& value) { |
817 | |
818 | name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, arena: GetArenaForAllocation()); |
819 | } |
820 | inline std::string* NodeDef::_internal_mutable_name() { |
821 | |
822 | return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, arena: GetArenaForAllocation()); |
823 | } |
824 | inline std::string* NodeDef::release_name() { |
825 | // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.name) |
826 | return name_.Release(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), arena: GetArenaForAllocation()); |
827 | } |
828 | inline void NodeDef::set_allocated_name(std::string* name) { |
829 | if (name != nullptr) { |
830 | |
831 | } else { |
832 | |
833 | } |
834 | name_.SetAllocated(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value: name, |
835 | arena: GetArenaForAllocation()); |
836 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
837 | if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { |
838 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
839 | } |
840 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
841 | // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.name) |
842 | } |
843 | |
844 | // string op = 2; |
845 | inline void NodeDef::clear_op() { |
846 | op_.ClearToEmpty(); |
847 | } |
848 | inline const std::string& NodeDef::op() const { |
849 | // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.op) |
850 | return _internal_op(); |
851 | } |
852 | template <typename ArgT0, typename... ArgT> |
853 | inline PROTOBUF_ALWAYS_INLINE |
854 | void NodeDef::set_op(ArgT0&& arg0, ArgT... args) { |
855 | |
856 | op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
857 | // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.op) |
858 | } |
859 | inline std::string* NodeDef::mutable_op() { |
860 | std::string* _s = _internal_mutable_op(); |
861 | // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.op) |
862 | return _s; |
863 | } |
864 | inline const std::string& NodeDef::_internal_op() const { |
865 | return op_.Get(); |
866 | } |
867 | inline void NodeDef::_internal_set_op(const std::string& value) { |
868 | |
869 | op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, arena: GetArenaForAllocation()); |
870 | } |
871 | inline std::string* NodeDef::_internal_mutable_op() { |
872 | |
873 | return op_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, arena: GetArenaForAllocation()); |
874 | } |
875 | inline std::string* NodeDef::release_op() { |
876 | // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.op) |
877 | return op_.Release(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), arena: GetArenaForAllocation()); |
878 | } |
879 | inline void NodeDef::set_allocated_op(std::string* op) { |
880 | if (op != nullptr) { |
881 | |
882 | } else { |
883 | |
884 | } |
885 | op_.SetAllocated(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value: op, |
886 | arena: GetArenaForAllocation()); |
887 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
888 | if (op_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { |
889 | op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
890 | } |
891 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
892 | // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.op) |
893 | } |
894 | |
895 | // repeated string input = 3; |
896 | inline int NodeDef::_internal_input_size() const { |
897 | return input_.size(); |
898 | } |
899 | inline int NodeDef::input_size() const { |
900 | return _internal_input_size(); |
901 | } |
902 | inline void NodeDef::clear_input() { |
903 | input_.Clear(); |
904 | } |
905 | inline std::string* NodeDef::add_input() { |
906 | std::string* _s = _internal_add_input(); |
907 | // @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.NodeDef.input) |
908 | return _s; |
909 | } |
910 | inline const std::string& NodeDef::_internal_input(int index) const { |
911 | return input_.Get(index); |
912 | } |
913 | inline const std::string& NodeDef::input(int index) const { |
914 | // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.input) |
915 | return _internal_input(index); |
916 | } |
917 | inline std::string* NodeDef::mutable_input(int index) { |
918 | // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.input) |
919 | return input_.Mutable(index); |
920 | } |
921 | inline void NodeDef::set_input(int index, const std::string& value) { |
922 | input_.Mutable(index)->assign(str: value); |
923 | // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input) |
924 | } |
925 | inline void NodeDef::set_input(int index, std::string&& value) { |
926 | input_.Mutable(index)->assign(str: std::move(value)); |
927 | // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.input) |
928 | } |
929 | inline void NodeDef::set_input(int index, const char* value) { |
930 | GOOGLE_DCHECK(value != nullptr); |
931 | input_.Mutable(index)->assign(s: value); |
932 | // @@protoc_insertion_point(field_set_char:opencv_tensorflow.NodeDef.input) |
933 | } |
934 | inline void NodeDef::set_input(int index, const char* value, size_t size) { |
935 | input_.Mutable(index)->assign( |
936 | s: reinterpret_cast<const char*>(value), n: size); |
937 | // @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.NodeDef.input) |
938 | } |
939 | inline std::string* NodeDef::_internal_add_input() { |
940 | return input_.Add(); |
941 | } |
942 | inline void NodeDef::add_input(const std::string& value) { |
943 | input_.Add()->assign(str: value); |
944 | // @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input) |
945 | } |
946 | inline void NodeDef::add_input(std::string&& value) { |
947 | input_.Add(value: std::move(value)); |
948 | // @@protoc_insertion_point(field_add:opencv_tensorflow.NodeDef.input) |
949 | } |
950 | inline void NodeDef::add_input(const char* value) { |
951 | GOOGLE_DCHECK(value != nullptr); |
952 | input_.Add()->assign(s: value); |
953 | // @@protoc_insertion_point(field_add_char:opencv_tensorflow.NodeDef.input) |
954 | } |
955 | inline void NodeDef::add_input(const char* value, size_t size) { |
956 | input_.Add()->assign(s: reinterpret_cast<const char*>(value), n: size); |
957 | // @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.NodeDef.input) |
958 | } |
959 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
960 | NodeDef::input() const { |
961 | // @@protoc_insertion_point(field_list:opencv_tensorflow.NodeDef.input) |
962 | return input_; |
963 | } |
964 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
965 | NodeDef::mutable_input() { |
966 | // @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.NodeDef.input) |
967 | return &input_; |
968 | } |
969 | |
970 | // string device = 4; |
971 | inline void NodeDef::clear_device() { |
972 | device_.ClearToEmpty(); |
973 | } |
974 | inline const std::string& NodeDef::device() const { |
975 | // @@protoc_insertion_point(field_get:opencv_tensorflow.NodeDef.device) |
976 | return _internal_device(); |
977 | } |
978 | template <typename ArgT0, typename... ArgT> |
979 | inline PROTOBUF_ALWAYS_INLINE |
980 | void NodeDef::set_device(ArgT0&& arg0, ArgT... args) { |
981 | |
982 | device_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
983 | // @@protoc_insertion_point(field_set:opencv_tensorflow.NodeDef.device) |
984 | } |
985 | inline std::string* NodeDef::mutable_device() { |
986 | std::string* _s = _internal_mutable_device(); |
987 | // @@protoc_insertion_point(field_mutable:opencv_tensorflow.NodeDef.device) |
988 | return _s; |
989 | } |
990 | inline const std::string& NodeDef::_internal_device() const { |
991 | return device_.Get(); |
992 | } |
993 | inline void NodeDef::_internal_set_device(const std::string& value) { |
994 | |
995 | device_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, arena: GetArenaForAllocation()); |
996 | } |
997 | inline std::string* NodeDef::_internal_mutable_device() { |
998 | |
999 | return device_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, arena: GetArenaForAllocation()); |
1000 | } |
1001 | inline std::string* NodeDef::release_device() { |
1002 | // @@protoc_insertion_point(field_release:opencv_tensorflow.NodeDef.device) |
1003 | return device_.Release(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), arena: GetArenaForAllocation()); |
1004 | } |
1005 | inline void NodeDef::set_allocated_device(std::string* device) { |
1006 | if (device != nullptr) { |
1007 | |
1008 | } else { |
1009 | |
1010 | } |
1011 | device_.SetAllocated(default_value: &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value: device, |
1012 | arena: GetArenaForAllocation()); |
1013 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1014 | if (device_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { |
1015 | device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
1016 | } |
1017 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1018 | // @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NodeDef.device) |
1019 | } |
1020 | |
1021 | // map<string, .opencv_tensorflow.AttrValue> attr = 5; |
1022 | inline int NodeDef::_internal_attr_size() const { |
1023 | return attr_.size(); |
1024 | } |
1025 | inline int NodeDef::attr_size() const { |
1026 | return _internal_attr_size(); |
1027 | } |
1028 | inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >& |
1029 | NodeDef::_internal_attr() const { |
1030 | return attr_.GetMap(); |
1031 | } |
1032 | inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >& |
1033 | NodeDef::attr() const { |
1034 | // @@protoc_insertion_point(field_map:opencv_tensorflow.NodeDef.attr) |
1035 | return _internal_attr(); |
1036 | } |
1037 | inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >* |
1038 | NodeDef::_internal_mutable_attr() { |
1039 | return attr_.MutableMap(); |
1040 | } |
1041 | inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >* |
1042 | NodeDef::mutable_attr() { |
1043 | // @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.NodeDef.attr) |
1044 | return _internal_mutable_attr(); |
1045 | } |
1046 | |
1047 | #ifdef __GNUC__ |
1048 | #pragma GCC diagnostic pop |
1049 | #endif // __GNUC__ |
1050 | // ------------------------------------------------------------------- |
1051 | |
1052 | // ------------------------------------------------------------------- |
1053 | |
1054 | |
1055 | // @@protoc_insertion_point(namespace_scope) |
1056 | |
1057 | } // namespace opencv_tensorflow |
1058 | |
1059 | // @@protoc_insertion_point(global_scope) |
1060 | |
1061 | #include <google/protobuf/port_undef.inc> |
1062 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_graph_2eproto |
1063 |
Definitions
- TableStruct_graph_2eproto
- GraphDef
- GraphDef
- GraphDef
- operator=
- operator=
- descriptor
- GetDescriptor
- GetReflection
- default_instance
- internal_default_instance
- swap
- Swap
- UnsafeArenaSwap
- New
- GetCachedSize
- FullMessageName
- NodeDef_AttrEntry_DoNotUse
- internal_default_instance
- ValidateKey
- ValidateValue
- NodeDef
- NodeDef
- NodeDef
- operator=
- operator=
- descriptor
- GetDescriptor
- GetReflection
- default_instance
- internal_default_instance
- swap
- Swap
- UnsafeArenaSwap
- New
- GetCachedSize
- FullMessageName
- _internal_node_size
- node_size
- clear_node
- mutable_node
- mutable_node
- _internal_node
- node
- _internal_add_node
- add_node
- node
- _internal_has_versions
- has_versions
- _internal_versions
- versions
- unsafe_arena_set_allocated_versions
- release_versions
- unsafe_arena_release_versions
- _internal_mutable_versions
- mutable_versions
- set_allocated_versions
- clear_version
- _internal_version
- version
- _internal_set_version
- set_version
- _internal_has_library
- has_library
- _internal_library
- library
- unsafe_arena_set_allocated_library
- release_library
- unsafe_arena_release_library
- _internal_mutable_library
- mutable_library
- set_allocated_library
- clear_name
- name
- set_name
- mutable_name
- _internal_name
- _internal_set_name
- _internal_mutable_name
- release_name
- set_allocated_name
- clear_op
- op
- set_op
- mutable_op
- _internal_op
- _internal_set_op
- _internal_mutable_op
- release_op
- set_allocated_op
- _internal_input_size
- input_size
- clear_input
- add_input
- _internal_input
- input
- mutable_input
- set_input
- set_input
- set_input
- set_input
- _internal_add_input
- add_input
- add_input
- add_input
- add_input
- input
- mutable_input
- clear_device
- device
- set_device
- mutable_device
- _internal_device
- _internal_set_device
- _internal_mutable_device
- release_device
- set_allocated_device
- _internal_attr_size
- attr_size
- _internal_attr
- attr
- _internal_mutable_attr
Improve your Profiling and Debugging skills
Find out more