Coverage Report

Created: 2026-06-30 06:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/opencv/modules/dnn/misc/tensorflow/function.pb.cc
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: function.proto
3
4
#include "function.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/io/coded_stream.h>
9
#include <google/protobuf/extension_set.h>
10
#include <google/protobuf/wire_format_lite.h>
11
#include <google/protobuf/descriptor.h>
12
#include <google/protobuf/generated_message_reflection.h>
13
#include <google/protobuf/reflection_ops.h>
14
#include <google/protobuf/wire_format.h>
15
// @@protoc_insertion_point(includes)
16
#include <google/protobuf/port_def.inc>
17
18
PROTOBUF_PRAGMA_INIT_SEG
19
namespace opencv_tensorflow {
20
constexpr FunctionDefLibrary::FunctionDefLibrary(
21
  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
22
  : function_()
23
  , gradient_(){}
24
struct FunctionDefLibraryDefaultTypeInternal {
25
  constexpr FunctionDefLibraryDefaultTypeInternal()
26
0
    : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
27
0
  ~FunctionDefLibraryDefaultTypeInternal() {}
28
  union {
29
    FunctionDefLibrary _instance;
30
  };
31
};
32
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FunctionDefLibraryDefaultTypeInternal _FunctionDefLibrary_default_instance_;
33
constexpr FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse(
34
  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
35
struct FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal {
36
  constexpr FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal()
37
0
    : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
38
0
  ~FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal() {}
39
  union {
40
    FunctionDef_Node_AttrEntry_DoNotUse _instance;
41
  };
42
};
43
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FunctionDef_Node_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_Node_AttrEntry_DoNotUse_default_instance_;
44
constexpr FunctionDef_Node::FunctionDef_Node(
45
  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
46
  : ret_()
47
  , arg_()
48
  , dep_()
49
  , attr_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
50
  , op_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
51
struct FunctionDef_NodeDefaultTypeInternal {
52
  constexpr FunctionDef_NodeDefaultTypeInternal()
53
0
    : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
54
0
  ~FunctionDef_NodeDefaultTypeInternal() {}
55
  union {
56
    FunctionDef_Node _instance;
57
  };
58
};
59
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FunctionDef_NodeDefaultTypeInternal _FunctionDef_Node_default_instance_;
60
constexpr FunctionDef::FunctionDef(
61
  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
62
  : node_()
63
  , signature_(nullptr){}
64
struct FunctionDefDefaultTypeInternal {
65
  constexpr FunctionDefDefaultTypeInternal()
66
0
    : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
67
0
  ~FunctionDefDefaultTypeInternal() {}
68
  union {
69
    FunctionDef _instance;
70
  };
71
};
72
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FunctionDefDefaultTypeInternal _FunctionDef_default_instance_;
73
constexpr GradientDef::GradientDef(
74
  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
75
  : function_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
76
  , gradient_func_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
77
struct GradientDefDefaultTypeInternal {
78
  constexpr GradientDefDefaultTypeInternal()
79
0
    : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
80
0
  ~GradientDefDefaultTypeInternal() {}
81
  union {
82
    GradientDef _instance;
83
  };
84
};
85
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GradientDefDefaultTypeInternal _GradientDef_default_instance_;
86
}  // namespace opencv_tensorflow
87
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_function_2eproto[5];
88
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_function_2eproto = nullptr;
89
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_function_2eproto = nullptr;
90
91
const uint32_t TableStruct_function_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
92
  ~0u,  // no _has_bits_
93
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, _internal_metadata_),
94
  ~0u,  // no _extensions_
95
  ~0u,  // no _oneof_case_
96
  ~0u,  // no _weak_field_map_
97
  ~0u,  // no _inlined_string_donated_
98
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, function_),
99
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDefLibrary, gradient_),
100
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, _has_bits_),
101
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, _internal_metadata_),
102
  ~0u,  // no _extensions_
103
  ~0u,  // no _oneof_case_
104
  ~0u,  // no _weak_field_map_
105
  ~0u,  // no _inlined_string_donated_
106
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, key_),
107
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse, value_),
108
  0,
109
  1,
110
  ~0u,  // no _has_bits_
111
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, _internal_metadata_),
112
  ~0u,  // no _extensions_
113
  ~0u,  // no _oneof_case_
114
  ~0u,  // no _weak_field_map_
115
  ~0u,  // no _inlined_string_donated_
116
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, ret_),
117
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, op_),
118
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, arg_),
119
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, dep_),
120
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef_Node, attr_),
121
  ~0u,  // no _has_bits_
122
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, _internal_metadata_),
123
  ~0u,  // no _extensions_
124
  ~0u,  // no _oneof_case_
125
  ~0u,  // no _weak_field_map_
126
  ~0u,  // no _inlined_string_donated_
127
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, signature_),
128
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::FunctionDef, node_),
129
  ~0u,  // no _has_bits_
130
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GradientDef, _internal_metadata_),
131
  ~0u,  // no _extensions_
132
  ~0u,  // no _oneof_case_
133
  ~0u,  // no _weak_field_map_
134
  ~0u,  // no _inlined_string_donated_
135
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GradientDef, function_name_),
136
  PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GradientDef, gradient_func_),
137
};
138
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
139
  { 0, -1, -1, sizeof(::opencv_tensorflow::FunctionDefLibrary)},
140
  { 8, 16, -1, sizeof(::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse)},
141
  { 18, -1, -1, sizeof(::opencv_tensorflow::FunctionDef_Node)},
142
  { 29, -1, -1, sizeof(::opencv_tensorflow::FunctionDef)},
143
  { 37, -1, -1, sizeof(::opencv_tensorflow::GradientDef)},
144
};
145
146
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
147
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_FunctionDefLibrary_default_instance_),
148
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_FunctionDef_Node_AttrEntry_DoNotUse_default_instance_),
149
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_FunctionDef_Node_default_instance_),
150
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_FunctionDef_default_instance_),
151
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_GradientDef_default_instance_),
152
};
153
154
const char descriptor_table_protodef_function_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
155
  "\n\016function.proto\022\021opencv_tensorflow\032\020att"
156
  "r_value.proto\032\014op_def.proto\"x\n\022FunctionD"
157
  "efLibrary\0220\n\010function\030\001 \003(\0132\036.opencv_ten"
158
  "sorflow.FunctionDef\0220\n\010gradient\030\002 \003(\0132\036."
