Coverage Report

Created: 2026-08-19 06:52

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
5.53k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
200
5.53k
  function_(arena),
201
5.53k
  gradient_(arena) {
202
5.53k
  SharedCtor();
203
5.53k
  if (!is_message_owned) {
204
5.53k
    RegisterArenaDtor(arena);
205
5.53k
  }
206
  // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDefLibrary)
207
5.53k
}
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
5.53k
inline void FunctionDefLibrary::SharedCtor() {
217
5.53k
}
218
219
5.53k
FunctionDefLibrary::~FunctionDefLibrary() {
220
  // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDefLibrary)
221
5.53k
  if (GetArenaForAllocation() != nullptr) return;
222
5.53k
  SharedDtor();
223
5.53k
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
224
5.53k
}
225
226
5.53k
inline void FunctionDefLibrary::SharedDtor() {
227
5.53k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
228
5.53k
}
229
230
0
void FunctionDefLibrary::ArenaDtor(void* object) {
231
0
  FunctionDefLibrary* _this = reinterpret_cast< FunctionDefLibrary* >(object);
232
0
  (void)_this;
233
0
}
234
5.53k
void FunctionDefLibrary::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
235
5.53k
}
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
55.4k
const char* FunctionDefLibrary::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
252
102k
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
253
150k
  while (!ctx->Done(&ptr)) {
254
98.8k
    uint32_t tag;
255
98.8k
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
256
98.8k
    switch (tag >> 3) {
257
      // repeated .opencv_tensorflow.FunctionDef function = 1;
258
40.2k
      case 1:
259
40.2k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
260
36.8k
          ptr -= 1;
261
39.3k
          do {
262
39.3k
            ptr += 1;
263
39.3k
            ptr = ctx->ParseMessage(_internal_add_function(), ptr);
264
39.3k
            CHK_(ptr);
265
35.8k
            if (!ctx->DataAvailable(ptr)) break;
266
35.8k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
267
36.8k
        } else
268
3.34k
          goto handle_unusual;
269
33.3k
        continue;
270
      // repeated .opencv_tensorflow.GradientDef gradient = 2;
271
33.3k
      case 2:
272
19.1k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
273
4.57k
          ptr -= 1;
274
6.07k
          do {
275
6.07k
            ptr += 1;
276
6.07k
            ptr = ctx->ParseMessage(_internal_add_gradient(), ptr);
277
6.07k
            CHK_(ptr);
278
5.78k
            if (!ctx->DataAvailable(ptr)) break;
279
5.78k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
280
4.57k
        } else
281
14.5k
          goto handle_unusual;
282
4.27k
        continue;
283
39.4k
      default:
284
39.4k
        goto handle_unusual;
285
98.8k
    }  // switch
286
57.3k
  handle_unusual:
287
57.3k
    if ((tag == 0) || ((tag & 7) == 4)) {
288
53
      CHK_(ptr);
289
47
      ctx->SetLastTag(tag);
290
47
      goto message_done;
291
53
    }
292
57.2k
    ptr = UnknownFieldParse(
293
57.2k
        tag,
294
57.2k
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
295
57.2k
        ptr, ctx);
296
57.2k
    CHK_(ptr != nullptr);
297
57.2k
  }  // while
298
55.4k
message_done:
299
55.4k
  return ptr;
300
3.89k
failure:
301
3.89k
  ptr = nullptr;
302
3.89k
  goto message_done;
303
55.4k
#undef CHK_
304
55.4k
}
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.39k
size_t FunctionDefLibrary::ByteSizeLong() const {
337
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDefLibrary)
338
1.39k
  size_t total_size = 0;
339
340
1.39k
  uint32_t cached_has_bits = 0;
341
  // Prevent compiler warnings about cached_has_bits being unused
342
1.39k
  (void) cached_has_bits;
343
344
  // repeated .opencv_tensorflow.FunctionDef function = 1;
345
1.39k
  total_size += 1UL * this->_internal_function_size();
346
31.0k
  for (const auto& msg : this->function_) {
347
31.0k
    total_size +=
348
31.0k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
349
31.0k
  }
