Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/dnn/misc/tensorflow/op_def.pb.cc
16358 views
1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: op_def.proto
3
4
#include "op_def.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
// @@protoc_insertion_point(includes)
22
namespace opencv_tensorflow {
23
class OpDef_ArgDefDefaultTypeInternal {
24
public:
25
::google::protobuf::internal::ExplicitlyConstructed<OpDef_ArgDef>
26
_instance;
27
} _OpDef_ArgDef_default_instance_;
28
class OpDef_AttrDefDefaultTypeInternal {
29
public:
30
::google::protobuf::internal::ExplicitlyConstructed<OpDef_AttrDef>
31
_instance;
32
} _OpDef_AttrDef_default_instance_;
33
class OpDefDefaultTypeInternal {
34
public:
35
::google::protobuf::internal::ExplicitlyConstructed<OpDef>
36
_instance;
37
} _OpDef_default_instance_;
38
class OpDeprecationDefaultTypeInternal {
39
public:
40
::google::protobuf::internal::ExplicitlyConstructed<OpDeprecation>
41
_instance;
42
} _OpDeprecation_default_instance_;
43
class OpListDefaultTypeInternal {
44
public:
45
::google::protobuf::internal::ExplicitlyConstructed<OpList>
46
_instance;
47
} _OpList_default_instance_;
48
} // namespace opencv_tensorflow
49
namespace protobuf_op_5fdef_2eproto {
50
void InitDefaultsOpDef_ArgDefImpl() {
51
GOOGLE_PROTOBUF_VERIFY_VERSION;
52
53
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
54
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
55
#else
56
::google::protobuf::internal::InitProtobufDefaults();
57
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
58
{
59
void* ptr = &::opencv_tensorflow::_OpDef_ArgDef_default_instance_;
60
new (ptr) ::opencv_tensorflow::OpDef_ArgDef();
61
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
62
}
63
::opencv_tensorflow::OpDef_ArgDef::InitAsDefaultInstance();
64
}
65
66
void InitDefaultsOpDef_ArgDef() {
67
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
68
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpDef_ArgDefImpl);
69
}
70
71
void InitDefaultsOpDef_AttrDefImpl() {
72
GOOGLE_PROTOBUF_VERIFY_VERSION;
73
74
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
75
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
76
#else
77
::google::protobuf::internal::InitProtobufDefaults();
78
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
79
protobuf_attr_5fvalue_2eproto::InitDefaultsAttrValue();
80
{
81
void* ptr = &::opencv_tensorflow::_OpDef_AttrDef_default_instance_;
82
new (ptr) ::opencv_tensorflow::OpDef_AttrDef();
83
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
84
}
85
::opencv_tensorflow::OpDef_AttrDef::InitAsDefaultInstance();
86
}
87
88
void InitDefaultsOpDef_AttrDef() {
89
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
90
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpDef_AttrDefImpl);
91
}
92
93
void InitDefaultsOpDefImpl() {
94
GOOGLE_PROTOBUF_VERIFY_VERSION;
95
96
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
97
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
98
#else
99
::google::protobuf::internal::InitProtobufDefaults();
100
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
101
protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDef();
102
protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDef();
103
protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecation();
104
{
105
void* ptr = &::opencv_tensorflow::_OpDef_default_instance_;
106
new (ptr) ::opencv_tensorflow::OpDef();
107
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
108
}
109
::opencv_tensorflow::OpDef::InitAsDefaultInstance();
110
}
111
112
void InitDefaultsOpDef() {
113
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
114
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpDefImpl);
115
}
116
117
void InitDefaultsOpDeprecationImpl() {
118
GOOGLE_PROTOBUF_VERIFY_VERSION;
119
120
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
121
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
122
#else
123
::google::protobuf::internal::InitProtobufDefaults();
124
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
125
{
126
void* ptr = &::opencv_tensorflow::_OpDeprecation_default_instance_;
127
new (ptr) ::opencv_tensorflow::OpDeprecation();
128
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
129
}
130
::opencv_tensorflow::OpDeprecation::InitAsDefaultInstance();
131
}
132
133
void InitDefaultsOpDeprecation() {
134
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
135
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpDeprecationImpl);
136
}
137
138
void InitDefaultsOpListImpl() {
139
GOOGLE_PROTOBUF_VERIFY_VERSION;
140
141
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
142
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
143
#else
144
::google::protobuf::internal::InitProtobufDefaults();
145
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
146
protobuf_op_5fdef_2eproto::InitDefaultsOpDef();
147
{
148
void* ptr = &::opencv_tensorflow::_OpList_default_instance_;
149
new (ptr) ::opencv_tensorflow::OpList();
150
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
151
}
152
::opencv_tensorflow::OpList::InitAsDefaultInstance();
153
}
154
155
void InitDefaultsOpList() {
156
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
157
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOpListImpl);
158
}
159
160
::google::protobuf::Metadata file_level_metadata[5];
161
162
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
163
~0u, // no _has_bits_
164
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, _internal_metadata_),
165
~0u, // no _extensions_
166
~0u, // no _oneof_case_
167
~0u, // no _weak_field_map_
168
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, name_),
169
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, description_),
170
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_),
171
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_attr_),
172
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, number_attr_),
173
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_list_attr_),
174
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, is_ref_),
175
~0u, // no _has_bits_
176
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, _internal_metadata_),
177
~0u, // no _extensions_
178
~0u, // no _oneof_case_
179
~0u, // no _weak_field_map_
180
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, name_),
181
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, type_),
182
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, default_value_),
183
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, description_),
184
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, has_minimum_),
185
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, minimum_),
186
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, allowed_values_),
187
~0u, // no _has_bits_
188
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, _internal_metadata_),
189
~0u, // no _extensions_
190
~0u, // no _oneof_case_
191
~0u, // no _weak_field_map_
192
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, name_),
193
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, input_arg_),
194
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, output_arg_),
195
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, attr_),
196
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, deprecation_),
197
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, summary_),
198
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, description_),
199
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_commutative_),
200
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_aggregate_),
201
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_stateful_),
202
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDef, allows_uninitialized_input_),
203
~0u, // no _has_bits_
204
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, _internal_metadata_),
205
~0u, // no _extensions_
206
~0u, // no _oneof_case_
207
~0u, // no _weak_field_map_
208
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, version_),
209
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, explanation_),
210
~0u, // no _has_bits_
211
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpList, _internal_metadata_),
212
~0u, // no _extensions_
213
~0u, // no _oneof_case_
214
~0u, // no _weak_field_map_
215
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_tensorflow::OpList, op_),
216
};
217
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
218
{ 0, -1, sizeof(::opencv_tensorflow::OpDef_ArgDef)},
219
{ 12, -1, sizeof(::opencv_tensorflow::OpDef_AttrDef)},
220
{ 24, -1, sizeof(::opencv_tensorflow::OpDef)},
221
{ 40, -1, sizeof(::opencv_tensorflow::OpDeprecation)},
222
{ 47, -1, sizeof(::opencv_tensorflow::OpList)},
223
};
224
225
static ::google::protobuf::Message const * const file_default_instances[] = {
226
reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_OpDef_ArgDef_default_instance_),
227
reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_OpDef_AttrDef_default_instance_),
228
reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_OpDef_default_instance_),
229
reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_OpDeprecation_default_instance_),
230
reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_tensorflow::_OpList_default_instance_),
231
};
232
233
void protobuf_AssignDescriptors() {
234
AddDescriptors();
235
::google::protobuf::MessageFactory* factory = NULL;
236
AssignDescriptors(
237
"op_def.proto", schemas, file_default_instances, TableStruct::offsets, factory,
238
file_level_metadata, NULL, NULL);
239
}
240
241
void protobuf_AssignDescriptorsOnce() {
242
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
243
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
244
}
245
246
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
247
void protobuf_RegisterTypes(const ::std::string&) {
248
protobuf_AssignDescriptorsOnce();
249
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
250
}
251
252
void AddDescriptorsImpl() {
253
InitDefaults();
254
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
255
"\n\014op_def.proto\022\021opencv_tensorflow\032\020attr_"
256
"value.proto\032\013types.proto\"\351\005\n\005OpDef\022\014\n\004na"
257
"me\030\001 \001(\t\0222\n\tinput_arg\030\002 \003(\0132\037.opencv_ten"
258
"sorflow.OpDef.ArgDef\0223\n\noutput_arg\030\003 \003(\013"
259
"2\037.opencv_tensorflow.OpDef.ArgDef\022.\n\004att"
260
"r\030\004 \003(\0132 .opencv_tensorflow.OpDef.AttrDe"
261
"f\0225\n\013deprecation\030\010 \001(\0132 .opencv_tensorfl"
262
"ow.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023\n\013des"
263
"cription\030\006 \001(\t\022\026\n\016is_commutative\030\022 \001(\010\022\024"
264
"\n\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful\030\021 \001("
265
"\010\022\"\n\032allows_uninitialized_input\030\023 \001(\010\032\246\001"
266
"\n\006ArgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 "
267
"\001(\t\022)\n\004type\030\003 \001(\0162\033.opencv_tensorflow.Da"
268
"taType\022\021\n\ttype_attr\030\004 \001(\t\022\023\n\013number_attr"
269
"\030\005 \001(\t\022\026\n\016type_list_attr\030\006 \001(\t\022\016\n\006is_ref"
270
"\030\020 \001(\010\032\313\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type"
271
"\030\002 \001(\t\0223\n\rdefault_value\030\003 \001(\0132\034.opencv_t"
272
"ensorflow.AttrValue\022\023\n\013description\030\004 \001(\t"
273
"\022\023\n\013has_minimum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\0224"
274
"\n\016allowed_values\030\007 \001(\0132\034.opencv_tensorfl"
275
"ow.AttrValue\"5\n\rOpDeprecation\022\017\n\007version"
276
"\030\001 \001(\005\022\023\n\013explanation\030\002 \001(\t\".\n\006OpList\022$\n"
277
"\002op\030\001 \003(\0132\030.opencv_tensorflow.OpDefB,\n\030o"
278
"rg.tensorflow.frameworkB\013OpDefProtosP\001\370\001"
279
"\001b\006proto3"
280
};
281
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
282
descriptor, 969);
283
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
284
"op_def.proto", &protobuf_RegisterTypes);
285
::protobuf_attr_5fvalue_2eproto::AddDescriptors();
286
::protobuf_types_2eproto::AddDescriptors();
287
}
288
289
void AddDescriptors() {
290
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
291
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
292
}
293
// Force AddDescriptors() to be called at dynamic initialization time.
294
struct StaticDescriptorInitializer {
295
StaticDescriptorInitializer() {
296
AddDescriptors();
297
}
298
} static_descriptor_initializer;
299
} // namespace protobuf_op_5fdef_2eproto
300
namespace opencv_tensorflow {
301
302
// ===================================================================
303
304
void OpDef_ArgDef::InitAsDefaultInstance() {
305
}
306
#if !defined(_MSC_VER) || _MSC_VER >= 1900
307
const int OpDef_ArgDef::kNameFieldNumber;
308
const int OpDef_ArgDef::kDescriptionFieldNumber;
309
const int OpDef_ArgDef::kTypeFieldNumber;
310
const int OpDef_ArgDef::kTypeAttrFieldNumber;
311
const int OpDef_ArgDef::kNumberAttrFieldNumber;
312
const int OpDef_ArgDef::kTypeListAttrFieldNumber;
313
const int OpDef_ArgDef::kIsRefFieldNumber;
314
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
315
316
OpDef_ArgDef::OpDef_ArgDef()
317
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
318
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
319
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDef();
320
}
321
SharedCtor();
322
// @@protoc_insertion_point(constructor:opencv_tensorflow.OpDef.ArgDef)
323
}
324
OpDef_ArgDef::OpDef_ArgDef(::google::protobuf::Arena* arena)
325
: ::google::protobuf::Message(),
326
_internal_metadata_(arena) {
327
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDef();
328
SharedCtor();
329
RegisterArenaDtor(arena);
330
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef.ArgDef)
331
}
332
OpDef_ArgDef::OpDef_ArgDef(const OpDef_ArgDef& from)
333
: ::google::protobuf::Message(),
334
_internal_metadata_(NULL),
335
_cached_size_(0) {
336
_internal_metadata_.MergeFrom(from._internal_metadata_);
337
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
338
if (from.name().size() > 0) {
339
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
340
GetArenaNoVirtual());
341
}
342
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
343
if (from.description().size() > 0) {
344
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description(),
345
GetArenaNoVirtual());
346
}
347
type_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
348
if (from.type_attr().size() > 0) {
349
type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_attr(),
350
GetArenaNoVirtual());
351
}
352
number_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
353
if (from.number_attr().size() > 0) {
354
number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.number_attr(),
355
GetArenaNoVirtual());
356
}
357
type_list_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
358
if (from.type_list_attr().size() > 0) {
359
type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_list_attr(),
360
GetArenaNoVirtual());
361
}
362
::memcpy(&type_, &from.type_,
363
static_cast<size_t>(reinterpret_cast<char*>(&is_ref_) -
364
reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
365
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef.ArgDef)
366
}
367
368
void OpDef_ArgDef::SharedCtor() {
369
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
370
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
371
type_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
372
number_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
373
type_list_attr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
374
::memset(&type_, 0, static_cast<size_t>(
375
reinterpret_cast<char*>(&is_ref_) -
376
reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
377
_cached_size_ = 0;
378
}
379
380
OpDef_ArgDef::~OpDef_ArgDef() {
381
// @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef.ArgDef)
382
SharedDtor();
383
}
384
385
void OpDef_ArgDef::SharedDtor() {
386
GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
387
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
388
description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389
type_attr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
390
number_attr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
391
type_list_attr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
392
}
393
394
void OpDef_ArgDef::ArenaDtor(void* object) {
395
OpDef_ArgDef* _this = reinterpret_cast< OpDef_ArgDef* >(object);
396
(void)_this;
397
}
398
void OpDef_ArgDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {
399
}
400
void OpDef_ArgDef::SetCachedSize(int size) const {
401
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
402
_cached_size_ = size;
403
GOOGLE_SAFE_CONCURRENT_WRITES_END();
404
}
405
const ::google::protobuf::Descriptor* OpDef_ArgDef::descriptor() {
406
::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
407
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
408
}
409
410
const OpDef_ArgDef& OpDef_ArgDef::default_instance() {
411
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_ArgDef();
412
return *internal_default_instance();
413
}
414
415
OpDef_ArgDef* OpDef_ArgDef::New(::google::protobuf::Arena* arena) const {
416
return ::google::protobuf::Arena::CreateMessage<OpDef_ArgDef>(arena);
417
}
418
419
void OpDef_ArgDef::Clear() {
420
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef.ArgDef)
421
::google::protobuf::uint32 cached_has_bits = 0;
422
// Prevent compiler warnings about cached_has_bits being unused
423
(void) cached_has_bits;
424
425
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
426
description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
427
type_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
428
number_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
429
type_list_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
430
::memset(&type_, 0, static_cast<size_t>(
431
reinterpret_cast<char*>(&is_ref_) -
432
reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
433
_internal_metadata_.Clear();
434
}
435
436
bool OpDef_ArgDef::MergePartialFromCodedStream(
437
::google::protobuf::io::CodedInputStream* input) {
438
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
439
::google::protobuf::uint32 tag;
440
// @@protoc_insertion_point(parse_start:opencv_tensorflow.OpDef.ArgDef)
441
for (;;) {
442
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
443
tag = p.first;
444
if (!p.second) goto handle_unusual;
445
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
446
// string name = 1;
447
case 1: {
448
if (static_cast< ::google::protobuf::uint8>(tag) ==
449
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
450
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
451
input, this->mutable_name()));
452
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
453
this->name().data(), static_cast<int>(this->name().length()),
454
::google::protobuf::internal::WireFormatLite::PARSE,
455
"opencv_tensorflow.OpDef.ArgDef.name"));
456
} else {
457
goto handle_unusual;
458
}
459
break;
460
}
461
462
// string description = 2;
463
case 2: {
464
if (static_cast< ::google::protobuf::uint8>(tag) ==
465
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
466
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
467
input, this->mutable_description()));
468
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
469
this->description().data(), static_cast<int>(this->description().length()),
470
::google::protobuf::internal::WireFormatLite::PARSE,
471
"opencv_tensorflow.OpDef.ArgDef.description"));
472
} else {
473
goto handle_unusual;
474
}
475
break;
476
}
477
478
// .opencv_tensorflow.DataType type = 3;
479
case 3: {
480
if (static_cast< ::google::protobuf::uint8>(tag) ==
481
static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
482
int value;
483
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
484
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
485
input, &value)));
486
set_type(static_cast< ::opencv_tensorflow::DataType >(value));
487
} else {
488
goto handle_unusual;
489
}
490
break;
491
}
492
493
// string type_attr = 4;
494
case 4: {
495
if (static_cast< ::google::protobuf::uint8>(tag) ==
496
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
497
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
498
input, this->mutable_type_attr()));
499
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
500
this->type_attr().data(), static_cast<int>(this->type_attr().length()),
501
::google::protobuf::internal::WireFormatLite::PARSE,
502
"opencv_tensorflow.OpDef.ArgDef.type_attr"));
503
} else {
504
goto handle_unusual;
505
}
506
break;
507
}
508
509
// string number_attr = 5;
510
case 5: {
511
if (static_cast< ::google::protobuf::uint8>(tag) ==
512
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
513
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
514
input, this->mutable_number_attr()));
515
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
516
this->number_attr().data(), static_cast<int>(this->number_attr().length()),
517
::google::protobuf::internal::WireFormatLite::PARSE,
518
"opencv_tensorflow.OpDef.ArgDef.number_attr"));
519
} else {
520
goto handle_unusual;
521
}
522
break;
523
}
524
525
// string type_list_attr = 6;
526
case 6: {
527
if (static_cast< ::google::protobuf::uint8>(tag) ==
528
static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
529
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
530
input, this->mutable_type_list_attr()));
531
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
532
this->type_list_attr().data(), static_cast<int>(this->type_list_attr().length()),
533
::google::protobuf::internal::WireFormatLite::PARSE,
534
"opencv_tensorflow.OpDef.ArgDef.type_list_attr"));
535
} else {
536
goto handle_unusual;
537
}
538
break;
539
}
540
541
// bool is_ref = 16;
542
case 16: {
543
if (static_cast< ::google::protobuf::uint8>(tag) ==
544
static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
545
546
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
547
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
548
input, &is_ref_)));
549
} else {
550
goto handle_unusual;
551
}
552
break;
553
}
554
555
default: {
556
handle_unusual:
557
if (tag == 0) {
558
goto success;
559
}
560
DO_(::google::protobuf::internal::WireFormat::SkipField(
561
input, tag, _internal_metadata_.mutable_unknown_fields()));
562
break;
563
}
564
}
565
}
566
success:
567
// @@protoc_insertion_point(parse_success:opencv_tensorflow.OpDef.ArgDef)
568
return true;
569
failure:
570
// @@protoc_insertion_point(parse_failure:opencv_tensorflow.OpDef.ArgDef)
571
return false;
572
#undef DO_
573
}
574
575
void OpDef_ArgDef::SerializeWithCachedSizes(
576
::google::protobuf::io::CodedOutputStream* output) const {
577
// @@protoc_insertion_point(serialize_start:opencv_tensorflow.OpDef.ArgDef)
578
::google::protobuf::uint32 cached_has_bits = 0;
579
(void) cached_has_bits;
580
581
// string name = 1;
582
if (this->name().size() > 0) {
583
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
584
this->name().data(), static_cast<int>(this->name().length()),
585
::google::protobuf::internal::WireFormatLite::SERIALIZE,
586
"opencv_tensorflow.OpDef.ArgDef.name");
587
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
588
1, this->name(), output);
589
}
590
591
// string description = 2;
592
if (this->description().size() > 0) {
593
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
594
this->description().data(), static_cast<int>(this->description().length()),
595
::google::protobuf::internal::WireFormatLite::SERIALIZE,
596
"opencv_tensorflow.OpDef.ArgDef.description");
597
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
598
2, this->description(), output);
599
}
600
601
// .opencv_tensorflow.DataType type = 3;
602
if (this->type() != 0) {
603
::google::protobuf::internal::WireFormatLite::WriteEnum(
604
3, this->type(), output);
605
}
606
607
// string type_attr = 4;
608
if (this->type_attr().size() > 0) {
609
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
610
this->type_attr().data(), static_cast<int>(this->type_attr().length()),
611
::google::protobuf::internal::WireFormatLite::SERIALIZE,
612
"opencv_tensorflow.OpDef.ArgDef.type_attr");
613
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
614
4, this->type_attr(), output);
615
}
616
617
// string number_attr = 5;
618
if (this->number_attr().size() > 0) {
619
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
620
this->number_attr().data(), static_cast<int>(this->number_attr().length()),
621
::google::protobuf::internal::WireFormatLite::SERIALIZE,
622
"opencv_tensorflow.OpDef.ArgDef.number_attr");
623
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
624
5, this->number_attr(), output);
625
}
626
627
// string type_list_attr = 6;
628
if (this->type_list_attr().size() > 0) {
629
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
630
this->type_list_attr().data(), static_cast<int>(this->type_list_attr().length()),
631
::google::protobuf::internal::WireFormatLite::SERIALIZE,
632
"opencv_tensorflow.OpDef.ArgDef.type_list_attr");
633
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
634
6, this->type_list_attr(), output);
635
}
636
637
// bool is_ref = 16;
638
if (this->is_ref() != 0) {
639
::google::protobuf::internal::WireFormatLite::WriteBool(16, this->is_ref(), output);
640
}
641
642
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
643
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
644
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
645
}
646
// @@protoc_insertion_point(serialize_end:opencv_tensorflow.OpDef.ArgDef)
647
}
648
649
::google::protobuf::uint8* OpDef_ArgDef::InternalSerializeWithCachedSizesToArray(
650
bool deterministic, ::google::protobuf::uint8* target) const {
651
(void)deterministic; // Unused
652
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef.ArgDef)
653
::google::protobuf::uint32 cached_has_bits = 0;
654
(void) cached_has_bits;
655
656
// string name = 1;
657
if (this->name().size() > 0) {
658
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
659
this->name().data(), static_cast<int>(this->name().length()),
660
::google::protobuf::internal::WireFormatLite::SERIALIZE,
661
"opencv_tensorflow.OpDef.ArgDef.name");
662
target =
663
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
664
1, this->name(), target);
665
}
666
667
// string description = 2;
668
if (this->description().size() > 0) {
669
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
670
this->description().data(), static_cast<int>(this->description().length()),
671
::google::protobuf::internal::WireFormatLite::SERIALIZE,
672
"opencv_tensorflow.OpDef.ArgDef.description");
673
target =
674
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
675
2, this->description(), target);
676
}
677
678
// .opencv_tensorflow.DataType type = 3;
679
if (this->type() != 0) {
680
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
681
3, this->type(), target);
682
}
683
684
// string type_attr = 4;
685
if (this->type_attr().size() > 0) {
686
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
687
this->type_attr().data(), static_cast<int>(this->type_attr().length()),
688
::google::protobuf::internal::WireFormatLite::SERIALIZE,
689
"opencv_tensorflow.OpDef.ArgDef.type_attr");
690
target =
691
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
692
4, this->type_attr(), target);
693
}
694
695
// string number_attr = 5;
696
if (this->number_attr().size() > 0) {
697
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
698
this->number_attr().data(), static_cast<int>(this->number_attr().length()),
699
::google::protobuf::internal::WireFormatLite::SERIALIZE,
700
"opencv_tensorflow.OpDef.ArgDef.number_attr");
701
target =
702
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
703
5, this->number_attr(), target);
704
}
705
706
// string type_list_attr = 6;
707
if (this->type_list_attr().size() > 0) {
708
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
709
this->type_list_attr().data(), static_cast<int>(this->type_list_attr().length()),
710
::google::protobuf::internal::WireFormatLite::SERIALIZE,
711
"opencv_tensorflow.OpDef.ArgDef.type_list_attr");
712
target =
713
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
714
6, this->type_list_attr(), target);
715
}
716
717
// bool is_ref = 16;
718
if (this->is_ref() != 0) {
719
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->is_ref(), target);
720
}
721
722
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
723
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
724
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
725
}
726
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef.ArgDef)
727
return target;
728
}
729
730
size_t OpDef_ArgDef::ByteSizeLong() const {
731
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef.ArgDef)
732
size_t total_size = 0;
733
734
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
735
total_size +=
736
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
737
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
738
}
739
// string name = 1;
740
if (this->name().size() > 0) {
741
total_size += 1 +
742
::google::protobuf::internal::WireFormatLite::StringSize(
743
this->name());
744
}
745
746
// string description = 2;
747
if (this->description().size() > 0) {
748
total_size += 1 +
749
::google::protobuf::internal::WireFormatLite::StringSize(
750
this->description());
751
}
752
753
// string type_attr = 4;
754
if (this->type_attr().size() > 0) {
755
total_size += 1 +
756
::google::protobuf::internal::WireFormatLite::StringSize(
757
this->type_attr());
758
}
759
760
// string number_attr = 5;
761
if (this->number_attr().size() > 0) {
762
total_size += 1 +
763
::google::protobuf::internal::WireFormatLite::StringSize(
764
this->number_attr());
765
}
766
767
// string type_list_attr = 6;
768
if (this->type_list_attr().size() > 0) {
769
total_size += 1 +
770
::google::protobuf::internal::WireFormatLite::StringSize(
771
this->type_list_attr());
772
}
773
774
// .opencv_tensorflow.DataType type = 3;
775
if (this->type() != 0) {
776
total_size += 1 +
777
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
778
}
779
780
// bool is_ref = 16;
781
if (this->is_ref() != 0) {
782
total_size += 2 + 1;
783
}
784
785
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
786
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
787
_cached_size_ = cached_size;
788
GOOGLE_SAFE_CONCURRENT_WRITES_END();
789
return total_size;
790
}
791
792
void OpDef_ArgDef::MergeFrom(const ::google::protobuf::Message& from) {
793
// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.OpDef.ArgDef)
794
GOOGLE_DCHECK_NE(&from, this);
795
const OpDef_ArgDef* source =
796
::google::protobuf::internal::DynamicCastToGenerated<const OpDef_ArgDef>(
797
&from);
798
if (source == NULL) {
799
// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.OpDef.ArgDef)
800
::google::protobuf::internal::ReflectionOps::Merge(from, this);
801
} else {
802
// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.OpDef.ArgDef)
803
MergeFrom(*source);
804
}
805
}
806
807
void OpDef_ArgDef::MergeFrom(const OpDef_ArgDef& from) {
808
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef.ArgDef)
809
GOOGLE_DCHECK_NE(&from, this);
810
_internal_metadata_.MergeFrom(from._internal_metadata_);
811
::google::protobuf::uint32 cached_has_bits = 0;
812
(void) cached_has_bits;
813
814
if (from.name().size() > 0) {
815
set_name(from.name());
816
}
817
if (from.description().size() > 0) {
818
set_description(from.description());
819
}
820
if (from.type_attr().size() > 0) {
821
set_type_attr(from.type_attr());
822
}
823
if (from.number_attr().size() > 0) {
824
set_number_attr(from.number_attr());
825
}
826
if (from.type_list_attr().size() > 0) {
827
set_type_list_attr(from.type_list_attr());
828
}
829
if (from.type() != 0) {
830
set_type(from.type());
831
}
832
if (from.is_ref() != 0) {
833
set_is_ref(from.is_ref());
834
}
835
}
836
837
void OpDef_ArgDef::CopyFrom(const ::google::protobuf::Message& from) {
838
// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.OpDef.ArgDef)
839
if (&from == this) return;
840
Clear();
841
MergeFrom(from);
842
}
843
844
void OpDef_ArgDef::CopyFrom(const OpDef_ArgDef& from) {
845
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef.ArgDef)
846
if (&from == this) return;
847
Clear();
848
MergeFrom(from);
849
}
850
851
bool OpDef_ArgDef::IsInitialized() const {
852
return true;
853
}
854
855
void OpDef_ArgDef::Swap(OpDef_ArgDef* other) {
856
if (other == this) return;
857
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
858
InternalSwap(other);
859
} else {
860
OpDef_ArgDef* temp = New(GetArenaNoVirtual());
861
temp->MergeFrom(*other);
862
other->CopyFrom(*this);
863
InternalSwap(temp);
864
if (GetArenaNoVirtual() == NULL) {
865
delete temp;
866
}
867
}
868
}
869
void OpDef_ArgDef::UnsafeArenaSwap(OpDef_ArgDef* other) {
870
if (other == this) return;
871
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
872
InternalSwap(other);
873
}
874
void OpDef_ArgDef::InternalSwap(OpDef_ArgDef* other) {
875
using std::swap;
876
name_.Swap(&other->name_);
877
description_.Swap(&other->description_);
878
type_attr_.Swap(&other->type_attr_);
879
number_attr_.Swap(&other->number_attr_);
880
type_list_attr_.Swap(&other->type_list_attr_);
881
swap(type_, other->type_);
882
swap(is_ref_, other->is_ref_);
883
_internal_metadata_.Swap(&other->_internal_metadata_);
884
swap(_cached_size_, other->_cached_size_);
885
}
886
887
::google::protobuf::Metadata OpDef_ArgDef::GetMetadata() const {
888
protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
889
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages];
890
}
891
892
893
// ===================================================================
894
895
void OpDef_AttrDef::InitAsDefaultInstance() {
896
::opencv_tensorflow::_OpDef_AttrDef_default_instance_._instance.get_mutable()->default_value_ = const_cast< ::opencv_tensorflow::AttrValue*>(
897
::opencv_tensorflow::AttrValue::internal_default_instance());
898
::opencv_tensorflow::_OpDef_AttrDef_default_instance_._instance.get_mutable()->allowed_values_ = const_cast< ::opencv_tensorflow::AttrValue*>(
899
::opencv_tensorflow::AttrValue::internal_default_instance());
900
}
901
void OpDef_AttrDef::_slow_mutable_default_value() {
902
default_value_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::AttrValue >(
903
GetArenaNoVirtual());
904
}
905
void OpDef_AttrDef::unsafe_arena_set_allocated_default_value(
906
::opencv_tensorflow::AttrValue* default_value) {
907
if (GetArenaNoVirtual() == NULL) {
908
delete default_value_;
909
}
910
default_value_ = default_value;
911
if (default_value) {
912
913
} else {
914
915
}
916
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.AttrDef.default_value)
917
}
918
void OpDef_AttrDef::clear_default_value() {
919
if (GetArenaNoVirtual() == NULL && default_value_ != NULL) {
920
delete default_value_;
921
}
922
default_value_ = NULL;
923
}
924
void OpDef_AttrDef::_slow_mutable_allowed_values() {
925
allowed_values_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::AttrValue >(
926
GetArenaNoVirtual());
927
}
928
void OpDef_AttrDef::unsafe_arena_set_allocated_allowed_values(
929
::opencv_tensorflow::AttrValue* allowed_values) {
930
if (GetArenaNoVirtual() == NULL) {
931
delete allowed_values_;
932
}
933
allowed_values_ = allowed_values;
934
if (allowed_values) {
935
936
} else {
937
938
}
939
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.AttrDef.allowed_values)
940
}
941
void OpDef_AttrDef::clear_allowed_values() {
942
if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) {
943
delete allowed_values_;
944
}
945
allowed_values_ = NULL;
946
}
947
#if !defined(_MSC_VER) || _MSC_VER >= 1900
948
const int OpDef_AttrDef::kNameFieldNumber;
949
const int OpDef_AttrDef::kTypeFieldNumber;
950
const int OpDef_AttrDef::kDefaultValueFieldNumber;
951
const int OpDef_AttrDef::kDescriptionFieldNumber;
952
const int OpDef_AttrDef::kHasMinimumFieldNumber;
953
const int OpDef_AttrDef::kMinimumFieldNumber;
954
const int OpDef_AttrDef::kAllowedValuesFieldNumber;
955
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
956
957
OpDef_AttrDef::OpDef_AttrDef()
958
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
959
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
960
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDef();
961
}
962
SharedCtor();
963
// @@protoc_insertion_point(constructor:opencv_tensorflow.OpDef.AttrDef)
964
}
965
OpDef_AttrDef::OpDef_AttrDef(::google::protobuf::Arena* arena)
966
: ::google::protobuf::Message(),
967
_internal_metadata_(arena) {
968
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDef();
969
SharedCtor();
970
RegisterArenaDtor(arena);
971
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef.AttrDef)
972
}
973
OpDef_AttrDef::OpDef_AttrDef(const OpDef_AttrDef& from)
974
: ::google::protobuf::Message(),
975
_internal_metadata_(NULL),
976
_cached_size_(0) {
977
_internal_metadata_.MergeFrom(from._internal_metadata_);
978
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
979
if (from.name().size() > 0) {
980
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
981
GetArenaNoVirtual());
982
}
983
type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
984
if (from.type().size() > 0) {
985
type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type(),
986
GetArenaNoVirtual());
987
}
988
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
989
if (from.description().size() > 0) {
990
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description(),
991
GetArenaNoVirtual());
992
}
993
if (from.has_default_value()) {
994
default_value_ = new ::opencv_tensorflow::AttrValue(*from.default_value_);
995
} else {
996
default_value_ = NULL;
997
}
998
if (from.has_allowed_values()) {
999
allowed_values_ = new ::opencv_tensorflow::AttrValue(*from.allowed_values_);
1000
} else {
1001
allowed_values_ = NULL;
1002
}
1003
::memcpy(&minimum_, &from.minimum_,
1004
static_cast<size_t>(reinterpret_cast<char*>(&has_minimum_) -
1005
reinterpret_cast<char*>(&minimum_)) + sizeof(has_minimum_));
1006
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef.AttrDef)
1007
}
1008
1009
void OpDef_AttrDef::SharedCtor() {
1010
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1011
type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1012
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1013
::memset(&default_value_, 0, static_cast<size_t>(
1014
reinterpret_cast<char*>(&has_minimum_) -
1015
reinterpret_cast<char*>(&default_value_)) + sizeof(has_minimum_));
1016
_cached_size_ = 0;
1017
}
1018
1019
OpDef_AttrDef::~OpDef_AttrDef() {
1020
// @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef.AttrDef)
1021
SharedDtor();
1022
}
1023
1024
void OpDef_AttrDef::SharedDtor() {
1025
GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
1026
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1027
type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1028
description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1029
if (this != internal_default_instance()) delete default_value_;
1030
if (this != internal_default_instance()) delete allowed_values_;
1031
}
1032
1033
void OpDef_AttrDef::ArenaDtor(void* object) {
1034
OpDef_AttrDef* _this = reinterpret_cast< OpDef_AttrDef* >(object);
1035
(void)_this;
1036
}
1037
void OpDef_AttrDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {
1038
}
1039
void OpDef_AttrDef::SetCachedSize(int size) const {
1040
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1041
_cached_size_ = size;
1042
GOOGLE_SAFE_CONCURRENT_WRITES_END();
1043
}
1044
const ::google::protobuf::Descriptor* OpDef_AttrDef::descriptor() {
1045
::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
1046
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1047
}
1048
1049
const OpDef_AttrDef& OpDef_AttrDef::default_instance() {
1050
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef_AttrDef();
1051
return *internal_default_instance();
1052
}
1053
1054
OpDef_AttrDef* OpDef_AttrDef::New(::google::protobuf::Arena* arena) const {
1055
return ::google::protobuf::Arena::CreateMessage<OpDef_AttrDef>(arena);
1056
}
1057
1058
void OpDef_AttrDef::Clear() {
1059
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef.AttrDef)
1060
::google::protobuf::uint32 cached_has_bits = 0;
1061
// Prevent compiler warnings about cached_has_bits being unused
1062
(void) cached_has_bits;
1063
1064
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1065
type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1066
description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1067
if (GetArenaNoVirtual() == NULL && default_value_ != NULL) {
1068
delete default_value_;
1069
}
1070
default_value_ = NULL;
1071
if (GetArenaNoVirtual() == NULL && allowed_values_ != NULL) {
1072
delete allowed_values_;
1073
}
1074
allowed_values_ = NULL;
1075
::memset(&minimum_, 0, static_cast<size_t>(
1076
reinterpret_cast<char*>(&has_minimum_) -
1077
reinterpret_cast<char*>(&minimum_)) + sizeof(has_minimum_));
1078
_internal_metadata_.Clear();
1079
}
1080
1081
bool OpDef_AttrDef::MergePartialFromCodedStream(
1082
::google::protobuf::io::CodedInputStream* input) {
1083
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1084
::google::protobuf::uint32 tag;
1085
// @@protoc_insertion_point(parse_start:opencv_tensorflow.OpDef.AttrDef)
1086
for (;;) {
1087
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1088
tag = p.first;
1089
if (!p.second) goto handle_unusual;
1090
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1091
// string name = 1;
1092
case 1: {
1093
if (static_cast< ::google::protobuf::uint8>(tag) ==
1094
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1095
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1096
input, this->mutable_name()));
1097
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1098
this->name().data(), static_cast<int>(this->name().length()),
1099
::google::protobuf::internal::WireFormatLite::PARSE,
1100
"opencv_tensorflow.OpDef.AttrDef.name"));
1101
} else {
1102
goto handle_unusual;
1103
}
1104
break;
1105
}
1106
1107
// string type = 2;
1108
case 2: {
1109
if (static_cast< ::google::protobuf::uint8>(tag) ==
1110
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1111
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1112
input, this->mutable_type()));
1113
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1114
this->type().data(), static_cast<int>(this->type().length()),
1115
::google::protobuf::internal::WireFormatLite::PARSE,
1116
"opencv_tensorflow.OpDef.AttrDef.type"));
1117
} else {
1118
goto handle_unusual;
1119
}
1120
break;
1121
}
1122
1123
// .opencv_tensorflow.AttrValue default_value = 3;
1124
case 3: {
1125
if (static_cast< ::google::protobuf::uint8>(tag) ==
1126
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1127
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1128
input, mutable_default_value()));
1129
} else {
1130
goto handle_unusual;
1131
}
1132
break;
1133
}
1134
1135
// string description = 4;
1136
case 4: {
1137
if (static_cast< ::google::protobuf::uint8>(tag) ==
1138
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1139
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1140
input, this->mutable_description()));
1141
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1142
this->description().data(), static_cast<int>(this->description().length()),
1143
::google::protobuf::internal::WireFormatLite::PARSE,
1144
"opencv_tensorflow.OpDef.AttrDef.description"));
1145
} else {
1146
goto handle_unusual;
1147
}
1148
break;
1149
}
1150
1151
// bool has_minimum = 5;
1152
case 5: {
1153
if (static_cast< ::google::protobuf::uint8>(tag) ==
1154
static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
1155
1156
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1157
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1158
input, &has_minimum_)));
1159
} else {
1160
goto handle_unusual;
1161
}
1162
break;
1163
}
1164
1165
// int64 minimum = 6;
1166
case 6: {
1167
if (static_cast< ::google::protobuf::uint8>(tag) ==
1168
static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
1169
1170
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1171
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1172
input, &minimum_)));
1173
} else {
1174
goto handle_unusual;
1175
}
1176
break;
1177
}
1178
1179
// .opencv_tensorflow.AttrValue allowed_values = 7;
1180
case 7: {
1181
if (static_cast< ::google::protobuf::uint8>(tag) ==
1182
static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
1183
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1184
input, mutable_allowed_values()));
1185
} else {
1186
goto handle_unusual;
1187
}
1188
break;
1189
}
1190
1191
default: {
1192
handle_unusual:
1193
if (tag == 0) {
1194
goto success;
1195
}
1196
DO_(::google::protobuf::internal::WireFormat::SkipField(
1197
input, tag, _internal_metadata_.mutable_unknown_fields()));
1198
break;
1199
}
1200
}
1201
}
1202
success:
1203
// @@protoc_insertion_point(parse_success:opencv_tensorflow.OpDef.AttrDef)
1204
return true;
1205
failure:
1206
// @@protoc_insertion_point(parse_failure:opencv_tensorflow.OpDef.AttrDef)
1207
return false;
1208
#undef DO_
1209
}
1210
1211
void OpDef_AttrDef::SerializeWithCachedSizes(
1212
::google::protobuf::io::CodedOutputStream* output) const {
1213
// @@protoc_insertion_point(serialize_start:opencv_tensorflow.OpDef.AttrDef)
1214
::google::protobuf::uint32 cached_has_bits = 0;
1215
(void) cached_has_bits;
1216
1217
// string name = 1;
1218
if (this->name().size() > 0) {
1219
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1220
this->name().data(), static_cast<int>(this->name().length()),
1221
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1222
"opencv_tensorflow.OpDef.AttrDef.name");
1223
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1224
1, this->name(), output);
1225
}
1226
1227
// string type = 2;
1228
if (this->type().size() > 0) {
1229
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1230
this->type().data(), static_cast<int>(this->type().length()),
1231
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1232
"opencv_tensorflow.OpDef.AttrDef.type");
1233
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1234
2, this->type(), output);
1235
}
1236
1237
// .opencv_tensorflow.AttrValue default_value = 3;
1238
if (this->has_default_value()) {
1239
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1240
3, *this->default_value_, output);
1241
}
1242
1243
// string description = 4;
1244
if (this->description().size() > 0) {
1245
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1246
this->description().data(), static_cast<int>(this->description().length()),
1247
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1248
"opencv_tensorflow.OpDef.AttrDef.description");
1249
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1250
4, this->description(), output);
1251
}
1252
1253
// bool has_minimum = 5;
1254
if (this->has_minimum() != 0) {
1255
::google::protobuf::internal::WireFormatLite::WriteBool(5, this->has_minimum(), output);
1256
}
1257
1258
// int64 minimum = 6;
1259
if (this->minimum() != 0) {
1260
::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->minimum(), output);
1261
}
1262
1263
// .opencv_tensorflow.AttrValue allowed_values = 7;
1264
if (this->has_allowed_values()) {
1265
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1266
7, *this->allowed_values_, output);
1267
}
1268
1269
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1270
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1271
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
1272
}
1273
// @@protoc_insertion_point(serialize_end:opencv_tensorflow.OpDef.AttrDef)
1274
}
1275
1276
::google::protobuf::uint8* OpDef_AttrDef::InternalSerializeWithCachedSizesToArray(
1277
bool deterministic, ::google::protobuf::uint8* target) const {
1278
(void)deterministic; // Unused
1279
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef.AttrDef)
1280
::google::protobuf::uint32 cached_has_bits = 0;
1281
(void) cached_has_bits;
1282
1283
// string name = 1;
1284
if (this->name().size() > 0) {
1285
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1286
this->name().data(), static_cast<int>(this->name().length()),
1287
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1288
"opencv_tensorflow.OpDef.AttrDef.name");
1289
target =
1290
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1291
1, this->name(), target);
1292
}
1293
1294
// string type = 2;
1295
if (this->type().size() > 0) {
1296
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1297
this->type().data(), static_cast<int>(this->type().length()),
1298
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1299
"opencv_tensorflow.OpDef.AttrDef.type");
1300
target =
1301
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1302
2, this->type(), target);
1303
}
1304
1305
// .opencv_tensorflow.AttrValue default_value = 3;
1306
if (this->has_default_value()) {
1307
target = ::google::protobuf::internal::WireFormatLite::
1308
InternalWriteMessageToArray(
1309
3, *this->default_value_, deterministic, target);
1310
}
1311
1312
// string description = 4;
1313
if (this->description().size() > 0) {
1314
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1315
this->description().data(), static_cast<int>(this->description().length()),
1316
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1317
"opencv_tensorflow.OpDef.AttrDef.description");
1318
target =
1319
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1320
4, this->description(), target);
1321
}
1322
1323
// bool has_minimum = 5;
1324
if (this->has_minimum() != 0) {
1325
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->has_minimum(), target);
1326
}
1327
1328
// int64 minimum = 6;
1329
if (this->minimum() != 0) {
1330
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(6, this->minimum(), target);
1331
}
1332
1333
// .opencv_tensorflow.AttrValue allowed_values = 7;
1334
if (this->has_allowed_values()) {
1335
target = ::google::protobuf::internal::WireFormatLite::
1336
InternalWriteMessageToArray(
1337
7, *this->allowed_values_, deterministic, target);
1338
}
1339
1340
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1341
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1342
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
1343
}
1344
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef.AttrDef)
1345
return target;
1346
}
1347
1348
size_t OpDef_AttrDef::ByteSizeLong() const {
1349
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef.AttrDef)
1350
size_t total_size = 0;
1351
1352
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1353
total_size +=
1354
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1355
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
1356
}
1357
// string name = 1;
1358
if (this->name().size() > 0) {
1359
total_size += 1 +
1360
::google::protobuf::internal::WireFormatLite::StringSize(
1361
this->name());
1362
}
1363
1364
// string type = 2;
1365
if (this->type().size() > 0) {
1366
total_size += 1 +
1367
::google::protobuf::internal::WireFormatLite::StringSize(
1368
this->type());
1369
}
1370
1371
// string description = 4;
1372
if (this->description().size() > 0) {
1373
total_size += 1 +
1374
::google::protobuf::internal::WireFormatLite::StringSize(
1375
this->description());
1376
}
1377
1378
// .opencv_tensorflow.AttrValue default_value = 3;
1379
if (this->has_default_value()) {
1380
total_size += 1 +
1381
::google::protobuf::internal::WireFormatLite::MessageSize(
1382
*this->default_value_);
1383
}
1384
1385
// .opencv_tensorflow.AttrValue allowed_values = 7;
1386
if (this->has_allowed_values()) {
1387
total_size += 1 +
1388
::google::protobuf::internal::WireFormatLite::MessageSize(
1389
*this->allowed_values_);
1390
}
1391
1392
// int64 minimum = 6;
1393
if (this->minimum() != 0) {
1394
total_size += 1 +
1395
::google::protobuf::internal::WireFormatLite::Int64Size(
1396
this->minimum());
1397
}
1398
1399
// bool has_minimum = 5;
1400
if (this->has_minimum() != 0) {
1401
total_size += 1 + 1;
1402
}
1403
1404
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1405
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1406
_cached_size_ = cached_size;
1407
GOOGLE_SAFE_CONCURRENT_WRITES_END();
1408
return total_size;
1409
}
1410
1411
void OpDef_AttrDef::MergeFrom(const ::google::protobuf::Message& from) {
1412
// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.OpDef.AttrDef)
1413
GOOGLE_DCHECK_NE(&from, this);
1414
const OpDef_AttrDef* source =
1415
::google::protobuf::internal::DynamicCastToGenerated<const OpDef_AttrDef>(
1416
&from);
1417
if (source == NULL) {
1418
// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.OpDef.AttrDef)
1419
::google::protobuf::internal::ReflectionOps::Merge(from, this);
1420
} else {
1421
// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.OpDef.AttrDef)
1422
MergeFrom(*source);
1423
}
1424
}
1425
1426
void OpDef_AttrDef::MergeFrom(const OpDef_AttrDef& from) {
1427
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef.AttrDef)
1428
GOOGLE_DCHECK_NE(&from, this);
1429
_internal_metadata_.MergeFrom(from._internal_metadata_);
1430
::google::protobuf::uint32 cached_has_bits = 0;
1431
(void) cached_has_bits;
1432
1433
if (from.name().size() > 0) {
1434
set_name(from.name());
1435
}
1436
if (from.type().size() > 0) {
1437
set_type(from.type());
1438
}
1439
if (from.description().size() > 0) {
1440
set_description(from.description());
1441
}
1442
if (from.has_default_value()) {
1443
mutable_default_value()->::opencv_tensorflow::AttrValue::MergeFrom(from.default_value());
1444
}
1445
if (from.has_allowed_values()) {
1446
mutable_allowed_values()->::opencv_tensorflow::AttrValue::MergeFrom(from.allowed_values());
1447
}
1448
if (from.minimum() != 0) {
1449
set_minimum(from.minimum());
1450
}
1451
if (from.has_minimum() != 0) {
1452
set_has_minimum(from.has_minimum());
1453
}
1454
}
1455
1456
void OpDef_AttrDef::CopyFrom(const ::google::protobuf::Message& from) {
1457
// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.OpDef.AttrDef)
1458
if (&from == this) return;
1459
Clear();
1460
MergeFrom(from);
1461
}
1462
1463
void OpDef_AttrDef::CopyFrom(const OpDef_AttrDef& from) {
1464
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef.AttrDef)
1465
if (&from == this) return;
1466
Clear();
1467
MergeFrom(from);
1468
}
1469
1470
bool OpDef_AttrDef::IsInitialized() const {
1471
return true;
1472
}
1473
1474
void OpDef_AttrDef::Swap(OpDef_AttrDef* other) {
1475
if (other == this) return;
1476
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
1477
InternalSwap(other);
1478
} else {
1479
OpDef_AttrDef* temp = New(GetArenaNoVirtual());
1480
temp->MergeFrom(*other);
1481
other->CopyFrom(*this);
1482
InternalSwap(temp);
1483
if (GetArenaNoVirtual() == NULL) {
1484
delete temp;
1485
}
1486
}
1487
}
1488
void OpDef_AttrDef::UnsafeArenaSwap(OpDef_AttrDef* other) {
1489
if (other == this) return;
1490
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
1491
InternalSwap(other);
1492
}
1493
void OpDef_AttrDef::InternalSwap(OpDef_AttrDef* other) {
1494
using std::swap;
1495
name_.Swap(&other->name_);
1496
type_.Swap(&other->type_);
1497
description_.Swap(&other->description_);
1498
swap(default_value_, other->default_value_);
1499
swap(allowed_values_, other->allowed_values_);
1500
swap(minimum_, other->minimum_);
1501
swap(has_minimum_, other->has_minimum_);
1502
_internal_metadata_.Swap(&other->_internal_metadata_);
1503
swap(_cached_size_, other->_cached_size_);
1504
}
1505
1506
::google::protobuf::Metadata OpDef_AttrDef::GetMetadata() const {
1507
protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
1508
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages];
1509
}
1510
1511
1512
// ===================================================================
1513
1514
void OpDef::InitAsDefaultInstance() {
1515
::opencv_tensorflow::_OpDef_default_instance_._instance.get_mutable()->deprecation_ = const_cast< ::opencv_tensorflow::OpDeprecation*>(
1516
::opencv_tensorflow::OpDeprecation::internal_default_instance());
1517
}
1518
void OpDef::_slow_mutable_deprecation() {
1519
deprecation_ = ::google::protobuf::Arena::CreateMessage< ::opencv_tensorflow::OpDeprecation >(
1520
GetArenaNoVirtual());
1521
}
1522
void OpDef::unsafe_arena_set_allocated_deprecation(
1523
::opencv_tensorflow::OpDeprecation* deprecation) {
1524
if (GetArenaNoVirtual() == NULL) {
1525
delete deprecation_;
1526
}
1527
deprecation_ = deprecation;
1528
if (deprecation) {
1529
1530
} else {
1531
1532
}
1533
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.OpDef.deprecation)
1534
}
1535
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1536
const int OpDef::kNameFieldNumber;
1537
const int OpDef::kInputArgFieldNumber;
1538
const int OpDef::kOutputArgFieldNumber;
1539
const int OpDef::kAttrFieldNumber;
1540
const int OpDef::kDeprecationFieldNumber;
1541
const int OpDef::kSummaryFieldNumber;
1542
const int OpDef::kDescriptionFieldNumber;
1543
const int OpDef::kIsCommutativeFieldNumber;
1544
const int OpDef::kIsAggregateFieldNumber;
1545
const int OpDef::kIsStatefulFieldNumber;
1546
const int OpDef::kAllowsUninitializedInputFieldNumber;
1547
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1548
1549
OpDef::OpDef()
1550
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
1551
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1552
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef();
1553
}
1554
SharedCtor();
1555
// @@protoc_insertion_point(constructor:opencv_tensorflow.OpDef)
1556
}
1557
OpDef::OpDef(::google::protobuf::Arena* arena)
1558
: ::google::protobuf::Message(),
1559
_internal_metadata_(arena),
1560
input_arg_(arena),
1561
output_arg_(arena),
1562
attr_(arena) {
1563
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef();
1564
SharedCtor();
1565
RegisterArenaDtor(arena);
1566
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef)
1567
}
1568
OpDef::OpDef(const OpDef& from)
1569
: ::google::protobuf::Message(),
1570
_internal_metadata_(NULL),
1571
input_arg_(from.input_arg_),
1572
output_arg_(from.output_arg_),
1573
attr_(from.attr_),
1574
_cached_size_(0) {
1575
_internal_metadata_.MergeFrom(from._internal_metadata_);
1576
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1577
if (from.name().size() > 0) {
1578
name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name(),
1579
GetArenaNoVirtual());
1580
}
1581
summary_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1582
if (from.summary().size() > 0) {
1583
summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.summary(),
1584
GetArenaNoVirtual());
1585
}
1586
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1587
if (from.description().size() > 0) {
1588
description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description(),
1589
GetArenaNoVirtual());
1590
}
1591
if (from.has_deprecation()) {
1592
deprecation_ = new ::opencv_tensorflow::OpDeprecation(*from.deprecation_);
1593
} else {
1594
deprecation_ = NULL;
1595
}
1596
::memcpy(&is_commutative_, &from.is_commutative_,
1597
static_cast<size_t>(reinterpret_cast<char*>(&allows_uninitialized_input_) -
1598
reinterpret_cast<char*>(&is_commutative_)) + sizeof(allows_uninitialized_input_));
1599
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef)
1600
}
1601
1602
void OpDef::SharedCtor() {
1603
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1604
summary_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1605
description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1606
::memset(&deprecation_, 0, static_cast<size_t>(
1607
reinterpret_cast<char*>(&allows_uninitialized_input_) -
1608
reinterpret_cast<char*>(&deprecation_)) + sizeof(allows_uninitialized_input_));
1609
_cached_size_ = 0;
1610
}
1611
1612
OpDef::~OpDef() {
1613
// @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef)
1614
SharedDtor();
1615
}
1616
1617
void OpDef::SharedDtor() {
1618
GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
1619
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1620
summary_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1621
description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1622
if (this != internal_default_instance()) delete deprecation_;
1623
}
1624
1625
void OpDef::ArenaDtor(void* object) {
1626
OpDef* _this = reinterpret_cast< OpDef* >(object);
1627
(void)_this;
1628
}
1629
void OpDef::RegisterArenaDtor(::google::protobuf::Arena* arena) {
1630
}
1631
void OpDef::SetCachedSize(int size) const {
1632
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1633
_cached_size_ = size;
1634
GOOGLE_SAFE_CONCURRENT_WRITES_END();
1635
}
1636
const ::google::protobuf::Descriptor* OpDef::descriptor() {
1637
::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
1638
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1639
}
1640
1641
const OpDef& OpDef::default_instance() {
1642
::protobuf_op_5fdef_2eproto::InitDefaultsOpDef();
1643
return *internal_default_instance();
1644
}
1645
1646
OpDef* OpDef::New(::google::protobuf::Arena* arena) const {
1647
return ::google::protobuf::Arena::CreateMessage<OpDef>(arena);
1648
}
1649
1650
void OpDef::Clear() {
1651
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef)
1652
::google::protobuf::uint32 cached_has_bits = 0;
1653
// Prevent compiler warnings about cached_has_bits being unused
1654
(void) cached_has_bits;
1655
1656
input_arg_.Clear();
1657
output_arg_.Clear();
1658
attr_.Clear();
1659
name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1660
summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1661
description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1662
if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) {
1663
delete deprecation_;
1664
}
1665
deprecation_ = NULL;
1666
::memset(&is_commutative_, 0, static_cast<size_t>(
1667
reinterpret_cast<char*>(&allows_uninitialized_input_) -
1668
reinterpret_cast<char*>(&is_commutative_)) + sizeof(allows_uninitialized_input_));
1669
_internal_metadata_.Clear();
1670
}
1671
1672
bool OpDef::MergePartialFromCodedStream(
1673
::google::protobuf::io::CodedInputStream* input) {
1674
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1675
::google::protobuf::uint32 tag;
1676
// @@protoc_insertion_point(parse_start:opencv_tensorflow.OpDef)
1677
for (;;) {
1678
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
1679
tag = p.first;
1680
if (!p.second) goto handle_unusual;
1681
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1682
// string name = 1;
1683
case 1: {
1684
if (static_cast< ::google::protobuf::uint8>(tag) ==
1685
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1686
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1687
input, this->mutable_name()));
1688
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1689
this->name().data(), static_cast<int>(this->name().length()),
1690
::google::protobuf::internal::WireFormatLite::PARSE,
1691
"opencv_tensorflow.OpDef.name"));
1692
} else {
1693
goto handle_unusual;
1694
}
1695
break;
1696
}
1697
1698
// repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
1699
case 2: {
1700
if (static_cast< ::google::protobuf::uint8>(tag) ==
1701
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1702
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_input_arg()));
1703
} else {
1704
goto handle_unusual;
1705
}
1706
break;
1707
}
1708
1709
// repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
1710
case 3: {
1711
if (static_cast< ::google::protobuf::uint8>(tag) ==
1712
static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1713
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_output_arg()));
1714
} else {
1715
goto handle_unusual;
1716
}
1717
break;
1718
}
1719
1720
// repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
1721
case 4: {
1722
if (static_cast< ::google::protobuf::uint8>(tag) ==
1723
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1724
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_attr()));
1725
} else {
1726
goto handle_unusual;
1727
}
1728
break;
1729
}
1730
1731
// string summary = 5;
1732
case 5: {
1733
if (static_cast< ::google::protobuf::uint8>(tag) ==
1734
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1735
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1736
input, this->mutable_summary()));
1737
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1738
this->summary().data(), static_cast<int>(this->summary().length()),
1739
::google::protobuf::internal::WireFormatLite::PARSE,
1740
"opencv_tensorflow.OpDef.summary"));
1741
} else {
1742
goto handle_unusual;
1743
}
1744
break;
1745
}
1746
1747
// string description = 6;
1748
case 6: {
1749
if (static_cast< ::google::protobuf::uint8>(tag) ==
1750
static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1751
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1752
input, this->mutable_description()));
1753
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1754
this->description().data(), static_cast<int>(this->description().length()),
1755
::google::protobuf::internal::WireFormatLite::PARSE,
1756
"opencv_tensorflow.OpDef.description"));
1757
} else {
1758
goto handle_unusual;
1759
}
1760
break;
1761
}
1762
1763
// .opencv_tensorflow.OpDeprecation deprecation = 8;
1764
case 8: {
1765
if (static_cast< ::google::protobuf::uint8>(tag) ==
1766
static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
1767
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1768
input, mutable_deprecation()));
1769
} else {
1770
goto handle_unusual;
1771
}
1772
break;
1773
}
1774
1775
// bool is_aggregate = 16;
1776
case 16: {
1777
if (static_cast< ::google::protobuf::uint8>(tag) ==
1778
static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
1779
1780
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1781
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1782
input, &is_aggregate_)));
1783
} else {
1784
goto handle_unusual;
1785
}
1786
break;
1787
}
1788
1789
// bool is_stateful = 17;
1790
case 17: {
1791
if (static_cast< ::google::protobuf::uint8>(tag) ==
1792
static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
1793
1794
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1795
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1796
input, &is_stateful_)));
1797
} else {
1798
goto handle_unusual;
1799
}
1800
break;
1801
}
1802
1803
// bool is_commutative = 18;
1804
case 18: {
1805
if (static_cast< ::google::protobuf::uint8>(tag) ==
1806
static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {
1807
1808
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1809
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1810
input, &is_commutative_)));
1811
} else {
1812
goto handle_unusual;
1813
}
1814
break;
1815
}
1816
1817
// bool allows_uninitialized_input = 19;
1818
case 19: {
1819
if (static_cast< ::google::protobuf::uint8>(tag) ==
1820
static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
1821
1822
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1823
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1824
input, &allows_uninitialized_input_)));
1825
} else {
1826
goto handle_unusual;
1827
}
1828
break;
1829
}
1830
1831
default: {
1832
handle_unusual:
1833
if (tag == 0) {
1834
goto success;
1835
}
1836
DO_(::google::protobuf::internal::WireFormat::SkipField(
1837
input, tag, _internal_metadata_.mutable_unknown_fields()));
1838
break;
1839
}
1840
}
1841
}
1842
success:
1843
// @@protoc_insertion_point(parse_success:opencv_tensorflow.OpDef)
1844
return true;
1845
failure:
1846
// @@protoc_insertion_point(parse_failure:opencv_tensorflow.OpDef)
1847
return false;
1848
#undef DO_
1849
}
1850
1851
void OpDef::SerializeWithCachedSizes(
1852
::google::protobuf::io::CodedOutputStream* output) const {
1853
// @@protoc_insertion_point(serialize_start:opencv_tensorflow.OpDef)
1854
::google::protobuf::uint32 cached_has_bits = 0;
1855
(void) cached_has_bits;
1856
1857
// string name = 1;
1858
if (this->name().size() > 0) {
1859
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1860
this->name().data(), static_cast<int>(this->name().length()),
1861
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1862
"opencv_tensorflow.OpDef.name");
1863
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1864
1, this->name(), output);
1865
}
1866
1867
// repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
1868
for (unsigned int i = 0,
1869
n = static_cast<unsigned int>(this->input_arg_size()); i < n; i++) {
1870
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1871
2, this->input_arg(static_cast<int>(i)), output);
1872
}
1873
1874
// repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
1875
for (unsigned int i = 0,
1876
n = static_cast<unsigned int>(this->output_arg_size()); i < n; i++) {
1877
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1878
3, this->output_arg(static_cast<int>(i)), output);
1879
}
1880
1881
// repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
1882
for (unsigned int i = 0,
1883
n = static_cast<unsigned int>(this->attr_size()); i < n; i++) {
1884
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1885
4, this->attr(static_cast<int>(i)), output);
1886
}
1887
1888
// string summary = 5;
1889
if (this->summary().size() > 0) {
1890
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1891
this->summary().data(), static_cast<int>(this->summary().length()),
1892
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1893
"opencv_tensorflow.OpDef.summary");
1894
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1895
5, this->summary(), output);
1896
}
1897
1898
// string description = 6;
1899
if (this->description().size() > 0) {
1900
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1901
this->description().data(), static_cast<int>(this->description().length()),
1902
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1903
"opencv_tensorflow.OpDef.description");
1904
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1905
6, this->description(), output);
1906
}
1907
1908
// .opencv_tensorflow.OpDeprecation deprecation = 8;
1909
if (this->has_deprecation()) {
1910
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1911
8, *this->deprecation_, output);
1912
}
1913
1914
// bool is_aggregate = 16;
1915
if (this->is_aggregate() != 0) {
1916
::google::protobuf::internal::WireFormatLite::WriteBool(16, this->is_aggregate(), output);
1917
}
1918
1919
// bool is_stateful = 17;
1920
if (this->is_stateful() != 0) {
1921
::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_stateful(), output);
1922
}
1923
1924
// bool is_commutative = 18;
1925
if (this->is_commutative() != 0) {
1926
::google::protobuf::internal::WireFormatLite::WriteBool(18, this->is_commutative(), output);
1927
}
1928
1929
// bool allows_uninitialized_input = 19;
1930
if (this->allows_uninitialized_input() != 0) {
1931
::google::protobuf::internal::WireFormatLite::WriteBool(19, this->allows_uninitialized_input(), output);
1932
}
1933
1934
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1935
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1936
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
1937
}
1938
// @@protoc_insertion_point(serialize_end:opencv_tensorflow.OpDef)
1939
}
1940
1941
::google::protobuf::uint8* OpDef::InternalSerializeWithCachedSizesToArray(
1942
bool deterministic, ::google::protobuf::uint8* target) const {
1943
(void)deterministic; // Unused
1944
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef)
1945
::google::protobuf::uint32 cached_has_bits = 0;
1946
(void) cached_has_bits;
1947
1948
// string name = 1;
1949
if (this->name().size() > 0) {
1950
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1951
this->name().data(), static_cast<int>(this->name().length()),
1952
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1953
"opencv_tensorflow.OpDef.name");
1954
target =
1955
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1956
1, this->name(), target);
1957
}
1958
1959
// repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
1960
for (unsigned int i = 0,
1961
n = static_cast<unsigned int>(this->input_arg_size()); i < n; i++) {
1962
target = ::google::protobuf::internal::WireFormatLite::
1963
InternalWriteMessageToArray(
1964
2, this->input_arg(static_cast<int>(i)), deterministic, target);
1965
}
1966
1967
// repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
1968
for (unsigned int i = 0,
1969
n = static_cast<unsigned int>(this->output_arg_size()); i < n; i++) {
1970
target = ::google::protobuf::internal::WireFormatLite::
1971
InternalWriteMessageToArray(
1972
3, this->output_arg(static_cast<int>(i)), deterministic, target);
1973
}
1974
1975
// repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
1976
for (unsigned int i = 0,
1977
n = static_cast<unsigned int>(this->attr_size()); i < n; i++) {
1978
target = ::google::protobuf::internal::WireFormatLite::
1979
InternalWriteMessageToArray(
1980
4, this->attr(static_cast<int>(i)), deterministic, target);
1981
}
1982
1983
// string summary = 5;
1984
if (this->summary().size() > 0) {
1985
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1986
this->summary().data(), static_cast<int>(this->summary().length()),
1987
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1988
"opencv_tensorflow.OpDef.summary");
1989
target =
1990
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1991
5, this->summary(), target);
1992
}
1993
1994
// string description = 6;
1995
if (this->description().size() > 0) {
1996
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1997
this->description().data(), static_cast<int>(this->description().length()),
1998
::google::protobuf::internal::WireFormatLite::SERIALIZE,
1999
"opencv_tensorflow.OpDef.description");
2000
target =
2001
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2002
6, this->description(), target);
2003
}
2004
2005
// .opencv_tensorflow.OpDeprecation deprecation = 8;
2006
if (this->has_deprecation()) {
2007
target = ::google::protobuf::internal::WireFormatLite::
2008
InternalWriteMessageToArray(
2009
8, *this->deprecation_, deterministic, target);
2010
}
2011
2012
// bool is_aggregate = 16;
2013
if (this->is_aggregate() != 0) {
2014
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->is_aggregate(), target);
2015
}
2016
2017
// bool is_stateful = 17;
2018
if (this->is_stateful() != 0) {
2019
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_stateful(), target);
2020
}
2021
2022
// bool is_commutative = 18;
2023
if (this->is_commutative() != 0) {
2024
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->is_commutative(), target);
2025
}
2026
2027
// bool allows_uninitialized_input = 19;
2028
if (this->allows_uninitialized_input() != 0) {
2029
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->allows_uninitialized_input(), target);
2030
}
2031
2032
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2033
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2034
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
2035
}
2036
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef)
2037
return target;
2038
}
2039
2040
size_t OpDef::ByteSizeLong() const {
2041
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef)
2042
size_t total_size = 0;
2043
2044
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2045
total_size +=
2046
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2047
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
2048
}
2049
// repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
2050
{
2051
unsigned int count = static_cast<unsigned int>(this->input_arg_size());
2052
total_size += 1UL * count;
2053
for (unsigned int i = 0; i < count; i++) {
2054
total_size +=
2055
::google::protobuf::internal::WireFormatLite::MessageSize(
2056
this->input_arg(static_cast<int>(i)));
2057
}
2058
}
2059
2060
// repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
2061
{
2062
unsigned int count = static_cast<unsigned int>(this->output_arg_size());
2063
total_size += 1UL * count;
2064
for (unsigned int i = 0; i < count; i++) {
2065
total_size +=
2066
::google::protobuf::internal::WireFormatLite::MessageSize(
2067
this->output_arg(static_cast<int>(i)));
2068
}
2069
}
2070
2071
// repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
2072
{
2073
unsigned int count = static_cast<unsigned int>(this->attr_size());
2074
total_size += 1UL * count;
2075
for (unsigned int i = 0; i < count; i++) {
2076
total_size +=
2077
::google::protobuf::internal::WireFormatLite::MessageSize(
2078
this->attr(static_cast<int>(i)));
2079
}
2080
}
2081
2082
// string name = 1;
2083
if (this->name().size() > 0) {
2084
total_size += 1 +
2085
::google::protobuf::internal::WireFormatLite::StringSize(
2086
this->name());
2087
}
2088
2089
// string summary = 5;
2090
if (this->summary().size() > 0) {
2091
total_size += 1 +
2092
::google::protobuf::internal::WireFormatLite::StringSize(
2093
this->summary());
2094
}
2095
2096
// string description = 6;
2097
if (this->description().size() > 0) {
2098
total_size += 1 +
2099
::google::protobuf::internal::WireFormatLite::StringSize(
2100
this->description());
2101
}
2102
2103
// .opencv_tensorflow.OpDeprecation deprecation = 8;
2104
if (this->has_deprecation()) {
2105
total_size += 1 +
2106
::google::protobuf::internal::WireFormatLite::MessageSize(
2107
*this->deprecation_);
2108
}
2109
2110
// bool is_commutative = 18;
2111
if (this->is_commutative() != 0) {
2112
total_size += 2 + 1;
2113
}
2114
2115
// bool is_aggregate = 16;
2116
if (this->is_aggregate() != 0) {
2117
total_size += 2 + 1;
2118
}
2119
2120
// bool is_stateful = 17;
2121
if (this->is_stateful() != 0) {
2122
total_size += 2 + 1;
2123
}
2124
2125
// bool allows_uninitialized_input = 19;
2126
if (this->allows_uninitialized_input() != 0) {
2127
total_size += 2 + 1;
2128
}
2129
2130
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2131
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2132
_cached_size_ = cached_size;
2133
GOOGLE_SAFE_CONCURRENT_WRITES_END();
2134
return total_size;
2135
}
2136
2137
void OpDef::MergeFrom(const ::google::protobuf::Message& from) {
2138
// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.OpDef)
2139
GOOGLE_DCHECK_NE(&from, this);
2140
const OpDef* source =
2141
::google::protobuf::internal::DynamicCastToGenerated<const OpDef>(
2142
&from);
2143
if (source == NULL) {
2144
// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.OpDef)
2145
::google::protobuf::internal::ReflectionOps::Merge(from, this);
2146
} else {
2147
// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.OpDef)
2148
MergeFrom(*source);
2149
}
2150
}
2151
2152
void OpDef::MergeFrom(const OpDef& from) {
2153
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef)
2154
GOOGLE_DCHECK_NE(&from, this);
2155
_internal_metadata_.MergeFrom(from._internal_metadata_);
2156
::google::protobuf::uint32 cached_has_bits = 0;
2157
(void) cached_has_bits;
2158
2159
input_arg_.MergeFrom(from.input_arg_);
2160
output_arg_.MergeFrom(from.output_arg_);
2161
attr_.MergeFrom(from.attr_);
2162
if (from.name().size() > 0) {
2163
set_name(from.name());
2164
}
2165
if (from.summary().size() > 0) {
2166
set_summary(from.summary());
2167
}
2168
if (from.description().size() > 0) {
2169
set_description(from.description());
2170
}
2171
if (from.has_deprecation()) {
2172
mutable_deprecation()->::opencv_tensorflow::OpDeprecation::MergeFrom(from.deprecation());
2173
}
2174
if (from.is_commutative() != 0) {
2175
set_is_commutative(from.is_commutative());
2176
}
2177
if (from.is_aggregate() != 0) {
2178
set_is_aggregate(from.is_aggregate());
2179
}
2180
if (from.is_stateful() != 0) {
2181
set_is_stateful(from.is_stateful());
2182
}
2183
if (from.allows_uninitialized_input() != 0) {
2184
set_allows_uninitialized_input(from.allows_uninitialized_input());
2185
}
2186
}
2187
2188
void OpDef::CopyFrom(const ::google::protobuf::Message& from) {
2189
// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.OpDef)
2190
if (&from == this) return;
2191
Clear();
2192
MergeFrom(from);
2193
}
2194
2195
void OpDef::CopyFrom(const OpDef& from) {
2196
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef)
2197
if (&from == this) return;
2198
Clear();
2199
MergeFrom(from);
2200
}
2201
2202
bool OpDef::IsInitialized() const {
2203
return true;
2204
}
2205
2206
void OpDef::Swap(OpDef* other) {
2207
if (other == this) return;
2208
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
2209
InternalSwap(other);
2210
} else {
2211
OpDef* temp = New(GetArenaNoVirtual());
2212
temp->MergeFrom(*other);
2213
other->CopyFrom(*this);
2214
InternalSwap(temp);
2215
if (GetArenaNoVirtual() == NULL) {
2216
delete temp;
2217
}
2218
}
2219
}
2220
void OpDef::UnsafeArenaSwap(OpDef* other) {
2221
if (other == this) return;
2222
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
2223
InternalSwap(other);
2224
}
2225
void OpDef::InternalSwap(OpDef* other) {
2226
using std::swap;
2227
input_arg_.InternalSwap(&other->input_arg_);
2228
output_arg_.InternalSwap(&other->output_arg_);
2229
attr_.InternalSwap(&other->attr_);
2230
name_.Swap(&other->name_);
2231
summary_.Swap(&other->summary_);
2232
description_.Swap(&other->description_);
2233
swap(deprecation_, other->deprecation_);
2234
swap(is_commutative_, other->is_commutative_);
2235
swap(is_aggregate_, other->is_aggregate_);
2236
swap(is_stateful_, other->is_stateful_);
2237
swap(allows_uninitialized_input_, other->allows_uninitialized_input_);
2238
_internal_metadata_.Swap(&other->_internal_metadata_);
2239
swap(_cached_size_, other->_cached_size_);
2240
}
2241
2242
::google::protobuf::Metadata OpDef::GetMetadata() const {
2243
protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
2244
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages];
2245
}
2246
2247
2248
// ===================================================================
2249
2250
void OpDeprecation::InitAsDefaultInstance() {
2251
}
2252
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2253
const int OpDeprecation::kVersionFieldNumber;
2254
const int OpDeprecation::kExplanationFieldNumber;
2255
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2256
2257
OpDeprecation::OpDeprecation()
2258
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
2259
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2260
::protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecation();
2261
}
2262
SharedCtor();
2263
// @@protoc_insertion_point(constructor:opencv_tensorflow.OpDeprecation)
2264
}
2265
OpDeprecation::OpDeprecation(::google::protobuf::Arena* arena)
2266
: ::google::protobuf::Message(),
2267
_internal_metadata_(arena) {
2268
::protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecation();
2269
SharedCtor();
2270
RegisterArenaDtor(arena);
2271
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDeprecation)
2272
}
2273
OpDeprecation::OpDeprecation(const OpDeprecation& from)
2274
: ::google::protobuf::Message(),
2275
_internal_metadata_(NULL),
2276
_cached_size_(0) {
2277
_internal_metadata_.MergeFrom(from._internal_metadata_);
2278
explanation_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2279
if (from.explanation().size() > 0) {
2280
explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.explanation(),
2281
GetArenaNoVirtual());
2282
}
2283
version_ = from.version_;
2284
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDeprecation)
2285
}
2286
2287
void OpDeprecation::SharedCtor() {
2288
explanation_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2289
version_ = 0;
2290
_cached_size_ = 0;
2291
}
2292
2293
OpDeprecation::~OpDeprecation() {
2294
// @@protoc_insertion_point(destructor:opencv_tensorflow.OpDeprecation)
2295
SharedDtor();
2296
}
2297
2298
void OpDeprecation::SharedDtor() {
2299
GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
2300
explanation_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2301
}
2302
2303
void OpDeprecation::ArenaDtor(void* object) {
2304
OpDeprecation* _this = reinterpret_cast< OpDeprecation* >(object);
2305
(void)_this;
2306
}
2307
void OpDeprecation::RegisterArenaDtor(::google::protobuf::Arena* arena) {
2308
}
2309
void OpDeprecation::SetCachedSize(int size) const {
2310
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2311
_cached_size_ = size;
2312
GOOGLE_SAFE_CONCURRENT_WRITES_END();
2313
}
2314
const ::google::protobuf::Descriptor* OpDeprecation::descriptor() {
2315
::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
2316
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2317
}
2318
2319
const OpDeprecation& OpDeprecation::default_instance() {
2320
::protobuf_op_5fdef_2eproto::InitDefaultsOpDeprecation();
2321
return *internal_default_instance();
2322
}
2323
2324
OpDeprecation* OpDeprecation::New(::google::protobuf::Arena* arena) const {
2325
return ::google::protobuf::Arena::CreateMessage<OpDeprecation>(arena);
2326
}
2327
2328
void OpDeprecation::Clear() {
2329
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDeprecation)
2330
::google::protobuf::uint32 cached_has_bits = 0;
2331
// Prevent compiler warnings about cached_has_bits being unused
2332
(void) cached_has_bits;
2333
2334
explanation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2335
version_ = 0;
2336
_internal_metadata_.Clear();
2337
}
2338
2339
bool OpDeprecation::MergePartialFromCodedStream(
2340
::google::protobuf::io::CodedInputStream* input) {
2341
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2342
::google::protobuf::uint32 tag;
2343
// @@protoc_insertion_point(parse_start:opencv_tensorflow.OpDeprecation)
2344
for (;;) {
2345
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2346
tag = p.first;
2347
if (!p.second) goto handle_unusual;
2348
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2349
// int32 version = 1;
2350
case 1: {
2351
if (static_cast< ::google::protobuf::uint8>(tag) ==
2352
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2353
2354
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2355
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2356
input, &version_)));
2357
} else {
2358
goto handle_unusual;
2359
}
2360
break;
2361
}
2362
2363
// string explanation = 2;
2364
case 2: {
2365
if (static_cast< ::google::protobuf::uint8>(tag) ==
2366
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2367
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2368
input, this->mutable_explanation()));
2369
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2370
this->explanation().data(), static_cast<int>(this->explanation().length()),
2371
::google::protobuf::internal::WireFormatLite::PARSE,
2372
"opencv_tensorflow.OpDeprecation.explanation"));
2373
} else {
2374
goto handle_unusual;
2375
}
2376
break;
2377
}
2378
2379
default: {
2380
handle_unusual:
2381
if (tag == 0) {
2382
goto success;
2383
}
2384
DO_(::google::protobuf::internal::WireFormat::SkipField(
2385
input, tag, _internal_metadata_.mutable_unknown_fields()));
2386
break;
2387
}
2388
}
2389
}
2390
success:
2391
// @@protoc_insertion_point(parse_success:opencv_tensorflow.OpDeprecation)
2392
return true;
2393
failure:
2394
// @@protoc_insertion_point(parse_failure:opencv_tensorflow.OpDeprecation)
2395
return false;
2396
#undef DO_
2397
}
2398
2399
void OpDeprecation::SerializeWithCachedSizes(
2400
::google::protobuf::io::CodedOutputStream* output) const {
2401
// @@protoc_insertion_point(serialize_start:opencv_tensorflow.OpDeprecation)
2402
::google::protobuf::uint32 cached_has_bits = 0;
2403
(void) cached_has_bits;
2404
2405
// int32 version = 1;
2406
if (this->version() != 0) {
2407
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->version(), output);
2408
}
2409
2410
// string explanation = 2;
2411
if (this->explanation().size() > 0) {
2412
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2413
this->explanation().data(), static_cast<int>(this->explanation().length()),
2414
::google::protobuf::internal::WireFormatLite::SERIALIZE,
2415
"opencv_tensorflow.OpDeprecation.explanation");
2416
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2417
2, this->explanation(), output);
2418
}
2419
2420
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2421
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2422
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
2423
}
2424
// @@protoc_insertion_point(serialize_end:opencv_tensorflow.OpDeprecation)
2425
}
2426
2427
::google::protobuf::uint8* OpDeprecation::InternalSerializeWithCachedSizesToArray(
2428
bool deterministic, ::google::protobuf::uint8* target) const {
2429
(void)deterministic; // Unused
2430
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDeprecation)
2431
::google::protobuf::uint32 cached_has_bits = 0;
2432
(void) cached_has_bits;
2433
2434
// int32 version = 1;
2435
if (this->version() != 0) {
2436
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target);
2437
}
2438
2439
// string explanation = 2;
2440
if (this->explanation().size() > 0) {
2441
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2442
this->explanation().data(), static_cast<int>(this->explanation().length()),
2443
::google::protobuf::internal::WireFormatLite::SERIALIZE,
2444
"opencv_tensorflow.OpDeprecation.explanation");
2445
target =
2446
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2447
2, this->explanation(), target);
2448
}
2449
2450
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2451
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2452
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
2453
}
2454
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDeprecation)
2455
return target;
2456
}
2457
2458
size_t OpDeprecation::ByteSizeLong() const {
2459
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDeprecation)
2460
size_t total_size = 0;
2461
2462
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2463
total_size +=
2464
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2465
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
2466
}
2467
// string explanation = 2;
2468
if (this->explanation().size() > 0) {
2469
total_size += 1 +
2470
::google::protobuf::internal::WireFormatLite::StringSize(
2471
this->explanation());
2472
}
2473
2474
// int32 version = 1;
2475
if (this->version() != 0) {
2476
total_size += 1 +
2477
::google::protobuf::internal::WireFormatLite::Int32Size(
2478
this->version());
2479
}
2480
2481
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2482
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2483
_cached_size_ = cached_size;
2484
GOOGLE_SAFE_CONCURRENT_WRITES_END();
2485
return total_size;
2486
}
2487
2488
void OpDeprecation::MergeFrom(const ::google::protobuf::Message& from) {
2489
// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.OpDeprecation)
2490
GOOGLE_DCHECK_NE(&from, this);
2491
const OpDeprecation* source =
2492
::google::protobuf::internal::DynamicCastToGenerated<const OpDeprecation>(
2493
&from);
2494
if (source == NULL) {
2495
// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.OpDeprecation)
2496
::google::protobuf::internal::ReflectionOps::Merge(from, this);
2497
} else {
2498
// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.OpDeprecation)
2499
MergeFrom(*source);
2500
}
2501
}
2502
2503
void OpDeprecation::MergeFrom(const OpDeprecation& from) {
2504
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDeprecation)
2505
GOOGLE_DCHECK_NE(&from, this);
2506
_internal_metadata_.MergeFrom(from._internal_metadata_);
2507
::google::protobuf::uint32 cached_has_bits = 0;
2508
(void) cached_has_bits;
2509
2510
if (from.explanation().size() > 0) {
2511
set_explanation(from.explanation());
2512
}
2513
if (from.version() != 0) {
2514
set_version(from.version());
2515
}
2516
}
2517
2518
void OpDeprecation::CopyFrom(const ::google::protobuf::Message& from) {
2519
// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.OpDeprecation)
2520
if (&from == this) return;
2521
Clear();
2522
MergeFrom(from);
2523
}
2524
2525
void OpDeprecation::CopyFrom(const OpDeprecation& from) {
2526
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDeprecation)
2527
if (&from == this) return;
2528
Clear();
2529
MergeFrom(from);
2530
}
2531
2532
bool OpDeprecation::IsInitialized() const {
2533
return true;
2534
}
2535
2536
void OpDeprecation::Swap(OpDeprecation* other) {
2537
if (other == this) return;
2538
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
2539
InternalSwap(other);
2540
} else {
2541
OpDeprecation* temp = New(GetArenaNoVirtual());
2542
temp->MergeFrom(*other);
2543
other->CopyFrom(*this);
2544
InternalSwap(temp);
2545
if (GetArenaNoVirtual() == NULL) {
2546
delete temp;
2547
}
2548
}
2549
}
2550
void OpDeprecation::UnsafeArenaSwap(OpDeprecation* other) {
2551
if (other == this) return;
2552
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
2553
InternalSwap(other);
2554
}
2555
void OpDeprecation::InternalSwap(OpDeprecation* other) {
2556
using std::swap;
2557
explanation_.Swap(&other->explanation_);
2558
swap(version_, other->version_);
2559
_internal_metadata_.Swap(&other->_internal_metadata_);
2560
swap(_cached_size_, other->_cached_size_);
2561
}
2562
2563
::google::protobuf::Metadata OpDeprecation::GetMetadata() const {
2564
protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
2565
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages];
2566
}
2567
2568
2569
// ===================================================================
2570
2571
void OpList::InitAsDefaultInstance() {
2572
}
2573
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2574
const int OpList::kOpFieldNumber;
2575
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2576
2577
OpList::OpList()
2578
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
2579
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2580
::protobuf_op_5fdef_2eproto::InitDefaultsOpList();
2581
}
2582
SharedCtor();
2583
// @@protoc_insertion_point(constructor:opencv_tensorflow.OpList)
2584
}
2585
OpList::OpList(::google::protobuf::Arena* arena)
2586
: ::google::protobuf::Message(),
2587
_internal_metadata_(arena),
2588
op_(arena) {
2589
::protobuf_op_5fdef_2eproto::InitDefaultsOpList();
2590
SharedCtor();
2591
RegisterArenaDtor(arena);
2592
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpList)
2593
}
2594
OpList::OpList(const OpList& from)
2595
: ::google::protobuf::Message(),
2596
_internal_metadata_(NULL),
2597
op_(from.op_),
2598
_cached_size_(0) {
2599
_internal_metadata_.MergeFrom(from._internal_metadata_);
2600
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpList)
2601
}
2602
2603
void OpList::SharedCtor() {
2604
_cached_size_ = 0;
2605
}
2606
2607
OpList::~OpList() {
2608
// @@protoc_insertion_point(destructor:opencv_tensorflow.OpList)
2609
SharedDtor();
2610
}
2611
2612
void OpList::SharedDtor() {
2613
GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
2614
}
2615
2616
void OpList::ArenaDtor(void* object) {
2617
OpList* _this = reinterpret_cast< OpList* >(object);
2618
(void)_this;
2619
}
2620
void OpList::RegisterArenaDtor(::google::protobuf::Arena* arena) {
2621
}
2622
void OpList::SetCachedSize(int size) const {
2623
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2624
_cached_size_ = size;
2625
GOOGLE_SAFE_CONCURRENT_WRITES_END();
2626
}
2627
const ::google::protobuf::Descriptor* OpList::descriptor() {
2628
::protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
2629
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2630
}
2631
2632
const OpList& OpList::default_instance() {
2633
::protobuf_op_5fdef_2eproto::InitDefaultsOpList();
2634
return *internal_default_instance();
2635
}
2636
2637
OpList* OpList::New(::google::protobuf::Arena* arena) const {
2638
return ::google::protobuf::Arena::CreateMessage<OpList>(arena);
2639
}
2640
2641
void OpList::Clear() {
2642
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpList)
2643
::google::protobuf::uint32 cached_has_bits = 0;
2644
// Prevent compiler warnings about cached_has_bits being unused
2645
(void) cached_has_bits;
2646
2647
op_.Clear();
2648
_internal_metadata_.Clear();
2649
}
2650
2651
bool OpList::MergePartialFromCodedStream(
2652
::google::protobuf::io::CodedInputStream* input) {
2653
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2654
::google::protobuf::uint32 tag;
2655
// @@protoc_insertion_point(parse_start:opencv_tensorflow.OpList)
2656
for (;;) {
2657
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2658
tag = p.first;
2659
if (!p.second) goto handle_unusual;
2660
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2661
// repeated .opencv_tensorflow.OpDef op = 1;
2662
case 1: {
2663
if (static_cast< ::google::protobuf::uint8>(tag) ==
2664
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2665
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_op()));
2666
} else {
2667
goto handle_unusual;
2668
}
2669
break;
2670
}
2671
2672
default: {
2673
handle_unusual:
2674
if (tag == 0) {
2675
goto success;
2676
}
2677
DO_(::google::protobuf::internal::WireFormat::SkipField(
2678
input, tag, _internal_metadata_.mutable_unknown_fields()));
2679
break;
2680
}
2681
}
2682
}
2683
success:
2684
// @@protoc_insertion_point(parse_success:opencv_tensorflow.OpList)
2685
return true;
2686
failure:
2687
// @@protoc_insertion_point(parse_failure:opencv_tensorflow.OpList)
2688
return false;
2689
#undef DO_
2690
}
2691
2692
void OpList::SerializeWithCachedSizes(
2693
::google::protobuf::io::CodedOutputStream* output) const {
2694
// @@protoc_insertion_point(serialize_start:opencv_tensorflow.OpList)
2695
::google::protobuf::uint32 cached_has_bits = 0;
2696
(void) cached_has_bits;
2697
2698
// repeated .opencv_tensorflow.OpDef op = 1;
2699
for (unsigned int i = 0,
2700
n = static_cast<unsigned int>(this->op_size()); i < n; i++) {
2701
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2702
1, this->op(static_cast<int>(i)), output);
2703
}
2704
2705
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2706
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2707
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
2708
}
2709
// @@protoc_insertion_point(serialize_end:opencv_tensorflow.OpList)
2710
}
2711
2712
::google::protobuf::uint8* OpList::InternalSerializeWithCachedSizesToArray(
2713
bool deterministic, ::google::protobuf::uint8* target) const {
2714
(void)deterministic; // Unused
2715
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpList)
2716
::google::protobuf::uint32 cached_has_bits = 0;
2717
(void) cached_has_bits;
2718
2719
// repeated .opencv_tensorflow.OpDef op = 1;
2720
for (unsigned int i = 0,
2721
n = static_cast<unsigned int>(this->op_size()); i < n; i++) {
2722
target = ::google::protobuf::internal::WireFormatLite::
2723
InternalWriteMessageToArray(
2724
1, this->op(static_cast<int>(i)), deterministic, target);
2725
}
2726
2727
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2728
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2729
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
2730
}
2731
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpList)
2732
return target;
2733
}
2734
2735
size_t OpList::ByteSizeLong() const {
2736
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpList)
2737
size_t total_size = 0;
2738
2739
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
2740
total_size +=
2741
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2742
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
2743
}
2744
// repeated .opencv_tensorflow.OpDef op = 1;
2745
{
2746
unsigned int count = static_cast<unsigned int>(this->op_size());
2747
total_size += 1UL * count;
2748
for (unsigned int i = 0; i < count; i++) {
2749
total_size +=
2750
::google::protobuf::internal::WireFormatLite::MessageSize(
2751
this->op(static_cast<int>(i)));
2752
}
2753
}
2754
2755
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2756
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2757
_cached_size_ = cached_size;
2758
GOOGLE_SAFE_CONCURRENT_WRITES_END();
2759
return total_size;
2760
}
2761
2762
void OpList::MergeFrom(const ::google::protobuf::Message& from) {
2763
// @@protoc_insertion_point(generalized_merge_from_start:opencv_tensorflow.OpList)
2764
GOOGLE_DCHECK_NE(&from, this);
2765
const OpList* source =
2766
::google::protobuf::internal::DynamicCastToGenerated<const OpList>(
2767
&from);
2768
if (source == NULL) {
2769
// @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_tensorflow.OpList)
2770
::google::protobuf::internal::ReflectionOps::Merge(from, this);
2771
} else {
2772
// @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_tensorflow.OpList)
2773
MergeFrom(*source);
2774
}
2775
}
2776
2777
void OpList::MergeFrom(const OpList& from) {
2778
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpList)
2779
GOOGLE_DCHECK_NE(&from, this);
2780
_internal_metadata_.MergeFrom(from._internal_metadata_);
2781
::google::protobuf::uint32 cached_has_bits = 0;
2782
(void) cached_has_bits;
2783
2784
op_.MergeFrom(from.op_);
2785
}
2786
2787
void OpList::CopyFrom(const ::google::protobuf::Message& from) {
2788
// @@protoc_insertion_point(generalized_copy_from_start:opencv_tensorflow.OpList)
2789
if (&from == this) return;
2790
Clear();
2791
MergeFrom(from);
2792
}
2793
2794
void OpList::CopyFrom(const OpList& from) {
2795
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpList)
2796
if (&from == this) return;
2797
Clear();
2798
MergeFrom(from);
2799
}
2800
2801
bool OpList::IsInitialized() const {
2802
return true;
2803
}
2804
2805
void OpList::Swap(OpList* other) {
2806
if (other == this) return;
2807
if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
2808
InternalSwap(other);
2809
} else {
2810
OpList* temp = New(GetArenaNoVirtual());
2811
temp->MergeFrom(*other);
2812
other->CopyFrom(*this);
2813
InternalSwap(temp);
2814
if (GetArenaNoVirtual() == NULL) {
2815
delete temp;
2816
}
2817
}
2818
}
2819
void OpList::UnsafeArenaSwap(OpList* other) {
2820
if (other == this) return;
2821
GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
2822
InternalSwap(other);
2823
}
2824
void OpList::InternalSwap(OpList* other) {
2825
using std::swap;
2826
op_.InternalSwap(&other->op_);
2827
_internal_metadata_.Swap(&other->_internal_metadata_);
2828
swap(_cached_size_, other->_cached_size_);
2829
}
2830
2831
::google::protobuf::Metadata OpList::GetMetadata() const {
2832
protobuf_op_5fdef_2eproto::protobuf_AssignDescriptorsOnce();
2833
return ::protobuf_op_5fdef_2eproto::file_level_metadata[kIndexInFileMessages];
2834
}
2835
2836
2837
// @@protoc_insertion_point(namespace_scope)
2838
} // namespace opencv_tensorflow
2839
2840
// @@protoc_insertion_point(global_scope)
2841
2842