159
  "opencv_tensorflow.GradientDef\"\261\002\n\013Functi"
160
  "onDef\022+\n\tsignature\030\001 \001(\0132\030.opencv_tensor"
161
  "flow.OpDef\0221\n\004node\030\002 \003(\0132#.opencv_tensor"
162
  "flow.FunctionDef.Node\032\301\001\n\004Node\022\013\n\003ret\030\001 "
163
  "\003(\t\022\n\n\002op\030\002 \001(\t\022\013\n\003arg\030\003 \003(\t\022\013\n\003dep\030\004 \003("
164
  "\t\022;\n\004attr\030\005 \003(\0132-.opencv_tensorflow.Func"
165
  "tionDef.Node.AttrEntry\032I\n\tAttrEntry\022\013\n\003k"
166
  "ey\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.opencv_tensorf"
167
  "low.AttrValue:\0028\001\";\n\013GradientDef\022\025\n\rfunc"
168
  "tion_name\030\001 \001(\t\022\025\n\rgradient_func\030\002 \001(\tB/"
169
  "\n\030org.tensorflow.frameworkB\016FunctionProt"
170
  "osP\001\370\001\001b\006proto3"
171
  ;
172
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_function_2eproto_deps[2] = {
173
  &::descriptor_table_attr_5fvalue_2eproto,
174
  &::descriptor_table_op_5fdef_2eproto,
175
};
176
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_function_2eproto_once;
177
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_function_2eproto = {
178
  false, false, 615, descriptor_table_protodef_function_2eproto, "function.proto",
179
  &descriptor_table_function_2eproto_once, descriptor_table_function_2eproto_deps, 2, 5,
180
  schemas, file_default_instances, TableStruct_function_2eproto::offsets,
181
  file_level_metadata_function_2eproto, file_level_enum_descriptors_function_2eproto, file_level_service_descriptors_function_2eproto,
182
};
183
0
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_function_2eproto_getter() {
184
0
  return &descriptor_table_function_2eproto;
185
0
}
186
187
// Force running AddDescriptors() at dynamic initialization time.
188
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_function_2eproto(&descriptor_table_function_2eproto);
189
namespace opencv_tensorflow {
190
191
// ===================================================================
192
193
class FunctionDefLibrary::_Internal {
194
 public:
195
};
196
197
FunctionDefLibrary::FunctionDefLibrary(::PROTOBUF_NAMESPACE_ID::Arena* arena,
198
                         bool is_message_owned)
199
4.91k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
200
4.91k
  function_(arena),
201
4.91k
  gradient_(arena) {
202
4.91k
  SharedCtor();
203
4.91k
  if (!is_message_owned) {
204
4.91k
    RegisterArenaDtor(arena);
205
4.91k
  }
206
  // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDefLibrary)
207
4.91k
}
208
FunctionDefLibrary::FunctionDefLibrary(const FunctionDefLibrary& from)
209
0
  : ::PROTOBUF_NAMESPACE_ID::Message(),
210
0
      function_(from.function_),
211
0
      gradient_(from.gradient_) {
212
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
213
  // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDefLibrary)
214
0
}
215
216
4.91k
inline void FunctionDefLibrary::SharedCtor() {
217
4.91k
}
218
219
4.91k
FunctionDefLibrary::~FunctionDefLibrary() {
220
  // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDefLibrary)
221
4.91k
  if (GetArenaForAllocation() != nullptr) return;
222
4.91k
  SharedDtor();
223
4.91k
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
224
4.91k
}
225
226
4.91k
inline void FunctionDefLibrary::SharedDtor() {
227
4.91k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
228
4.91k
}
229
230
0
void FunctionDefLibrary::ArenaDtor(void* object) {
231
0
  FunctionDefLibrary* _this = reinterpret_cast< FunctionDefLibrary* >(object);
232
0
  (void)_this;
233
0
}
234
4.91k
void FunctionDefLibrary::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
235
4.91k
}
236
0
void FunctionDefLibrary::SetCachedSize(int size) const {
237
0
  _cached_size_.Set(size);
238
0
}
239
240
0
void FunctionDefLibrary::Clear() {
241
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDefLibrary)
242
0
  uint32_t cached_has_bits = 0;
243
  // Prevent compiler warnings about cached_has_bits being unused
244
0
  (void) cached_has_bits;
245
246
0
  function_.Clear();
247
0
  gradient_.Clear();
248
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
249
0
}
250
251
60.5k
const char* FunctionDefLibrary::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
252
115k
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
253
169k
  while (!ctx->Done(&ptr)) {
254
112k
    uint32_t tag;
255
112k
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
256
112k
    switch (tag >> 3) {
257
      // repeated .opencv_tensorflow.FunctionDef function = 1;
258
44.7k
      case 1:
259
44.7k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
260
41.1k
          ptr -= 1;
261
43.2k
          do {
262
43.2k
            ptr += 1;
263
43.2k
            ptr = ctx->ParseMessage(_internal_add_function(), ptr);
264
43.2k
            CHK_(ptr);
265
40.2k
            if (!ctx->DataAvailable(ptr)) break;
266
40.2k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
267
41.1k
        } else
268
3.62k
          goto handle_unusual;
269
38.1k
        continue;
270
      // repeated .opencv_tensorflow.GradientDef gradient = 2;
271
38.1k
      case 2:
272
23.3k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
273
6.66k
          ptr -= 1;
274
8.40k
          do {
275
8.40k
            ptr += 1;
276
8.40k
            ptr = ctx->ParseMessage(_internal_add_gradient(), ptr);
277
8.40k
            CHK_(ptr);
278
8.15k
            if (!ctx->DataAvailable(ptr)) break;
279
8.15k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
280
6.66k
        } else
281
16.7k
          goto handle_unusual;
282
6.40k
        continue;
283
43.8k
      default:
284
43.8k
        goto handle_unusual;
285
112k
    }  // switch
286
64.1k
  handle_unusual:
287
64.1k
    if ((tag == 0) || ((tag & 7) == 4)) {
288
45
      CHK_(ptr);
289
43
      ctx->SetLastTag(tag);
290
43
      goto message_done;
291
45
    }
292
64.1k
    ptr = UnknownFieldParse(
293
64.1k
        tag,
294
64.1k
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
295
64.1k
        ptr, ctx);
296
64.1k
    CHK_(ptr != nullptr);
297
64.1k
  }  // while