350
351
  // repeated .opencv_tensorflow.GradientDef gradient = 2;
352
1.39k
  total_size += 1UL * this->_internal_gradient_size();
353
4.10k
  for (const auto& msg : this->gradient_) {
354
4.10k
    total_size +=
355
4.10k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
356
4.10k
  }
357
358
1.39k
  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
359
1.39k
}
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
8.61k
    : 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
9.53k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
435
9.53k
  ret_(arena),
436
9.53k
  arg_(arena),
437
9.53k
  dep_(arena),
438
9.53k
  attr_(arena) {
439
9.53k
  SharedCtor();
440
9.53k
  if (!is_message_owned) {
441
9.53k
    RegisterArenaDtor(arena);
442
9.53k
  }
443
  // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDef.Node)
444
9.53k
}
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
9.53k
inline void FunctionDef_Node::SharedCtor() {
464
9.53k
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
9.53k
}
469
470
9.53k
FunctionDef_Node::~FunctionDef_Node() {
471
  // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDef.Node)
472
9.53k
  if (GetArenaForAllocation() != nullptr) return;
473
9.53k
  SharedDtor();
474
9.53k
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
475
9.53k
}
476
477
9.53k
inline void FunctionDef_Node::SharedDtor() {
478
9.53k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
479
9.53k
  op_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
480
9.53k
}
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
9.53k
inline void FunctionDef_Node::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) {
488
9.53k
  if (arena != nullptr) {
489
0
    arena->OwnCustomDestructor(this, &FunctionDef_Node::ArenaDtor);
490
0
  }
491
9.53k
}
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
9.53k
const char* FunctionDef_Node::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
511
102k
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
512
72.9k
  while (!ctx->Done(&ptr)) {
513
64.0k
    uint32_t tag;
514
64.0k
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
515
64.0k
    switch (tag >> 3) {
516
      // repeated string ret = 1;
517
6.18k
      case 1:
518
6.18k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
519
4.77k
          ptr -= 1;
520
9.64k
          do {
521
9.64k
            ptr += 1;
522
9.64k
            auto str = _internal_add_ret();
523
9.64k
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
524
9.64k
            CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.ret"));
525
9.63k
            CHK_(ptr);
526
9.62k
            if (!ctx->DataAvailable(ptr)) break;
527
9.62k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
528
4.77k
        } else
529
1.41k
          goto handle_unusual;
530
4.75k
        continue;
531
      // string op = 2;
532
16.5k
      case 2:
533
16.5k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
534
7.22k
          auto str = _internal_mutable_op();
535
7.22k
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
536
7.22k
          CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.op"));
537
7.22k
          CHK_(ptr);
538
7.22k
        } else
539
9.31k
          goto handle_unusual;
540
7.22k
        continue;
541
      // repeated string arg = 3;
542
7.22k
      case 3:
543
6.60k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
544
2.36k
          ptr -= 1;
545
3.82k
          do {
546
3.82k
            ptr += 1;
547
3.82k
            auto str = _internal_add_arg();
548
3.82k
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
549
3.82k
            CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.arg"));
550
3.82k
            CHK_(ptr);
551
3.81k
            if (!ctx->DataAvailable(ptr)) break;
552
3.81k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
553
2.36k
        } else
554
4.23k
          goto handle_unusual;
555
2.35k
        continue;
556
      // repeated string dep = 4;
557
4.66k
      case 4:
558
4.66k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
559
2.57k
          ptr -= 1;
560
5.80k
          do {
561
5.80k
            ptr += 1;
562
5.80k
            auto str = _internal_add_dep();
563
5.80k
            ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
564
5.80k
            CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.FunctionDef.Node.dep"));
565
5.80k
            CHK_(ptr);
566
5.79k
            if (!ctx->DataAvailable(ptr)) break;
567
5.79k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
568
2.57k
        } else
569
2.09k
          goto handle_unusual;
570
2.56k
        continue;
571
      // map<string, .opencv_tensorflow.AttrValue> attr = 5;
572
13.8k
      case 5:
573
13.8k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
574
6.70k
          ptr -= 1;
575
9.35k
          do {
576
9.35k
            ptr += 1;
577
9.35k
            ptr = ctx->ParseMessage(&attr_, ptr);
578
9.35k
            CHK_(ptr);
579
8.88k
            if (!ctx->DataAvailable(ptr)) break;
580
8.88k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
581
6.70k
        } else
582
7.12k
          goto handle_unusual;
583
6.22k
        continue;
584
16.2k
      default:
585
16.2k
        goto handle_unusual;
586
64.0k
    }  // switch