298
60.5k
message_done:
299
60.5k
  return ptr;
300
3.33k
failure:
301
3.33k
  ptr = nullptr;
302
3.33k
  goto message_done;
303
60.5k
#undef CHK_
304
60.5k
}
305
306
uint8_t* FunctionDefLibrary::_InternalSerialize(
307
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
308
  // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDefLibrary)
309
0
  uint32_t cached_has_bits = 0;
310
0
  (void) cached_has_bits;
311
312
  // repeated .opencv_tensorflow.FunctionDef function = 1;
313
0
  for (unsigned int i = 0,
314
0
      n = static_cast<unsigned int>(this->_internal_function_size()); i < n; i++) {
315
0
    target = stream->EnsureSpace(target);
316
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
317
0
      InternalWriteMessage(1, this->_internal_function(i), target, stream);
318
0
  }
319
320
  // repeated .opencv_tensorflow.GradientDef gradient = 2;
321
0
  for (unsigned int i = 0,
322
0
      n = static_cast<unsigned int>(this->_internal_gradient_size()); i < n; i++) {
323
0
    target = stream->EnsureSpace(target);
324
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
325
0
      InternalWriteMessage(2, this->_internal_gradient(i), target, stream);
326
0
  }
327
328
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
329
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
330
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
331
0
  }
332
  // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDefLibrary)
333
0
  return target;
334
0
}
335
336
1.29k
size_t FunctionDefLibrary::ByteSizeLong() const {
337
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDefLibrary)
338
1.29k
  size_t total_size = 0;
339
340
1.29k
  uint32_t cached_has_bits = 0;
341
  // Prevent compiler warnings about cached_has_bits being unused
342
1.29k
  (void) cached_has_bits;
343
344
  // repeated .opencv_tensorflow.FunctionDef function = 1;
345
1.29k
  total_size += 1UL * this->_internal_function_size();
346
31.5k
  for (const auto& msg : this->function_) {
347
31.5k
    total_size +=
348
31.5k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
349
31.5k
  }
350
351
  // repeated .opencv_tensorflow.GradientDef gradient = 2;
352
1.29k
  total_size += 1UL * this->_internal_gradient_size();
353
5.92k
  for (const auto& msg : this->gradient_) {
354
5.92k
    total_size +=
355
5.92k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
356
5.92k
  }
357
358
1.29k
  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
359
1.29k
}
360
361
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionDefLibrary::_class_data_ = {
362
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
363
    FunctionDefLibrary::MergeImpl
364
};
365
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionDefLibrary::GetClassData() const { return &_class_data_; }
366
367
void FunctionDefLibrary::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
368
0
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
369
0
  static_cast<FunctionDefLibrary *>(to)->MergeFrom(
370
0
      static_cast<const FunctionDefLibrary &>(from));
371
0
}
372
373
374
0
void FunctionDefLibrary::MergeFrom(const FunctionDefLibrary& from) {
375
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDefLibrary)
376
0
  GOOGLE_DCHECK_NE(&from, this);
377
0
  uint32_t cached_has_bits = 0;
378
0
  (void) cached_has_bits;
379
380
0
  function_.MergeFrom(from.function_);
381
0
  gradient_.MergeFrom(from.gradient_);
382
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
383
0
}
384
385
0
void FunctionDefLibrary::CopyFrom(const FunctionDefLibrary& from) {
386
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDefLibrary)
387
0
  if (&from == this) return;
388
0
  Clear();
389
0
  MergeFrom(from);
390
0
}
391
392
0
bool FunctionDefLibrary::IsInitialized() const {
393
0
  return true;
394
0
}
395
396
0
void FunctionDefLibrary::InternalSwap(FunctionDefLibrary* other) {
397
0
  using std::swap;
398
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
399
0
  function_.InternalSwap(&other->function_);
400
0
  gradient_.InternalSwap(&other->gradient_);
401
0
}
402
403
0
::PROTOBUF_NAMESPACE_ID::Metadata FunctionDefLibrary::GetMetadata() const {
404
0
  return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
405
0
      &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
406
0
      file_level_metadata_function_2eproto[0]);
407
0
}
408
409
// ===================================================================
410
411
0
FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse() {}
412
FunctionDef_Node_AttrEntry_DoNotUse::FunctionDef_Node_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
413
11.1k
    : SuperType(arena) {}
414
0
void FunctionDef_Node_AttrEntry_DoNotUse::MergeFrom(const FunctionDef_Node_AttrEntry_DoNotUse& other) {
415
0
  MergeFromInternal(other);
416
0
}
417
0
::PROTOBUF_NAMESPACE_ID::Metadata FunctionDef_Node_AttrEntry_DoNotUse::GetMetadata() const {
418
0
  return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
419
0
      &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
420
0
      file_level_metadata_function_2eproto[1]);
421
0
}
422
423
// ===================================================================
424
425
class FunctionDef_Node::_Internal {
426
 public:
427
};
428
429
0
void FunctionDef_Node::clear_attr() {
430
0
  attr_.Clear();
431
0
}
432
FunctionDef_Node::FunctionDef_Node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
433
                         bool is_message_owned)
434
10.9k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
435
10.9k
  ret_(arena),
436
10.9k
  arg_(arena),
437
10.9k
  dep_(arena),
438
10.9k
  attr_(arena) {
439
10.9k
  SharedCtor();
440
10.9k
  if (!is_message_owned) {
441
10.9k
    RegisterArenaDtor(arena);
442
10.9k
  }
443
  // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDef.Node)
444
10.9k
}
445
FunctionDef_Node::FunctionDef_Node(const FunctionDef_Node& from)
446
0
  : ::PROTOBUF_NAMESPACE_ID::Message(),
447
0
      ret_(from.ret_),
448
0
      arg_(from.arg_),
449
0
      dep_(from.dep_) {
450
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
451
0
  attr_.MergeFrom(from.attr_);
452
0
  op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
453
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
454
    op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
455
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
456
0
  if (!from._internal_op().empty()) {
457
0
    op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_op(),
458
0
      GetArenaForAllocation());
459
0
  }
460
  // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDef.Node)
461
0
}
462
463
10.9k
inline void FunctionDef_Node::SharedCtor() {
464
10.9k
op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
465
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
466
  op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
467
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
468
10.9k
}
469
470
10.9k
FunctionDef_Node::~FunctionDef_Node() {
471
  // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDef.Node)
472
10.9k
  if (GetArenaForAllocation() != nullptr) return;
473
10.9k
  SharedDtor();
474
10.9k
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
475
10.9k
}
476
477
10.9k
inline void FunctionDef_Node::SharedDtor() {
478
10.9k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
479
10.9k
  op_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
480
10.9k
}
481
482
0
void FunctionDef_Node::ArenaDtor(void* object) {
483
0
  FunctionDef_Node* _this = reinterpret_cast< FunctionDef_Node* >(object);
484
0
  (void)_this;
485
0
  _this->attr_. ~MapField();
486
0
}
487
10.9k
inline void FunctionDef_Node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) {
488
10.9k
  if (arena != nullptr) {
489
0
    arena->OwnCustomDestructor(this, &FunctionDef_Node::ArenaDtor);
490
0
  }
491
10.9k
}
492
0
void FunctionDef_Node::SetCachedSize(int size) const {
493
0
  _cached_size_.Set(size);
494
0
}
495
496
0
void FunctionDef_Node::Clear() {
497
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDef.Node)
498
0
  uint32_t cached_has_bits = 0;
499
  // Prevent compiler warnings about cached_has_bits being unused
500
0
  (void) cached_has_bits;
501
502
0
  ret_.Clear();
503
0
  arg_.Clear();
504
0
  dep_.Clear();
505
0
  attr_.Clear();
506
0
  op_.ClearToEmpty();
507
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
508
0
}
509
510
10.9k
const char* FunctionDef_Node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
511
121k
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
512
98.4k
  while (!ctx->Done(&ptr)) {
513
88.0k
    uint32_t tag;
514
88.0k
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
515
88.0k
    switch (tag >> 3) {
516
      // repeated string ret = 1;
517
6.60k
      case 1:
518
6.60k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
519
5.26k
          ptr -= 1;
520
6.32k
          do {
521
6.32k
            ptr += 1;
522
6.32k
            auto str = _internal_add_ret();
523
6.32k
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
524
6.32k
            CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.ret"));
525
6.31k
            CHK_(ptr);
526
6.31k
            if (!ctx->DataAvailable(ptr)) break;
527
6.31k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
528
5.26k
        } else
529
1.34k
          goto handle_unusual;
530
5.25k
        continue;
531
      // string op = 2;
532
19.9k
      case 2:
533
19.9k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
534
10.8k
          auto str = _internal_mutable_op();
535
10.8k
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
536
10.8k
          CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.op"));
537
10.7k
          CHK_(ptr);
538
10.7k
        } else
539
9.14k
          goto handle_unusual;
540
10.7k
        continue;
541
      // repeated string arg = 3;
542
13.7k
      case 3:
543
13.7k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
544
3.17k
          ptr -= 1;
545
5.05k
          do {
546
5.05k
            ptr += 1;
547
5.05k
            auto str = _internal_add_arg();
548
5.05k
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
549
5.05k
            CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.arg"));
550
5.05k
            CHK_(ptr);
551
5.04k
            if (!ctx->DataAvailable(ptr)) break;
552
5.04k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
553
3.17k
        } else
554
10.5k
          goto handle_unusual;
555
3.16k
        continue;
556
      // repeated string dep = 4;
557
4.42k
      case 4:
558
4.42k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
559
2.24k
          ptr -= 1;
560
3.29k
          do {
561
3.29k
            ptr += 1;
562
3.29k
            auto str = _internal_add_dep();
563
3.29k
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
564
3.29k
            CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.dep"));
565
3.28k
            CHK_(ptr);
566
3.28k
            if (!ctx->DataAvailable(ptr)) break;
567
3.28k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
568
2.24k
        } else
569
2.17k
          goto handle_unusual;
570
2.23k
        continue;
571
      // map<string, .opencv_tensorflow.AttrValue> attr = 5;
572
16.4k
      case 5:
573
16.4k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
574
7.68k
          ptr -= 1;
575
11.9k
          do {
576
11.9k
            ptr += 1;
577
11.9k
            ptr = ctx->ParseMessage(&attr_, ptr);
578
11.9k
            CHK_(ptr);
579
11.5k
            if (!ctx->DataAvailable(ptr)) break;
580
11.5k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
581
7.68k
        } else
582
8.72k
          goto handle_unusual;
583
7.25k
        continue;
584
26.9k
      default:
585
26.9k
        goto handle_unusual;
586
88.0k
    }  // switch
587
58.9k
  handle_unusual:
588
58.9k
    if ((tag == 0) || ((tag & 7) == 4)) {
589
33
      CHK_(ptr);
590
31
      ctx->SetLastTag(tag);
591
31
      goto message_done;
592
33
    }
593
58.8k
    ptr = UnknownFieldParse(
594
58.8k
        tag,
595
58.8k
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
596
58.8k
        ptr, ctx);
597
58.8k
    CHK_(ptr != nullptr);
598
58.8k
  }  // while
599
10.9k
message_done:
600
10.9k
  return ptr;
601
525
failure:
602
525
  ptr = nullptr;
603
525
  goto message_done;
604
10.9k
#undef CHK_
605
10.9k
}
606
607
uint8_t* FunctionDef_Node::_InternalSerialize(
608
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
609
  // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDef.Node)
610
0
  uint32_t cached_has_bits = 0;
611
0
  (void) cached_has_bits;
612
613
  // repeated string ret = 1;
614
0
  for (int i = 0, n = this->_internal_ret_size(); i < n; i++) {
615
0
    const auto& s = this->_internal_ret(i);
616
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
617
0
      s.data(), static_cast<int>(s.length()),
618
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
619
0
      "opencv_tensorflow.FunctionDef.Node.ret");
620
0
    target = stream->WriteString(1, s, target);
621
0
  }
622
623
  // string op = 2;
624
0
  if (!this->_internal_op().empty()) {
625
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
626
0
      this->_internal_op().data(), static_cast<int>(this->_internal_op().length()),
627
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
628
0
      "opencv_tensorflow.FunctionDef.Node.op");
629
0
    target = stream->WriteStringMaybeAliased(
630
0
        2, this->_internal_op(), target);
631
0
  }
632
633
  // repeated string arg = 3;