587
40.4k
  handle_unusual:
588
40.4k
    if ((tag == 0) || ((tag & 7) == 4)) {
589
37
      CHK_(ptr);
590
35
      ctx->SetLastTag(tag);
591
35
      goto message_done;
592
37
    }
593
40.3k
    ptr = UnknownFieldParse(
594
40.3k
        tag,
595
40.3k
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
596
40.3k
        ptr, ctx);
597
40.3k
    CHK_(ptr != nullptr);
598
40.3k
  }  // while
599
9.53k
message_done:
600
9.53k
  return ptr;
601
578
failure:
602
578
  ptr = nullptr;
603
578
  goto message_done;
604
9.53k
#undef CHK_
605
9.53k
}
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.14k
size_t FunctionDef_Node::ByteSizeLong() const {
704
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDef.Node)
705
6.14k
  size_t total_size = 0;
706
707
6.14k
  uint32_t cached_has_bits = 0;
708
  // Prevent compiler warnings about cached_has_bits being unused
709
6.14k
  (void) cached_has_bits;
710
711
  // repeated string ret = 1;
712
6.14k
  total_size += 1 *
713
6.14k
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(ret_.size());
714
9.06k
  for (int i = 0, n = ret_.size(); i < n; i++) {
715
2.92k
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
716
2.92k
      ret_.Get(i));
717
2.92k
  }
718
719
  // repeated string arg = 3;
720
6.14k
  total_size += 1 *
721
6.14k
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(arg_.size());
722
8.53k
  for (int i = 0, n = arg_.size(); i < n; i++) {
723
2.38k
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
724
2.38k
      arg_.Get(i));
725
2.38k
  }
726
727
  // repeated string dep = 4;
728
6.14k
  total_size += 1 *
729
6.14k
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(dep_.size());
730
11.0k
  for (int i = 0, n = dep_.size(); i < n; i++) {
731
4.91k
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
732
4.91k
      dep_.Get(i));
733
4.91k
  }
734
735
  // map<string, .opencv_tensorflow.AttrValue> attr = 5;
736
6.14k
  total_size += 1 *
737
6.14k
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attr_size());
738
6.14k
  for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
739
6.14k
      it = this->_internal_attr().begin();
740
10.2k
      it != this->_internal_attr().end(); ++it) {
741
4.08k
    total_size += FunctionDef_Node_AttrEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
742
4.08k
  }
743
744
  // string op = 2;
745
6.14k
  if (!this->_internal_op().empty()) {
746
1.01k
    total_size += 1 +
747
1.01k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
748
1.01k
        this->_internal_op());
749
1.01k
  }
750
751
6.14k
  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