634
0
  for (int i = 0, n = this->_internal_arg_size(); i < n; i++) {
635
0
    const auto& s = this->_internal_arg(i);
636
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
637
0
      s.data(), static_cast<int>(s.length()),
638
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
639
0
      "opencv_tensorflow.FunctionDef.Node.arg");
640
0
    target = stream->WriteString(3, s, target);
641
0
  }
642
643
  // repeated string dep = 4;
644
0
  for (int i = 0, n = this->_internal_dep_size(); i < n; i++) {
645
0
    const auto& s = this->_internal_dep(i);
646
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
647
0
      s.data(), static_cast<int>(s.length()),
648
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
649
0
      "opencv_tensorflow.FunctionDef.Node.dep");
650
0
    target = stream->WriteString(4, s, target);
651
0
  }
652
653
  // map<string, .opencv_tensorflow.AttrValue> attr = 5;
654
0
  if (!this->_internal_attr().empty()) {
655
0
    typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_pointer
656
0
        ConstPtr;
657
0
    typedef ConstPtr SortItem;
658
0
    typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
659
0
    struct Utf8Check {
660
0
      static void Check(ConstPtr p) {
661
0
        (void)p;
662
0
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
663
0
          p->first.data(), static_cast<int>(p->first.length()),
664
0
          ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
665
0
          "opencv_tensorflow.FunctionDef.Node.AttrEntry.key");
666
0
      }
667
0
    };
668
669
0
    if (stream->IsSerializationDeterministic() &&
670
0
        this->_internal_attr().size() > 1) {
671
0
      ::std::unique_ptr<SortItem[]> items(
672
0
          new SortItem[this->_internal_attr().size()]);
673
0
      typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;
674
0
      size_type n = 0;
675
0
      for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
676
0
          it = this->_internal_attr().begin();
677
0
          it != this->_internal_attr().end(); ++it, ++n) {
678
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
679
0
      }
680
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
681
0
      for (size_type i = 0; i < n; i++) {
682
0
        target = FunctionDef_Node_AttrEntry_DoNotUse::Funcs::InternalSerialize(5, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
683
0
        Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
684
0
      }
685
0
    } else {
686
0
      for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
687
0
          it = this->_internal_attr().begin();
688
0
          it != this->_internal_attr().end(); ++it) {
689
0
        target = FunctionDef_Node_AttrEntry_DoNotUse::Funcs::InternalSerialize(5, it->first, it->second, target, stream);
690
0
        Utf8Check::Check(&(*it));
691
0
      }
692
0
    }
693
0
  }
694
695
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
696
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
697
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
698
0
  }
699
  // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDef.Node)
700
0
  return target;
701
0
}
702
703
6.96k
size_t FunctionDef_Node::ByteSizeLong() const {
704
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDef.Node)
705
6.96k
  size_t total_size = 0;
706
707
6.96k
  uint32_t cached_has_bits = 0;
708
  // Prevent compiler warnings about cached_has_bits being unused
709
6.96k
  (void) cached_has_bits;
710
711
  // repeated string ret = 1;
712
6.96k
  total_size += 1 *
713
6.96k
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(ret_.size());
714
9.55k
  for (int i = 0, n = ret_.size(); i < n; i++) {
715
2.59k
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
716
2.59k
      ret_.Get(i));
717
2.59k
  }
718
719
  // repeated string arg = 3;
720
6.96k
  total_size += 1 *
721
6.96k
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(arg_.size());
722
10.7k
  for (int i = 0, n = arg_.size(); i < n; i++) {
723
3.77k
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
724
3.77k
      arg_.Get(i));
725
3.77k
  }
726
727
  // repeated string dep = 4;
728
6.96k
  total_size += 1 *
729
6.96k
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(dep_.size());
730
9.16k
  for (int i = 0, n = dep_.size(); i < n; i++) {
731
2.20k
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
732
2.20k
      dep_.Get(i));
733
2.20k
  }
734
735
  // map<string, .opencv_tensorflow.AttrValue> attr = 5;
736
6.96k
  total_size += 1 *
737
6.96k
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attr_size());
738
6.96k
  for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
739
6.96k
      it = this->_internal_attr().begin();
740
11.5k
      it != this->_internal_attr().end(); ++it) {
741
4.54k
    total_size += FunctionDef_Node_AttrEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
742
4.54k
  }
743
744
  // string op = 2;
745
6.96k
  if (!this->_internal_op().empty()) {
746
1.39k
    total_size += 1 +
747
1.39k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
748
1.39k
        this->_internal_op());
749
1.39k
  }
750
751
6.96k
  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
752
6.96k
}
753
754
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionDef_Node::_class_data_ = {
755
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
756
    FunctionDef_Node::MergeImpl
757
};
758
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionDef_Node::GetClassData() const { return &_class_data_; }
759
760
void FunctionDef_Node::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
761
0
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
762
0
  static_cast<FunctionDef_Node *>(to)->MergeFrom(
763
0
      static_cast<const FunctionDef_Node &>(from));
764
0
}
765
766
767
0
void FunctionDef_Node::MergeFrom(const FunctionDef_Node& from) {
768
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDef.Node)
769
0
  GOOGLE_DCHECK_NE(&from, this);
770
0
  uint32_t cached_has_bits = 0;
771
0
  (void) cached_has_bits;
772
773
0
  ret_.MergeFrom(from.ret_);
774
0
  arg_.MergeFrom(from.arg_);
775
0
  dep_.MergeFrom(from.dep_);
776
0
  attr_.MergeFrom(from.attr_);
777
0
  if (!from._internal_op().empty()) {
778
0
    _internal_set_op(from._internal_op());
779
0
  }
780
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
781
0
}
782
783
0
void FunctionDef_Node::CopyFrom(const FunctionDef_Node& from) {
784
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDef.Node)
785
0
  if (&from == this) return;
786
0
  Clear();
787
0
  MergeFrom(from);
788
0
}
789
790
0
bool FunctionDef_Node::IsInitialized() const {
791
0
  return true;
792
0
}
793
794
0
void FunctionDef_Node::InternalSwap(FunctionDef_Node* other) {
795
0
  using std::swap;
796
0
  auto* lhs_arena = GetArenaForAllocation();
797
0
  auto* rhs_arena = other->GetArenaForAllocation();
798
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
799
0
  ret_.InternalSwap(&other->ret_);
800
0
  arg_.InternalSwap(&other->arg_);
801
0
  dep_.InternalSwap(&other->dep_);
802
0
  attr_.InternalSwap(&other->attr_);
803
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
804
0
      &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
805
0
      &op_, lhs_arena,
806
0
      &other->op_, rhs_arena
807
0
  );
808
0
}
809
810
0
::PROTOBUF_NAMESPACE_ID::Metadata FunctionDef_Node::GetMetadata() const {
811
0
  return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
812
0
      &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
813
0
      file_level_metadata_function_2eproto[2]);
814
0
}
815
816
// ===================================================================
817
818
class FunctionDef::_Internal {
819
 public:
820
  static const ::opencv_tensorflow::OpDef& signature(const FunctionDef* msg);
821
};
822
823
const ::opencv_tensorflow::OpDef&
824
0
FunctionDef::_Internal::signature(const FunctionDef* msg) {
825
0
  return *msg->signature_;
826
0
}
827
0
void FunctionDef::clear_signature() {
828
0
  if (GetArenaForAllocation() == nullptr && signature_ != nullptr) {
829
0
    delete signature_;
830
0
  }
831
0
  signature_ = nullptr;
832
0
}
833
FunctionDef::FunctionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
834
                         bool is_message_owned)
835
43.2k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
836
43.2k
  node_(arena) {
837
43.2k
  SharedCtor();
838
43.2k
  if (!is_message_owned) {
839
43.2k
    RegisterArenaDtor(arena);
840
43.2k
  }
841
  // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDef)
842
43.2k
}
843
FunctionDef::FunctionDef(const FunctionDef& from)
844
0
  : ::PROTOBUF_NAMESPACE_ID::Message(),
845
0
      node_(from.node_) {
846
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
847
0
  if (from._internal_has_signature()) {
848
0
    signature_ = new ::opencv_tensorflow::OpDef(*from.signature_);
849
0
  } else {
850
0
    signature_ = nullptr;
851
0
  }
852
  // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.FunctionDef)
853
0
}
854
855
43.2k
inline void FunctionDef::SharedCtor() {
856
43.2k
signature_ = nullptr;
857
43.2k
}
858
859
43.2k
FunctionDef::~FunctionDef() {
860
  // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDef)
861
43.2k
  if (GetArenaForAllocation() != nullptr) return;
862
43.2k
  SharedDtor();
863
43.2k
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
864
43.2k
}
865
866
43.2k
inline void FunctionDef::SharedDtor() {
867
43.2k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
868
43.2k
  if (this != internal_default_instance()) delete signature_;
869
43.2k
}
870
871
0
void FunctionDef::ArenaDtor(void* object) {
872
0
  FunctionDef* _this = reinterpret_cast< FunctionDef* >(object);
873
0
  (void)_this;
874
0
}
875
43.2k
void FunctionDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
876
43.2k
}
877
0
void FunctionDef::SetCachedSize(int size) const {
878
0
  _cached_size_.Set(size);
879
0
}
880
881
0
void FunctionDef::Clear() {
882
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.FunctionDef)
883
0
  uint32_t cached_has_bits = 0;
884
  // Prevent compiler warnings about cached_has_bits being unused
885
0
  (void) cached_has_bits;
886
887
0
  node_.Clear();
888
0
  if (GetArenaForAllocation() == nullptr && signature_ != nullptr) {
889
0
    delete signature_;
890
0
  }
891
0
  signature_ = nullptr;
892
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
893
0
}
894
895
43.2k
const char* FunctionDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
896
117k
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
897
155k
  while (!ctx->Done(&ptr)) {
898
114k
    uint32_t tag;
899
114k
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
900
114k
    switch (tag >> 3) {
901
      // .opencv_tensorflow.OpDef signature = 1;
902
33.8k
      case 1:
903
33.8k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
904
32.1k
          ptr = ctx->ParseMessage(_internal_mutable_signature(), ptr);
905
32.1k
          CHK_(ptr);
906
32.1k
        } else
907
1.64k
          goto handle_unusual;
908
30.1k
        continue;
909
      // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
910
30.3k
      case 2:
911
30.3k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
912
8.79k
          ptr -= 1;
913
10.9k
          do {
914
10.9k
            ptr += 1;
915
10.9k
            ptr = ctx->ParseMessage(_internal_add_node(), ptr);
916
10.9k
            CHK_(ptr);
917
10.2k
            if (!ctx->DataAvailable(ptr)) break;
918
10.2k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
919
8.79k
        } else
920
21.5k
          goto handle_unusual;
921
8.04k
        continue;
922
50.8k
      default:
923
50.8k
        goto handle_unusual;
924
114k
    }  // switch
925
74.0k
  handle_unusual:
926
74.0k
    if ((tag == 0) || ((tag & 7) == 4)) {
927
28
      CHK_(ptr);
928
25
      ctx->SetLastTag(tag);
929
25
      goto message_done;
930
28
    }
931
73.9k
    ptr = UnknownFieldParse(
932
73.9k
        tag,
933
73.9k
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
934
73.9k
        ptr, ctx);
935
73.9k
    CHK_(ptr != nullptr);
936
73.9k
  }  // while
937
43.2k
message_done:
938
43.2k
  return ptr;
939
2.84k
failure:
940
2.84k
  ptr = nullptr;
941
2.84k
  goto message_done;
942
43.2k
#undef CHK_
943
43.2k
}
944
945
uint8_t* FunctionDef::_InternalSerialize(
946
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
947
  // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.FunctionDef)
948
0
  uint32_t cached_has_bits = 0;
949
0
  (void) cached_has_bits;
950
951
  // .opencv_tensorflow.OpDef signature = 1;
952
0
  if (this->_internal_has_signature()) {
953
0
    target = stream->EnsureSpace(target);
954
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
955
0
      InternalWriteMessage(
956
0
        1, _Internal::signature(this), target, stream);
957
0
  }
958
959
  // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
960
0
  for (unsigned int i = 0,
961
0
      n = static_cast<unsigned int>(this->_internal_node_size()); i < n; i++) {
962
0
    target = stream->EnsureSpace(target);
963
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
964
0
      InternalWriteMessage(2, this->_internal_node(i), target, stream);
965
0
  }
966
967
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
968
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
969
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
970
0
  }
971
  // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.FunctionDef)
972
0
  return target;
973
0
}
974
975
31.5k
size_t FunctionDef::ByteSizeLong() const {
976
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDef)
977
31.5k
  size_t total_size = 0;