752
6.14k
}
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
39.3k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
836
39.3k
  node_(arena) {
837
39.3k
  SharedCtor();
838
39.3k
  if (!is_message_owned) {
839
39.3k
    RegisterArenaDtor(arena);
840
39.3k
  }
841
  // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.FunctionDef)
842
39.3k
}
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
39.3k
inline void FunctionDef::SharedCtor() {
856
39.3k
signature_ = nullptr;
857
39.3k
}
858
859
39.3k
FunctionDef::~FunctionDef() {
860
  // @@protoc_insertion_point(destructor:opencv_tensorflow.FunctionDef)
861
39.3k
  if (GetArenaForAllocation() != nullptr) return;
862
39.3k
  SharedDtor();
863
39.3k
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
864
39.3k
}
865
866
39.3k
inline void FunctionDef::SharedDtor() {
867
39.3k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
868
39.3k
  if (this != internal_default_instance()) delete signature_;
869
39.3k
}
870
871
0
void FunctionDef::ArenaDtor(void* object) {
872
0
  FunctionDef* _this = reinterpret_cast< FunctionDef* >(object);
873
0
  (void)_this;
874
0
}
875
39.3k
void FunctionDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
876
39.3k
}
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
39.3k
const char* FunctionDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
896
98.1k
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
897
132k
  while (!ctx->Done(&ptr)) {
898
96.0k
    uint32_t tag;
899
96.0k
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
900
96.0k
    switch (tag >> 3) {
901
      // .opencv_tensorflow.OpDef signature = 1;
902
30.6k
      case 1:
903
30.6k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
904
28.7k
          ptr = ctx->ParseMessage(_internal_mutable_signature(), ptr);
905
28.7k
          CHK_(ptr);
906
28.7k
        } else
907
1.87k
          goto handle_unusual;
908
26.4k
        continue;
909
      // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
910
26.4k
      case 2:
911
25.2k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
912
7.49k
          ptr -= 1;
913
9.53k
          do {
914
9.53k
            ptr += 1;
915
9.53k
            ptr = ctx->ParseMessage(_internal_add_node(), ptr);
916
9.53k
            CHK_(ptr);
917
8.63k
            if (!ctx->DataAvailable(ptr)) break;
918
8.63k
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
919
7.49k
        } else
920
17.7k
          goto handle_unusual;
921
6.60k
        continue;
922
40.2k
      default:
923
40.2k
        goto handle_unusual;
924
96.0k
    }  // switch
925
59.8k
  handle_unusual:
926
59.8k
    if ((tag == 0) || ((tag & 7) == 4)) {
927
34
      CHK_(ptr);
928
32
      ctx->SetLastTag(tag);
929
32
      goto message_done;
930
34
    }
931
59.7k
    ptr = UnknownFieldParse(
932
59.7k
        tag,
933
59.7k
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
934
59.7k
        ptr, ctx);
935
59.7k
    CHK_(ptr != nullptr);
936
59.7k
  }  // while
937
39.3k
message_done:
938
39.3k
  return ptr;
939
3.33k
failure:
940
3.33k
  ptr = nullptr;
941
3.33k
  goto message_done;
942
39.3k
#undef CHK_
943
39.3k
}
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.0k
size_t FunctionDef::ByteSizeLong() const {
976
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.FunctionDef)
977
31.0k
  size_t total_size = 0;
978
979
31.0k
  uint32_t cached_has_bits = 0;
980
  // Prevent compiler warnings about cached_has_bits being unused
981
31.0k
  (void) cached_has_bits;
982
983
  // repeated .opencv_tensorflow.FunctionDef.Node node = 2;
984
31.0k
  total_size += 1UL * this->_internal_node_size();
985
31.0k
  for (const auto& msg : this->node_) {
986
6.14k
    total_size +=
987
6.14k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
988
6.14k
  }
989
990
  // .opencv_tensorflow.OpDef signature = 1;
991
31.0k
  if (this->_internal_has_signature()) {
992
22.5k
    total_size += 1 +
993
22.5k
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
994
22.5k
        *signature_);
995
22.5k
  }
996
997
31.0k
  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
998
31.0k
}
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
6.07k
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1059
6.07k
  SharedCtor();
1060
6.07k
  if (!is_message_owned) {
1061
6.07k
    RegisterArenaDtor(arena);
1062
6.07k
  }
1063
  // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.GradientDef)