978
979
31.5k
  uint32_t cached_has_bits = 0;
980
  // Prevent compiler warnings about cached_has_bits being unused
981
31.5k
  (void) cached_has_bits;
982
983
  // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
984
31.5k
  total_size += 1UL * this->_internal_node_size();
985
31.5k
  for (const auto& msg : this->node_) {
986
6.96k
    total_size +=
987
6.96k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
988
6.96k
  }
989
990
  // .opencv_tensorflow.OpDef signature = 1;
991
31.5k
  if (this->_internal_has_signature()) {
992
22.7k
    total_size += 1 +
993
22.7k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
994
22.7k
        *signature_);
995
22.7k
  }
996
997
31.5k
  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
998
31.5k
}
999
1000
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionDef::_class_data_ = {
1001
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
1002
    FunctionDef::MergeImpl
1003
};
1004
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionDef::GetClassData() const { return &_class_data_; }
1005
1006
void FunctionDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
1007
0
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1008
0
  static_cast<FunctionDef *>(to)->MergeFrom(
1009
0
      static_cast<const FunctionDef &>(from));
1010
0
}
1011
1012
1013
0
void FunctionDef::MergeFrom(const FunctionDef& from) {
1014
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.FunctionDef)
1015
0
  GOOGLE_DCHECK_NE(&from, this);
1016
0
  uint32_t cached_has_bits = 0;
1017
0
  (void) cached_has_bits;
1018
1019
0
  node_.MergeFrom(from.node_);
1020
0
  if (from._internal_has_signature()) {
1021
0
    _internal_mutable_signature()->::opencv_tensorflow::OpDef::MergeFrom(from._internal_signature());
1022
0
  }
1023
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1024
0
}
1025
1026
0
void FunctionDef::CopyFrom(const FunctionDef& from) {
1027
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.FunctionDef)
1028
0
  if (&from == this) return;
1029
0
  Clear();
1030
0
  MergeFrom(from);
1031
0
}
1032
1033
0
bool FunctionDef::IsInitialized() const {
1034
0
  return true;
1035
0
}
1036
1037
0
void FunctionDef::InternalSwap(FunctionDef* other) {
1038
0
  using std::swap;
1039
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1040
0
  node_.InternalSwap(&other->node_);
1041
0
  swap(signature_, other->signature_);
1042
0
}
1043
1044
0
::PROTOBUF_NAMESPACE_ID::Metadata FunctionDef::GetMetadata() const {
1045
0
  return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
1046
0
      &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
1047
0
      file_level_metadata_function_2eproto[3]);
1048
0
}
1049
1050
// ===================================================================
1051
1052
class GradientDef::_Internal {
1053
 public:
1054
};
1055
1056
GradientDef::GradientDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1057
                         bool is_message_owned)
1058
8.40k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1059
8.40k
  SharedCtor();
1060
8.40k
  if (!is_message_owned) {
1061
8.40k
    RegisterArenaDtor(arena);
1062
8.40k
  }
1063
  // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.GradientDef)
1064
8.40k
}
1065
GradientDef::GradientDef(const GradientDef& from)
1066
0
  : ::PROTOBUF_NAMESPACE_ID::Message() {
1067
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1068
0
  function_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1069
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1070
    function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
1071
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1072
0
  if (!from._internal_function_name().empty()) {
1073
0
    function_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_function_name(),
1074
0
      GetArenaForAllocation());
1075
0
  }
1076
0
  gradient_func_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1077
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1078
    gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
1079
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1080
0
  if (!from._internal_gradient_func().empty()) {
1081
0
    gradient_func_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_gradient_func(),
1082
0
      GetArenaForAllocation());
1083
0
  }
1084
  // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.GradientDef)
1085
0
}
1086
1087
8.40k
inline void GradientDef::SharedCtor() {
1088
8.40k
function_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1089
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1090
  function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
1091
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1092
8.40k
gradient_func_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1093
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1094
  gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
1095
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1096
8.40k
}
1097
1098
8.40k
GradientDef::~GradientDef() {
1099
  // @@protoc_insertion_point(destructor:opencv_tensorflow.GradientDef)
1100
8.40k
  if (GetArenaForAllocation() != nullptr) return;
1101
8.40k
  SharedDtor();
1102
8.40k
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1103
8.40k
}
1104
1105
8.40k
inline void GradientDef::SharedDtor() {
1106
8.40k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1107
8.40k
  function_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1108
8.40k
  gradient_func_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1109
8.40k
}
1110
1111
0
void GradientDef::ArenaDtor(void* object) {
1112
0
  GradientDef* _this = reinterpret_cast< GradientDef* >(object);
1113
0
  (void)_this;
1114
0
}
1115
8.40k
void GradientDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1116
8.40k
}
1117
0
void GradientDef::SetCachedSize(int size) const {
1118
0
  _cached_size_.Set(size);
1119
0
}
1120
1121
0
void GradientDef::Clear() {
1122
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.GradientDef)
1123
0
  uint32_t cached_has_bits = 0;
1124
  // Prevent compiler warnings about cached_has_bits being unused
1125
0
  (void) cached_has_bits;
1126
1127
0
  function_name_.ClearToEmpty();
1128
0
  gradient_func_.ClearToEmpty();
1129
0
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1130
0
}
1131
1132
8.40k
const char* GradientDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1133
17.4k
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1134
21.0k
  while (!ctx->Done(&ptr)) {
1135
12.7k
    uint32_t tag;
1136
12.7k
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1137
12.7k
    switch (tag >> 3) {
1138
      // string function_name = 1;
1139
3.53k
      case 1:
1140
3.53k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1141
2.11k
          auto str = _internal_mutable_function_name();
1142
2.11k
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1143
2.11k
          CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.GradientDef.function_name"));
1144
2.10k
          CHK_(ptr);
1145
2.10k
        } else
1146
1.42k
          goto handle_unusual;
1147
2.10k
        continue;
1148
      // string gradient_func = 2;
1149
4.54k
      case 2:
1150
4.54k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
1151
2.57k
          auto str = _internal_mutable_gradient_func();
1152
2.57k
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1153
2.57k
          CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.GradientDef.gradient_func"));
1154
2.57k
          CHK_(ptr);
1155
2.57k
        } else
1156
1.97k
          goto handle_unusual;
1157
2.56k
        continue;
1158
4.70k
      default:
1159
4.70k
        goto handle_unusual;
1160
12.7k
    }  // switch
1161
8.10k
  handle_unusual:
1162
8.10k
    if ((tag == 0) || ((tag & 7) == 4)) {
1163
26
      CHK_(ptr);
1164
25
      ctx->SetLastTag(tag);
1165
25
      goto message_done;
1166
26
    }
1167
8.07k
    ptr = UnknownFieldParse(
1168
8.07k
        tag,
1169
8.07k
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1170
8.07k
        ptr, ctx);
1171
8.07k
    CHK_(ptr != nullptr);
1172
8.07k
  }  // while
1173
8.40k
message_done:
1174
8.40k
  return ptr;
1175
82
failure:
1176
82
  ptr = nullptr;
1177
82
  goto message_done;
1178
8.40k
#undef CHK_
1179
8.40k
}
1180
1181
uint8_t* GradientDef::_InternalSerialize(
1182
0
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1183
  // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.GradientDef)
1184
0
  uint32_t cached_has_bits = 0;
1185
0
  (void) cached_has_bits;
1186
1187
  // string function_name = 1;
1188
0
  if (!this->_internal_function_name().empty()) {
1189
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1190
0
      this->_internal_function_name().data(), static_cast<int>(this->_internal_function_name().length()),
1191
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1192
0
      "opencv_tensorflow.GradientDef.function_name");
1193
0
    target = stream->WriteStringMaybeAliased(
1194
0
        1, this->_internal_function_name(), target);
1195
0
  }
1196
1197
  // string gradient_func = 2;
1198
0
  if (!this->_internal_gradient_func().empty()) {
1199
0
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1200
0
      this->_internal_gradient_func().data(), static_cast<int>(this->_internal_gradient_func().length()),
1201
0
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1202
0
      "opencv_tensorflow.GradientDef.gradient_func");
1203
0
    target = stream->WriteStringMaybeAliased(
1204
0
        2, this->_internal_gradient_func(), target);
1205
0
  }
1206
1207
0
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1208
0
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1209
0
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1210
0
  }
1211
  // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.GradientDef)
1212
0
  return target;
1213
0
}
1214
1215
5.92k
size_t GradientDef::ByteSizeLong() const {
1216
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.GradientDef)
1217
5.92k
  size_t total_size = 0;
1218
1219
5.92k
  uint32_t cached_has_bits = 0;
1220
  // Prevent compiler warnings about cached_has_bits being unused
1221
5.92k
  (void) cached_has_bits;
1222
1223
  // string function_name = 1;
1224
5.92k
  if (!this->_internal_function_name().empty()) {
1225
1.14k
    total_size += 1 +
1226
1.14k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1227
1.14k
        this->_internal_function_name());
1228
1.14k
  }
1229
1230
  // string gradient_func = 2;
1231
5.92k
  if (!this->_internal_gradient_func().empty()) {
1232
633
    total_size += 1 +
1233
633
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1234
633
        this->_internal_gradient_func());
1235
633
  }
1236
1237
5.92k
  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
1238
5.92k
}
1239
1240
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GradientDef::_class_data_ = {
1241
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
1242
    GradientDef::MergeImpl
1243
};
1244
0
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GradientDef::GetClassData() const { return &_class_data_; }
1245
1246
void GradientDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
1247
0
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1248
0
  static_cast<GradientDef *>(to)->MergeFrom(
1249
0
      static_cast<const GradientDef &>(from));
1250
0
}
1251
1252
1253
0
void GradientDef::MergeFrom(const GradientDef& from) {
1254
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.GradientDef)
1255
0
  GOOGLE_DCHECK_NE(&from, this);
1256
0
  uint32_t cached_has_bits = 0;
1257
0
  (void) cached_has_bits;
1258
1259
0
  if (!from._internal_function_name().empty()) {
1260
0
    _internal_set_function_name(from._internal_function_name());
1261
0
  }
1262
0
  if (!from._internal_gradient_func().empty()) {
1263
0
    _internal_set_gradient_func(from._internal_gradient_func());
1264
0
  }
1265
0
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1266
0
}
1267
1268
0
void GradientDef::CopyFrom(const GradientDef& from) {
1269
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.GradientDef)
1270
0
  if (&from == this) return;
1271
0
  Clear();
1272
0
  MergeFrom(from);
1273
0
}
1274
1275
0
bool GradientDef::IsInitialized() const {
1276
0
  return true;
1277
0
}
1278
1279
0
void GradientDef::InternalSwap(GradientDef* other) {
1280
0
  using std::swap;
1281
0
  auto* lhs_arena = GetArenaForAllocation();
1282
0
  auto* rhs_arena = other->GetArenaForAllocation();
1283
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1284
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1285
0
      &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1286
0
      &function_name_, lhs_arena,
1287
0
      &other->function_name_, rhs_arena
1288
0
  );
1289
0
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1290
0
      &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1291
0
      &gradient_func_, lhs_arena,
1292
0
      &other->gradient_func_, rhs_arena
1293
0
  );
1294
0
}
1295
1296
0
::PROTOBUF_NAMESPACE_ID::Metadata GradientDef::GetMetadata() const {
1297
0
  return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
1298
0
      &descriptor_table_function_2eproto_getter, &descriptor_table_function_2eproto_once,
1299
0
      file_level_metadata_function_2eproto[4]);
1300
0
}
1301
1302
// @@protoc_insertion_point(namespace_scope)
1303
}  // namespace opencv_tensorflow
1304
PROTOBUF_NAMESPACE_OPEN
1305
4.91k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDefLibrary* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDefLibrary >(Arena* arena) {
1306
4.91k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDefLibrary >(arena);
1307
4.91k
}
1308
11.1k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse >(Arena* arena) {
1309
11.1k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse >(arena);
1310
11.1k
}
1311
10.9k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef_Node* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef_Node >(Arena* arena) {
1312
10.9k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef_Node >(arena);
1313
10.9k
}
1314
43.2k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef >(Arena* arena) {
1315
43.2k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef >(arena);
1316
43.2k
}
1317
8.40k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::GradientDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::GradientDef >(Arena* arena) {
1318
8.40k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::GradientDef >(arena);
1319
8.40k
}
1320
PROTOBUF_NAMESPACE_CLOSE
1321
1322
// @@protoc_insertion_point(global_scope)
1323
#include <google/protobuf/port_undef.inc>