1064
6.07k
}
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
6.07k
inline void GradientDef::SharedCtor() {
1088
6.07k
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
6.07k
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
6.07k
}
1097
1098
6.07k
GradientDef::~GradientDef() {
1099
  // @@protoc_insertion_point(destructor:opencv_tensorflow.GradientDef)
1100
6.07k
  if (GetArenaForAllocation() != nullptr) return;
1101
6.07k
  SharedDtor();
1102
6.07k
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1103
6.07k
}
1104
1105
6.07k
inline void GradientDef::SharedDtor() {
1106
6.07k
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1107
6.07k
  function_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1108
6.07k
  gradient_func_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1109
6.07k
}
1110
1111
0
void GradientDef::ArenaDtor(void* object) {
1112
0
  GradientDef* _this = reinterpret_cast< GradientDef* >(object);
1113
0
  (void)_this;
1114
0
}
1115
6.07k
void GradientDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1116
6.07k
}
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
6.07k
const char* GradientDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1133
16.2k
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1134
17.4k
  while (!ctx->Done(&ptr)) {
1135
11.5k
    uint32_t tag;
1136
11.5k
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1137
11.5k
    switch (tag >> 3) {
1138
      // string function_name = 1;
1139
3.68k
      case 1:
1140
3.68k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
1141
2.30k
          auto str = _internal_mutable_function_name();
1142
2.30k
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1143
2.30k
          CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.GradientDef.function_name"));
1144
2.29k
          CHK_(ptr);
1145
2.29k
        } else
1146
1.38k
          goto handle_unusual;
1147
2.28k
        continue;
1148
      // string gradient_func = 2;
1149
3.47k
      case 2:
1150
3.47k
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
1151
2.46k
          auto str = _internal_mutable_gradient_func();
1152
2.46k
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1153
2.46k
          CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.GradientDef.gradient_func"));
1154
2.46k
          CHK_(ptr);
1155
2.46k
        } else
1156
1.00k
          goto handle_unusual;
1157
2.45k
        continue;
1158
4.35k
      default:
1159
4.35k
        goto handle_unusual;
1160
11.5k
    }  // switch
1161
6.74k
  handle_unusual:
1162
6.74k
    if ((tag == 0) || ((tag & 7) == 4)) {
1163
21
      CHK_(ptr);
1164
20
      ctx->SetLastTag(tag);
1165
20
      goto message_done;
1166
21
    }
1167
6.72k
    ptr = UnknownFieldParse(
1168
6.72k
        tag,
1169
6.72k
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1170
6.72k
        ptr, ctx);
1171
6.72k
    CHK_(ptr != nullptr);
1172
6.72k
  }  // while
1173
6.07k
message_done:
1174
6.07k
  return ptr;
1175
90
failure:
1176
90
  ptr = nullptr;
1177
90
  goto message_done;
1178
6.07k
#undef CHK_
1179
6.07k
}
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
4.10k
size_t GradientDef::ByteSizeLong() const {
1216
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.GradientDef)
1217
4.10k
  size_t total_size = 0;
1218
1219
4.10k
  uint32_t cached_has_bits = 0;
1220
  // Prevent compiler warnings about cached_has_bits being unused
1221
4.10k
  (void) cached_has_bits;
1222
1223
  // string function_name = 1;
1224
4.10k
  if (!this->_internal_function_name().empty()) {
1225
881
    total_size += 1 +
1226
881
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1227
881
        this->_internal_function_name());
1228
881
  }
1229
1230
  // string gradient_func = 2;
1231
4.10k
  if (!this->_internal_gradient_func().empty()) {
1232
546
    total_size += 1 +
1233
546
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1234
546
        this->_internal_gradient_func());
1235
546
  }
1236
1237
4.10k
  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
1238
4.10k
}
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
5.53k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDefLibrary* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDefLibrary >(Arena* arena) {
1306
5.53k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDefLibrary >(arena);
1307
5.53k
}
1308
8.61k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse >(Arena* arena) {
1309
8.61k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef_Node_AttrEntry_DoNotUse >(arena);
1310
8.61k
}
1311
9.53k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef_Node* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef_Node >(Arena* arena) {
1312
9.53k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef_Node >(arena);
1313
9.53k
}
1314
39.3k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::FunctionDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::FunctionDef >(Arena* arena) {
1315
39.3k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::FunctionDef >(arena);
1316
39.3k
}
1317
6.07k
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::GradientDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::GradientDef >(Arena* arena) {
1318
6.07k
  return Arena::CreateMessageInternal< ::opencv_tensorflow::GradientDef >(arena);
1319
6.07k
}
1320
PROTOBUF_NAMESPACE_CLOSE
1321
1322
// @@protoc_insertion_point(global_scope)
1323
#include <google/protobuf/port_undef.inc>