1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: opencv-caffe.proto
3 
4 #include "opencv-caffe.pb.h"
5 
6 #include <algorithm>
7 
8 #include <google/protobuf/stubs/common.h>
9 #include <google/protobuf/stubs/port.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
17 // This is a temporary google only hack
18 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19 #include "third_party/protobuf/version.h"
20 #endif
21 // @@protoc_insertion_point(includes)
22 namespace opencv_caffe {
23 class BlobShapeDefaultTypeInternal {
24  public:
25   ::google::protobuf::internal::ExplicitlyConstructed<BlobShape>
26       _instance;
27 } _BlobShape_default_instance_;
28 class BlobProtoDefaultTypeInternal {
29  public:
30   ::google::protobuf::internal::ExplicitlyConstructed<BlobProto>
31       _instance;
32 } _BlobProto_default_instance_;
33 class BlobProtoVectorDefaultTypeInternal {
34  public:
35   ::google::protobuf::internal::ExplicitlyConstructed<BlobProtoVector>
36       _instance;
37 } _BlobProtoVector_default_instance_;
38 class PermuteParameterDefaultTypeInternal {
39  public:
40   ::google::protobuf::internal::ExplicitlyConstructed<PermuteParameter>
41       _instance;
42 } _PermuteParameter_default_instance_;
43 class NormalizeBBoxParameterDefaultTypeInternal {
44  public:
45   ::google::protobuf::internal::ExplicitlyConstructed<NormalizeBBoxParameter>
46       _instance;
47 } _NormalizeBBoxParameter_default_instance_;
48 class PriorBoxParameterDefaultTypeInternal {
49  public:
50   ::google::protobuf::internal::ExplicitlyConstructed<PriorBoxParameter>
51       _instance;
52 } _PriorBoxParameter_default_instance_;
53 class DetectionOutputParameterDefaultTypeInternal {
54  public:
55   ::google::protobuf::internal::ExplicitlyConstructed<DetectionOutputParameter>
56       _instance;
57 } _DetectionOutputParameter_default_instance_;
58 class DatumDefaultTypeInternal {
59  public:
60   ::google::protobuf::internal::ExplicitlyConstructed<Datum>
61       _instance;
62 } _Datum_default_instance_;
63 class FillerParameterDefaultTypeInternal {
64  public:
65   ::google::protobuf::internal::ExplicitlyConstructed<FillerParameter>
66       _instance;
67 } _FillerParameter_default_instance_;
68 class NetParameterDefaultTypeInternal {
69  public:
70   ::google::protobuf::internal::ExplicitlyConstructed<NetParameter>
71       _instance;
72 } _NetParameter_default_instance_;
73 class SolverParameterDefaultTypeInternal {
74  public:
75   ::google::protobuf::internal::ExplicitlyConstructed<SolverParameter>
76       _instance;
77 } _SolverParameter_default_instance_;
78 class SolverStateDefaultTypeInternal {
79  public:
80   ::google::protobuf::internal::ExplicitlyConstructed<SolverState>
81       _instance;
82 } _SolverState_default_instance_;
83 class NetStateDefaultTypeInternal {
84  public:
85   ::google::protobuf::internal::ExplicitlyConstructed<NetState>
86       _instance;
87 } _NetState_default_instance_;
88 class NetStateRuleDefaultTypeInternal {
89  public:
90   ::google::protobuf::internal::ExplicitlyConstructed<NetStateRule>
91       _instance;
92 } _NetStateRule_default_instance_;
93 class ParamSpecDefaultTypeInternal {
94  public:
95   ::google::protobuf::internal::ExplicitlyConstructed<ParamSpec>
96       _instance;
97 } _ParamSpec_default_instance_;
98 class LayerParameterDefaultTypeInternal {
99  public:
100   ::google::protobuf::internal::ExplicitlyConstructed<LayerParameter>
101       _instance;
102 } _LayerParameter_default_instance_;
103 class TransformationParameterDefaultTypeInternal {
104  public:
105   ::google::protobuf::internal::ExplicitlyConstructed<TransformationParameter>
106       _instance;
107 } _TransformationParameter_default_instance_;
108 class LossParameterDefaultTypeInternal {
109  public:
110   ::google::protobuf::internal::ExplicitlyConstructed<LossParameter>
111       _instance;
112 } _LossParameter_default_instance_;
113 class AccuracyParameterDefaultTypeInternal {
114  public:
115   ::google::protobuf::internal::ExplicitlyConstructed<AccuracyParameter>
116       _instance;
117 } _AccuracyParameter_default_instance_;
118 class ArgMaxParameterDefaultTypeInternal {
119  public:
120   ::google::protobuf::internal::ExplicitlyConstructed<ArgMaxParameter>
121       _instance;
122 } _ArgMaxParameter_default_instance_;
123 class ConcatParameterDefaultTypeInternal {
124  public:
125   ::google::protobuf::internal::ExplicitlyConstructed<ConcatParameter>
126       _instance;
127 } _ConcatParameter_default_instance_;
128 class BatchNormParameterDefaultTypeInternal {
129  public:
130   ::google::protobuf::internal::ExplicitlyConstructed<BatchNormParameter>
131       _instance;
132 } _BatchNormParameter_default_instance_;
133 class BiasParameterDefaultTypeInternal {
134  public:
135   ::google::protobuf::internal::ExplicitlyConstructed<BiasParameter>
136       _instance;
137 } _BiasParameter_default_instance_;
138 class ContrastiveLossParameterDefaultTypeInternal {
139  public:
140   ::google::protobuf::internal::ExplicitlyConstructed<ContrastiveLossParameter>
141       _instance;
142 } _ContrastiveLossParameter_default_instance_;
143 class ConvolutionParameterDefaultTypeInternal {
144  public:
145   ::google::protobuf::internal::ExplicitlyConstructed<ConvolutionParameter>
146       _instance;
147 } _ConvolutionParameter_default_instance_;
148 class CropParameterDefaultTypeInternal {
149  public:
150   ::google::protobuf::internal::ExplicitlyConstructed<CropParameter>
151       _instance;
152 } _CropParameter_default_instance_;
153 class DataParameterDefaultTypeInternal {
154  public:
155   ::google::protobuf::internal::ExplicitlyConstructed<DataParameter>
156       _instance;
157 } _DataParameter_default_instance_;
158 class NonMaximumSuppressionParameterDefaultTypeInternal {
159  public:
160   ::google::protobuf::internal::ExplicitlyConstructed<NonMaximumSuppressionParameter>
161       _instance;
162 } _NonMaximumSuppressionParameter_default_instance_;
163 class SaveOutputParameterDefaultTypeInternal {
164  public:
165   ::google::protobuf::internal::ExplicitlyConstructed<SaveOutputParameter>
166       _instance;
167 } _SaveOutputParameter_default_instance_;
168 class DropoutParameterDefaultTypeInternal {
169  public:
170   ::google::protobuf::internal::ExplicitlyConstructed<DropoutParameter>
171       _instance;
172 } _DropoutParameter_default_instance_;
173 class DummyDataParameterDefaultTypeInternal {
174  public:
175   ::google::protobuf::internal::ExplicitlyConstructed<DummyDataParameter>
176       _instance;
177 } _DummyDataParameter_default_instance_;
178 class EltwiseParameterDefaultTypeInternal {
179  public:
180   ::google::protobuf::internal::ExplicitlyConstructed<EltwiseParameter>
181       _instance;
182 } _EltwiseParameter_default_instance_;
183 class ELUParameterDefaultTypeInternal {
184  public:
185   ::google::protobuf::internal::ExplicitlyConstructed<ELUParameter>
186       _instance;
187 } _ELUParameter_default_instance_;
188 class EmbedParameterDefaultTypeInternal {
189  public:
190   ::google::protobuf::internal::ExplicitlyConstructed<EmbedParameter>
191       _instance;
192 } _EmbedParameter_default_instance_;
193 class ExpParameterDefaultTypeInternal {
194  public:
195   ::google::protobuf::internal::ExplicitlyConstructed<ExpParameter>
196       _instance;
197 } _ExpParameter_default_instance_;
198 class FlattenParameterDefaultTypeInternal {
199  public:
200   ::google::protobuf::internal::ExplicitlyConstructed<FlattenParameter>
201       _instance;
202 } _FlattenParameter_default_instance_;
203 class HDF5DataParameterDefaultTypeInternal {
204  public:
205   ::google::protobuf::internal::ExplicitlyConstructed<HDF5DataParameter>
206       _instance;
207 } _HDF5DataParameter_default_instance_;
208 class HDF5OutputParameterDefaultTypeInternal {
209  public:
210   ::google::protobuf::internal::ExplicitlyConstructed<HDF5OutputParameter>
211       _instance;
212 } _HDF5OutputParameter_default_instance_;
213 class HingeLossParameterDefaultTypeInternal {
214  public:
215   ::google::protobuf::internal::ExplicitlyConstructed<HingeLossParameter>
216       _instance;
217 } _HingeLossParameter_default_instance_;
218 class ImageDataParameterDefaultTypeInternal {
219  public:
220   ::google::protobuf::internal::ExplicitlyConstructed<ImageDataParameter>
221       _instance;
222 } _ImageDataParameter_default_instance_;
223 class InfogainLossParameterDefaultTypeInternal {
224  public:
225   ::google::protobuf::internal::ExplicitlyConstructed<InfogainLossParameter>
226       _instance;
227 } _InfogainLossParameter_default_instance_;
228 class InnerProductParameterDefaultTypeInternal {
229  public:
230   ::google::protobuf::internal::ExplicitlyConstructed<InnerProductParameter>
231       _instance;
232 } _InnerProductParameter_default_instance_;
233 class InputParameterDefaultTypeInternal {
234  public:
235   ::google::protobuf::internal::ExplicitlyConstructed<InputParameter>
236       _instance;
237 } _InputParameter_default_instance_;
238 class LogParameterDefaultTypeInternal {
239  public:
240   ::google::protobuf::internal::ExplicitlyConstructed<LogParameter>
241       _instance;
242 } _LogParameter_default_instance_;
243 class LRNParameterDefaultTypeInternal {
244  public:
245   ::google::protobuf::internal::ExplicitlyConstructed<LRNParameter>
246       _instance;
247 } _LRNParameter_default_instance_;
248 class MemoryDataParameterDefaultTypeInternal {
249  public:
250   ::google::protobuf::internal::ExplicitlyConstructed<MemoryDataParameter>
251       _instance;
252 } _MemoryDataParameter_default_instance_;
253 class MVNParameterDefaultTypeInternal {
254  public:
255   ::google::protobuf::internal::ExplicitlyConstructed<MVNParameter>
256       _instance;
257 } _MVNParameter_default_instance_;
258 class ParameterParameterDefaultTypeInternal {
259  public:
260   ::google::protobuf::internal::ExplicitlyConstructed<ParameterParameter>
261       _instance;
262 } _ParameterParameter_default_instance_;
263 class PoolingParameterDefaultTypeInternal {
264  public:
265   ::google::protobuf::internal::ExplicitlyConstructed<PoolingParameter>
266       _instance;
267 } _PoolingParameter_default_instance_;
268 class PowerParameterDefaultTypeInternal {
269  public:
270   ::google::protobuf::internal::ExplicitlyConstructed<PowerParameter>
271       _instance;
272 } _PowerParameter_default_instance_;
273 class PythonParameterDefaultTypeInternal {
274  public:
275   ::google::protobuf::internal::ExplicitlyConstructed<PythonParameter>
276       _instance;
277 } _PythonParameter_default_instance_;
278 class RecurrentParameterDefaultTypeInternal {
279  public:
280   ::google::protobuf::internal::ExplicitlyConstructed<RecurrentParameter>
281       _instance;
282 } _RecurrentParameter_default_instance_;
283 class ReductionParameterDefaultTypeInternal {
284  public:
285   ::google::protobuf::internal::ExplicitlyConstructed<ReductionParameter>
286       _instance;
287 } _ReductionParameter_default_instance_;
288 class ReLUParameterDefaultTypeInternal {
289  public:
290   ::google::protobuf::internal::ExplicitlyConstructed<ReLUParameter>
291       _instance;
292 } _ReLUParameter_default_instance_;
293 class ReshapeParameterDefaultTypeInternal {
294  public:
295   ::google::protobuf::internal::ExplicitlyConstructed<ReshapeParameter>
296       _instance;
297 } _ReshapeParameter_default_instance_;
298 class ScaleParameterDefaultTypeInternal {
299  public:
300   ::google::protobuf::internal::ExplicitlyConstructed<ScaleParameter>
301       _instance;
302 } _ScaleParameter_default_instance_;
303 class SigmoidParameterDefaultTypeInternal {
304  public:
305   ::google::protobuf::internal::ExplicitlyConstructed<SigmoidParameter>
306       _instance;
307 } _SigmoidParameter_default_instance_;
308 class SliceParameterDefaultTypeInternal {
309  public:
310   ::google::protobuf::internal::ExplicitlyConstructed<SliceParameter>
311       _instance;
312 } _SliceParameter_default_instance_;
313 class SoftmaxParameterDefaultTypeInternal {
314  public:
315   ::google::protobuf::internal::ExplicitlyConstructed<SoftmaxParameter>
316       _instance;
317 } _SoftmaxParameter_default_instance_;
318 class TanHParameterDefaultTypeInternal {
319  public:
320   ::google::protobuf::internal::ExplicitlyConstructed<TanHParameter>
321       _instance;
322 } _TanHParameter_default_instance_;
323 class TileParameterDefaultTypeInternal {
324  public:
325   ::google::protobuf::internal::ExplicitlyConstructed<TileParameter>
326       _instance;
327 } _TileParameter_default_instance_;
328 class ThresholdParameterDefaultTypeInternal {
329  public:
330   ::google::protobuf::internal::ExplicitlyConstructed<ThresholdParameter>
331       _instance;
332 } _ThresholdParameter_default_instance_;
333 class WindowDataParameterDefaultTypeInternal {
334  public:
335   ::google::protobuf::internal::ExplicitlyConstructed<WindowDataParameter>
336       _instance;
337 } _WindowDataParameter_default_instance_;
338 class SPPParameterDefaultTypeInternal {
339  public:
340   ::google::protobuf::internal::ExplicitlyConstructed<SPPParameter>
341       _instance;
342 } _SPPParameter_default_instance_;
343 class V1LayerParameterDefaultTypeInternal {
344  public:
345   ::google::protobuf::internal::ExplicitlyConstructed<V1LayerParameter>
346       _instance;
347 } _V1LayerParameter_default_instance_;
348 class V0LayerParameterDefaultTypeInternal {
349  public:
350   ::google::protobuf::internal::ExplicitlyConstructed<V0LayerParameter>
351       _instance;
352 } _V0LayerParameter_default_instance_;
353 class PReLUParameterDefaultTypeInternal {
354  public:
355   ::google::protobuf::internal::ExplicitlyConstructed<PReLUParameter>
356       _instance;
357 } _PReLUParameter_default_instance_;
358 class NormalizedBBoxDefaultTypeInternal {
359  public:
360   ::google::protobuf::internal::ExplicitlyConstructed<NormalizedBBox>
361       _instance;
362 } _NormalizedBBox_default_instance_;
363 class ROIPoolingParameterDefaultTypeInternal {
364  public:
365   ::google::protobuf::internal::ExplicitlyConstructed<ROIPoolingParameter>
366       _instance;
367 } _ROIPoolingParameter_default_instance_;
368 class ProposalParameterDefaultTypeInternal {
369  public:
370   ::google::protobuf::internal::ExplicitlyConstructed<ProposalParameter>
371       _instance;
372 } _ProposalParameter_default_instance_;
373 class PSROIPoolingParameterDefaultTypeInternal {
374  public:
375   ::google::protobuf::internal::ExplicitlyConstructed<PSROIPoolingParameter>
376       _instance;
377 } _PSROIPoolingParameter_default_instance_;
378 }  // namespace opencv_caffe
379 namespace protobuf_opencv_2dcaffe_2eproto {
InitDefaultsBlobShapeImpl()380 void InitDefaultsBlobShapeImpl() {
381   GOOGLE_PROTOBUF_VERIFY_VERSION;
382 
383 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
384   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
385 #else
386   ::google::protobuf::internal::InitProtobufDefaults();
387 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
388   {
389     void* ptr = &::opencv_caffe::_BlobShape_default_instance_;
390     new (ptr) ::opencv_caffe::BlobShape();
391     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
392   }
393   ::opencv_caffe::BlobShape::InitAsDefaultInstance();
394 }
395 
InitDefaultsBlobShape()396 void InitDefaultsBlobShape() {
397   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
398   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobShapeImpl);
399 }
400 
InitDefaultsBlobProtoImpl()401 void InitDefaultsBlobProtoImpl() {
402   GOOGLE_PROTOBUF_VERIFY_VERSION;
403 
404 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
405   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
406 #else
407   ::google::protobuf::internal::InitProtobufDefaults();
408 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
409   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape();
410   {
411     void* ptr = &::opencv_caffe::_BlobProto_default_instance_;
412     new (ptr) ::opencv_caffe::BlobProto();
413     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
414   }
415   ::opencv_caffe::BlobProto::InitAsDefaultInstance();
416 }
417 
InitDefaultsBlobProto()418 void InitDefaultsBlobProto() {
419   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
420   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobProtoImpl);
421 }
422 
InitDefaultsBlobProtoVectorImpl()423 void InitDefaultsBlobProtoVectorImpl() {
424   GOOGLE_PROTOBUF_VERIFY_VERSION;
425 
426 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
427   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
428 #else
429   ::google::protobuf::internal::InitProtobufDefaults();
430 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
431   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto();
432   {
433     void* ptr = &::opencv_caffe::_BlobProtoVector_default_instance_;
434     new (ptr) ::opencv_caffe::BlobProtoVector();
435     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
436   }
437   ::opencv_caffe::BlobProtoVector::InitAsDefaultInstance();
438 }
439 
InitDefaultsBlobProtoVector()440 void InitDefaultsBlobProtoVector() {
441   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
442   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobProtoVectorImpl);
443 }
444 
InitDefaultsPermuteParameterImpl()445 void InitDefaultsPermuteParameterImpl() {
446   GOOGLE_PROTOBUF_VERIFY_VERSION;
447 
448 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
449   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
450 #else
451   ::google::protobuf::internal::InitProtobufDefaults();
452 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
453   {
454     void* ptr = &::opencv_caffe::_PermuteParameter_default_instance_;
455     new (ptr) ::opencv_caffe::PermuteParameter();
456     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
457   }
458   ::opencv_caffe::PermuteParameter::InitAsDefaultInstance();
459 }
460 
InitDefaultsPermuteParameter()461 void InitDefaultsPermuteParameter() {
462   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
463   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPermuteParameterImpl);
464 }
465 
InitDefaultsNormalizeBBoxParameterImpl()466 void InitDefaultsNormalizeBBoxParameterImpl() {
467   GOOGLE_PROTOBUF_VERIFY_VERSION;
468 
469 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
470   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
471 #else
472   ::google::protobuf::internal::InitProtobufDefaults();
473 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
474   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
475   {
476     void* ptr = &::opencv_caffe::_NormalizeBBoxParameter_default_instance_;
477     new (ptr) ::opencv_caffe::NormalizeBBoxParameter();
478     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
479   }
480   ::opencv_caffe::NormalizeBBoxParameter::InitAsDefaultInstance();
481 }
482 
InitDefaultsNormalizeBBoxParameter()483 void InitDefaultsNormalizeBBoxParameter() {
484   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
485   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNormalizeBBoxParameterImpl);
486 }
487 
InitDefaultsPriorBoxParameterImpl()488 void InitDefaultsPriorBoxParameterImpl() {
489   GOOGLE_PROTOBUF_VERIFY_VERSION;
490 
491 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
492   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
493 #else
494   ::google::protobuf::internal::InitProtobufDefaults();
495 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
496   {
497     void* ptr = &::opencv_caffe::_PriorBoxParameter_default_instance_;
498     new (ptr) ::opencv_caffe::PriorBoxParameter();
499     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
500   }
501   ::opencv_caffe::PriorBoxParameter::InitAsDefaultInstance();
502 }
503 
InitDefaultsPriorBoxParameter()504 void InitDefaultsPriorBoxParameter() {
505   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
506   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPriorBoxParameterImpl);
507 }
508 
InitDefaultsDetectionOutputParameterImpl()509 void InitDefaultsDetectionOutputParameterImpl() {
510   GOOGLE_PROTOBUF_VERIFY_VERSION;
511 
512 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
513   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
514 #else
515   ::google::protobuf::internal::InitProtobufDefaults();
516 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
517   protobuf_opencv_2dcaffe_2eproto::InitDefaultsNonMaximumSuppressionParameter();
518   protobuf_opencv_2dcaffe_2eproto::InitDefaultsSaveOutputParameter();
519   {
520     void* ptr = &::opencv_caffe::_DetectionOutputParameter_default_instance_;
521     new (ptr) ::opencv_caffe::DetectionOutputParameter();
522     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
523   }
524   ::opencv_caffe::DetectionOutputParameter::InitAsDefaultInstance();
525 }
526 
InitDefaultsDetectionOutputParameter()527 void InitDefaultsDetectionOutputParameter() {
528   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
529   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDetectionOutputParameterImpl);
530 }
531 
InitDefaultsDatumImpl()532 void InitDefaultsDatumImpl() {
533   GOOGLE_PROTOBUF_VERIFY_VERSION;
534 
535 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
536   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
537 #else
538   ::google::protobuf::internal::InitProtobufDefaults();
539 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
540   {
541     void* ptr = &::opencv_caffe::_Datum_default_instance_;
542     new (ptr) ::opencv_caffe::Datum();
543     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
544   }
545   ::opencv_caffe::Datum::InitAsDefaultInstance();
546 }
547 
InitDefaultsDatum()548 void InitDefaultsDatum() {
549   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
550   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDatumImpl);
551 }
552 
InitDefaultsFillerParameterImpl()553 void InitDefaultsFillerParameterImpl() {
554   GOOGLE_PROTOBUF_VERIFY_VERSION;
555 
556 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
557   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
558 #else
559   ::google::protobuf::internal::InitProtobufDefaults();
560 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
561   ::opencv_caffe::FillerParameter::_default_type_.DefaultConstruct();
562   *::opencv_caffe::FillerParameter::_default_type_.get_mutable() = ::std::string("constant", 8);
563   ::google::protobuf::internal::OnShutdownDestroyString(
564       ::opencv_caffe::FillerParameter::_default_type_.get_mutable());
565   {
566     void* ptr = &::opencv_caffe::_FillerParameter_default_instance_;
567     new (ptr) ::opencv_caffe::FillerParameter();
568     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
569   }
570   ::opencv_caffe::FillerParameter::InitAsDefaultInstance();
571 }
572 
InitDefaultsFillerParameter()573 void InitDefaultsFillerParameter() {
574   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
575   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFillerParameterImpl);
576 }
577 
InitDefaultsNetParameterImpl()578 void InitDefaultsNetParameterImpl() {
579   GOOGLE_PROTOBUF_VERIFY_VERSION;
580 
581 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
582   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
583 #else
584   ::google::protobuf::internal::InitProtobufDefaults();
585 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
586   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape();
587   protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetState();
588   protobuf_opencv_2dcaffe_2eproto::InitDefaultsLayerParameter();
589   protobuf_opencv_2dcaffe_2eproto::InitDefaultsV1LayerParameter();
590   {
591     void* ptr = &::opencv_caffe::_NetParameter_default_instance_;
592     new (ptr) ::opencv_caffe::NetParameter();
593     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
594   }
595   ::opencv_caffe::NetParameter::InitAsDefaultInstance();
596 }
597 
InitDefaultsNetParameter()598 void InitDefaultsNetParameter() {
599   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
600   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetParameterImpl);
601 }
602 
InitDefaultsSolverParameterImpl()603 void InitDefaultsSolverParameterImpl() {
604   GOOGLE_PROTOBUF_VERIFY_VERSION;
605 
606 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
607   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
608 #else
609   ::google::protobuf::internal::InitProtobufDefaults();
610 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
611   protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetParameter();
612   protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetState();
613   ::opencv_caffe::SolverParameter::_default_regularization_type_.DefaultConstruct();
614   *::opencv_caffe::SolverParameter::_default_regularization_type_.get_mutable() = ::std::string("L2", 2);
615   ::google::protobuf::internal::OnShutdownDestroyString(
616       ::opencv_caffe::SolverParameter::_default_regularization_type_.get_mutable());
617   ::opencv_caffe::SolverParameter::_default_type_.DefaultConstruct();
618   *::opencv_caffe::SolverParameter::_default_type_.get_mutable() = ::std::string("SGD", 3);
619   ::google::protobuf::internal::OnShutdownDestroyString(
620       ::opencv_caffe::SolverParameter::_default_type_.get_mutable());
621   {
622     void* ptr = &::opencv_caffe::_SolverParameter_default_instance_;
623     new (ptr) ::opencv_caffe::SolverParameter();
624     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
625   }
626   ::opencv_caffe::SolverParameter::InitAsDefaultInstance();
627 }
628 
InitDefaultsSolverParameter()629 void InitDefaultsSolverParameter() {
630   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
631   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSolverParameterImpl);
632 }
633 
InitDefaultsSolverStateImpl()634 void InitDefaultsSolverStateImpl() {
635   GOOGLE_PROTOBUF_VERIFY_VERSION;
636 
637 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
638   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
639 #else
640   ::google::protobuf::internal::InitProtobufDefaults();
641 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
642   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto();
643   {
644     void* ptr = &::opencv_caffe::_SolverState_default_instance_;
645     new (ptr) ::opencv_caffe::SolverState();
646     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
647   }
648   ::opencv_caffe::SolverState::InitAsDefaultInstance();
649 }
650 
InitDefaultsSolverState()651 void InitDefaultsSolverState() {
652   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
653   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSolverStateImpl);
654 }
655 
InitDefaultsNetStateImpl()656 void InitDefaultsNetStateImpl() {
657   GOOGLE_PROTOBUF_VERIFY_VERSION;
658 
659 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
660   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
661 #else
662   ::google::protobuf::internal::InitProtobufDefaults();
663 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
664   {
665     void* ptr = &::opencv_caffe::_NetState_default_instance_;
666     new (ptr) ::opencv_caffe::NetState();
667     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
668   }
669   ::opencv_caffe::NetState::InitAsDefaultInstance();
670 }
671 
InitDefaultsNetState()672 void InitDefaultsNetState() {
673   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
674   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetStateImpl);
675 }
676 
InitDefaultsNetStateRuleImpl()677 void InitDefaultsNetStateRuleImpl() {
678   GOOGLE_PROTOBUF_VERIFY_VERSION;
679 
680 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
681   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
682 #else
683   ::google::protobuf::internal::InitProtobufDefaults();
684 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
685   {
686     void* ptr = &::opencv_caffe::_NetStateRule_default_instance_;
687     new (ptr) ::opencv_caffe::NetStateRule();
688     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
689   }
690   ::opencv_caffe::NetStateRule::InitAsDefaultInstance();
691 }
692 
InitDefaultsNetStateRule()693 void InitDefaultsNetStateRule() {
694   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
695   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNetStateRuleImpl);
696 }
697 
InitDefaultsParamSpecImpl()698 void InitDefaultsParamSpecImpl() {
699   GOOGLE_PROTOBUF_VERIFY_VERSION;
700 
701 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
702   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
703 #else
704   ::google::protobuf::internal::InitProtobufDefaults();
705 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
706   {
707     void* ptr = &::opencv_caffe::_ParamSpec_default_instance_;
708     new (ptr) ::opencv_caffe::ParamSpec();
709     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
710   }
711   ::opencv_caffe::ParamSpec::InitAsDefaultInstance();
712 }
713 
InitDefaultsParamSpec()714 void InitDefaultsParamSpec() {
715   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
716   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParamSpecImpl);
717 }
718 
InitDefaultsLayerParameterImpl()719 void InitDefaultsLayerParameterImpl() {
720   GOOGLE_PROTOBUF_VERIFY_VERSION;
721 
722 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
723   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
724 #else
725   ::google::protobuf::internal::InitProtobufDefaults();
726 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
727   protobuf_opencv_2dcaffe_2eproto::InitDefaultsParamSpec();
728   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto();
729   protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRule();
730   protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameter();
731   protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameter();
732   protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameter();
733   protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameter();
734   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBatchNormParameter();
735   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBiasParameter();
736   protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameter();
737   protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameter();
738   protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameter();
739   protobuf_opencv_2dcaffe_2eproto::InitDefaultsCropParameter();
740   protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameter();
741   protobuf_opencv_2dcaffe_2eproto::InitDefaultsDetectionOutputParameter();
742   protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameter();
743   protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameter();
744   protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameter();
745   protobuf_opencv_2dcaffe_2eproto::InitDefaultsELUParameter();
746   protobuf_opencv_2dcaffe_2eproto::InitDefaultsEmbedParameter();
747   protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameter();
748   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFlattenParameter();
749   protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameter();
750   protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter();
751   protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameter();
752   protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameter();
753   protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameter();
754   protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameter();
755   protobuf_opencv_2dcaffe_2eproto::InitDefaultsInputParameter();
756   protobuf_opencv_2dcaffe_2eproto::InitDefaultsLogParameter();
757   protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameter();
758   protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameter();
759   protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameter();
760   protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizeBBoxParameter();
761   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPermuteParameter();
762   protobuf_opencv_2dcaffe_2eproto::InitDefaultsParameterParameter();
763   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameter();
764   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameter();
765   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPReLUParameter();
766   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPriorBoxParameter();
767   protobuf_opencv_2dcaffe_2eproto::InitDefaultsProposalParameter();
768   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPSROIPoolingParameter();
769   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPythonParameter();
770   protobuf_opencv_2dcaffe_2eproto::InitDefaultsRecurrentParameter();
771   protobuf_opencv_2dcaffe_2eproto::InitDefaultsReductionParameter();
772   protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameter();
773   protobuf_opencv_2dcaffe_2eproto::InitDefaultsReshapeParameter();
774   protobuf_opencv_2dcaffe_2eproto::InitDefaultsROIPoolingParameter();
775   protobuf_opencv_2dcaffe_2eproto::InitDefaultsScaleParameter();
776   protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameter();
777   protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameter();
778   protobuf_opencv_2dcaffe_2eproto::InitDefaultsSPPParameter();
779   protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameter();
780   protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameter();
781   protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameter();
782   protobuf_opencv_2dcaffe_2eproto::InitDefaultsTileParameter();
783   protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameter();
784   {
785     void* ptr = &::opencv_caffe::_LayerParameter_default_instance_;
786     new (ptr) ::opencv_caffe::LayerParameter();
787     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
788   }
789   ::opencv_caffe::LayerParameter::InitAsDefaultInstance();
790 }
791 
InitDefaultsLayerParameter()792 void InitDefaultsLayerParameter() {
793   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
794   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLayerParameterImpl);
795 }
796 
InitDefaultsTransformationParameterImpl()797 void InitDefaultsTransformationParameterImpl() {
798   GOOGLE_PROTOBUF_VERIFY_VERSION;
799 
800 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
801   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
802 #else
803   ::google::protobuf::internal::InitProtobufDefaults();
804 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
805   {
806     void* ptr = &::opencv_caffe::_TransformationParameter_default_instance_;
807     new (ptr) ::opencv_caffe::TransformationParameter();
808     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
809   }
810   ::opencv_caffe::TransformationParameter::InitAsDefaultInstance();
811 }
812 
InitDefaultsTransformationParameter()813 void InitDefaultsTransformationParameter() {
814   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
815   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransformationParameterImpl);
816 }
817 
InitDefaultsLossParameterImpl()818 void InitDefaultsLossParameterImpl() {
819   GOOGLE_PROTOBUF_VERIFY_VERSION;
820 
821 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
822   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
823 #else
824   ::google::protobuf::internal::InitProtobufDefaults();
825 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
826   {
827     void* ptr = &::opencv_caffe::_LossParameter_default_instance_;
828     new (ptr) ::opencv_caffe::LossParameter();
829     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
830   }
831   ::opencv_caffe::LossParameter::InitAsDefaultInstance();
832 }
833 
InitDefaultsLossParameter()834 void InitDefaultsLossParameter() {
835   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
836   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLossParameterImpl);
837 }
838 
InitDefaultsAccuracyParameterImpl()839 void InitDefaultsAccuracyParameterImpl() {
840   GOOGLE_PROTOBUF_VERIFY_VERSION;
841 
842 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
843   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
844 #else
845   ::google::protobuf::internal::InitProtobufDefaults();
846 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
847   {
848     void* ptr = &::opencv_caffe::_AccuracyParameter_default_instance_;
849     new (ptr) ::opencv_caffe::AccuracyParameter();
850     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
851   }
852   ::opencv_caffe::AccuracyParameter::InitAsDefaultInstance();
853 }
854 
InitDefaultsAccuracyParameter()855 void InitDefaultsAccuracyParameter() {
856   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
857   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAccuracyParameterImpl);
858 }
859 
InitDefaultsArgMaxParameterImpl()860 void InitDefaultsArgMaxParameterImpl() {
861   GOOGLE_PROTOBUF_VERIFY_VERSION;
862 
863 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
864   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
865 #else
866   ::google::protobuf::internal::InitProtobufDefaults();
867 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
868   {
869     void* ptr = &::opencv_caffe::_ArgMaxParameter_default_instance_;
870     new (ptr) ::opencv_caffe::ArgMaxParameter();
871     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
872   }
873   ::opencv_caffe::ArgMaxParameter::InitAsDefaultInstance();
874 }
875 
InitDefaultsArgMaxParameter()876 void InitDefaultsArgMaxParameter() {
877   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
878   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsArgMaxParameterImpl);
879 }
880 
InitDefaultsConcatParameterImpl()881 void InitDefaultsConcatParameterImpl() {
882   GOOGLE_PROTOBUF_VERIFY_VERSION;
883 
884 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
885   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
886 #else
887   ::google::protobuf::internal::InitProtobufDefaults();
888 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
889   {
890     void* ptr = &::opencv_caffe::_ConcatParameter_default_instance_;
891     new (ptr) ::opencv_caffe::ConcatParameter();
892     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
893   }
894   ::opencv_caffe::ConcatParameter::InitAsDefaultInstance();
895 }
896 
InitDefaultsConcatParameter()897 void InitDefaultsConcatParameter() {
898   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
899   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConcatParameterImpl);
900 }
901 
InitDefaultsBatchNormParameterImpl()902 void InitDefaultsBatchNormParameterImpl() {
903   GOOGLE_PROTOBUF_VERIFY_VERSION;
904 
905 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
906   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
907 #else
908   ::google::protobuf::internal::InitProtobufDefaults();
909 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
910   {
911     void* ptr = &::opencv_caffe::_BatchNormParameter_default_instance_;
912     new (ptr) ::opencv_caffe::BatchNormParameter();
913     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
914   }
915   ::opencv_caffe::BatchNormParameter::InitAsDefaultInstance();
916 }
917 
InitDefaultsBatchNormParameter()918 void InitDefaultsBatchNormParameter() {
919   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
920   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBatchNormParameterImpl);
921 }
922 
InitDefaultsBiasParameterImpl()923 void InitDefaultsBiasParameterImpl() {
924   GOOGLE_PROTOBUF_VERIFY_VERSION;
925 
926 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
927   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
928 #else
929   ::google::protobuf::internal::InitProtobufDefaults();
930 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
931   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
932   {
933     void* ptr = &::opencv_caffe::_BiasParameter_default_instance_;
934     new (ptr) ::opencv_caffe::BiasParameter();
935     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
936   }
937   ::opencv_caffe::BiasParameter::InitAsDefaultInstance();
938 }
939 
InitDefaultsBiasParameter()940 void InitDefaultsBiasParameter() {
941   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
942   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBiasParameterImpl);
943 }
944 
InitDefaultsContrastiveLossParameterImpl()945 void InitDefaultsContrastiveLossParameterImpl() {
946   GOOGLE_PROTOBUF_VERIFY_VERSION;
947 
948 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
949   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
950 #else
951   ::google::protobuf::internal::InitProtobufDefaults();
952 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
953   {
954     void* ptr = &::opencv_caffe::_ContrastiveLossParameter_default_instance_;
955     new (ptr) ::opencv_caffe::ContrastiveLossParameter();
956     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
957   }
958   ::opencv_caffe::ContrastiveLossParameter::InitAsDefaultInstance();
959 }
960 
InitDefaultsContrastiveLossParameter()961 void InitDefaultsContrastiveLossParameter() {
962   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
963   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsContrastiveLossParameterImpl);
964 }
965 
InitDefaultsConvolutionParameterImpl()966 void InitDefaultsConvolutionParameterImpl() {
967   GOOGLE_PROTOBUF_VERIFY_VERSION;
968 
969 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
970   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
971 #else
972   ::google::protobuf::internal::InitProtobufDefaults();
973 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
974   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
975   {
976     void* ptr = &::opencv_caffe::_ConvolutionParameter_default_instance_;
977     new (ptr) ::opencv_caffe::ConvolutionParameter();
978     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
979   }
980   ::opencv_caffe::ConvolutionParameter::InitAsDefaultInstance();
981 }
982 
InitDefaultsConvolutionParameter()983 void InitDefaultsConvolutionParameter() {
984   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
985   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConvolutionParameterImpl);
986 }
987 
InitDefaultsCropParameterImpl()988 void InitDefaultsCropParameterImpl() {
989   GOOGLE_PROTOBUF_VERIFY_VERSION;
990 
991 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
992   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
993 #else
994   ::google::protobuf::internal::InitProtobufDefaults();
995 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
996   {
997     void* ptr = &::opencv_caffe::_CropParameter_default_instance_;
998     new (ptr) ::opencv_caffe::CropParameter();
999     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1000   }
1001   ::opencv_caffe::CropParameter::InitAsDefaultInstance();
1002 }
1003 
InitDefaultsCropParameter()1004 void InitDefaultsCropParameter() {
1005   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1006   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCropParameterImpl);
1007 }
1008 
InitDefaultsDataParameterImpl()1009 void InitDefaultsDataParameterImpl() {
1010   GOOGLE_PROTOBUF_VERIFY_VERSION;
1011 
1012 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1013   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1014 #else
1015   ::google::protobuf::internal::InitProtobufDefaults();
1016 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1017   {
1018     void* ptr = &::opencv_caffe::_DataParameter_default_instance_;
1019     new (ptr) ::opencv_caffe::DataParameter();
1020     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1021   }
1022   ::opencv_caffe::DataParameter::InitAsDefaultInstance();
1023 }
1024 
InitDefaultsDataParameter()1025 void InitDefaultsDataParameter() {
1026   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1027   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDataParameterImpl);
1028 }
1029 
InitDefaultsNonMaximumSuppressionParameterImpl()1030 void InitDefaultsNonMaximumSuppressionParameterImpl() {
1031   GOOGLE_PROTOBUF_VERIFY_VERSION;
1032 
1033 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1034   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1035 #else
1036   ::google::protobuf::internal::InitProtobufDefaults();
1037 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1038   {
1039     void* ptr = &::opencv_caffe::_NonMaximumSuppressionParameter_default_instance_;
1040     new (ptr) ::opencv_caffe::NonMaximumSuppressionParameter();
1041     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1042   }
1043   ::opencv_caffe::NonMaximumSuppressionParameter::InitAsDefaultInstance();
1044 }
1045 
InitDefaultsNonMaximumSuppressionParameter()1046 void InitDefaultsNonMaximumSuppressionParameter() {
1047   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1048   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNonMaximumSuppressionParameterImpl);
1049 }
1050 
InitDefaultsSaveOutputParameterImpl()1051 void InitDefaultsSaveOutputParameterImpl() {
1052   GOOGLE_PROTOBUF_VERIFY_VERSION;
1053 
1054 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1055   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1056 #else
1057   ::google::protobuf::internal::InitProtobufDefaults();
1058 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1059   {
1060     void* ptr = &::opencv_caffe::_SaveOutputParameter_default_instance_;
1061     new (ptr) ::opencv_caffe::SaveOutputParameter();
1062     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1063   }
1064   ::opencv_caffe::SaveOutputParameter::InitAsDefaultInstance();
1065 }
1066 
InitDefaultsSaveOutputParameter()1067 void InitDefaultsSaveOutputParameter() {
1068   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1069   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSaveOutputParameterImpl);
1070 }
1071 
InitDefaultsDropoutParameterImpl()1072 void InitDefaultsDropoutParameterImpl() {
1073   GOOGLE_PROTOBUF_VERIFY_VERSION;
1074 
1075 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1076   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1077 #else
1078   ::google::protobuf::internal::InitProtobufDefaults();
1079 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1080   {
1081     void* ptr = &::opencv_caffe::_DropoutParameter_default_instance_;
1082     new (ptr) ::opencv_caffe::DropoutParameter();
1083     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1084   }
1085   ::opencv_caffe::DropoutParameter::InitAsDefaultInstance();
1086 }
1087 
InitDefaultsDropoutParameter()1088 void InitDefaultsDropoutParameter() {
1089   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1090   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDropoutParameterImpl);
1091 }
1092 
InitDefaultsDummyDataParameterImpl()1093 void InitDefaultsDummyDataParameterImpl() {
1094   GOOGLE_PROTOBUF_VERIFY_VERSION;
1095 
1096 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1097   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1098 #else
1099   ::google::protobuf::internal::InitProtobufDefaults();
1100 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1101   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
1102   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape();
1103   {
1104     void* ptr = &::opencv_caffe::_DummyDataParameter_default_instance_;
1105     new (ptr) ::opencv_caffe::DummyDataParameter();
1106     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1107   }
1108   ::opencv_caffe::DummyDataParameter::InitAsDefaultInstance();
1109 }
1110 
InitDefaultsDummyDataParameter()1111 void InitDefaultsDummyDataParameter() {
1112   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1113   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDummyDataParameterImpl);
1114 }
1115 
InitDefaultsEltwiseParameterImpl()1116 void InitDefaultsEltwiseParameterImpl() {
1117   GOOGLE_PROTOBUF_VERIFY_VERSION;
1118 
1119 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1120   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1121 #else
1122   ::google::protobuf::internal::InitProtobufDefaults();
1123 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1124   {
1125     void* ptr = &::opencv_caffe::_EltwiseParameter_default_instance_;
1126     new (ptr) ::opencv_caffe::EltwiseParameter();
1127     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1128   }
1129   ::opencv_caffe::EltwiseParameter::InitAsDefaultInstance();
1130 }
1131 
InitDefaultsEltwiseParameter()1132 void InitDefaultsEltwiseParameter() {
1133   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1134   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEltwiseParameterImpl);
1135 }
1136 
InitDefaultsELUParameterImpl()1137 void InitDefaultsELUParameterImpl() {
1138   GOOGLE_PROTOBUF_VERIFY_VERSION;
1139 
1140 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1141   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1142 #else
1143   ::google::protobuf::internal::InitProtobufDefaults();
1144 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1145   {
1146     void* ptr = &::opencv_caffe::_ELUParameter_default_instance_;
1147     new (ptr) ::opencv_caffe::ELUParameter();
1148     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1149   }
1150   ::opencv_caffe::ELUParameter::InitAsDefaultInstance();
1151 }
1152 
InitDefaultsELUParameter()1153 void InitDefaultsELUParameter() {
1154   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1155   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsELUParameterImpl);
1156 }
1157 
InitDefaultsEmbedParameterImpl()1158 void InitDefaultsEmbedParameterImpl() {
1159   GOOGLE_PROTOBUF_VERIFY_VERSION;
1160 
1161 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1162   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1163 #else
1164   ::google::protobuf::internal::InitProtobufDefaults();
1165 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1166   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
1167   {
1168     void* ptr = &::opencv_caffe::_EmbedParameter_default_instance_;
1169     new (ptr) ::opencv_caffe::EmbedParameter();
1170     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1171   }
1172   ::opencv_caffe::EmbedParameter::InitAsDefaultInstance();
1173 }
1174 
InitDefaultsEmbedParameter()1175 void InitDefaultsEmbedParameter() {
1176   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1177   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEmbedParameterImpl);
1178 }
1179 
InitDefaultsExpParameterImpl()1180 void InitDefaultsExpParameterImpl() {
1181   GOOGLE_PROTOBUF_VERIFY_VERSION;
1182 
1183 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1184   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1185 #else
1186   ::google::protobuf::internal::InitProtobufDefaults();
1187 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1188   {
1189     void* ptr = &::opencv_caffe::_ExpParameter_default_instance_;
1190     new (ptr) ::opencv_caffe::ExpParameter();
1191     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1192   }
1193   ::opencv_caffe::ExpParameter::InitAsDefaultInstance();
1194 }
1195 
InitDefaultsExpParameter()1196 void InitDefaultsExpParameter() {
1197   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1198   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExpParameterImpl);
1199 }
1200 
InitDefaultsFlattenParameterImpl()1201 void InitDefaultsFlattenParameterImpl() {
1202   GOOGLE_PROTOBUF_VERIFY_VERSION;
1203 
1204 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1205   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1206 #else
1207   ::google::protobuf::internal::InitProtobufDefaults();
1208 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1209   {
1210     void* ptr = &::opencv_caffe::_FlattenParameter_default_instance_;
1211     new (ptr) ::opencv_caffe::FlattenParameter();
1212     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1213   }
1214   ::opencv_caffe::FlattenParameter::InitAsDefaultInstance();
1215 }
1216 
InitDefaultsFlattenParameter()1217 void InitDefaultsFlattenParameter() {
1218   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1219   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFlattenParameterImpl);
1220 }
1221 
InitDefaultsHDF5DataParameterImpl()1222 void InitDefaultsHDF5DataParameterImpl() {
1223   GOOGLE_PROTOBUF_VERIFY_VERSION;
1224 
1225 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1226   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1227 #else
1228   ::google::protobuf::internal::InitProtobufDefaults();
1229 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1230   {
1231     void* ptr = &::opencv_caffe::_HDF5DataParameter_default_instance_;
1232     new (ptr) ::opencv_caffe::HDF5DataParameter();
1233     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1234   }
1235   ::opencv_caffe::HDF5DataParameter::InitAsDefaultInstance();
1236 }
1237 
InitDefaultsHDF5DataParameter()1238 void InitDefaultsHDF5DataParameter() {
1239   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1240   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHDF5DataParameterImpl);
1241 }
1242 
InitDefaultsHDF5OutputParameterImpl()1243 void InitDefaultsHDF5OutputParameterImpl() {
1244   GOOGLE_PROTOBUF_VERIFY_VERSION;
1245 
1246 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1247   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1248 #else
1249   ::google::protobuf::internal::InitProtobufDefaults();
1250 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1251   {
1252     void* ptr = &::opencv_caffe::_HDF5OutputParameter_default_instance_;
1253     new (ptr) ::opencv_caffe::HDF5OutputParameter();
1254     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1255   }
1256   ::opencv_caffe::HDF5OutputParameter::InitAsDefaultInstance();
1257 }
1258 
InitDefaultsHDF5OutputParameter()1259 void InitDefaultsHDF5OutputParameter() {
1260   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1261   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHDF5OutputParameterImpl);
1262 }
1263 
InitDefaultsHingeLossParameterImpl()1264 void InitDefaultsHingeLossParameterImpl() {
1265   GOOGLE_PROTOBUF_VERIFY_VERSION;
1266 
1267 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1268   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1269 #else
1270   ::google::protobuf::internal::InitProtobufDefaults();
1271 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1272   {
1273     void* ptr = &::opencv_caffe::_HingeLossParameter_default_instance_;
1274     new (ptr) ::opencv_caffe::HingeLossParameter();
1275     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1276   }
1277   ::opencv_caffe::HingeLossParameter::InitAsDefaultInstance();
1278 }
1279 
InitDefaultsHingeLossParameter()1280 void InitDefaultsHingeLossParameter() {
1281   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1282   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHingeLossParameterImpl);
1283 }
1284 
InitDefaultsImageDataParameterImpl()1285 void InitDefaultsImageDataParameterImpl() {
1286   GOOGLE_PROTOBUF_VERIFY_VERSION;
1287 
1288 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1289   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1290 #else
1291   ::google::protobuf::internal::InitProtobufDefaults();
1292 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1293   {
1294     void* ptr = &::opencv_caffe::_ImageDataParameter_default_instance_;
1295     new (ptr) ::opencv_caffe::ImageDataParameter();
1296     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1297   }
1298   ::opencv_caffe::ImageDataParameter::InitAsDefaultInstance();
1299 }
1300 
InitDefaultsImageDataParameter()1301 void InitDefaultsImageDataParameter() {
1302   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1303   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsImageDataParameterImpl);
1304 }
1305 
InitDefaultsInfogainLossParameterImpl()1306 void InitDefaultsInfogainLossParameterImpl() {
1307   GOOGLE_PROTOBUF_VERIFY_VERSION;
1308 
1309 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1310   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1311 #else
1312   ::google::protobuf::internal::InitProtobufDefaults();
1313 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1314   {
1315     void* ptr = &::opencv_caffe::_InfogainLossParameter_default_instance_;
1316     new (ptr) ::opencv_caffe::InfogainLossParameter();
1317     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1318   }
1319   ::opencv_caffe::InfogainLossParameter::InitAsDefaultInstance();
1320 }
1321 
InitDefaultsInfogainLossParameter()1322 void InitDefaultsInfogainLossParameter() {
1323   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1324   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInfogainLossParameterImpl);
1325 }
1326 
InitDefaultsInnerProductParameterImpl()1327 void InitDefaultsInnerProductParameterImpl() {
1328   GOOGLE_PROTOBUF_VERIFY_VERSION;
1329 
1330 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1331   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1332 #else
1333   ::google::protobuf::internal::InitProtobufDefaults();
1334 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1335   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
1336   {
1337     void* ptr = &::opencv_caffe::_InnerProductParameter_default_instance_;
1338     new (ptr) ::opencv_caffe::InnerProductParameter();
1339     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1340   }
1341   ::opencv_caffe::InnerProductParameter::InitAsDefaultInstance();
1342 }
1343 
InitDefaultsInnerProductParameter()1344 void InitDefaultsInnerProductParameter() {
1345   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1346   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInnerProductParameterImpl);
1347 }
1348 
InitDefaultsInputParameterImpl()1349 void InitDefaultsInputParameterImpl() {
1350   GOOGLE_PROTOBUF_VERIFY_VERSION;
1351 
1352 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1353   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1354 #else
1355   ::google::protobuf::internal::InitProtobufDefaults();
1356 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1357   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape();
1358   {
1359     void* ptr = &::opencv_caffe::_InputParameter_default_instance_;
1360     new (ptr) ::opencv_caffe::InputParameter();
1361     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1362   }
1363   ::opencv_caffe::InputParameter::InitAsDefaultInstance();
1364 }
1365 
InitDefaultsInputParameter()1366 void InitDefaultsInputParameter() {
1367   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1368   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInputParameterImpl);
1369 }
1370 
InitDefaultsLogParameterImpl()1371 void InitDefaultsLogParameterImpl() {
1372   GOOGLE_PROTOBUF_VERIFY_VERSION;
1373 
1374 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1375   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1376 #else
1377   ::google::protobuf::internal::InitProtobufDefaults();
1378 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1379   {
1380     void* ptr = &::opencv_caffe::_LogParameter_default_instance_;
1381     new (ptr) ::opencv_caffe::LogParameter();
1382     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1383   }
1384   ::opencv_caffe::LogParameter::InitAsDefaultInstance();
1385 }
1386 
InitDefaultsLogParameter()1387 void InitDefaultsLogParameter() {
1388   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1389   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLogParameterImpl);
1390 }
1391 
InitDefaultsLRNParameterImpl()1392 void InitDefaultsLRNParameterImpl() {
1393   GOOGLE_PROTOBUF_VERIFY_VERSION;
1394 
1395 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1396   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1397 #else
1398   ::google::protobuf::internal::InitProtobufDefaults();
1399 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1400   {
1401     void* ptr = &::opencv_caffe::_LRNParameter_default_instance_;
1402     new (ptr) ::opencv_caffe::LRNParameter();
1403     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1404   }
1405   ::opencv_caffe::LRNParameter::InitAsDefaultInstance();
1406 }
1407 
InitDefaultsLRNParameter()1408 void InitDefaultsLRNParameter() {
1409   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1410   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLRNParameterImpl);
1411 }
1412 
InitDefaultsMemoryDataParameterImpl()1413 void InitDefaultsMemoryDataParameterImpl() {
1414   GOOGLE_PROTOBUF_VERIFY_VERSION;
1415 
1416 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1417   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1418 #else
1419   ::google::protobuf::internal::InitProtobufDefaults();
1420 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1421   {
1422     void* ptr = &::opencv_caffe::_MemoryDataParameter_default_instance_;
1423     new (ptr) ::opencv_caffe::MemoryDataParameter();
1424     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1425   }
1426   ::opencv_caffe::MemoryDataParameter::InitAsDefaultInstance();
1427 }
1428 
InitDefaultsMemoryDataParameter()1429 void InitDefaultsMemoryDataParameter() {
1430   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1431   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMemoryDataParameterImpl);
1432 }
1433 
InitDefaultsMVNParameterImpl()1434 void InitDefaultsMVNParameterImpl() {
1435   GOOGLE_PROTOBUF_VERIFY_VERSION;
1436 
1437 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1438   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1439 #else
1440   ::google::protobuf::internal::InitProtobufDefaults();
1441 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1442   {
1443     void* ptr = &::opencv_caffe::_MVNParameter_default_instance_;
1444     new (ptr) ::opencv_caffe::MVNParameter();
1445     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1446   }
1447   ::opencv_caffe::MVNParameter::InitAsDefaultInstance();
1448 }
1449 
InitDefaultsMVNParameter()1450 void InitDefaultsMVNParameter() {
1451   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1452   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMVNParameterImpl);
1453 }
1454 
InitDefaultsParameterParameterImpl()1455 void InitDefaultsParameterParameterImpl() {
1456   GOOGLE_PROTOBUF_VERIFY_VERSION;
1457 
1458 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1459   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1460 #else
1461   ::google::protobuf::internal::InitProtobufDefaults();
1462 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1463   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape();
1464   {
1465     void* ptr = &::opencv_caffe::_ParameterParameter_default_instance_;
1466     new (ptr) ::opencv_caffe::ParameterParameter();
1467     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1468   }
1469   ::opencv_caffe::ParameterParameter::InitAsDefaultInstance();
1470 }
1471 
InitDefaultsParameterParameter()1472 void InitDefaultsParameterParameter() {
1473   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1474   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParameterParameterImpl);
1475 }
1476 
InitDefaultsPoolingParameterImpl()1477 void InitDefaultsPoolingParameterImpl() {
1478   GOOGLE_PROTOBUF_VERIFY_VERSION;
1479 
1480 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1481   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1482 #else
1483   ::google::protobuf::internal::InitProtobufDefaults();
1484 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1485   {
1486     void* ptr = &::opencv_caffe::_PoolingParameter_default_instance_;
1487     new (ptr) ::opencv_caffe::PoolingParameter();
1488     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1489   }
1490   ::opencv_caffe::PoolingParameter::InitAsDefaultInstance();
1491 }
1492 
InitDefaultsPoolingParameter()1493 void InitDefaultsPoolingParameter() {
1494   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1495   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPoolingParameterImpl);
1496 }
1497 
InitDefaultsPowerParameterImpl()1498 void InitDefaultsPowerParameterImpl() {
1499   GOOGLE_PROTOBUF_VERIFY_VERSION;
1500 
1501 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1502   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1503 #else
1504   ::google::protobuf::internal::InitProtobufDefaults();
1505 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1506   {
1507     void* ptr = &::opencv_caffe::_PowerParameter_default_instance_;
1508     new (ptr) ::opencv_caffe::PowerParameter();
1509     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1510   }
1511   ::opencv_caffe::PowerParameter::InitAsDefaultInstance();
1512 }
1513 
InitDefaultsPowerParameter()1514 void InitDefaultsPowerParameter() {
1515   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1516   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPowerParameterImpl);
1517 }
1518 
InitDefaultsPythonParameterImpl()1519 void InitDefaultsPythonParameterImpl() {
1520   GOOGLE_PROTOBUF_VERIFY_VERSION;
1521 
1522 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1523   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1524 #else
1525   ::google::protobuf::internal::InitProtobufDefaults();
1526 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1527   {
1528     void* ptr = &::opencv_caffe::_PythonParameter_default_instance_;
1529     new (ptr) ::opencv_caffe::PythonParameter();
1530     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1531   }
1532   ::opencv_caffe::PythonParameter::InitAsDefaultInstance();
1533 }
1534 
InitDefaultsPythonParameter()1535 void InitDefaultsPythonParameter() {
1536   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1537   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPythonParameterImpl);
1538 }
1539 
InitDefaultsRecurrentParameterImpl()1540 void InitDefaultsRecurrentParameterImpl() {
1541   GOOGLE_PROTOBUF_VERIFY_VERSION;
1542 
1543 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1544   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1545 #else
1546   ::google::protobuf::internal::InitProtobufDefaults();
1547 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1548   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
1549   {
1550     void* ptr = &::opencv_caffe::_RecurrentParameter_default_instance_;
1551     new (ptr) ::opencv_caffe::RecurrentParameter();
1552     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1553   }
1554   ::opencv_caffe::RecurrentParameter::InitAsDefaultInstance();
1555 }
1556 
InitDefaultsRecurrentParameter()1557 void InitDefaultsRecurrentParameter() {
1558   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1559   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRecurrentParameterImpl);
1560 }
1561 
InitDefaultsReductionParameterImpl()1562 void InitDefaultsReductionParameterImpl() {
1563   GOOGLE_PROTOBUF_VERIFY_VERSION;
1564 
1565 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1566   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1567 #else
1568   ::google::protobuf::internal::InitProtobufDefaults();
1569 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1570   {
1571     void* ptr = &::opencv_caffe::_ReductionParameter_default_instance_;
1572     new (ptr) ::opencv_caffe::ReductionParameter();
1573     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1574   }
1575   ::opencv_caffe::ReductionParameter::InitAsDefaultInstance();
1576 }
1577 
InitDefaultsReductionParameter()1578 void InitDefaultsReductionParameter() {
1579   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1580   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReductionParameterImpl);
1581 }
1582 
InitDefaultsReLUParameterImpl()1583 void InitDefaultsReLUParameterImpl() {
1584   GOOGLE_PROTOBUF_VERIFY_VERSION;
1585 
1586 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1587   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1588 #else
1589   ::google::protobuf::internal::InitProtobufDefaults();
1590 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1591   {
1592     void* ptr = &::opencv_caffe::_ReLUParameter_default_instance_;
1593     new (ptr) ::opencv_caffe::ReLUParameter();
1594     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1595   }
1596   ::opencv_caffe::ReLUParameter::InitAsDefaultInstance();
1597 }
1598 
InitDefaultsReLUParameter()1599 void InitDefaultsReLUParameter() {
1600   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1601   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReLUParameterImpl);
1602 }
1603 
InitDefaultsReshapeParameterImpl()1604 void InitDefaultsReshapeParameterImpl() {
1605   GOOGLE_PROTOBUF_VERIFY_VERSION;
1606 
1607 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1608   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1609 #else
1610   ::google::protobuf::internal::InitProtobufDefaults();
1611 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1612   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape();
1613   {
1614     void* ptr = &::opencv_caffe::_ReshapeParameter_default_instance_;
1615     new (ptr) ::opencv_caffe::ReshapeParameter();
1616     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1617   }
1618   ::opencv_caffe::ReshapeParameter::InitAsDefaultInstance();
1619 }
1620 
InitDefaultsReshapeParameter()1621 void InitDefaultsReshapeParameter() {
1622   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1623   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReshapeParameterImpl);
1624 }
1625 
InitDefaultsScaleParameterImpl()1626 void InitDefaultsScaleParameterImpl() {
1627   GOOGLE_PROTOBUF_VERIFY_VERSION;
1628 
1629 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1630   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1631 #else
1632   ::google::protobuf::internal::InitProtobufDefaults();
1633 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1634   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
1635   {
1636     void* ptr = &::opencv_caffe::_ScaleParameter_default_instance_;
1637     new (ptr) ::opencv_caffe::ScaleParameter();
1638     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1639   }
1640   ::opencv_caffe::ScaleParameter::InitAsDefaultInstance();
1641 }
1642 
InitDefaultsScaleParameter()1643 void InitDefaultsScaleParameter() {
1644   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1645   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsScaleParameterImpl);
1646 }
1647 
InitDefaultsSigmoidParameterImpl()1648 void InitDefaultsSigmoidParameterImpl() {
1649   GOOGLE_PROTOBUF_VERIFY_VERSION;
1650 
1651 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1652   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1653 #else
1654   ::google::protobuf::internal::InitProtobufDefaults();
1655 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1656   {
1657     void* ptr = &::opencv_caffe::_SigmoidParameter_default_instance_;
1658     new (ptr) ::opencv_caffe::SigmoidParameter();
1659     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1660   }
1661   ::opencv_caffe::SigmoidParameter::InitAsDefaultInstance();
1662 }
1663 
InitDefaultsSigmoidParameter()1664 void InitDefaultsSigmoidParameter() {
1665   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1666   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSigmoidParameterImpl);
1667 }
1668 
InitDefaultsSliceParameterImpl()1669 void InitDefaultsSliceParameterImpl() {
1670   GOOGLE_PROTOBUF_VERIFY_VERSION;
1671 
1672 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1673   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1674 #else
1675   ::google::protobuf::internal::InitProtobufDefaults();
1676 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1677   {
1678     void* ptr = &::opencv_caffe::_SliceParameter_default_instance_;
1679     new (ptr) ::opencv_caffe::SliceParameter();
1680     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1681   }
1682   ::opencv_caffe::SliceParameter::InitAsDefaultInstance();
1683 }
1684 
InitDefaultsSliceParameter()1685 void InitDefaultsSliceParameter() {
1686   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1687   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSliceParameterImpl);
1688 }
1689 
InitDefaultsSoftmaxParameterImpl()1690 void InitDefaultsSoftmaxParameterImpl() {
1691   GOOGLE_PROTOBUF_VERIFY_VERSION;
1692 
1693 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1694   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1695 #else
1696   ::google::protobuf::internal::InitProtobufDefaults();
1697 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1698   {
1699     void* ptr = &::opencv_caffe::_SoftmaxParameter_default_instance_;
1700     new (ptr) ::opencv_caffe::SoftmaxParameter();
1701     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1702   }
1703   ::opencv_caffe::SoftmaxParameter::InitAsDefaultInstance();
1704 }
1705 
InitDefaultsSoftmaxParameter()1706 void InitDefaultsSoftmaxParameter() {
1707   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1708   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSoftmaxParameterImpl);
1709 }
1710 
InitDefaultsTanHParameterImpl()1711 void InitDefaultsTanHParameterImpl() {
1712   GOOGLE_PROTOBUF_VERIFY_VERSION;
1713 
1714 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1715   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1716 #else
1717   ::google::protobuf::internal::InitProtobufDefaults();
1718 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1719   {
1720     void* ptr = &::opencv_caffe::_TanHParameter_default_instance_;
1721     new (ptr) ::opencv_caffe::TanHParameter();
1722     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1723   }
1724   ::opencv_caffe::TanHParameter::InitAsDefaultInstance();
1725 }
1726 
InitDefaultsTanHParameter()1727 void InitDefaultsTanHParameter() {
1728   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1729   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTanHParameterImpl);
1730 }
1731 
InitDefaultsTileParameterImpl()1732 void InitDefaultsTileParameterImpl() {
1733   GOOGLE_PROTOBUF_VERIFY_VERSION;
1734 
1735 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1736   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1737 #else
1738   ::google::protobuf::internal::InitProtobufDefaults();
1739 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1740   {
1741     void* ptr = &::opencv_caffe::_TileParameter_default_instance_;
1742     new (ptr) ::opencv_caffe::TileParameter();
1743     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1744   }
1745   ::opencv_caffe::TileParameter::InitAsDefaultInstance();
1746 }
1747 
InitDefaultsTileParameter()1748 void InitDefaultsTileParameter() {
1749   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1750   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTileParameterImpl);
1751 }
1752 
InitDefaultsThresholdParameterImpl()1753 void InitDefaultsThresholdParameterImpl() {
1754   GOOGLE_PROTOBUF_VERIFY_VERSION;
1755 
1756 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1757   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1758 #else
1759   ::google::protobuf::internal::InitProtobufDefaults();
1760 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1761   {
1762     void* ptr = &::opencv_caffe::_ThresholdParameter_default_instance_;
1763     new (ptr) ::opencv_caffe::ThresholdParameter();
1764     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1765   }
1766   ::opencv_caffe::ThresholdParameter::InitAsDefaultInstance();
1767 }
1768 
InitDefaultsThresholdParameter()1769 void InitDefaultsThresholdParameter() {
1770   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1771   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsThresholdParameterImpl);
1772 }
1773 
InitDefaultsWindowDataParameterImpl()1774 void InitDefaultsWindowDataParameterImpl() {
1775   GOOGLE_PROTOBUF_VERIFY_VERSION;
1776 
1777 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1778   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1779 #else
1780   ::google::protobuf::internal::InitProtobufDefaults();
1781 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1782   ::opencv_caffe::WindowDataParameter::_default_crop_mode_.DefaultConstruct();
1783   *::opencv_caffe::WindowDataParameter::_default_crop_mode_.get_mutable() = ::std::string("warp", 4);
1784   ::google::protobuf::internal::OnShutdownDestroyString(
1785       ::opencv_caffe::WindowDataParameter::_default_crop_mode_.get_mutable());
1786   {
1787     void* ptr = &::opencv_caffe::_WindowDataParameter_default_instance_;
1788     new (ptr) ::opencv_caffe::WindowDataParameter();
1789     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1790   }
1791   ::opencv_caffe::WindowDataParameter::InitAsDefaultInstance();
1792 }
1793 
InitDefaultsWindowDataParameter()1794 void InitDefaultsWindowDataParameter() {
1795   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1796   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWindowDataParameterImpl);
1797 }
1798 
InitDefaultsSPPParameterImpl()1799 void InitDefaultsSPPParameterImpl() {
1800   GOOGLE_PROTOBUF_VERIFY_VERSION;
1801 
1802 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1803   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1804 #else
1805   ::google::protobuf::internal::InitProtobufDefaults();
1806 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1807   {
1808     void* ptr = &::opencv_caffe::_SPPParameter_default_instance_;
1809     new (ptr) ::opencv_caffe::SPPParameter();
1810     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1811   }
1812   ::opencv_caffe::SPPParameter::InitAsDefaultInstance();
1813 }
1814 
InitDefaultsSPPParameter()1815 void InitDefaultsSPPParameter() {
1816   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1817   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSPPParameterImpl);
1818 }
1819 
InitDefaultsV1LayerParameterImpl()1820 void InitDefaultsV1LayerParameterImpl() {
1821   GOOGLE_PROTOBUF_VERIFY_VERSION;
1822 
1823 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1824   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1825 #else
1826   ::google::protobuf::internal::InitProtobufDefaults();
1827 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1828   protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRule();
1829   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto();
1830   protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameter();
1831   protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameter();
1832   protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameter();
1833   protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameter();
1834   protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameter();
1835   protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameter();
1836   protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameter();
1837   protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameter();
1838   protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameter();
1839   protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameter();
1840   protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameter();
1841   protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter();
1842   protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameter();
1843   protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameter();
1844   protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameter();
1845   protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameter();
1846   protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameter();
1847   protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameter();
1848   protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameter();
1849   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameter();
1850   protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameter();
1851   protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameter();
1852   protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameter();
1853   protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameter();
1854   protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameter();
1855   protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameter();
1856   protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameter();
1857   protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameter();
1858   protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameter();
1859   protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameter();
1860   protobuf_opencv_2dcaffe_2eproto::InitDefaultsV0LayerParameter();
1861   {
1862     void* ptr = &::opencv_caffe::_V1LayerParameter_default_instance_;
1863     new (ptr) ::opencv_caffe::V1LayerParameter();
1864     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1865   }
1866   ::opencv_caffe::V1LayerParameter::InitAsDefaultInstance();
1867 }
1868 
InitDefaultsV1LayerParameter()1869 void InitDefaultsV1LayerParameter() {
1870   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1871   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsV1LayerParameterImpl);
1872 }
1873 
InitDefaultsV0LayerParameterImpl()1874 void InitDefaultsV0LayerParameterImpl() {
1875   GOOGLE_PROTOBUF_VERIFY_VERSION;
1876 
1877 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1878   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1879 #else
1880   ::google::protobuf::internal::InitProtobufDefaults();
1881 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1882   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
1883   protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto();
1884   protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter();
1885   ::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.DefaultConstruct();
1886   *::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get_mutable() = ::std::string("warp", 4);
1887   ::google::protobuf::internal::OnShutdownDestroyString(
1888       ::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get_mutable());
1889   {
1890     void* ptr = &::opencv_caffe::_V0LayerParameter_default_instance_;
1891     new (ptr) ::opencv_caffe::V0LayerParameter();
1892     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1893   }
1894   ::opencv_caffe::V0LayerParameter::InitAsDefaultInstance();
1895 }
1896 
InitDefaultsV0LayerParameter()1897 void InitDefaultsV0LayerParameter() {
1898   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1899   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsV0LayerParameterImpl);
1900 }
1901 
InitDefaultsPReLUParameterImpl()1902 void InitDefaultsPReLUParameterImpl() {
1903   GOOGLE_PROTOBUF_VERIFY_VERSION;
1904 
1905 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1906   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1907 #else
1908   ::google::protobuf::internal::InitProtobufDefaults();
1909 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1910   protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
1911   {
1912     void* ptr = &::opencv_caffe::_PReLUParameter_default_instance_;
1913     new (ptr) ::opencv_caffe::PReLUParameter();
1914     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1915   }
1916   ::opencv_caffe::PReLUParameter::InitAsDefaultInstance();
1917 }
1918 
InitDefaultsPReLUParameter()1919 void InitDefaultsPReLUParameter() {
1920   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1921   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPReLUParameterImpl);
1922 }
1923 
InitDefaultsNormalizedBBoxImpl()1924 void InitDefaultsNormalizedBBoxImpl() {
1925   GOOGLE_PROTOBUF_VERIFY_VERSION;
1926 
1927 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1928   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1929 #else
1930   ::google::protobuf::internal::InitProtobufDefaults();
1931 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1932   {
1933     void* ptr = &::opencv_caffe::_NormalizedBBox_default_instance_;
1934     new (ptr) ::opencv_caffe::NormalizedBBox();
1935     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1936   }
1937   ::opencv_caffe::NormalizedBBox::InitAsDefaultInstance();
1938 }
1939 
InitDefaultsNormalizedBBox()1940 void InitDefaultsNormalizedBBox() {
1941   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1942   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNormalizedBBoxImpl);
1943 }
1944 
InitDefaultsROIPoolingParameterImpl()1945 void InitDefaultsROIPoolingParameterImpl() {
1946   GOOGLE_PROTOBUF_VERIFY_VERSION;
1947 
1948 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1949   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1950 #else
1951   ::google::protobuf::internal::InitProtobufDefaults();
1952 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1953   {
1954     void* ptr = &::opencv_caffe::_ROIPoolingParameter_default_instance_;
1955     new (ptr) ::opencv_caffe::ROIPoolingParameter();
1956     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1957   }
1958   ::opencv_caffe::ROIPoolingParameter::InitAsDefaultInstance();
1959 }
1960 
InitDefaultsROIPoolingParameter()1961 void InitDefaultsROIPoolingParameter() {
1962   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1963   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsROIPoolingParameterImpl);
1964 }
1965 
InitDefaultsProposalParameterImpl()1966 void InitDefaultsProposalParameterImpl() {
1967   GOOGLE_PROTOBUF_VERIFY_VERSION;
1968 
1969 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1970   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1971 #else
1972   ::google::protobuf::internal::InitProtobufDefaults();
1973 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1974   {
1975     void* ptr = &::opencv_caffe::_ProposalParameter_default_instance_;
1976     new (ptr) ::opencv_caffe::ProposalParameter();
1977     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1978   }
1979   ::opencv_caffe::ProposalParameter::InitAsDefaultInstance();
1980 }
1981 
InitDefaultsProposalParameter()1982 void InitDefaultsProposalParameter() {
1983   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1984   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProposalParameterImpl);
1985 }
1986 
InitDefaultsPSROIPoolingParameterImpl()1987 void InitDefaultsPSROIPoolingParameterImpl() {
1988   GOOGLE_PROTOBUF_VERIFY_VERSION;
1989 
1990 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1991   ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
1992 #else
1993   ::google::protobuf::internal::InitProtobufDefaults();
1994 #endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
1995   {
1996     void* ptr = &::opencv_caffe::_PSROIPoolingParameter_default_instance_;
1997     new (ptr) ::opencv_caffe::PSROIPoolingParameter();
1998     ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
1999   }
2000   ::opencv_caffe::PSROIPoolingParameter::InitAsDefaultInstance();
2001 }
2002 
InitDefaultsPSROIPoolingParameter()2003 void InitDefaultsPSROIPoolingParameter() {
2004   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
2005   ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPSROIPoolingParameterImpl);
2006 }
2007 
2008 ::google::protobuf::Metadata file_level_metadata[71];
2009 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[27];
2010 
2011 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
2012   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobShape, _has_bits_),
2013   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobShape, _internal_metadata_),
2014   ~0u,  // no _extensions_
2015   ~0u,  // no _oneof_case_
2016   ~0u,  // no _weak_field_map_
2017   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobShape, dim_),
2018   ~0u,
2019   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, _has_bits_),
2020   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, _internal_metadata_),
2021   ~0u,  // no _extensions_
2022   ~0u,  // no _oneof_case_
2023   ~0u,  // no _weak_field_map_
2024   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, shape_),
2025   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, data_),
2026   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, diff_),
2027   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, double_data_),
2028   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, double_diff_),
2029   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, raw_data_type_),
2030   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, raw_data_),
2031   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, num_),
2032   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, channels_),
2033   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, height_),
2034   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProto, width_),
2035   1,
2036   ~0u,
2037   ~0u,
2038   ~0u,
2039   ~0u,
2040   6,
2041   0,
2042   2,
2043   3,
2044   4,
2045   5,
2046   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProtoVector, _has_bits_),
2047   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProtoVector, _internal_metadata_),
2048   ~0u,  // no _extensions_
2049   ~0u,  // no _oneof_case_
2050   ~0u,  // no _weak_field_map_
2051   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BlobProtoVector, blobs_),
2052   ~0u,
2053   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PermuteParameter, _has_bits_),
2054   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PermuteParameter, _internal_metadata_),
2055   ~0u,  // no _extensions_
2056   ~0u,  // no _oneof_case_
2057   ~0u,  // no _weak_field_map_
2058   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PermuteParameter, order_),
2059   ~0u,
2060   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, _has_bits_),
2061   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, _internal_metadata_),
2062   ~0u,  // no _extensions_
2063   ~0u,  // no _oneof_case_
2064   ~0u,  // no _weak_field_map_
2065   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, across_spatial_),
2066   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, scale_filler_),
2067   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, channel_shared_),
2068   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizeBBoxParameter, eps_),
2069   1,
2070   0,
2071   2,
2072   3,
2073   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, _has_bits_),
2074   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, _internal_metadata_),
2075   ~0u,  // no _extensions_
2076   ~0u,  // no _oneof_case_
2077   ~0u,  // no _weak_field_map_
2078   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, min_size_),
2079   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, max_size_),
2080   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, aspect_ratio_),
2081   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, flip_),
2082   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, clip_),
2083   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, variance_),
2084   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, img_size_),
2085   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, img_h_),
2086   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, img_w_),
2087   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, step_),
2088   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, step_h_),
2089   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, step_w_),
2090   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, offset_),
2091   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, offset_h_),
2092   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, offset_w_),
2093   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, width_),
2094   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PriorBoxParameter, height_),
2095   ~0u,
2096   ~0u,
2097   ~0u,
2098   6,
2099   7,
2100   ~0u,
2101   0,
2102   1,
2103   2,
2104   3,
2105   4,
2106   5,
2107   8,
2108   ~0u,
2109   ~0u,
2110   ~0u,
2111   ~0u,
2112   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, _has_bits_),
2113   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, _internal_metadata_),
2114   ~0u,  // no _extensions_
2115   ~0u,  // no _oneof_case_
2116   ~0u,  // no _weak_field_map_
2117   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, num_classes_),
2118   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, share_location_),
2119   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, background_label_id_),
2120   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, nms_param_),
2121   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, save_output_param_),
2122   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, code_type_),
2123   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, variance_encoded_in_target_),
2124   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, keep_top_k_),
2125   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, confidence_threshold_),
2126   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DetectionOutputParameter, normalized_bbox_),
2127   2,
2128   8,
2129   3,
2130   0,
2131   1,
2132   7,
2133   4,
2134   6,
2135   5,
2136   9,
2137   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, _has_bits_),
2138   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, _internal_metadata_),
2139   ~0u,  // no _extensions_
2140   ~0u,  // no _oneof_case_
2141   ~0u,  // no _weak_field_map_
2142   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, channels_),
2143   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, height_),
2144   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, width_),
2145   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, data_),
2146   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, label_),
2147   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, float_data_),
2148   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::Datum, encoded_),
2149   1,
2150   2,
2151   3,
2152   0,
2153   4,
2154   ~0u,
2155   5,
2156   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, _has_bits_),
2157   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, _internal_metadata_),
2158   ~0u,  // no _extensions_
2159   ~0u,  // no _oneof_case_
2160   ~0u,  // no _weak_field_map_
2161   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, type_),
2162   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, value_),
2163   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, min_),
2164   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, max_),
2165   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, mean_),
2166   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, std_),
2167   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, sparse_),
2168   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FillerParameter, variance_norm_),
2169   0,
2170   1,
2171   2,
2172   6,
2173   3,
2174   7,
2175   5,
2176   4,
2177   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, _has_bits_),
2178   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, _internal_metadata_),
2179   ~0u,  // no _extensions_
2180   ~0u,  // no _oneof_case_
2181   ~0u,  // no _weak_field_map_
2182   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, name_),
2183   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, input_),
2184   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, input_shape_),
2185   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, input_dim_),
2186   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, force_backward_),
2187   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, state_),
2188   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, debug_info_),
2189   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, layer_),
2190   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetParameter, layers_),
2191   0,
2192   ~0u,
2193   ~0u,
2194   ~0u,
2195   2,
2196   1,
2197   3,
2198   ~0u,
2199   ~0u,
2200   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, _has_bits_),
2201   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, _internal_metadata_),
2202   ~0u,  // no _extensions_
2203   ~0u,  // no _oneof_case_
2204   ~0u,  // no _weak_field_map_
2205   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, net_),
2206   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, net_param_),
2207   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, train_net_),
2208   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_net_),
2209   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, train_net_param_),
2210   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_net_param_),
2211   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, train_state_),
2212   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_state_),
2213   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_iter_),
2214   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_interval_),
2215   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_compute_loss_),
2216   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, test_initialization_),
2217   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, base_lr_),
2218   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, display_),
2219   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, average_loss_),
2220   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, max_iter_),
2221   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, iter_size_),
2222   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, lr_policy_),
2223   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, gamma_),
2224   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, power_),
2225   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, momentum_),
2226   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, weight_decay_),
2227   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, regularization_type_),
2228   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, stepsize_),
2229   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, stepvalue_),
2230   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, clip_gradients_),
2231   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_),
2232   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_prefix_),
2233   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_diff_),
2234   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_format_),
2235   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, solver_mode_),
2236   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, device_id_),
2237   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, random_seed_),
2238   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, type_),
2239   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, delta_),
2240   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, momentum2_),
2241   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, rms_decay_),
2242   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, debug_info_),
2243   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, snapshot_after_train_),
2244   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverParameter, solver_type_),
2245   3,
2246   7,
2247   0,
2248   ~0u,
2249   6,
2250   ~0u,
2251   8,
2252   ~0u,
2253   ~0u,
2254   9,
2255   20,
2256   27,
2257   10,
2258   11,
2259   30,
2260   12,
2261   32,
2262   1,
2263   13,
2264   14,
2265   15,
2266   16,
2267   4,
2268   17,
2269   ~0u,
2270   31,
2271   18,
2272   2,
2273   21,
2274   33,
2275   26,
2276   19,
2277   25,
2278   5,
2279   29,
2280   24,
2281   34,
2282   22,
2283   28,
2284   23,
2285   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, _has_bits_),
2286   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, _internal_metadata_),
2287   ~0u,  // no _extensions_
2288   ~0u,  // no _oneof_case_
2289   ~0u,  // no _weak_field_map_
2290   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, iter_),
2291   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, learned_net_),
2292   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, history_),
2293   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SolverState, current_step_),
2294   1,
2295   0,
2296   ~0u,
2297   2,
2298   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, _has_bits_),
2299   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, _internal_metadata_),
2300   ~0u,  // no _extensions_
2301   ~0u,  // no _oneof_case_
2302   ~0u,  // no _weak_field_map_
2303   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, phase_),
2304   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, level_),
2305   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetState, stage_),
2306   1,
2307   0,
2308   ~0u,
2309   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, _has_bits_),
2310   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, _internal_metadata_),
2311   ~0u,  // no _extensions_
2312   ~0u,  // no _oneof_case_
2313   ~0u,  // no _weak_field_map_
2314   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, phase_),
2315   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, min_level_),
2316   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, max_level_),
2317   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, stage_),
2318   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NetStateRule, not_stage_),
2319   0,
2320   1,
2321   2,
2322   ~0u,
2323   ~0u,
2324   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, _has_bits_),
2325   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, _internal_metadata_),
2326   ~0u,  // no _extensions_
2327   ~0u,  // no _oneof_case_
2328   ~0u,  // no _weak_field_map_
2329   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, name_),
2330   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, share_mode_),
2331   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, lr_mult_),
2332   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParamSpec, decay_mult_),
2333   0,
2334   1,
2335   2,
2336   3,
2337   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, _has_bits_),
2338   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, _internal_metadata_),
2339   ~0u,  // no _extensions_
2340   ~0u,  // no _oneof_case_
2341   ~0u,  // no _weak_field_map_
2342   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, name_),
2343   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, type_),
2344   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, bottom_),
2345   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, top_),
2346   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, phase_),
2347   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, loss_weight_),
2348   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, param_),
2349   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, blobs_),
2350   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, propagate_down_),
2351   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, include_),
2352   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, exclude_),
2353   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, transform_param_),
2354   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, loss_param_),
2355   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, accuracy_param_),
2356   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, argmax_param_),
2357   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, batch_norm_param_),
2358   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, bias_param_),
2359   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, concat_param_),
2360   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, contrastive_loss_param_),
2361   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, convolution_param_),
2362   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, crop_param_),
2363   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, data_param_),
2364   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, detection_output_param_),
2365   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, dropout_param_),
2366   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, dummy_data_param_),
2367   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, eltwise_param_),
2368   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, elu_param_),
2369   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, embed_param_),
2370   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, exp_param_),
2371   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, flatten_param_),
2372   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, hdf5_data_param_),
2373   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, hdf5_output_param_),
2374   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, hinge_loss_param_),
2375   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, image_data_param_),
2376   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, infogain_loss_param_),
2377   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, inner_product_param_),
2378   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, input_param_),
2379   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, log_param_),
2380   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, lrn_param_),
2381   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, memory_data_param_),
2382   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, mvn_param_),
2383   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, norm_param_),
2384   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, permute_param_),
2385   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, parameter_param_),
2386   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, pooling_param_),
2387   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, power_param_),
2388   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, prelu_param_),
2389   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, prior_box_param_),
2390   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, proposal_param_),
2391   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, psroi_pooling_param_),
2392   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, python_param_),
2393   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, recurrent_param_),
2394   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, reduction_param_),
2395   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, relu_param_),
2396   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, reshape_param_),
2397   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, roi_pooling_param_),
2398   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, scale_param_),
2399   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, sigmoid_param_),
2400   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, softmax_param_),
2401   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, spp_param_),
2402   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, slice_param_),
2403   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, tanh_param_),
2404   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, threshold_param_),
2405   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, tile_param_),
2406   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LayerParameter, window_data_param_),
2407   0,
2408   1,
2409   ~0u,
2410   ~0u,
2411   56,
2412   ~0u,
2413   ~0u,
2414   ~0u,
2415   ~0u,
2416   ~0u,
2417   ~0u,
2418   2,
2419   3,
2420   4,
2421   5,
2422   41,
2423   43,
2424   6,
2425   7,
2426   8,
2427   46,
2428   9,
2429   49,
2430   10,
2431   11,
2432   12,
2433   42,
2434   39,
2435   13,
2436   37,
2437   14,
2438   15,
2439   16,
2440   17,
2441   18,
2442   19,
2443   45,
2444   36,
2445   20,
2446   21,
2447   22,
2448   51,
2449   50,
2450   47,
2451   23,
2452   24,
2453   33,
2454   52,
2455   53,
2456   54,
2457   32,
2458   48,
2459   38,
2460   25,
2461   35,
2462   55,
2463   44,
2464   26,
2465   27,
2466   34,
2467   28,
2468   29,
2469   30,
2470   40,
2471   31,
2472   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, _has_bits_),
2473   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, _internal_metadata_),
2474   ~0u,  // no _extensions_
2475   ~0u,  // no _oneof_case_
2476   ~0u,  // no _weak_field_map_
2477   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, scale_),
2478   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, mirror_),
2479   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, crop_size_),
2480   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, mean_file_),
2481   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, mean_value_),
2482   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, force_color_),
2483   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TransformationParameter, force_gray_),
2484   5,
2485   2,
2486   1,
2487   0,
2488   ~0u,
2489   3,
2490   4,
2491   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, _has_bits_),
2492   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, _internal_metadata_),
2493   ~0u,  // no _extensions_
2494   ~0u,  // no _oneof_case_
2495   ~0u,  // no _weak_field_map_
2496   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, ignore_label_),
2497   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, normalization_),
2498   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LossParameter, normalize_),
2499   0,
2500   2,
2501   1,
2502   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, _has_bits_),
2503   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, _internal_metadata_),
2504   ~0u,  // no _extensions_
2505   ~0u,  // no _oneof_case_
2506   ~0u,  // no _weak_field_map_
2507   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, top_k_),
2508   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, axis_),
2509   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::AccuracyParameter, ignore_label_),
2510   1,
2511   2,
2512   0,
2513   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, _has_bits_),
2514   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, _internal_metadata_),
2515   ~0u,  // no _extensions_
2516   ~0u,  // no _oneof_case_
2517   ~0u,  // no _weak_field_map_
2518   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, out_max_val_),
2519   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, top_k_),
2520   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ArgMaxParameter, axis_),
2521   0,
2522   2,
2523   1,
2524   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConcatParameter, _has_bits_),
2525   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConcatParameter, _internal_metadata_),
2526   ~0u,  // no _extensions_
2527   ~0u,  // no _oneof_case_
2528   ~0u,  // no _weak_field_map_
2529   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConcatParameter, axis_),
2530   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConcatParameter, concat_dim_),
2531   1,
2532   0,
2533   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, _has_bits_),
2534   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, _internal_metadata_),
2535   ~0u,  // no _extensions_
2536   ~0u,  // no _oneof_case_
2537   ~0u,  // no _weak_field_map_
2538   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, use_global_stats_),
2539   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, moving_average_fraction_),
2540   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, eps_),
2541   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BatchNormParameter, scale_bias_),
2542   0,
2543   2,
2544   3,
2545   1,
2546   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, _has_bits_),
2547   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, _internal_metadata_),
2548   ~0u,  // no _extensions_
2549   ~0u,  // no _oneof_case_
2550   ~0u,  // no _weak_field_map_
2551   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, axis_),
2552   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, num_axes_),
2553   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::BiasParameter, filler_),
2554   1,
2555   2,
2556   0,
2557   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ContrastiveLossParameter, _has_bits_),
2558   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ContrastiveLossParameter, _internal_metadata_),
2559   ~0u,  // no _extensions_
2560   ~0u,  // no _oneof_case_
2561   ~0u,  // no _weak_field_map_
2562   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ContrastiveLossParameter, margin_),
2563   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ContrastiveLossParameter, legacy_version_),
2564   1,
2565   0,
2566   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, _has_bits_),
2567   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, _internal_metadata_),
2568   ~0u,  // no _extensions_
2569   ~0u,  // no _oneof_case_
2570   ~0u,  // no _weak_field_map_
2571   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, num_output_),
2572   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, bias_term_),
2573   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, pad_),
2574   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, kernel_size_),
2575   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, stride_),
2576   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, dilation_),
2577   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, pad_h_),
2578   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, pad_w_),
2579   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, kernel_h_),
2580   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, kernel_w_),
2581   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, stride_h_),
2582   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, stride_w_),
2583   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, group_),
2584   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, weight_filler_),
2585   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, bias_filler_),
2586   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, engine_),
2587   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, axis_),
2588   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ConvolutionParameter, force_nd_im2col_),
2589   2,
2590   12,
2591   ~0u,
2592   ~0u,
2593   ~0u,
2594   ~0u,
2595   3,
2596   4,
2597   5,
2598   6,
2599   7,
2600   8,
2601   13,
2602   0,
2603   1,
2604   9,
2605   11,
2606   10,
2607   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::CropParameter, _has_bits_),
2608   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::CropParameter, _internal_metadata_),
2609   ~0u,  // no _extensions_
2610   ~0u,  // no _oneof_case_
2611   ~0u,  // no _weak_field_map_
2612   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::CropParameter, axis_),
2613   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::CropParameter, offset_),
2614   0,
2615   ~0u,
2616   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, _has_bits_),
2617   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, _internal_metadata_),
2618   ~0u,  // no _extensions_
2619   ~0u,  // no _oneof_case_
2620   ~0u,  // no _weak_field_map_
2621   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, source_),
2622   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, batch_size_),
2623   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, rand_skip_),
2624   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, backend_),
2625   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, scale_),
2626   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, mean_file_),
2627   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, crop_size_),
2628   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, mirror_),
2629   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, force_encoded_color_),
2630   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DataParameter, prefetch_),
2631   0,
2632   2,
2633   4,
2634   7,
2635   8,
2636   1,
2637   3,
2638   5,
2639   6,
2640   9,
2641   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, _has_bits_),
2642   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, _internal_metadata_),
2643   ~0u,  // no _extensions_
2644   ~0u,  // no _oneof_case_
2645   ~0u,  // no _weak_field_map_
2646   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, nms_threshold_),
2647   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, top_k_),
2648   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NonMaximumSuppressionParameter, eta_),
2649   1,
2650   0,
2651   2,
2652   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, _has_bits_),
2653   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, _internal_metadata_),
2654   ~0u,  // no _extensions_
2655   ~0u,  // no _oneof_case_
2656   ~0u,  // no _weak_field_map_
2657   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, output_directory_),
2658   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, output_name_prefix_),
2659   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, output_format_),
2660   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, label_map_file_),
2661   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, name_size_file_),
2662   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SaveOutputParameter, num_test_image_),
2663   0,
2664   1,
2665   2,
2666   3,
2667   4,
2668   5,
2669   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DropoutParameter, _has_bits_),
2670   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DropoutParameter, _internal_metadata_),
2671   ~0u,  // no _extensions_
2672   ~0u,  // no _oneof_case_
2673   ~0u,  // no _weak_field_map_
2674   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DropoutParameter, dropout_ratio_),
2675   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DropoutParameter, scale_train_),
2676   0,
2677   1,
2678   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, _has_bits_),
2679   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, _internal_metadata_),
2680   ~0u,  // no _extensions_
2681   ~0u,  // no _oneof_case_
2682   ~0u,  // no _weak_field_map_
2683   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, data_filler_),
2684   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, shape_),
2685   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, num_),
2686   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, channels_),
2687   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, height_),
2688   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::DummyDataParameter, width_),
2689   ~0u,
2690   ~0u,
2691   ~0u,
2692   ~0u,
2693   ~0u,
2694   ~0u,
2695   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, _has_bits_),
2696   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, _internal_metadata_),
2697   ~0u,  // no _extensions_
2698   ~0u,  // no _oneof_case_
2699   ~0u,  // no _weak_field_map_
2700   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, operation_),
2701   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, coeff_),
2702   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EltwiseParameter, stable_prod_grad_),
2703   0,
2704   ~0u,
2705   1,
2706   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ELUParameter, _has_bits_),
2707   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ELUParameter, _internal_metadata_),
2708   ~0u,  // no _extensions_
2709   ~0u,  // no _oneof_case_
2710   ~0u,  // no _weak_field_map_
2711   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ELUParameter, alpha_),
2712   0,
2713   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, _has_bits_),
2714   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, _internal_metadata_),
2715   ~0u,  // no _extensions_
2716   ~0u,  // no _oneof_case_
2717   ~0u,  // no _weak_field_map_
2718   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, num_output_),
2719   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, input_dim_),
2720   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, bias_term_),
2721   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, weight_filler_),
2722   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::EmbedParameter, bias_filler_),
2723   2,
2724   3,
2725   4,
2726   0,
2727   1,
2728   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, _has_bits_),
2729   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, _internal_metadata_),
2730   ~0u,  // no _extensions_
2731   ~0u,  // no _oneof_case_
2732   ~0u,  // no _weak_field_map_
2733   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, base_),
2734   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, scale_),
2735   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ExpParameter, shift_),
2736   1,
2737   2,
2738   0,
2739   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FlattenParameter, _has_bits_),
2740   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FlattenParameter, _internal_metadata_),
2741   ~0u,  // no _extensions_
2742   ~0u,  // no _oneof_case_
2743   ~0u,  // no _weak_field_map_
2744   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FlattenParameter, axis_),
2745   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::FlattenParameter, end_axis_),
2746   0,
2747   1,
2748   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, _has_bits_),
2749   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, _internal_metadata_),
2750   ~0u,  // no _extensions_
2751   ~0u,  // no _oneof_case_
2752   ~0u,  // no _weak_field_map_
2753   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, source_),
2754   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, batch_size_),
2755   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5DataParameter, shuffle_),
2756   0,
2757   1,
2758   2,
2759   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5OutputParameter, _has_bits_),
2760   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5OutputParameter, _internal_metadata_),
2761   ~0u,  // no _extensions_
2762   ~0u,  // no _oneof_case_
2763   ~0u,  // no _weak_field_map_
2764   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HDF5OutputParameter, file_name_),
2765   0,
2766   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HingeLossParameter, _has_bits_),
2767   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HingeLossParameter, _internal_metadata_),
2768   ~0u,  // no _extensions_
2769   ~0u,  // no _oneof_case_
2770   ~0u,  // no _weak_field_map_
2771   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::HingeLossParameter, norm_),
2772   0,
2773   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, _has_bits_),
2774   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, _internal_metadata_),
2775   ~0u,  // no _extensions_
2776   ~0u,  // no _oneof_case_
2777   ~0u,  // no _weak_field_map_
2778   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, source_),
2779   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, batch_size_),
2780   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, rand_skip_),
2781   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, shuffle_),
2782   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, new_height_),
2783   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, new_width_),
2784   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, is_color_),
2785   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, scale_),
2786   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, mean_file_),
2787   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, crop_size_),
2788   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, mirror_),
2789   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ImageDataParameter, root_folder_),
2790   0,
2791   11,
2792   4,
2793   5,
2794   7,
2795   8,
2796   9,
2797   10,
2798   1,
2799   3,
2800   6,
2801   2,
2802   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InfogainLossParameter, _has_bits_),
2803   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InfogainLossParameter, _internal_metadata_),
2804   ~0u,  // no _extensions_
2805   ~0u,  // no _oneof_case_
2806   ~0u,  // no _weak_field_map_
2807   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InfogainLossParameter, source_),
2808   0,
2809   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, _has_bits_),
2810   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, _internal_metadata_),
2811   ~0u,  // no _extensions_
2812   ~0u,  // no _oneof_case_
2813   ~0u,  // no _weak_field_map_
2814   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, num_output_),
2815   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, bias_term_),
2816   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, weight_filler_),
2817   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, bias_filler_),
2818   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, axis_),
2819   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InnerProductParameter, transpose_),
2820   2,
2821   4,
2822   0,
2823   1,
2824   5,
2825   3,
2826   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InputParameter, _has_bits_),
2827   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InputParameter, _internal_metadata_),
2828   ~0u,  // no _extensions_
2829   ~0u,  // no _oneof_case_
2830   ~0u,  // no _weak_field_map_
2831   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::InputParameter, shape_),
2832   ~0u,
2833   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, _has_bits_),
2834   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, _internal_metadata_),
2835   ~0u,  // no _extensions_
2836   ~0u,  // no _oneof_case_
2837   ~0u,  // no _weak_field_map_
2838   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, base_),
2839   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, scale_),
2840   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LogParameter, shift_),
2841   1,
2842   2,
2843   0,
2844   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, _has_bits_),
2845   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, _internal_metadata_),
2846   ~0u,  // no _extensions_
2847   ~0u,  // no _oneof_case_
2848   ~0u,  // no _weak_field_map_
2849   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, local_size_),
2850   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, alpha_),
2851   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, beta_),
2852   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, norm_region_),
2853   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, k_),
2854   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::LRNParameter, engine_),
2855   2,
2856   3,
2857   4,
2858   0,
2859   5,
2860   1,
2861   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, _has_bits_),
2862   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, _internal_metadata_),
2863   ~0u,  // no _extensions_
2864   ~0u,  // no _oneof_case_
2865   ~0u,  // no _weak_field_map_
2866   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, batch_size_),
2867   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, channels_),
2868   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, height_),
2869   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MemoryDataParameter, width_),
2870   0,
2871   1,
2872   2,
2873   3,
2874   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, _has_bits_),
2875   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, _internal_metadata_),
2876   ~0u,  // no _extensions_
2877   ~0u,  // no _oneof_case_
2878   ~0u,  // no _weak_field_map_
2879   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, normalize_variance_),
2880   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, across_channels_),
2881   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::MVNParameter, eps_),
2882   1,
2883   0,
2884   2,
2885   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParameterParameter, _has_bits_),
2886   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParameterParameter, _internal_metadata_),
2887   ~0u,  // no _extensions_
2888   ~0u,  // no _oneof_case_
2889   ~0u,  // no _weak_field_map_
2890   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ParameterParameter, shape_),
2891   0,
2892   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, _has_bits_),
2893   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, _internal_metadata_),
2894   ~0u,  // no _extensions_
2895   ~0u,  // no _oneof_case_
2896   ~0u,  // no _weak_field_map_
2897   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, pool_),
2898   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, pad_),
2899   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, pad_h_),
2900   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, pad_w_),
2901   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, kernel_size_),
2902   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, kernel_h_),
2903   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, kernel_w_),
2904   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, stride_),
2905   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, stride_h_),
2906   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, stride_w_),
2907   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, engine_),
2908   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, global_pooling_),
2909   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PoolingParameter, ceil_mode_),
2910   0,
2911   2,
2912   7,
2913   8,
2914   1,
2915   3,
2916   4,
2917   11,
2918   5,
2919   6,
2920   9,
2921   10,
2922   12,
2923   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, _has_bits_),
2924   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, _internal_metadata_),
2925   ~0u,  // no _extensions_
2926   ~0u,  // no _oneof_case_
2927   ~0u,  // no _weak_field_map_
2928   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, power_),
2929   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, scale_),
2930   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PowerParameter, shift_),
2931   1,
2932   2,
2933   0,
2934   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, _has_bits_),
2935   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, _internal_metadata_),
2936   ~0u,  // no _extensions_
2937   ~0u,  // no _oneof_case_
2938   ~0u,  // no _weak_field_map_
2939   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, module_),
2940   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, layer_),
2941   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, param_str_),
2942   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PythonParameter, share_in_parallel_),
2943   0,
2944   1,
2945   2,
2946   3,
2947   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, _has_bits_),
2948   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, _internal_metadata_),
2949   ~0u,  // no _extensions_
2950   ~0u,  // no _oneof_case_
2951   ~0u,  // no _weak_field_map_
2952   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, num_output_),
2953   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, weight_filler_),
2954   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, bias_filler_),
2955   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, debug_info_),
2956   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::RecurrentParameter, expose_hidden_),
2957   2,
2958   0,
2959   1,
2960   3,
2961   4,
2962   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, _has_bits_),
2963   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, _internal_metadata_),
2964   ~0u,  // no _extensions_
2965   ~0u,  // no _oneof_case_
2966   ~0u,  // no _weak_field_map_
2967   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, operation_),
2968   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, axis_),
2969   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReductionParameter, coeff_),
2970   1,
2971   0,
2972   2,
2973   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReLUParameter, _has_bits_),
2974   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReLUParameter, _internal_metadata_),
2975   ~0u,  // no _extensions_
2976   ~0u,  // no _oneof_case_
2977   ~0u,  // no _weak_field_map_
2978   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReLUParameter, negative_slope_),
2979   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReLUParameter, engine_),
2980   0,
2981   1,
2982   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, _has_bits_),
2983   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, _internal_metadata_),
2984   ~0u,  // no _extensions_
2985   ~0u,  // no _oneof_case_
2986   ~0u,  // no _weak_field_map_
2987   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, shape_),
2988   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, axis_),
2989   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ReshapeParameter, num_axes_),
2990   0,
2991   1,
2992   2,
2993   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, _has_bits_),
2994   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, _internal_metadata_),
2995   ~0u,  // no _extensions_
2996   ~0u,  // no _oneof_case_
2997   ~0u,  // no _weak_field_map_
2998   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, axis_),
2999   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, num_axes_),
3000   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, filler_),
3001   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, bias_term_),
3002   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ScaleParameter, bias_filler_),
3003   3,
3004   4,
3005   0,
3006   2,
3007   1,
3008   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SigmoidParameter, _has_bits_),
3009   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SigmoidParameter, _internal_metadata_),
3010   ~0u,  // no _extensions_
3011   ~0u,  // no _oneof_case_
3012   ~0u,  // no _weak_field_map_
3013   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SigmoidParameter, engine_),
3014   0,
3015   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, _has_bits_),
3016   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, _internal_metadata_),
3017   ~0u,  // no _extensions_
3018   ~0u,  // no _oneof_case_
3019   ~0u,  // no _weak_field_map_
3020   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, axis_),
3021   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, slice_point_),
3022   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SliceParameter, slice_dim_),
3023   1,
3024   ~0u,
3025   0,
3026   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SoftmaxParameter, _has_bits_),
3027   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SoftmaxParameter, _internal_metadata_),
3028   ~0u,  // no _extensions_
3029   ~0u,  // no _oneof_case_
3030   ~0u,  // no _weak_field_map_
3031   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SoftmaxParameter, engine_),
3032   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SoftmaxParameter, axis_),
3033   0,
3034   1,
3035   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TanHParameter, _has_bits_),
3036   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TanHParameter, _internal_metadata_),
3037   ~0u,  // no _extensions_
3038   ~0u,  // no _oneof_case_
3039   ~0u,  // no _weak_field_map_
3040   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TanHParameter, engine_),
3041   0,
3042   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TileParameter, _has_bits_),
3043   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TileParameter, _internal_metadata_),
3044   ~0u,  // no _extensions_
3045   ~0u,  // no _oneof_case_
3046   ~0u,  // no _weak_field_map_
3047   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TileParameter, axis_),
3048   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::TileParameter, tiles_),
3049   1,
3050   0,
3051   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ThresholdParameter, _has_bits_),
3052   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ThresholdParameter, _internal_metadata_),
3053   ~0u,  // no _extensions_
3054   ~0u,  // no _oneof_case_
3055   ~0u,  // no _weak_field_map_
3056   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ThresholdParameter, threshold_),
3057   0,
3058   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, _has_bits_),
3059   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, _internal_metadata_),
3060   ~0u,  // no _extensions_
3061   ~0u,  // no _oneof_case_
3062   ~0u,  // no _weak_field_map_
3063   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, source_),
3064   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, scale_),
3065   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, mean_file_),
3066   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, batch_size_),
3067   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, crop_size_),
3068   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, mirror_),
3069   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, fg_threshold_),
3070   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, bg_threshold_),
3071   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, fg_fraction_),
3072   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, context_pad_),
3073   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, crop_mode_),
3074   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, cache_images_),
3075   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::WindowDataParameter, root_folder_),
3076   0,
3077   9,
3078   1,
3079   4,
3080   5,
3081   6,
3082   10,
3083   11,
3084   12,
3085   8,
3086   2,
3087   7,
3088   3,
3089   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, _has_bits_),
3090   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, _internal_metadata_),
3091   ~0u,  // no _extensions_
3092   ~0u,  // no _oneof_case_
3093   ~0u,  // no _weak_field_map_
3094   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, pyramid_height_),
3095   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, pool_),
3096   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::SPPParameter, engine_),
3097   0,
3098   1,
3099   2,
3100   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, _has_bits_),
3101   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, _internal_metadata_),
3102   ~0u,  // no _extensions_
3103   ~0u,  // no _oneof_case_
3104   ~0u,  // no _weak_field_map_
3105   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, bottom_),
3106   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, top_),
3107   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, name_),
3108   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, include_),
3109   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, exclude_),
3110   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, type_),
3111   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, blobs_),
3112   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, param_),
3113   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, blob_share_mode_),
3114   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, blobs_lr_),
3115   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, weight_decay_),
3116   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, loss_weight_),
3117   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, accuracy_param_),
3118   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, argmax_param_),
3119   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, concat_param_),
3120   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, contrastive_loss_param_),
3121   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, convolution_param_),
3122   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, data_param_),
3123   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, dropout_param_),
3124   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, dummy_data_param_),
3125   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, eltwise_param_),
3126   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, exp_param_),
3127   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, hdf5_data_param_),
3128   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, hdf5_output_param_),
3129   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, hinge_loss_param_),
3130   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, image_data_param_),
3131   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, infogain_loss_param_),
3132   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, inner_product_param_),
3133   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, lrn_param_),
3134   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, memory_data_param_),
3135   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, mvn_param_),
3136   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, pooling_param_),
3137   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, power_param_),
3138   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, relu_param_),
3139   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, sigmoid_param_),
3140   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, softmax_param_),
3141   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, slice_param_),
3142   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, tanh_param_),
3143   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, threshold_param_),
3144   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, window_data_param_),
3145   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, transform_param_),
3146   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, loss_param_),
3147   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V1LayerParameter, layer_),
3148   ~0u,
3149   ~0u,
3150   0,
3151   ~0u,
3152   ~0u,
3153   32,
3154   ~0u,
3155   ~0u,
3156   ~0u,
3157   ~0u,
3158   ~0u,
3159   ~0u,
3160   20,
3161   16,
3162   2,
3163   29,
3164   3,
3165   4,
3166   5,
3167   19,
3168   17,
3169   30,
3170   6,
3171   7,
3172   21,
3173   8,
3174   9,
3175   10,
3176   11,
3177   15,
3178   24,
3179   12,
3180   14,
3181   22,
3182   27,
3183   28,
3184   23,
3185   26,
3186   18,
3187   13,
3188   25,
3189   31,
3190   1,
3191   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, _has_bits_),
3192   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, _internal_metadata_),
3193   ~0u,  // no _extensions_
3194   ~0u,  // no _oneof_case_
3195   ~0u,  // no _weak_field_map_
3196   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, name_),
3197   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, type_),
3198   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, num_output_),
3199   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, biasterm_),
3200   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, weight_filler_),
3201   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, bias_filler_),
3202   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, pad_),
3203   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, kernelsize_),
3204   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, group_),
3205   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, stride_),
3206   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, pool_),
3207   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, dropout_ratio_),
3208   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, local_size_),
3209   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, alpha_),
3210   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, beta_),
3211   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, k_),
3212   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, source_),
3213   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, scale_),
3214   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, meanfile_),
3215   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, batchsize_),
3216   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, cropsize_),
3217   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, mirror_),
3218   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, blobs_),
3219   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, blobs_lr_),
3220   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, weight_decay_),
3221   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, rand_skip_),
3222   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_fg_threshold_),
3223   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_bg_threshold_),
3224   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_fg_fraction_),
3225   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_context_pad_),
3226   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, det_crop_mode_),
3227   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, new_num_),
3228   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, new_channels_),
3229   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, new_height_),
3230   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, new_width_),
3231   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, shuffle_images_),
3232   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, concat_dim_),
3233   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::V0LayerParameter, hdf5_output_param_),
3234   0,
3235   1,
3236   8,
3237   23,
3238   5,
3239   6,
3240   9,
3241   10,
3242   24,
3243   25,
3244   11,
3245   26,
3246   27,
3247   28,
3248   29,
3249   31,
3250   2,
3251   30,
3252   3,
3253   12,
3254   13,
3255   15,
3256   ~0u,
3257   ~0u,
3258   ~0u,
3259   17,
3260   32,
3261   33,
3262   34,
3263   18,
3264   4,
3265   19,
3266   20,
3267   21,
3268   14,
3269   16,
3270   22,
3271   7,
3272   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PReLUParameter, _has_bits_),
3273   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PReLUParameter, _internal_metadata_),
3274   ~0u,  // no _extensions_
3275   ~0u,  // no _oneof_case_
3276   ~0u,  // no _weak_field_map_
3277   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PReLUParameter, filler_),
3278   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PReLUParameter, channel_shared_),
3279   0,
3280   1,
3281   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, _has_bits_),
3282   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, _internal_metadata_),
3283   ~0u,  // no _extensions_
3284   ~0u,  // no _oneof_case_
3285   ~0u,  // no _weak_field_map_
3286   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, xmin_),
3287   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, ymin_),
3288   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, xmax_),
3289   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, ymax_),
3290   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, label_),
3291   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, difficult_),
3292   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, score_),
3293   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::NormalizedBBox, size_),
3294   0,
3295   1,
3296   2,
3297   3,
3298   4,
3299   5,
3300   6,
3301   7,
3302   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, _has_bits_),
3303   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, _internal_metadata_),
3304   ~0u,  // no _extensions_
3305   ~0u,  // no _oneof_case_
3306   ~0u,  // no _weak_field_map_
3307   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, pooled_h_),
3308   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, pooled_w_),
3309   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ROIPoolingParameter, spatial_scale_),
3310   0,
3311   1,
3312   2,
3313   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, _has_bits_),
3314   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, _internal_metadata_),
3315   ~0u,  // no _extensions_
3316   ~0u,  // no _oneof_case_
3317   ~0u,  // no _weak_field_map_
3318   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, feat_stride_),
3319   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, base_size_),
3320   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, min_size_),
3321   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, ratio_),
3322   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, scale_),
3323   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, pre_nms_topn_),
3324   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, post_nms_topn_),
3325   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::ProposalParameter, nms_thresh_),
3326   0,
3327   1,
3328   2,
3329   ~0u,
3330   ~0u,
3331   3,
3332   4,
3333   5,
3334   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, _has_bits_),
3335   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, _internal_metadata_),
3336   ~0u,  // no _extensions_
3337   ~0u,  // no _oneof_case_
3338   ~0u,  // no _weak_field_map_
3339   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, spatial_scale_),
3340   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, output_dim_),
3341   GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::opencv_caffe::PSROIPoolingParameter, group_size_),
3342   0,
3343   1,
3344   2,
3345 };
3346 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
3347   { 0, 6, sizeof(::opencv_caffe::BlobShape)},
3348   { 7, 23, sizeof(::opencv_caffe::BlobProto)},
3349   { 34, 40, sizeof(::opencv_caffe::BlobProtoVector)},
3350   { 41, 47, sizeof(::opencv_caffe::PermuteParameter)},
3351   { 48, 57, sizeof(::opencv_caffe::NormalizeBBoxParameter)},
3352   { 61, 83, sizeof(::opencv_caffe::PriorBoxParameter)},
3353   { 100, 115, sizeof(::opencv_caffe::DetectionOutputParameter)},
3354   { 125, 137, sizeof(::opencv_caffe::Datum)},
3355   { 144, 157, sizeof(::opencv_caffe::FillerParameter)},
3356   { 165, 179, sizeof(::opencv_caffe::NetParameter)},
3357   { 188, 233, sizeof(::opencv_caffe::SolverParameter)},
3358   { 273, 282, sizeof(::opencv_caffe::SolverState)},
3359   { 286, 294, sizeof(::opencv_caffe::NetState)},
3360   { 297, 307, sizeof(::opencv_caffe::NetStateRule)},
3361   { 312, 321, sizeof(::opencv_caffe::ParamSpec)},
3362   { 325, 395, sizeof(::opencv_caffe::LayerParameter)},
3363   { 460, 472, sizeof(::opencv_caffe::TransformationParameter)},
3364   { 479, 487, sizeof(::opencv_caffe::LossParameter)},
3365   { 490, 498, sizeof(::opencv_caffe::AccuracyParameter)},
3366   { 501, 509, sizeof(::opencv_caffe::ArgMaxParameter)},
3367   { 512, 519, sizeof(::opencv_caffe::ConcatParameter)},
3368   { 521, 530, sizeof(::opencv_caffe::BatchNormParameter)},
3369   { 534, 542, sizeof(::opencv_caffe::BiasParameter)},
3370   { 545, 552, sizeof(::opencv_caffe::ContrastiveLossParameter)},
3371   { 554, 577, sizeof(::opencv_caffe::ConvolutionParameter)},
3372   { 595, 602, sizeof(::opencv_caffe::CropParameter)},
3373   { 604, 619, sizeof(::opencv_caffe::DataParameter)},
3374   { 629, 637, sizeof(::opencv_caffe::NonMaximumSuppressionParameter)},
3375   { 640, 651, sizeof(::opencv_caffe::SaveOutputParameter)},
3376   { 657, 664, sizeof(::opencv_caffe::DropoutParameter)},
3377   { 666, 677, sizeof(::opencv_caffe::DummyDataParameter)},
3378   { 683, 691, sizeof(::opencv_caffe::EltwiseParameter)},
3379   { 694, 700, sizeof(::opencv_caffe::ELUParameter)},
3380   { 701, 711, sizeof(::opencv_caffe::EmbedParameter)},
3381   { 716, 724, sizeof(::opencv_caffe::ExpParameter)},
3382   { 727, 734, sizeof(::opencv_caffe::FlattenParameter)},
3383   { 736, 744, sizeof(::opencv_caffe::HDF5DataParameter)},
3384   { 747, 753, sizeof(::opencv_caffe::HDF5OutputParameter)},
3385   { 754, 760, sizeof(::opencv_caffe::HingeLossParameter)},
3386   { 761, 778, sizeof(::opencv_caffe::ImageDataParameter)},
3387   { 790, 796, sizeof(::opencv_caffe::InfogainLossParameter)},
3388   { 797, 808, sizeof(::opencv_caffe::InnerProductParameter)},
3389   { 814, 820, sizeof(::opencv_caffe::InputParameter)},
3390   { 821, 829, sizeof(::opencv_caffe::LogParameter)},
3391   { 832, 843, sizeof(::opencv_caffe::LRNParameter)},
3392   { 849, 858, sizeof(::opencv_caffe::MemoryDataParameter)},
3393   { 862, 870, sizeof(::opencv_caffe::MVNParameter)},
3394   { 873, 879, sizeof(::opencv_caffe::ParameterParameter)},
3395   { 880, 898, sizeof(::opencv_caffe::PoolingParameter)},
3396   { 911, 919, sizeof(::opencv_caffe::PowerParameter)},
3397   { 922, 931, sizeof(::opencv_caffe::PythonParameter)},
3398   { 935, 945, sizeof(::opencv_caffe::RecurrentParameter)},
3399   { 950, 958, sizeof(::opencv_caffe::ReductionParameter)},
3400   { 961, 968, sizeof(::opencv_caffe::ReLUParameter)},
3401   { 970, 978, sizeof(::opencv_caffe::ReshapeParameter)},
3402   { 981, 991, sizeof(::opencv_caffe::ScaleParameter)},
3403   { 996, 1002, sizeof(::opencv_caffe::SigmoidParameter)},
3404   { 1003, 1011, sizeof(::opencv_caffe::SliceParameter)},
3405   { 1014, 1021, sizeof(::opencv_caffe::SoftmaxParameter)},
3406   { 1023, 1029, sizeof(::opencv_caffe::TanHParameter)},
3407   { 1030, 1037, sizeof(::opencv_caffe::TileParameter)},
3408   { 1039, 1045, sizeof(::opencv_caffe::ThresholdParameter)},
3409   { 1046, 1064, sizeof(::opencv_caffe::WindowDataParameter)},
3410   { 1077, 1085, sizeof(::opencv_caffe::SPPParameter)},
3411   { 1088, 1136, sizeof(::opencv_caffe::V1LayerParameter)},
3412   { 1179, 1222, sizeof(::opencv_caffe::V0LayerParameter)},
3413   { 1260, 1267, sizeof(::opencv_caffe::PReLUParameter)},
3414   { 1269, 1282, sizeof(::opencv_caffe::NormalizedBBox)},
3415   { 1290, 1298, sizeof(::opencv_caffe::ROIPoolingParameter)},
3416   { 1301, 1314, sizeof(::opencv_caffe::ProposalParameter)},
3417   { 1322, 1330, sizeof(::opencv_caffe::PSROIPoolingParameter)},
3418 };
3419 
3420 static ::google::protobuf::Message const * const file_default_instances[] = {
3421   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_BlobShape_default_instance_),
3422   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_BlobProto_default_instance_),
3423   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_BlobProtoVector_default_instance_),
3424   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_PermuteParameter_default_instance_),
3425   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_NormalizeBBoxParameter_default_instance_),
3426   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_PriorBoxParameter_default_instance_),
3427   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_DetectionOutputParameter_default_instance_),
3428   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_Datum_default_instance_),
3429   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_FillerParameter_default_instance_),
3430   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_NetParameter_default_instance_),
3431   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_SolverParameter_default_instance_),
3432   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_SolverState_default_instance_),
3433   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_NetState_default_instance_),
3434   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_NetStateRule_default_instance_),
3435   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ParamSpec_default_instance_),
3436   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_LayerParameter_default_instance_),
3437   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_TransformationParameter_default_instance_),
3438   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_LossParameter_default_instance_),
3439   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_AccuracyParameter_default_instance_),
3440   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ArgMaxParameter_default_instance_),
3441   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ConcatParameter_default_instance_),
3442   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_BatchNormParameter_default_instance_),
3443   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_BiasParameter_default_instance_),
3444   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ContrastiveLossParameter_default_instance_),
3445   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ConvolutionParameter_default_instance_),
3446   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_CropParameter_default_instance_),
3447   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_DataParameter_default_instance_),
3448   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_NonMaximumSuppressionParameter_default_instance_),
3449   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_SaveOutputParameter_default_instance_),
3450   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_DropoutParameter_default_instance_),
3451   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_DummyDataParameter_default_instance_),
3452   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_EltwiseParameter_default_instance_),
3453   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ELUParameter_default_instance_),
3454   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_EmbedParameter_default_instance_),
3455   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ExpParameter_default_instance_),
3456   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_FlattenParameter_default_instance_),
3457   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_HDF5DataParameter_default_instance_),
3458   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_HDF5OutputParameter_default_instance_),
3459   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_HingeLossParameter_default_instance_),
3460   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ImageDataParameter_default_instance_),
3461   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_InfogainLossParameter_default_instance_),
3462   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_InnerProductParameter_default_instance_),
3463   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_InputParameter_default_instance_),
3464   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_LogParameter_default_instance_),
3465   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_LRNParameter_default_instance_),
3466   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_MemoryDataParameter_default_instance_),
3467   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_MVNParameter_default_instance_),
3468   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ParameterParameter_default_instance_),
3469   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_PoolingParameter_default_instance_),
3470   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_PowerParameter_default_instance_),
3471   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_PythonParameter_default_instance_),
3472   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_RecurrentParameter_default_instance_),
3473   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ReductionParameter_default_instance_),
3474   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ReLUParameter_default_instance_),
3475   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ReshapeParameter_default_instance_),
3476   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ScaleParameter_default_instance_),
3477   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_SigmoidParameter_default_instance_),
3478   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_SliceParameter_default_instance_),
3479   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_SoftmaxParameter_default_instance_),
3480   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_TanHParameter_default_instance_),
3481   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_TileParameter_default_instance_),
3482   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ThresholdParameter_default_instance_),
3483   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_WindowDataParameter_default_instance_),
3484   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_SPPParameter_default_instance_),
3485   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_V1LayerParameter_default_instance_),
3486   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_V0LayerParameter_default_instance_),
3487   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_PReLUParameter_default_instance_),
3488   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_NormalizedBBox_default_instance_),
3489   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ROIPoolingParameter_default_instance_),
3490   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_ProposalParameter_default_instance_),
3491   reinterpret_cast<const ::google::protobuf::Message*>(&::opencv_caffe::_PSROIPoolingParameter_default_instance_),
3492 };
3493 
protobuf_AssignDescriptors()3494 void protobuf_AssignDescriptors() {
3495   AddDescriptors();
3496   ::google::protobuf::MessageFactory* factory = NULL;
3497   AssignDescriptors(
3498       "opencv-caffe.proto", schemas, file_default_instances, TableStruct::offsets, factory,
3499       file_level_metadata, file_level_enum_descriptors, NULL);
3500 }
3501 
protobuf_AssignDescriptorsOnce()3502 void protobuf_AssignDescriptorsOnce() {
3503   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
3504   ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
3505 }
3506 
3507 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
protobuf_RegisterTypes(const::std::string &)3508 void protobuf_RegisterTypes(const ::std::string&) {
3509   protobuf_AssignDescriptorsOnce();
3510   ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 71);
3511 }
3512 
AddDescriptorsImpl()3513 void AddDescriptorsImpl() {
3514   InitDefaults();
3515   static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
3516       "\n\022opencv-caffe.proto\022\014opencv_caffe\"\034\n\tBl"
3517       "obShape\022\017\n\003dim\030\001 \003(\003B\002\020\001\"\224\002\n\tBlobProto\022&"
3518       "\n\005shape\030\007 \001(\0132\027.opencv_caffe.BlobShape\022\020"
3519       "\n\004data\030\005 \003(\002B\002\020\001\022\020\n\004diff\030\006 \003(\002B\002\020\001\022\027\n\013do"
3520       "uble_data\030\010 \003(\001B\002\020\001\022\027\n\013double_diff\030\t \003(\001"
3521       "B\002\020\001\022)\n\rraw_data_type\030\n \001(\0162\022.opencv_caf"
3522       "fe.Type\022\024\n\010raw_data\030\014 \001(\014B\002\020\000\022\016\n\003num\030\001 \001"
3523       "(\005:\0010\022\023\n\010channels\030\002 \001(\005:\0010\022\021\n\006height\030\003 \001"
3524       "(\005:\0010\022\020\n\005width\030\004 \001(\005:\0010\"9\n\017BlobProtoVect"
3525       "or\022&\n\005blobs\030\001 \003(\0132\027.opencv_caffe.BlobPro"
3526       "to\"!\n\020PermuteParameter\022\r\n\005order\030\001 \003(\r\"\235\001"
3527       "\n\026NormalizeBBoxParameter\022\034\n\016across_spati"
3528       "al\030\001 \001(\010:\004true\0223\n\014scale_filler\030\002 \001(\0132\035.o"
3529       "pencv_caffe.FillerParameter\022\034\n\016channel_s"
3530       "hared\030\003 \001(\010:\004true\022\022\n\003eps\030\004 \001(\002:\0051e-10\"\346\002"
3531       "\n\021PriorBoxParameter\022\020\n\010min_size\030\001 \003(\002\022\020\n"
3532       "\010max_size\030\002 \003(\002\022\024\n\014aspect_ratio\030\003 \003(\002\022\022\n"
3533       "\004flip\030\004 \001(\010:\004true\022\022\n\004clip\030\005 \001(\010:\004true\022\020\n"
3534       "\010variance\030\006 \003(\002\022\020\n\010img_size\030\007 \001(\r\022\r\n\005img"
3535       "_h\030\010 \001(\r\022\r\n\005img_w\030\t \001(\r\022\014\n\004step\030\n \001(\002\022\016\n"
3536       "\006step_h\030\013 \001(\002\022\016\n\006step_w\030\014 \001(\002\022\023\n\006offset\030"
3537       "\r \001(\002:\0030.5\022\020\n\010offset_h\030\016 \003(\002\022\020\n\010offset_w"
3538       "\030\017 \003(\002\022\r\n\005width\030\020 \003(\002\022\016\n\006height\030\021 \003(\002\"\'\n"
3539       "\010CodeType\022\n\n\006CORNER\020\001\022\017\n\013CENTER_SIZE\020\002\"\261"
3540       "\003\n\030DetectionOutputParameter\022\023\n\013num_class"
3541       "es\030\001 \001(\r\022\034\n\016share_location\030\002 \001(\010:\004true\022\036"
3542       "\n\023background_label_id\030\003 \001(\005:\0010\022\?\n\tnms_pa"
3543       "ram\030\004 \001(\0132,.opencv_caffe.NonMaximumSuppr"
3544       "essionParameter\022<\n\021save_output_param\030\005 \001"
3545       "(\0132!.opencv_caffe.SaveOutputParameter\022C\n"
3546       "\tcode_type\030\006 \001(\0162(.opencv_caffe.PriorBox"
3547       "Parameter.CodeType:\006CORNER\022)\n\032variance_e"
3548       "ncoded_in_target\030\010 \001(\010:\005false\022\026\n\nkeep_to"
3549       "p_k\030\007 \001(\005:\002-1\022\034\n\024confidence_threshold\030\t "
3550       "\001(\002\022\035\n\017normalized_bbox\030\n \001(\010:\004true\"\201\001\n\005D"
3551       "atum\022\020\n\010channels\030\001 \001(\005\022\016\n\006height\030\002 \001(\005\022\r"
3552       "\n\005width\030\003 \001(\005\022\014\n\004data\030\004 \001(\014\022\r\n\005label\030\005 \001"
3553       "(\005\022\022\n\nfloat_data\030\006 \003(\002\022\026\n\007encoded\030\007 \001(\010:"
3554       "\005false\"\221\002\n\017FillerParameter\022\026\n\004type\030\001 \001(\t"
3555       ":\010constant\022\020\n\005value\030\002 \001(\002:\0010\022\016\n\003min\030\003 \001("
3556       "\002:\0010\022\016\n\003max\030\004 \001(\002:\0011\022\017\n\004mean\030\005 \001(\002:\0010\022\016\n"
3557       "\003std\030\006 \001(\002:\0011\022\022\n\006sparse\030\007 \001(\005:\002-1\022I\n\rvar"
3558       "iance_norm\030\010 \001(\0162*.opencv_caffe.FillerPa"
3559       "rameter.VarianceNorm:\006FAN_IN\"4\n\014Variance"
3560       "Norm\022\n\n\006FAN_IN\020\000\022\013\n\007FAN_OUT\020\001\022\013\n\007AVERAGE"
3561       "\020\002\"\252\002\n\014NetParameter\022\014\n\004name\030\001 \001(\t\022\r\n\005inp"
3562       "ut\030\003 \003(\t\022,\n\013input_shape\030\010 \003(\0132\027.opencv_c"
3563       "affe.BlobShape\022\021\n\tinput_dim\030\004 \003(\005\022\035\n\016for"
3564       "ce_backward\030\005 \001(\010:\005false\022%\n\005state\030\006 \001(\0132"
3565       "\026.opencv_caffe.NetState\022\031\n\ndebug_info\030\007 "
3566       "\001(\010:\005false\022+\n\005layer\030d \003(\0132\034.opencv_caffe"
3567       ".LayerParameter\022.\n\006layers\030\002 \003(\0132\036.opencv"
3568       "_caffe.V1LayerParameter\"\332\n\n\017SolverParame"
3569       "ter\022\013\n\003net\030\030 \001(\t\022-\n\tnet_param\030\031 \001(\0132\032.op"
3570       "encv_caffe.NetParameter\022\021\n\ttrain_net\030\001 \001"
3571       "(\t\022\020\n\010test_net\030\002 \003(\t\0223\n\017train_net_param\030"
3572       "\025 \001(\0132\032.opencv_caffe.NetParameter\0222\n\016tes"
3573       "t_net_param\030\026 \003(\0132\032.opencv_caffe.NetPara"
3574       "meter\022+\n\013train_state\030\032 \001(\0132\026.opencv_caff"
3575       "e.NetState\022*\n\ntest_state\030\033 \003(\0132\026.opencv_"
3576       "caffe.NetState\022\021\n\ttest_iter\030\003 \003(\005\022\030\n\rtes"
3577       "t_interval\030\004 \001(\005:\0010\022 \n\021test_compute_loss"
3578       "\030\023 \001(\010:\005false\022!\n\023test_initialization\030  \001"
3579       "(\010:\004true\022\017\n\007base_lr\030\005 \001(\002\022\017\n\007display\030\006 \001"
3580       "(\005\022\027\n\014average_loss\030! \001(\005:\0011\022\020\n\010max_iter\030"
3581       "\007 \001(\005\022\024\n\titer_size\030$ \001(\005:\0011\022\021\n\tlr_policy"
3582       "\030\010 \001(\t\022\r\n\005gamma\030\t \001(\002\022\r\n\005power\030\n \001(\002\022\020\n\010"
3583       "momentum\030\013 \001(\002\022\024\n\014weight_decay\030\014 \001(\002\022\037\n\023"
3584       "regularization_type\030\035 \001(\t:\002L2\022\020\n\010stepsiz"
3585       "e\030\r \001(\005\022\021\n\tstepvalue\030\" \003(\005\022\032\n\016clip_gradi"
3586       "ents\030# \001(\002:\002-1\022\023\n\010snapshot\030\016 \001(\005:\0010\022\027\n\017s"
3587       "napshot_prefix\030\017 \001(\t\022\034\n\rsnapshot_diff\030\020 "
3588       "\001(\010:\005false\022R\n\017snapshot_format\030% \001(\0162,.op"
3589       "encv_caffe.SolverParameter.SnapshotForma"
3590       "t:\013BINARYPROTO\022B\n\013solver_mode\030\021 \001(\0162(.op"
3591       "encv_caffe.SolverParameter.SolverMode:\003G"
3592       "PU\022\024\n\tdevice_id\030\022 \001(\005:\0010\022\027\n\013random_seed\030"
3593       "\024 \001(\003:\002-1\022\021\n\004type\030( \001(\t:\003SGD\022\024\n\005delta\030\037 "
3594       "\001(\002:\0051e-08\022\030\n\tmomentum2\030\' \001(\002:\0050.999\022\027\n\t"
3595       "rms_decay\030& \001(\002:\0040.99\022\031\n\ndebug_info\030\027 \001("
3596       "\010:\005false\022\"\n\024snapshot_after_train\030\034 \001(\010:\004"
3597       "true\022B\n\013solver_type\030\036 \001(\0162(.opencv_caffe"
3598       ".SolverParameter.SolverType:\003SGD\"+\n\016Snap"
3599       "shotFormat\022\010\n\004HDF5\020\000\022\017\n\013BINARYPROTO\020\001\"\036\n"
3600       "\nSolverMode\022\007\n\003CPU\020\000\022\007\n\003GPU\020\001\"U\n\nSolverT"
3601       "ype\022\007\n\003SGD\020\000\022\014\n\010NESTEROV\020\001\022\013\n\007ADAGRAD\020\002\022"
3602       "\013\n\007RMSPROP\020\003\022\014\n\010ADADELTA\020\004\022\010\n\004ADAM\020\005\"s\n\013"
3603       "SolverState\022\014\n\004iter\030\001 \001(\005\022\023\n\013learned_net"
3604       "\030\002 \001(\t\022(\n\007history\030\003 \003(\0132\027.opencv_caffe.B"
3605       "lobProto\022\027\n\014current_step\030\004 \001(\005:\0010\"U\n\010Net"
3606       "State\022(\n\005phase\030\001 \001(\0162\023.opencv_caffe.Phas"
3607       "e:\004TEST\022\020\n\005level\030\002 \001(\005:\0010\022\r\n\005stage\030\003 \003(\t"
3608       "\"z\n\014NetStateRule\022\"\n\005phase\030\001 \001(\0162\023.opencv"
3609       "_caffe.Phase\022\021\n\tmin_level\030\002 \001(\005\022\021\n\tmax_l"
3610       "evel\030\003 \001(\005\022\r\n\005stage\030\004 \003(\t\022\021\n\tnot_stage\030\005"
3611       " \003(\t\"\252\001\n\tParamSpec\022\014\n\004name\030\001 \001(\t\0228\n\nshar"
3612       "e_mode\030\002 \001(\0162$.opencv_caffe.ParamSpec.Di"
3613       "mCheckMode\022\022\n\007lr_mult\030\003 \001(\002:\0011\022\025\n\ndecay_"
3614       "mult\030\004 \001(\002:\0011\"*\n\014DimCheckMode\022\n\n\006STRICT\020"
3615       "\000\022\016\n\nPERMISSIVE\020\001\"\243\032\n\016LayerParameter\022\014\n\004"
3616       "name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\016\n\006bottom\030\003 \003(\t"
3617       "\022\013\n\003top\030\004 \003(\t\022\"\n\005phase\030\n \001(\0162\023.opencv_ca"
3618       "ffe.Phase\022\023\n\013loss_weight\030\005 \003(\002\022&\n\005param\030"
3619       "\006 \003(\0132\027.opencv_caffe.ParamSpec\022&\n\005blobs\030"
3620       "\007 \003(\0132\027.opencv_caffe.BlobProto\022\026\n\016propag"
3621       "ate_down\030\013 \003(\010\022+\n\007include\030\010 \003(\0132\032.opencv"
3622       "_caffe.NetStateRule\022+\n\007exclude\030\t \003(\0132\032.o"
3623       "pencv_caffe.NetStateRule\022>\n\017transform_pa"
3624       "ram\030d \001(\0132%.opencv_caffe.TransformationP"
3625       "arameter\022/\n\nloss_param\030e \001(\0132\033.opencv_ca"
3626       "ffe.LossParameter\0227\n\016accuracy_param\030f \001("
3627       "\0132\037.opencv_caffe.AccuracyParameter\0223\n\014ar"
3628       "gmax_param\030g \001(\0132\035.opencv_caffe.ArgMaxPa"
3629       "rameter\022;\n\020batch_norm_param\030\213\001 \001(\0132 .ope"
3630       "ncv_caffe.BatchNormParameter\0220\n\nbias_par"
3631       "am\030\215\001 \001(\0132\033.opencv_caffe.BiasParameter\0223"
3632       "\n\014concat_param\030h \001(\0132\035.opencv_caffe.Conc"
3633       "atParameter\022F\n\026contrastive_loss_param\030i "
3634       "\001(\0132&.opencv_caffe.ContrastiveLossParame"
3635       "ter\022=\n\021convolution_param\030j \001(\0132\".opencv_"
3636       "caffe.ConvolutionParameter\0220\n\ncrop_param"
3637       "\030\220\001 \001(\0132\033.opencv_caffe.CropParameter\022/\n\n"
3638       "data_param\030k \001(\0132\033.opencv_caffe.DataPara"
3639       "meter\022G\n\026detection_output_param\030\223\001 \001(\0132&"
3640       ".opencv_caffe.DetectionOutputParameter\0225"
3641       "\n\rdropout_param\030l \001(\0132\036.opencv_caffe.Dro"
3642       "poutParameter\022:\n\020dummy_data_param\030m \001(\0132"
3643       " .opencv_caffe.DummyDataParameter\0225\n\relt"
3644       "wise_param\030n \001(\0132\036.opencv_caffe.EltwiseP"
3645       "arameter\022.\n\telu_param\030\214\001 \001(\0132\032.opencv_ca"
3646       "ffe.ELUParameter\0222\n\013embed_param\030\211\001 \001(\0132\034"
3647       ".opencv_caffe.EmbedParameter\022-\n\texp_para"
3648       "m\030o \001(\0132\032.opencv_caffe.ExpParameter\0226\n\rf"
3649       "latten_param\030\207\001 \001(\0132\036.opencv_caffe.Flatt"
3650       "enParameter\0228\n\017hdf5_data_param\030p \001(\0132\037.o"
3651       "pencv_caffe.HDF5DataParameter\022<\n\021hdf5_ou"
3652       "tput_param\030q \001(\0132!.opencv_caffe.HDF5Outp"
3653       "utParameter\022:\n\020hinge_loss_param\030r \001(\0132 ."
3654       "opencv_caffe.HingeLossParameter\022:\n\020image"
3655       "_data_param\030s \001(\0132 .opencv_caffe.ImageDa"
3656       "taParameter\022@\n\023infogain_loss_param\030t \001(\013"
3657       "2#.opencv_caffe.InfogainLossParameter\022@\n"
3658       "\023inner_product_param\030u \001(\0132#.opencv_caff"
3659       "e.InnerProductParameter\0222\n\013input_param\030\217"
3660       "\001 \001(\0132\034.opencv_caffe.InputParameter\022.\n\tl"
3661       "og_param\030\206\001 \001(\0132\032.opencv_caffe.LogParame"
3662       "ter\022-\n\tlrn_param\030v \001(\0132\032.opencv_caffe.LR"
3663       "NParameter\022<\n\021memory_data_param\030w \001(\0132!."
3664       "opencv_caffe.MemoryDataParameter\022-\n\tmvn_"
3665       "param\030x \001(\0132\032.opencv_caffe.MVNParameter\022"
3666       "9\n\nnorm_param\030\225\001 \001(\0132$.opencv_caffe.Norm"
3667       "alizeBBoxParameter\0226\n\rpermute_param\030\224\001 \001"
3668       "(\0132\036.opencv_caffe.PermuteParameter\022:\n\017pa"
3669       "rameter_param\030\221\001 \001(\0132 .opencv_caffe.Para"
3670       "meterParameter\0225\n\rpooling_param\030y \001(\0132\036."
3671       "opencv_caffe.PoolingParameter\0221\n\013power_p"
3672       "aram\030z \001(\0132\034.opencv_caffe.PowerParameter"
3673       "\0222\n\013prelu_param\030\203\001 \001(\0132\034.opencv_caffe.PR"
3674       "eLUParameter\0229\n\017prior_box_param\030\226\001 \001(\0132\037"
3675       ".opencv_caffe.PriorBoxParameter\0228\n\016propo"
3676       "sal_param\030\311\001 \001(\0132\037.opencv_caffe.Proposal"
3677       "Parameter\022A\n\023psroi_pooling_param\030\222N \001(\0132"
3678       "#.opencv_caffe.PSROIPoolingParameter\0224\n\014"
3679       "python_param\030\202\001 \001(\0132\035.opencv_caffe.Pytho"
3680       "nParameter\022:\n\017recurrent_param\030\222\001 \001(\0132 .o"
3681       "pencv_caffe.RecurrentParameter\022:\n\017reduct"
3682       "ion_param\030\210\001 \001(\0132 .opencv_caffe.Reductio"
3683       "nParameter\022/\n\nrelu_param\030{ \001(\0132\033.opencv_"
3684       "caffe.ReLUParameter\0226\n\rreshape_param\030\205\001 "
3685       "\001(\0132\036.opencv_caffe.ReshapeParameter\022\?\n\021r"
3686       "oi_pooling_param\030\327\307\370\003 \001(\0132!.opencv_caffe"
3687       ".ROIPoolingParameter\0222\n\013scale_param\030\216\001 \001"
3688       "(\0132\034.opencv_caffe.ScaleParameter\0225\n\rsigm"
3689       "oid_param\030| \001(\0132\036.opencv_caffe.SigmoidPa"
3690       "rameter\0225\n\rsoftmax_param\030} \001(\0132\036.opencv_"
3691       "caffe.SoftmaxParameter\022.\n\tspp_param\030\204\001 \001"
3692       "(\0132\032.opencv_caffe.SPPParameter\0221\n\013slice_"
3693       "param\030~ \001(\0132\034.opencv_caffe.SliceParamete"
3694       "r\022/\n\ntanh_param\030\177 \001(\0132\033.opencv_caffe.Tan"
3695       "HParameter\022:\n\017threshold_param\030\200\001 \001(\0132 .o"
3696       "pencv_caffe.ThresholdParameter\0220\n\ntile_p"
3697       "aram\030\212\001 \001(\0132\033.opencv_caffe.TileParameter"
3698       "\022=\n\021window_data_param\030\201\001 \001(\0132!.opencv_ca"
3699       "ffe.WindowDataParameter\"\266\001\n\027Transformati"
3700       "onParameter\022\020\n\005scale\030\001 \001(\002:\0011\022\025\n\006mirror\030"
3701       "\002 \001(\010:\005false\022\024\n\tcrop_size\030\003 \001(\r:\0010\022\021\n\tme"
3702       "an_file\030\004 \001(\t\022\022\n\nmean_value\030\005 \003(\002\022\032\n\013for"
3703       "ce_color\030\006 \001(\010:\005false\022\031\n\nforce_gray\030\007 \001("
3704       "\010:\005false\"\311\001\n\rLossParameter\022\024\n\014ignore_lab"
3705       "el\030\001 \001(\005\022K\n\rnormalization\030\003 \001(\0162-.opencv"
3706       "_caffe.LossParameter.NormalizationMode:\005"
3707       "VALID\022\021\n\tnormalize\030\002 \001(\010\"B\n\021Normalizatio"
3708       "nMode\022\010\n\004FULL\020\000\022\t\n\005VALID\020\001\022\016\n\nBATCH_SIZE"
3709       "\020\002\022\010\n\004NONE\020\003\"L\n\021AccuracyParameter\022\020\n\005top"
3710       "_k\030\001 \001(\r:\0011\022\017\n\004axis\030\002 \001(\005:\0011\022\024\n\014ignore_l"
3711       "abel\030\003 \001(\005\"M\n\017ArgMaxParameter\022\032\n\013out_max"
3712       "_val\030\001 \001(\010:\005false\022\020\n\005top_k\030\002 \001(\r:\0011\022\014\n\004a"
3713       "xis\030\003 \001(\005\"9\n\017ConcatParameter\022\017\n\004axis\030\002 \001"
3714       "(\005:\0011\022\025\n\nconcat_dim\030\001 \001(\r:\0011\"\205\001\n\022BatchNo"
3715       "rmParameter\022\030\n\020use_global_stats\030\001 \001(\010\022&\n"
3716       "\027moving_average_fraction\030\002 \001(\002:\0050.999\022\022\n"
3717       "\003eps\030\003 \001(\002:\0051e-05\022\031\n\nscale_bias\030\007 \001(\010:\005f"
3718       "alse\"d\n\rBiasParameter\022\017\n\004axis\030\001 \001(\005:\0011\022\023"
3719       "\n\010num_axes\030\002 \001(\005:\0011\022-\n\006filler\030\003 \001(\0132\035.op"
3720       "encv_caffe.FillerParameter\"L\n\030Contrastiv"
3721       "eLossParameter\022\021\n\006margin\030\001 \001(\002:\0011\022\035\n\016leg"
3722       "acy_version\030\002 \001(\010:\005false\"\221\004\n\024Convolution"
3723       "Parameter\022\022\n\nnum_output\030\001 \001(\r\022\027\n\tbias_te"
3724       "rm\030\002 \001(\010:\004true\022\013\n\003pad\030\003 \003(\r\022\023\n\013kernel_si"
3725       "ze\030\004 \003(\r\022\016\n\006stride\030\006 \003(\r\022\020\n\010dilation\030\022 \003"
3726       "(\r\022\020\n\005pad_h\030\t \001(\r:\0010\022\020\n\005pad_w\030\n \001(\r:\0010\022\020"
3727       "\n\010kernel_h\030\013 \001(\r\022\020\n\010kernel_w\030\014 \001(\r\022\020\n\010st"
3728       "ride_h\030\r \001(\r\022\020\n\010stride_w\030\016 \001(\r\022\020\n\005group\030"
3729       "\005 \001(\r:\0011\0224\n\rweight_filler\030\007 \001(\0132\035.opencv"
3730       "_caffe.FillerParameter\0222\n\013bias_filler\030\010 "
3731       "\001(\0132\035.opencv_caffe.FillerParameter\022B\n\006en"
3732       "gine\030\017 \001(\0162).opencv_caffe.ConvolutionPar"
3733       "ameter.Engine:\007DEFAULT\022\017\n\004axis\030\020 \001(\005:\0011\022"
3734       "\036\n\017force_nd_im2col\030\021 \001(\010:\005false\"+\n\006Engin"
3735       "e\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"0\n\r"
3736       "CropParameter\022\017\n\004axis\030\001 \001(\005:\0012\022\016\n\006offset"
3737       "\030\002 \003(\r\"\253\002\n\rDataParameter\022\016\n\006source\030\001 \001(\t"
3738       "\022\022\n\nbatch_size\030\004 \001(\r\022\024\n\trand_skip\030\007 \001(\r:"
3739       "\0010\0228\n\007backend\030\010 \001(\0162\036.opencv_caffe.DataP"
3740       "arameter.DB:\007LEVELDB\022\020\n\005scale\030\002 \001(\002:\0011\022\021"
3741       "\n\tmean_file\030\003 \001(\t\022\024\n\tcrop_size\030\005 \001(\r:\0010\022"
3742       "\025\n\006mirror\030\006 \001(\010:\005false\022\"\n\023force_encoded_"
3743       "color\030\t \001(\010:\005false\022\023\n\010prefetch\030\n \001(\r:\0014\""
3744       "\033\n\002DB\022\013\n\007LEVELDB\020\000\022\010\n\004LMDB\020\001\"[\n\036NonMaxim"
3745       "umSuppressionParameter\022\032\n\rnms_threshold\030"
3746       "\001 \001(\002:\0030.3\022\r\n\005top_k\030\002 \001(\005\022\016\n\003eta\030\003 \001(\002:\001"
3747       "1\"\252\001\n\023SaveOutputParameter\022\030\n\020output_dire"
3748       "ctory\030\001 \001(\t\022\032\n\022output_name_prefix\030\002 \001(\t\022"
3749       "\025\n\routput_format\030\003 \001(\t\022\026\n\016label_map_file"
3750       "\030\004 \001(\t\022\026\n\016name_size_file\030\005 \001(\t\022\026\n\016num_te"
3751       "st_image\030\006 \001(\r\"I\n\020DropoutParameter\022\032\n\rdr"
3752       "opout_ratio\030\001 \001(\002:\0030.5\022\031\n\013scale_train\030\002 "
3753       "\001(\010:\004true\"\256\001\n\022DummyDataParameter\0222\n\013data"
3754       "_filler\030\001 \003(\0132\035.opencv_caffe.FillerParam"
3755       "eter\022&\n\005shape\030\006 \003(\0132\027.opencv_caffe.BlobS"
3756       "hape\022\013\n\003num\030\002 \003(\r\022\020\n\010channels\030\003 \003(\r\022\016\n\006h"
3757       "eight\030\004 \003(\r\022\r\n\005width\030\005 \003(\r\"\254\001\n\020EltwisePa"
3758       "rameter\022@\n\toperation\030\001 \001(\0162(.opencv_caff"
3759       "e.EltwiseParameter.EltwiseOp:\003SUM\022\r\n\005coe"
3760       "ff\030\002 \003(\002\022\036\n\020stable_prod_grad\030\003 \001(\010:\004true"
3761       "\"\'\n\tEltwiseOp\022\010\n\004PROD\020\000\022\007\n\003SUM\020\001\022\007\n\003MAX\020"
3762       "\002\" \n\014ELUParameter\022\020\n\005alpha\030\001 \001(\002:\0011\"\272\001\n\016"
3763       "EmbedParameter\022\022\n\nnum_output\030\001 \001(\r\022\021\n\tin"
3764       "put_dim\030\002 \001(\r\022\027\n\tbias_term\030\003 \001(\010:\004true\0224"
3765       "\n\rweight_filler\030\004 \001(\0132\035.opencv_caffe.Fil"
3766       "lerParameter\0222\n\013bias_filler\030\005 \001(\0132\035.open"
3767       "cv_caffe.FillerParameter\"D\n\014ExpParameter"
3768       "\022\020\n\004base\030\001 \001(\002:\002-1\022\020\n\005scale\030\002 \001(\002:\0011\022\020\n\005"
3769       "shift\030\003 \001(\002:\0010\"9\n\020FlattenParameter\022\017\n\004ax"
3770       "is\030\001 \001(\005:\0011\022\024\n\010end_axis\030\002 \001(\005:\002-1\"O\n\021HDF"
3771       "5DataParameter\022\016\n\006source\030\001 \001(\t\022\022\n\nbatch_"
3772       "size\030\002 \001(\r\022\026\n\007shuffle\030\003 \001(\010:\005false\"(\n\023HD"
3773       "F5OutputParameter\022\021\n\tfile_name\030\001 \001(\t\"e\n\022"
3774       "HingeLossParameter\0227\n\004norm\030\001 \001(\0162%.openc"
3775       "v_caffe.HingeLossParameter.Norm:\002L1\"\026\n\004N"
3776       "orm\022\006\n\002L1\020\001\022\006\n\002L2\020\002\"\227\002\n\022ImageDataParamet"
3777       "er\022\016\n\006source\030\001 \001(\t\022\025\n\nbatch_size\030\004 \001(\r:\001"
3778       "1\022\024\n\trand_skip\030\007 \001(\r:\0010\022\026\n\007shuffle\030\010 \001(\010"
3779       ":\005false\022\025\n\nnew_height\030\t \001(\r:\0010\022\024\n\tnew_wi"
3780       "dth\030\n \001(\r:\0010\022\026\n\010is_color\030\013 \001(\010:\004true\022\020\n\005"
3781       "scale\030\002 \001(\002:\0011\022\021\n\tmean_file\030\003 \001(\t\022\024\n\tcro"
3782       "p_size\030\005 \001(\r:\0010\022\025\n\006mirror\030\006 \001(\010:\005false\022\025"
3783       "\n\013root_folder\030\014 \001(\t:\000\"\'\n\025InfogainLossPar"
3784       "ameter\022\016\n\006source\030\001 \001(\t\"\331\001\n\025InnerProductP"
3785       "arameter\022\022\n\nnum_output\030\001 \001(\r\022\027\n\tbias_ter"
3786       "m\030\002 \001(\010:\004true\0224\n\rweight_filler\030\003 \001(\0132\035.o"
3787       "pencv_caffe.FillerParameter\0222\n\013bias_fill"
3788       "er\030\004 \001(\0132\035.opencv_caffe.FillerParameter\022"
3789       "\017\n\004axis\030\005 \001(\005:\0011\022\030\n\ttranspose\030\006 \001(\010:\005fal"
3790       "se\"8\n\016InputParameter\022&\n\005shape\030\001 \003(\0132\027.op"
3791       "encv_caffe.BlobShape\"D\n\014LogParameter\022\020\n\004"
3792       "base\030\001 \001(\002:\002-1\022\020\n\005scale\030\002 \001(\002:\0011\022\020\n\005shif"
3793       "t\030\003 \001(\002:\0010\"\306\002\n\014LRNParameter\022\025\n\nlocal_siz"
3794       "e\030\001 \001(\r:\0015\022\020\n\005alpha\030\002 \001(\002:\0011\022\022\n\004beta\030\003 \001"
3795       "(\002:\0040.75\022K\n\013norm_region\030\004 \001(\0162%.opencv_c"
3796       "affe.LRNParameter.NormRegion:\017ACROSS_CHA"
3797       "NNELS\022\014\n\001k\030\005 \001(\002:\0011\022:\n\006engine\030\006 \001(\0162!.op"
3798       "encv_caffe.LRNParameter.Engine:\007DEFAULT\""
3799       "5\n\nNormRegion\022\023\n\017ACROSS_CHANNELS\020\000\022\022\n\016WI"
3800       "THIN_CHANNEL\020\001\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n"
3801       "\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"Z\n\023MemoryDataParamet"
3802       "er\022\022\n\nbatch_size\030\001 \001(\r\022\020\n\010channels\030\002 \001(\r"
3803       "\022\016\n\006height\030\003 \001(\r\022\r\n\005width\030\004 \001(\r\"d\n\014MVNPa"
3804       "rameter\022 \n\022normalize_variance\030\001 \001(\010:\004tru"
3805       "e\022\036\n\017across_channels\030\002 \001(\010:\005false\022\022\n\003eps"
3806       "\030\003 \001(\002:\0051e-09\"<\n\022ParameterParameter\022&\n\005s"
3807       "hape\030\001 \001(\0132\027.opencv_caffe.BlobShape\"\311\003\n\020"
3808       "PoolingParameter\022<\n\004pool\030\001 \001(\0162).opencv_"
3809       "caffe.PoolingParameter.PoolMethod:\003MAX\022\016"
3810       "\n\003pad\030\004 \001(\r:\0010\022\020\n\005pad_h\030\t \001(\r:\0010\022\020\n\005pad_"
3811       "w\030\n \001(\r:\0010\022\023\n\013kernel_size\030\002 \001(\r\022\020\n\010kerne"
3812       "l_h\030\005 \001(\r\022\020\n\010kernel_w\030\006 \001(\r\022\021\n\006stride\030\003 "
3813       "\001(\r:\0011\022\020\n\010stride_h\030\007 \001(\r\022\020\n\010stride_w\030\010 \001"
3814       "(\r\022>\n\006engine\030\013 \001(\0162%.opencv_caffe.Poolin"
3815       "gParameter.Engine:\007DEFAULT\022\035\n\016global_poo"
3816       "ling\030\014 \001(\010:\005false\022\027\n\tceil_mode\030\r \001(\010:\004tr"
3817       "ue\".\n\nPoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001\022\016\n\nST"
3818       "OCHASTIC\020\002\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAF"
3819       "FE\020\001\022\t\n\005CUDNN\020\002\"F\n\016PowerParameter\022\020\n\005pow"
3820       "er\030\001 \001(\002:\0011\022\020\n\005scale\030\002 \001(\002:\0011\022\020\n\005shift\030\003"
3821       " \001(\002:\0010\"g\n\017PythonParameter\022\016\n\006module\030\001 \001"
3822       "(\t\022\r\n\005layer\030\002 \001(\t\022\023\n\tparam_str\030\003 \001(\t:\000\022 "
3823       "\n\021share_in_parallel\030\004 \001(\010:\005false\"\316\001\n\022Rec"
3824       "urrentParameter\022\025\n\nnum_output\030\001 \001(\r:\0010\0224"
3825       "\n\rweight_filler\030\002 \001(\0132\035.opencv_caffe.Fil"
3826       "lerParameter\0222\n\013bias_filler\030\003 \001(\0132\035.open"
3827       "cv_caffe.FillerParameter\022\031\n\ndebug_info\030\004"
3828       " \001(\010:\005false\022\034\n\rexpose_hidden\030\005 \001(\010:\005fals"
3829       "e\"\264\001\n\022ReductionParameter\022D\n\toperation\030\001 "
3830       "\001(\0162,.opencv_caffe.ReductionParameter.Re"
3831       "ductionOp:\003SUM\022\017\n\004axis\030\002 \001(\005:\0010\022\020\n\005coeff"
3832       "\030\003 \001(\002:\0011\"5\n\013ReductionOp\022\007\n\003SUM\020\001\022\010\n\004ASU"
3833       "M\020\002\022\t\n\005SUMSQ\020\003\022\010\n\004MEAN\020\004\"\224\001\n\rReLUParamet"
3834       "er\022\031\n\016negative_slope\030\001 \001(\002:\0010\022;\n\006engine\030"
3835       "\002 \001(\0162\".opencv_caffe.ReLUParameter.Engin"
3836       "e:\007DEFAULT\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAF"
3837       "FE\020\001\022\t\n\005CUDNN\020\002\"a\n\020ReshapeParameter\022&\n\005s"
3838       "hape\030\001 \001(\0132\027.opencv_caffe.BlobShape\022\017\n\004a"
3839       "xis\030\002 \001(\005:\0010\022\024\n\010num_axes\030\003 \001(\005:\002-1\"\263\001\n\016S"
3840       "caleParameter\022\017\n\004axis\030\001 \001(\005:\0011\022\023\n\010num_ax"
3841       "es\030\002 \001(\005:\0011\022-\n\006filler\030\003 \001(\0132\035.opencv_caf"
3842       "fe.FillerParameter\022\030\n\tbias_term\030\004 \001(\010:\005f"
3843       "alse\0222\n\013bias_filler\030\005 \001(\0132\035.opencv_caffe"
3844       ".FillerParameter\"\177\n\020SigmoidParameter\022>\n\006"
3845       "engine\030\001 \001(\0162%.opencv_caffe.SigmoidParam"
3846       "eter.Engine:\007DEFAULT\"+\n\006Engine\022\013\n\007DEFAUL"
3847       "T\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN\020\002\"L\n\016SliceParame"
3848       "ter\022\017\n\004axis\030\003 \001(\005:\0011\022\023\n\013slice_point\030\002 \003("
3849       "\r\022\024\n\tslice_dim\030\001 \001(\r:\0011\"\220\001\n\020SoftmaxParam"
3850       "eter\022>\n\006engine\030\001 \001(\0162%.opencv_caffe.Soft"
3851       "maxParameter.Engine:\007DEFAULT\022\017\n\004axis\030\002 \001"
3852       "(\005:\0011\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022"
3853       "\t\n\005CUDNN\020\002\"y\n\rTanHParameter\022;\n\006engine\030\001 "
3854       "\001(\0162\".opencv_caffe.TanHParameter.Engine:"
3855       "\007DEFAULT\"+\n\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE"
3856       "\020\001\022\t\n\005CUDNN\020\002\"/\n\rTileParameter\022\017\n\004axis\030\001"
3857       " \001(\005:\0011\022\r\n\005tiles\030\002 \001(\005\"*\n\022ThresholdParam"
3858       "eter\022\024\n\tthreshold\030\001 \001(\002:\0010\"\301\002\n\023WindowDat"
3859       "aParameter\022\016\n\006source\030\001 \001(\t\022\020\n\005scale\030\002 \001("
3860       "\002:\0011\022\021\n\tmean_file\030\003 \001(\t\022\022\n\nbatch_size\030\004 "
3861       "\001(\r\022\024\n\tcrop_size\030\005 \001(\r:\0010\022\025\n\006mirror\030\006 \001("
3862       "\010:\005false\022\031\n\014fg_threshold\030\007 \001(\002:\0030.5\022\031\n\014b"
3863       "g_threshold\030\010 \001(\002:\0030.5\022\031\n\013fg_fraction\030\t "
3864       "\001(\002:\0040.25\022\026\n\013context_pad\030\n \001(\r:\0010\022\027\n\tcro"
3865       "p_mode\030\013 \001(\t:\004warp\022\033\n\014cache_images\030\014 \001(\010"
3866       ":\005false\022\025\n\013root_folder\030\r \001(\t:\000\"\371\001\n\014SPPPa"
3867       "rameter\022\026\n\016pyramid_height\030\001 \001(\r\0228\n\004pool\030"
3868       "\002 \001(\0162%.opencv_caffe.SPPParameter.PoolMe"
3869       "thod:\003MAX\022:\n\006engine\030\006 \001(\0162!.opencv_caffe"
3870       ".SPPParameter.Engine:\007DEFAULT\".\n\nPoolMet"
3871       "hod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001\022\016\n\nSTOCHASTIC\020\002\"+\n"
3872       "\006Engine\022\013\n\007DEFAULT\020\000\022\t\n\005CAFFE\020\001\022\t\n\005CUDNN"
3873       "\020\002\"\334\025\n\020V1LayerParameter\022\016\n\006bottom\030\002 \003(\t\022"
3874       "\013\n\003top\030\003 \003(\t\022\014\n\004name\030\004 \001(\t\022+\n\007include\030  "
3875       "\003(\0132\032.opencv_caffe.NetStateRule\022+\n\007exclu"
3876       "de\030! \003(\0132\032.opencv_caffe.NetStateRule\0226\n\004"
3877       "type\030\005 \001(\0162(.opencv_caffe.V1LayerParamet"
3878       "er.LayerType\022&\n\005blobs\030\006 \003(\0132\027.opencv_caf"
3879       "fe.BlobProto\022\016\n\005param\030\351\007 \003(\t\022E\n\017blob_sha"
3880       "re_mode\030\352\007 \003(\0162+.opencv_caffe.V1LayerPar"
3881       "ameter.DimCheckMode\022\020\n\010blobs_lr\030\007 \003(\002\022\024\n"
3882       "\014weight_decay\030\010 \003(\002\022\023\n\013loss_weight\030# \003(\002"
3883       "\0227\n\016accuracy_param\030\033 \001(\0132\037.opencv_caffe."
3884       "AccuracyParameter\0223\n\014argmax_param\030\027 \001(\0132"
3885       "\035.opencv_caffe.ArgMaxParameter\0223\n\014concat"
3886       "_param\030\t \001(\0132\035.opencv_caffe.ConcatParame"
3887       "ter\022F\n\026contrastive_loss_param\030( \001(\0132&.op"
3888       "encv_caffe.ContrastiveLossParameter\022=\n\021c"
3889       "onvolution_param\030\n \001(\0132\".opencv_caffe.Co"
3890       "nvolutionParameter\022/\n\ndata_param\030\013 \001(\0132\033"
3891       ".opencv_caffe.DataParameter\0225\n\rdropout_p"
3892       "aram\030\014 \001(\0132\036.opencv_caffe.DropoutParamet"
3893       "er\022:\n\020dummy_data_param\030\032 \001(\0132 .opencv_ca"
3894       "ffe.DummyDataParameter\0225\n\reltwise_param\030"
3895       "\030 \001(\0132\036.opencv_caffe.EltwiseParameter\022-\n"
3896       "\texp_param\030) \001(\0132\032.opencv_caffe.ExpParam"
3897       "eter\0228\n\017hdf5_data_param\030\r \001(\0132\037.opencv_c"
3898       "affe.HDF5DataParameter\022<\n\021hdf5_output_pa"
3899       "ram\030\016 \001(\0132!.opencv_caffe.HDF5OutputParam"
3900       "eter\022:\n\020hinge_loss_param\030\035 \001(\0132 .opencv_"
3901       "caffe.HingeLossParameter\022:\n\020image_data_p"
3902       "aram\030\017 \001(\0132 .opencv_caffe.ImageDataParam"
3903       "eter\022@\n\023infogain_loss_param\030\020 \001(\0132#.open"
3904       "cv_caffe.InfogainLossParameter\022@\n\023inner_"
3905       "product_param\030\021 \001(\0132#.opencv_caffe.Inner"
3906       "ProductParameter\022-\n\tlrn_param\030\022 \001(\0132\032.op"
3907       "encv_caffe.LRNParameter\022<\n\021memory_data_p"
3908       "aram\030\026 \001(\0132!.opencv_caffe.MemoryDataPara"
3909       "meter\022-\n\tmvn_param\030\" \001(\0132\032.opencv_caffe."
3910       "MVNParameter\0225\n\rpooling_param\030\023 \001(\0132\036.op"
3911       "encv_caffe.PoolingParameter\0221\n\013power_par"
3912       "am\030\025 \001(\0132\034.opencv_caffe.PowerParameter\022/"
3913       "\n\nrelu_param\030\036 \001(\0132\033.opencv_caffe.ReLUPa"
3914       "rameter\0225\n\rsigmoid_param\030& \001(\0132\036.opencv_"
3915       "caffe.SigmoidParameter\0225\n\rsoftmax_param\030"
3916       "\' \001(\0132\036.opencv_caffe.SoftmaxParameter\0221\n"
3917       "\013slice_param\030\037 \001(\0132\034.opencv_caffe.SliceP"
3918       "arameter\022/\n\ntanh_param\030% \001(\0132\033.opencv_ca"
3919       "ffe.TanHParameter\0229\n\017threshold_param\030\031 \001"
3920       "(\0132 .opencv_caffe.ThresholdParameter\022<\n\021"
3921       "window_data_param\030\024 \001(\0132!.opencv_caffe.W"
3922       "indowDataParameter\022>\n\017transform_param\030$ "
3923       "\001(\0132%.opencv_caffe.TransformationParamet"
3924       "er\022/\n\nloss_param\030* \001(\0132\033.opencv_caffe.Lo"
3925       "ssParameter\022-\n\005layer\030\001 \001(\0132\036.opencv_caff"
3926       "e.V0LayerParameter\"\330\004\n\tLayerType\022\010\n\004NONE"
3927       "\020\000\022\n\n\006ABSVAL\020#\022\014\n\010ACCURACY\020\001\022\n\n\006ARGMAX\020\036"
3928       "\022\010\n\004BNLL\020\002\022\n\n\006CONCAT\020\003\022\024\n\020CONTRASTIVE_LO"
3929       "SS\020%\022\017\n\013CONVOLUTION\020\004\022\010\n\004DATA\020\005\022\021\n\rDECON"
3930       "VOLUTION\020\'\022\013\n\007DROPOUT\020\006\022\016\n\nDUMMY_DATA\020 \022"
3931       "\022\n\016EUCLIDEAN_LOSS\020\007\022\013\n\007ELTWISE\020\031\022\007\n\003EXP\020"
3932       "&\022\013\n\007FLATTEN\020\010\022\r\n\tHDF5_DATA\020\t\022\017\n\013HDF5_OU"
3933       "TPUT\020\n\022\016\n\nHINGE_LOSS\020\034\022\n\n\006IM2COL\020\013\022\016\n\nIM"
3934       "AGE_DATA\020\014\022\021\n\rINFOGAIN_LOSS\020\r\022\021\n\rINNER_P"
3935       "RODUCT\020\016\022\007\n\003LRN\020\017\022\017\n\013MEMORY_DATA\020\035\022\035\n\031MU"
3936       "LTINOMIAL_LOGISTIC_LOSS\020\020\022\007\n\003MVN\020\"\022\013\n\007PO"
3937       "OLING\020\021\022\t\n\005POWER\020\032\022\010\n\004RELU\020\022\022\013\n\007SIGMOID\020"
3938       "\023\022\036\n\032SIGMOID_CROSS_ENTROPY_LOSS\020\033\022\013\n\007SIL"
3939       "ENCE\020$\022\013\n\007SOFTMAX\020\024\022\020\n\014SOFTMAX_LOSS\020\025\022\t\n"
3940       "\005SPLIT\020\026\022\t\n\005SLICE\020!\022\010\n\004TANH\020\027\022\017\n\013WINDOW_"
3941       "DATA\020\030\022\r\n\tTHRESHOLD\020\037\"*\n\014DimCheckMode\022\n\n"
3942       "\006STRICT\020\000\022\016\n\nPERMISSIVE\020\001\"\240\010\n\020V0LayerPar"
3943       "ameter\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\022\n\nnu"
3944       "m_output\030\003 \001(\r\022\026\n\010biasterm\030\004 \001(\010:\004true\0224"
3945       "\n\rweight_filler\030\005 \001(\0132\035.opencv_caffe.Fil"
3946       "lerParameter\0222\n\013bias_filler\030\006 \001(\0132\035.open"
3947       "cv_caffe.FillerParameter\022\016\n\003pad\030\007 \001(\r:\0010"
3948       "\022\022\n\nkernelsize\030\010 \001(\r\022\020\n\005group\030\t \001(\r:\0011\022\021"
3949       "\n\006stride\030\n \001(\r:\0011\022<\n\004pool\030\013 \001(\0162).opencv"
3950       "_caffe.V0LayerParameter.PoolMethod:\003MAX\022"
3951       "\032\n\rdropout_ratio\030\014 \001(\002:\0030.5\022\025\n\nlocal_siz"
3952       "e\030\r \001(\r:\0015\022\020\n\005alpha\030\016 \001(\002:\0011\022\022\n\004beta\030\017 \001"
3953       "(\002:\0040.75\022\014\n\001k\030\026 \001(\002:\0011\022\016\n\006source\030\020 \001(\t\022\020"
3954       "\n\005scale\030\021 \001(\002:\0011\022\020\n\010meanfile\030\022 \001(\t\022\021\n\tba"
3955       "tchsize\030\023 \001(\r\022\023\n\010cropsize\030\024 \001(\r:\0010\022\025\n\006mi"
3956       "rror\030\025 \001(\010:\005false\022&\n\005blobs\0302 \003(\0132\027.openc"
3957       "v_caffe.BlobProto\022\020\n\010blobs_lr\0303 \003(\002\022\024\n\014w"
3958       "eight_decay\0304 \003(\002\022\024\n\trand_skip\0305 \001(\r:\0010\022"
3959       "\035\n\020det_fg_threshold\0306 \001(\002:\0030.5\022\035\n\020det_bg"
3960       "_threshold\0307 \001(\002:\0030.5\022\035\n\017det_fg_fraction"
3961       "\0308 \001(\002:\0040.25\022\032\n\017det_context_pad\030: \001(\r:\0010"
3962       "\022\033\n\rdet_crop_mode\030; \001(\t:\004warp\022\022\n\007new_num"
3963       "\030< \001(\005:\0010\022\027\n\014new_channels\030= \001(\005:\0010\022\025\n\nne"
3964       "w_height\030> \001(\005:\0010\022\024\n\tnew_width\030\? \001(\005:\0010\022"
3965       "\035\n\016shuffle_images\030@ \001(\010:\005false\022\025\n\nconcat"
3966       "_dim\030A \001(\r:\0011\022=\n\021hdf5_output_param\030\351\007 \001("
3967       "\0132!.opencv_caffe.HDF5OutputParameter\".\n\n"
3968       "PoolMethod\022\007\n\003MAX\020\000\022\007\n\003AVE\020\001\022\016\n\nSTOCHAST"
3969       "IC\020\002\"^\n\016PReLUParameter\022-\n\006filler\030\001 \001(\0132\035"
3970       ".opencv_caffe.FillerParameter\022\035\n\016channel"
3971       "_shared\030\002 \001(\010:\005false\"\207\001\n\016NormalizedBBox\022"
3972       "\014\n\004xmin\030\001 \001(\002\022\014\n\004ymin\030\002 \001(\002\022\014\n\004xmax\030\003 \001("
3973       "\002\022\014\n\004ymax\030\004 \001(\002\022\r\n\005label\030\005 \001(\005\022\021\n\tdiffic"
3974       "ult\030\006 \001(\010\022\r\n\005score\030\007 \001(\002\022\014\n\004size\030\010 \001(\002\"Y"
3975       "\n\023ROIPoolingParameter\022\023\n\010pooled_h\030\001 \001(\r:"
3976       "\0010\022\023\n\010pooled_w\030\002 \001(\r:\0010\022\030\n\rspatial_scale"
3977       "\030\003 \001(\002:\0011\"\310\001\n\021ProposalParameter\022\027\n\013feat_"
3978       "stride\030\001 \001(\r:\00216\022\025\n\tbase_size\030\002 \001(\r:\00216\022"
3979       "\024\n\010min_size\030\003 \001(\r:\00216\022\r\n\005ratio\030\004 \003(\002\022\r\n\005"
3980       "scale\030\005 \003(\002\022\032\n\014pre_nms_topn\030\006 \001(\r:\0046000\022"
3981       "\032\n\rpost_nms_topn\030\007 \001(\r:\003300\022\027\n\nnms_thres"
3982       "h\030\010 \001(\002:\0030.7\"V\n\025PSROIPoolingParameter\022\025\n"
3983       "\rspatial_scale\030\001 \002(\002\022\022\n\noutput_dim\030\002 \002(\005"
3984       "\022\022\n\ngroup_size\030\003 \002(\005*=\n\004Type\022\n\n\006DOUBLE\020\000"
3985       "\022\t\n\005FLOAT\020\001\022\013\n\007FLOAT16\020\002\022\007\n\003INT\020\003\022\010\n\004UIN"
3986       "T\020\004*\034\n\005Phase\022\t\n\005TRAIN\020\000\022\010\n\004TEST\020\001"
3987   };
3988   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
3989       descriptor, 18833);
3990   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
3991     "opencv-caffe.proto", &protobuf_RegisterTypes);
3992 }
3993 
AddDescriptors()3994 void AddDescriptors() {
3995   static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
3996   ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
3997 }
3998 // Force AddDescriptors() to be called at dynamic initialization time.
3999 struct StaticDescriptorInitializer {
StaticDescriptorInitializerprotobuf_opencv_2dcaffe_2eproto::StaticDescriptorInitializer4000   StaticDescriptorInitializer() {
4001     AddDescriptors();
4002   }
4003 } static_descriptor_initializer;
4004 }  // namespace protobuf_opencv_2dcaffe_2eproto
4005 namespace opencv_caffe {
PriorBoxParameter_CodeType_descriptor()4006 const ::google::protobuf::EnumDescriptor* PriorBoxParameter_CodeType_descriptor() {
4007   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4008   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[0];
4009 }
PriorBoxParameter_CodeType_IsValid(int value)4010 bool PriorBoxParameter_CodeType_IsValid(int value) {
4011   switch (value) {
4012     case 1:
4013     case 2:
4014       return true;
4015     default:
4016       return false;
4017   }
4018 }
4019 
4020 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4021 const PriorBoxParameter_CodeType PriorBoxParameter::CORNER;
4022 const PriorBoxParameter_CodeType PriorBoxParameter::CENTER_SIZE;
4023 const PriorBoxParameter_CodeType PriorBoxParameter::CodeType_MIN;
4024 const PriorBoxParameter_CodeType PriorBoxParameter::CodeType_MAX;
4025 const int PriorBoxParameter::CodeType_ARRAYSIZE;
4026 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
FillerParameter_VarianceNorm_descriptor()4027 const ::google::protobuf::EnumDescriptor* FillerParameter_VarianceNorm_descriptor() {
4028   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4029   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[1];
4030 }
FillerParameter_VarianceNorm_IsValid(int value)4031 bool FillerParameter_VarianceNorm_IsValid(int value) {
4032   switch (value) {
4033     case 0:
4034     case 1:
4035     case 2:
4036       return true;
4037     default:
4038       return false;
4039   }
4040 }
4041 
4042 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4043 const FillerParameter_VarianceNorm FillerParameter::FAN_IN;
4044 const FillerParameter_VarianceNorm FillerParameter::FAN_OUT;
4045 const FillerParameter_VarianceNorm FillerParameter::AVERAGE;
4046 const FillerParameter_VarianceNorm FillerParameter::VarianceNorm_MIN;
4047 const FillerParameter_VarianceNorm FillerParameter::VarianceNorm_MAX;
4048 const int FillerParameter::VarianceNorm_ARRAYSIZE;
4049 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
SolverParameter_SnapshotFormat_descriptor()4050 const ::google::protobuf::EnumDescriptor* SolverParameter_SnapshotFormat_descriptor() {
4051   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4052   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[2];
4053 }
SolverParameter_SnapshotFormat_IsValid(int value)4054 bool SolverParameter_SnapshotFormat_IsValid(int value) {
4055   switch (value) {
4056     case 0:
4057     case 1:
4058       return true;
4059     default:
4060       return false;
4061   }
4062 }
4063 
4064 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4065 const SolverParameter_SnapshotFormat SolverParameter::HDF5;
4066 const SolverParameter_SnapshotFormat SolverParameter::BINARYPROTO;
4067 const SolverParameter_SnapshotFormat SolverParameter::SnapshotFormat_MIN;
4068 const SolverParameter_SnapshotFormat SolverParameter::SnapshotFormat_MAX;
4069 const int SolverParameter::SnapshotFormat_ARRAYSIZE;
4070 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
SolverParameter_SolverMode_descriptor()4071 const ::google::protobuf::EnumDescriptor* SolverParameter_SolverMode_descriptor() {
4072   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4073   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[3];
4074 }
SolverParameter_SolverMode_IsValid(int value)4075 bool SolverParameter_SolverMode_IsValid(int value) {
4076   switch (value) {
4077     case 0:
4078     case 1:
4079       return true;
4080     default:
4081       return false;
4082   }
4083 }
4084 
4085 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4086 const SolverParameter_SolverMode SolverParameter::CPU;
4087 const SolverParameter_SolverMode SolverParameter::GPU;
4088 const SolverParameter_SolverMode SolverParameter::SolverMode_MIN;
4089 const SolverParameter_SolverMode SolverParameter::SolverMode_MAX;
4090 const int SolverParameter::SolverMode_ARRAYSIZE;
4091 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
SolverParameter_SolverType_descriptor()4092 const ::google::protobuf::EnumDescriptor* SolverParameter_SolverType_descriptor() {
4093   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4094   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[4];
4095 }
SolverParameter_SolverType_IsValid(int value)4096 bool SolverParameter_SolverType_IsValid(int value) {
4097   switch (value) {
4098     case 0:
4099     case 1:
4100     case 2:
4101     case 3:
4102     case 4:
4103     case 5:
4104       return true;
4105     default:
4106       return false;
4107   }
4108 }
4109 
4110 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4111 const SolverParameter_SolverType SolverParameter::SGD;
4112 const SolverParameter_SolverType SolverParameter::NESTEROV;
4113 const SolverParameter_SolverType SolverParameter::ADAGRAD;
4114 const SolverParameter_SolverType SolverParameter::RMSPROP;
4115 const SolverParameter_SolverType SolverParameter::ADADELTA;
4116 const SolverParameter_SolverType SolverParameter::ADAM;
4117 const SolverParameter_SolverType SolverParameter::SolverType_MIN;
4118 const SolverParameter_SolverType SolverParameter::SolverType_MAX;
4119 const int SolverParameter::SolverType_ARRAYSIZE;
4120 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
ParamSpec_DimCheckMode_descriptor()4121 const ::google::protobuf::EnumDescriptor* ParamSpec_DimCheckMode_descriptor() {
4122   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4123   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[5];
4124 }
ParamSpec_DimCheckMode_IsValid(int value)4125 bool ParamSpec_DimCheckMode_IsValid(int value) {
4126   switch (value) {
4127     case 0:
4128     case 1:
4129       return true;
4130     default:
4131       return false;
4132   }
4133 }
4134 
4135 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4136 const ParamSpec_DimCheckMode ParamSpec::STRICT;
4137 const ParamSpec_DimCheckMode ParamSpec::PERMISSIVE;
4138 const ParamSpec_DimCheckMode ParamSpec::DimCheckMode_MIN;
4139 const ParamSpec_DimCheckMode ParamSpec::DimCheckMode_MAX;
4140 const int ParamSpec::DimCheckMode_ARRAYSIZE;
4141 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
LossParameter_NormalizationMode_descriptor()4142 const ::google::protobuf::EnumDescriptor* LossParameter_NormalizationMode_descriptor() {
4143   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4144   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[6];
4145 }
LossParameter_NormalizationMode_IsValid(int value)4146 bool LossParameter_NormalizationMode_IsValid(int value) {
4147   switch (value) {
4148     case 0:
4149     case 1:
4150     case 2:
4151     case 3:
4152       return true;
4153     default:
4154       return false;
4155   }
4156 }
4157 
4158 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4159 const LossParameter_NormalizationMode LossParameter::FULL;
4160 const LossParameter_NormalizationMode LossParameter::VALID;
4161 const LossParameter_NormalizationMode LossParameter::BATCH_SIZE;
4162 const LossParameter_NormalizationMode LossParameter::NONE;
4163 const LossParameter_NormalizationMode LossParameter::NormalizationMode_MIN;
4164 const LossParameter_NormalizationMode LossParameter::NormalizationMode_MAX;
4165 const int LossParameter::NormalizationMode_ARRAYSIZE;
4166 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
ConvolutionParameter_Engine_descriptor()4167 const ::google::protobuf::EnumDescriptor* ConvolutionParameter_Engine_descriptor() {
4168   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4169   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[7];
4170 }
ConvolutionParameter_Engine_IsValid(int value)4171 bool ConvolutionParameter_Engine_IsValid(int value) {
4172   switch (value) {
4173     case 0:
4174     case 1:
4175     case 2:
4176       return true;
4177     default:
4178       return false;
4179   }
4180 }
4181 
4182 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4183 const ConvolutionParameter_Engine ConvolutionParameter::DEFAULT;
4184 const ConvolutionParameter_Engine ConvolutionParameter::CAFFE;
4185 const ConvolutionParameter_Engine ConvolutionParameter::CUDNN;
4186 const ConvolutionParameter_Engine ConvolutionParameter::Engine_MIN;
4187 const ConvolutionParameter_Engine ConvolutionParameter::Engine_MAX;
4188 const int ConvolutionParameter::Engine_ARRAYSIZE;
4189 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
DataParameter_DB_descriptor()4190 const ::google::protobuf::EnumDescriptor* DataParameter_DB_descriptor() {
4191   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4192   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[8];
4193 }
DataParameter_DB_IsValid(int value)4194 bool DataParameter_DB_IsValid(int value) {
4195   switch (value) {
4196     case 0:
4197     case 1:
4198       return true;
4199     default:
4200       return false;
4201   }
4202 }
4203 
4204 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4205 const DataParameter_DB DataParameter::LEVELDB;
4206 const DataParameter_DB DataParameter::LMDB;
4207 const DataParameter_DB DataParameter::DB_MIN;
4208 const DataParameter_DB DataParameter::DB_MAX;
4209 const int DataParameter::DB_ARRAYSIZE;
4210 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
EltwiseParameter_EltwiseOp_descriptor()4211 const ::google::protobuf::EnumDescriptor* EltwiseParameter_EltwiseOp_descriptor() {
4212   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4213   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[9];
4214 }
EltwiseParameter_EltwiseOp_IsValid(int value)4215 bool EltwiseParameter_EltwiseOp_IsValid(int value) {
4216   switch (value) {
4217     case 0:
4218     case 1:
4219     case 2:
4220       return true;
4221     default:
4222       return false;
4223   }
4224 }
4225 
4226 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4227 const EltwiseParameter_EltwiseOp EltwiseParameter::PROD;
4228 const EltwiseParameter_EltwiseOp EltwiseParameter::SUM;
4229 const EltwiseParameter_EltwiseOp EltwiseParameter::MAX;
4230 const EltwiseParameter_EltwiseOp EltwiseParameter::EltwiseOp_MIN;
4231 const EltwiseParameter_EltwiseOp EltwiseParameter::EltwiseOp_MAX;
4232 const int EltwiseParameter::EltwiseOp_ARRAYSIZE;
4233 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
HingeLossParameter_Norm_descriptor()4234 const ::google::protobuf::EnumDescriptor* HingeLossParameter_Norm_descriptor() {
4235   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4236   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[10];
4237 }
HingeLossParameter_Norm_IsValid(int value)4238 bool HingeLossParameter_Norm_IsValid(int value) {
4239   switch (value) {
4240     case 1:
4241     case 2:
4242       return true;
4243     default:
4244       return false;
4245   }
4246 }
4247 
4248 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4249 const HingeLossParameter_Norm HingeLossParameter::L1;
4250 const HingeLossParameter_Norm HingeLossParameter::L2;
4251 const HingeLossParameter_Norm HingeLossParameter::Norm_MIN;
4252 const HingeLossParameter_Norm HingeLossParameter::Norm_MAX;
4253 const int HingeLossParameter::Norm_ARRAYSIZE;
4254 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
LRNParameter_NormRegion_descriptor()4255 const ::google::protobuf::EnumDescriptor* LRNParameter_NormRegion_descriptor() {
4256   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4257   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[11];
4258 }
LRNParameter_NormRegion_IsValid(int value)4259 bool LRNParameter_NormRegion_IsValid(int value) {
4260   switch (value) {
4261     case 0:
4262     case 1:
4263       return true;
4264     default:
4265       return false;
4266   }
4267 }
4268 
4269 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4270 const LRNParameter_NormRegion LRNParameter::ACROSS_CHANNELS;
4271 const LRNParameter_NormRegion LRNParameter::WITHIN_CHANNEL;
4272 const LRNParameter_NormRegion LRNParameter::NormRegion_MIN;
4273 const LRNParameter_NormRegion LRNParameter::NormRegion_MAX;
4274 const int LRNParameter::NormRegion_ARRAYSIZE;
4275 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
LRNParameter_Engine_descriptor()4276 const ::google::protobuf::EnumDescriptor* LRNParameter_Engine_descriptor() {
4277   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4278   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[12];
4279 }
LRNParameter_Engine_IsValid(int value)4280 bool LRNParameter_Engine_IsValid(int value) {
4281   switch (value) {
4282     case 0:
4283     case 1:
4284     case 2:
4285       return true;
4286     default:
4287       return false;
4288   }
4289 }
4290 
4291 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4292 const LRNParameter_Engine LRNParameter::DEFAULT;
4293 const LRNParameter_Engine LRNParameter::CAFFE;
4294 const LRNParameter_Engine LRNParameter::CUDNN;
4295 const LRNParameter_Engine LRNParameter::Engine_MIN;
4296 const LRNParameter_Engine LRNParameter::Engine_MAX;
4297 const int LRNParameter::Engine_ARRAYSIZE;
4298 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
PoolingParameter_PoolMethod_descriptor()4299 const ::google::protobuf::EnumDescriptor* PoolingParameter_PoolMethod_descriptor() {
4300   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4301   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[13];
4302 }
PoolingParameter_PoolMethod_IsValid(int value)4303 bool PoolingParameter_PoolMethod_IsValid(int value) {
4304   switch (value) {
4305     case 0:
4306     case 1:
4307     case 2:
4308       return true;
4309     default:
4310       return false;
4311   }
4312 }
4313 
4314 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4315 const PoolingParameter_PoolMethod PoolingParameter::MAX;
4316 const PoolingParameter_PoolMethod PoolingParameter::AVE;
4317 const PoolingParameter_PoolMethod PoolingParameter::STOCHASTIC;
4318 const PoolingParameter_PoolMethod PoolingParameter::PoolMethod_MIN;
4319 const PoolingParameter_PoolMethod PoolingParameter::PoolMethod_MAX;
4320 const int PoolingParameter::PoolMethod_ARRAYSIZE;
4321 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
PoolingParameter_Engine_descriptor()4322 const ::google::protobuf::EnumDescriptor* PoolingParameter_Engine_descriptor() {
4323   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4324   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[14];
4325 }
PoolingParameter_Engine_IsValid(int value)4326 bool PoolingParameter_Engine_IsValid(int value) {
4327   switch (value) {
4328     case 0:
4329     case 1:
4330     case 2:
4331       return true;
4332     default:
4333       return false;
4334   }
4335 }
4336 
4337 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4338 const PoolingParameter_Engine PoolingParameter::DEFAULT;
4339 const PoolingParameter_Engine PoolingParameter::CAFFE;
4340 const PoolingParameter_Engine PoolingParameter::CUDNN;
4341 const PoolingParameter_Engine PoolingParameter::Engine_MIN;
4342 const PoolingParameter_Engine PoolingParameter::Engine_MAX;
4343 const int PoolingParameter::Engine_ARRAYSIZE;
4344 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
ReductionParameter_ReductionOp_descriptor()4345 const ::google::protobuf::EnumDescriptor* ReductionParameter_ReductionOp_descriptor() {
4346   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4347   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[15];
4348 }
ReductionParameter_ReductionOp_IsValid(int value)4349 bool ReductionParameter_ReductionOp_IsValid(int value) {
4350   switch (value) {
4351     case 1:
4352     case 2:
4353     case 3:
4354     case 4:
4355       return true;
4356     default:
4357       return false;
4358   }
4359 }
4360 
4361 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4362 const ReductionParameter_ReductionOp ReductionParameter::SUM;
4363 const ReductionParameter_ReductionOp ReductionParameter::ASUM;
4364 const ReductionParameter_ReductionOp ReductionParameter::SUMSQ;
4365 const ReductionParameter_ReductionOp ReductionParameter::MEAN;
4366 const ReductionParameter_ReductionOp ReductionParameter::ReductionOp_MIN;
4367 const ReductionParameter_ReductionOp ReductionParameter::ReductionOp_MAX;
4368 const int ReductionParameter::ReductionOp_ARRAYSIZE;
4369 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
ReLUParameter_Engine_descriptor()4370 const ::google::protobuf::EnumDescriptor* ReLUParameter_Engine_descriptor() {
4371   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4372   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[16];
4373 }
ReLUParameter_Engine_IsValid(int value)4374 bool ReLUParameter_Engine_IsValid(int value) {
4375   switch (value) {
4376     case 0:
4377     case 1:
4378     case 2:
4379       return true;
4380     default:
4381       return false;
4382   }
4383 }
4384 
4385 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4386 const ReLUParameter_Engine ReLUParameter::DEFAULT;
4387 const ReLUParameter_Engine ReLUParameter::CAFFE;
4388 const ReLUParameter_Engine ReLUParameter::CUDNN;
4389 const ReLUParameter_Engine ReLUParameter::Engine_MIN;
4390 const ReLUParameter_Engine ReLUParameter::Engine_MAX;
4391 const int ReLUParameter::Engine_ARRAYSIZE;
4392 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
SigmoidParameter_Engine_descriptor()4393 const ::google::protobuf::EnumDescriptor* SigmoidParameter_Engine_descriptor() {
4394   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4395   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[17];
4396 }
SigmoidParameter_Engine_IsValid(int value)4397 bool SigmoidParameter_Engine_IsValid(int value) {
4398   switch (value) {
4399     case 0:
4400     case 1:
4401     case 2:
4402       return true;
4403     default:
4404       return false;
4405   }
4406 }
4407 
4408 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4409 const SigmoidParameter_Engine SigmoidParameter::DEFAULT;
4410 const SigmoidParameter_Engine SigmoidParameter::CAFFE;
4411 const SigmoidParameter_Engine SigmoidParameter::CUDNN;
4412 const SigmoidParameter_Engine SigmoidParameter::Engine_MIN;
4413 const SigmoidParameter_Engine SigmoidParameter::Engine_MAX;
4414 const int SigmoidParameter::Engine_ARRAYSIZE;
4415 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
SoftmaxParameter_Engine_descriptor()4416 const ::google::protobuf::EnumDescriptor* SoftmaxParameter_Engine_descriptor() {
4417   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4418   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[18];
4419 }
SoftmaxParameter_Engine_IsValid(int value)4420 bool SoftmaxParameter_Engine_IsValid(int value) {
4421   switch (value) {
4422     case 0:
4423     case 1:
4424     case 2:
4425       return true;
4426     default:
4427       return false;
4428   }
4429 }
4430 
4431 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4432 const SoftmaxParameter_Engine SoftmaxParameter::DEFAULT;
4433 const SoftmaxParameter_Engine SoftmaxParameter::CAFFE;
4434 const SoftmaxParameter_Engine SoftmaxParameter::CUDNN;
4435 const SoftmaxParameter_Engine SoftmaxParameter::Engine_MIN;
4436 const SoftmaxParameter_Engine SoftmaxParameter::Engine_MAX;
4437 const int SoftmaxParameter::Engine_ARRAYSIZE;
4438 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
TanHParameter_Engine_descriptor()4439 const ::google::protobuf::EnumDescriptor* TanHParameter_Engine_descriptor() {
4440   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4441   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[19];
4442 }
TanHParameter_Engine_IsValid(int value)4443 bool TanHParameter_Engine_IsValid(int value) {
4444   switch (value) {
4445     case 0:
4446     case 1:
4447     case 2:
4448       return true;
4449     default:
4450       return false;
4451   }
4452 }
4453 
4454 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4455 const TanHParameter_Engine TanHParameter::DEFAULT;
4456 const TanHParameter_Engine TanHParameter::CAFFE;
4457 const TanHParameter_Engine TanHParameter::CUDNN;
4458 const TanHParameter_Engine TanHParameter::Engine_MIN;
4459 const TanHParameter_Engine TanHParameter::Engine_MAX;
4460 const int TanHParameter::Engine_ARRAYSIZE;
4461 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
SPPParameter_PoolMethod_descriptor()4462 const ::google::protobuf::EnumDescriptor* SPPParameter_PoolMethod_descriptor() {
4463   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4464   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[20];
4465 }
SPPParameter_PoolMethod_IsValid(int value)4466 bool SPPParameter_PoolMethod_IsValid(int value) {
4467   switch (value) {
4468     case 0:
4469     case 1:
4470     case 2:
4471       return true;
4472     default:
4473       return false;
4474   }
4475 }
4476 
4477 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4478 const SPPParameter_PoolMethod SPPParameter::MAX;
4479 const SPPParameter_PoolMethod SPPParameter::AVE;
4480 const SPPParameter_PoolMethod SPPParameter::STOCHASTIC;
4481 const SPPParameter_PoolMethod SPPParameter::PoolMethod_MIN;
4482 const SPPParameter_PoolMethod SPPParameter::PoolMethod_MAX;
4483 const int SPPParameter::PoolMethod_ARRAYSIZE;
4484 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
SPPParameter_Engine_descriptor()4485 const ::google::protobuf::EnumDescriptor* SPPParameter_Engine_descriptor() {
4486   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4487   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[21];
4488 }
SPPParameter_Engine_IsValid(int value)4489 bool SPPParameter_Engine_IsValid(int value) {
4490   switch (value) {
4491     case 0:
4492     case 1:
4493     case 2:
4494       return true;
4495     default:
4496       return false;
4497   }
4498 }
4499 
4500 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4501 const SPPParameter_Engine SPPParameter::DEFAULT;
4502 const SPPParameter_Engine SPPParameter::CAFFE;
4503 const SPPParameter_Engine SPPParameter::CUDNN;
4504 const SPPParameter_Engine SPPParameter::Engine_MIN;
4505 const SPPParameter_Engine SPPParameter::Engine_MAX;
4506 const int SPPParameter::Engine_ARRAYSIZE;
4507 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
V1LayerParameter_LayerType_descriptor()4508 const ::google::protobuf::EnumDescriptor* V1LayerParameter_LayerType_descriptor() {
4509   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4510   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[22];
4511 }
V1LayerParameter_LayerType_IsValid(int value)4512 bool V1LayerParameter_LayerType_IsValid(int value) {
4513   switch (value) {
4514     case 0:
4515     case 1:
4516     case 2:
4517     case 3:
4518     case 4:
4519     case 5:
4520     case 6:
4521     case 7:
4522     case 8:
4523     case 9:
4524     case 10:
4525     case 11:
4526     case 12:
4527     case 13:
4528     case 14:
4529     case 15:
4530     case 16:
4531     case 17:
4532     case 18:
4533     case 19:
4534     case 20:
4535     case 21:
4536     case 22:
4537     case 23:
4538     case 24:
4539     case 25:
4540     case 26:
4541     case 27:
4542     case 28:
4543     case 29:
4544     case 30:
4545     case 31:
4546     case 32:
4547     case 33:
4548     case 34:
4549     case 35:
4550     case 36:
4551     case 37:
4552     case 38:
4553     case 39:
4554       return true;
4555     default:
4556       return false;
4557   }
4558 }
4559 
4560 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4561 const V1LayerParameter_LayerType V1LayerParameter::NONE;
4562 const V1LayerParameter_LayerType V1LayerParameter::ABSVAL;
4563 const V1LayerParameter_LayerType V1LayerParameter::ACCURACY;
4564 const V1LayerParameter_LayerType V1LayerParameter::ARGMAX;
4565 const V1LayerParameter_LayerType V1LayerParameter::BNLL;
4566 const V1LayerParameter_LayerType V1LayerParameter::CONCAT;
4567 const V1LayerParameter_LayerType V1LayerParameter::CONTRASTIVE_LOSS;
4568 const V1LayerParameter_LayerType V1LayerParameter::CONVOLUTION;
4569 const V1LayerParameter_LayerType V1LayerParameter::DATA;
4570 const V1LayerParameter_LayerType V1LayerParameter::DECONVOLUTION;
4571 const V1LayerParameter_LayerType V1LayerParameter::DROPOUT;
4572 const V1LayerParameter_LayerType V1LayerParameter::DUMMY_DATA;
4573 const V1LayerParameter_LayerType V1LayerParameter::EUCLIDEAN_LOSS;
4574 const V1LayerParameter_LayerType V1LayerParameter::ELTWISE;
4575 const V1LayerParameter_LayerType V1LayerParameter::EXP;
4576 const V1LayerParameter_LayerType V1LayerParameter::FLATTEN;
4577 const V1LayerParameter_LayerType V1LayerParameter::HDF5_DATA;
4578 const V1LayerParameter_LayerType V1LayerParameter::HDF5_OUTPUT;
4579 const V1LayerParameter_LayerType V1LayerParameter::HINGE_LOSS;
4580 const V1LayerParameter_LayerType V1LayerParameter::IM2COL;
4581 const V1LayerParameter_LayerType V1LayerParameter::IMAGE_DATA;
4582 const V1LayerParameter_LayerType V1LayerParameter::INFOGAIN_LOSS;
4583 const V1LayerParameter_LayerType V1LayerParameter::INNER_PRODUCT;
4584 const V1LayerParameter_LayerType V1LayerParameter::LRN;
4585 const V1LayerParameter_LayerType V1LayerParameter::MEMORY_DATA;
4586 const V1LayerParameter_LayerType V1LayerParameter::MULTINOMIAL_LOGISTIC_LOSS;
4587 const V1LayerParameter_LayerType V1LayerParameter::MVN;
4588 const V1LayerParameter_LayerType V1LayerParameter::POOLING;
4589 const V1LayerParameter_LayerType V1LayerParameter::POWER;
4590 const V1LayerParameter_LayerType V1LayerParameter::RELU;
4591 const V1LayerParameter_LayerType V1LayerParameter::SIGMOID;
4592 const V1LayerParameter_LayerType V1LayerParameter::SIGMOID_CROSS_ENTROPY_LOSS;
4593 const V1LayerParameter_LayerType V1LayerParameter::SILENCE;
4594 const V1LayerParameter_LayerType V1LayerParameter::SOFTMAX;
4595 const V1LayerParameter_LayerType V1LayerParameter::SOFTMAX_LOSS;
4596 const V1LayerParameter_LayerType V1LayerParameter::SPLIT;
4597 const V1LayerParameter_LayerType V1LayerParameter::SLICE;
4598 const V1LayerParameter_LayerType V1LayerParameter::TANH;
4599 const V1LayerParameter_LayerType V1LayerParameter::WINDOW_DATA;
4600 const V1LayerParameter_LayerType V1LayerParameter::THRESHOLD;
4601 const V1LayerParameter_LayerType V1LayerParameter::LayerType_MIN;
4602 const V1LayerParameter_LayerType V1LayerParameter::LayerType_MAX;
4603 const int V1LayerParameter::LayerType_ARRAYSIZE;
4604 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
V1LayerParameter_DimCheckMode_descriptor()4605 const ::google::protobuf::EnumDescriptor* V1LayerParameter_DimCheckMode_descriptor() {
4606   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4607   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[23];
4608 }
V1LayerParameter_DimCheckMode_IsValid(int value)4609 bool V1LayerParameter_DimCheckMode_IsValid(int value) {
4610   switch (value) {
4611     case 0:
4612     case 1:
4613       return true;
4614     default:
4615       return false;
4616   }
4617 }
4618 
4619 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4620 const V1LayerParameter_DimCheckMode V1LayerParameter::STRICT;
4621 const V1LayerParameter_DimCheckMode V1LayerParameter::PERMISSIVE;
4622 const V1LayerParameter_DimCheckMode V1LayerParameter::DimCheckMode_MIN;
4623 const V1LayerParameter_DimCheckMode V1LayerParameter::DimCheckMode_MAX;
4624 const int V1LayerParameter::DimCheckMode_ARRAYSIZE;
4625 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
V0LayerParameter_PoolMethod_descriptor()4626 const ::google::protobuf::EnumDescriptor* V0LayerParameter_PoolMethod_descriptor() {
4627   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4628   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[24];
4629 }
V0LayerParameter_PoolMethod_IsValid(int value)4630 bool V0LayerParameter_PoolMethod_IsValid(int value) {
4631   switch (value) {
4632     case 0:
4633     case 1:
4634     case 2:
4635       return true;
4636     default:
4637       return false;
4638   }
4639 }
4640 
4641 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4642 const V0LayerParameter_PoolMethod V0LayerParameter::MAX;
4643 const V0LayerParameter_PoolMethod V0LayerParameter::AVE;
4644 const V0LayerParameter_PoolMethod V0LayerParameter::STOCHASTIC;
4645 const V0LayerParameter_PoolMethod V0LayerParameter::PoolMethod_MIN;
4646 const V0LayerParameter_PoolMethod V0LayerParameter::PoolMethod_MAX;
4647 const int V0LayerParameter::PoolMethod_ARRAYSIZE;
4648 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
Type_descriptor()4649 const ::google::protobuf::EnumDescriptor* Type_descriptor() {
4650   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4651   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[25];
4652 }
Type_IsValid(int value)4653 bool Type_IsValid(int value) {
4654   switch (value) {
4655     case 0:
4656     case 1:
4657     case 2:
4658     case 3:
4659     case 4:
4660       return true;
4661     default:
4662       return false;
4663   }
4664 }
4665 
Phase_descriptor()4666 const ::google::protobuf::EnumDescriptor* Phase_descriptor() {
4667   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4668   return protobuf_opencv_2dcaffe_2eproto::file_level_enum_descriptors[26];
4669 }
Phase_IsValid(int value)4670 bool Phase_IsValid(int value) {
4671   switch (value) {
4672     case 0:
4673     case 1:
4674       return true;
4675     default:
4676       return false;
4677   }
4678 }
4679 
4680 
4681 // ===================================================================
4682 
InitAsDefaultInstance()4683 void BlobShape::InitAsDefaultInstance() {
4684 }
4685 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4686 const int BlobShape::kDimFieldNumber;
4687 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4688 
BlobShape()4689 BlobShape::BlobShape()
4690   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4691   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4692     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape();
4693   }
4694   SharedCtor();
4695   // @@protoc_insertion_point(constructor:opencv_caffe.BlobShape)
4696 }
BlobShape(const BlobShape & from)4697 BlobShape::BlobShape(const BlobShape& from)
4698   : ::google::protobuf::Message(),
4699       _internal_metadata_(NULL),
4700       _has_bits_(from._has_bits_),
4701       _cached_size_(0),
4702       dim_(from.dim_) {
4703   _internal_metadata_.MergeFrom(from._internal_metadata_);
4704   // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobShape)
4705 }
4706 
SharedCtor()4707 void BlobShape::SharedCtor() {
4708   _cached_size_ = 0;
4709 }
4710 
~BlobShape()4711 BlobShape::~BlobShape() {
4712   // @@protoc_insertion_point(destructor:opencv_caffe.BlobShape)
4713   SharedDtor();
4714 }
4715 
SharedDtor()4716 void BlobShape::SharedDtor() {
4717 }
4718 
SetCachedSize(int size) const4719 void BlobShape::SetCachedSize(int size) const {
4720   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4721   _cached_size_ = size;
4722   GOOGLE_SAFE_CONCURRENT_WRITES_END();
4723 }
descriptor()4724 const ::google::protobuf::Descriptor* BlobShape::descriptor() {
4725   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4726   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4727 }
4728 
default_instance()4729 const BlobShape& BlobShape::default_instance() {
4730   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobShape();
4731   return *internal_default_instance();
4732 }
4733 
New(::google::protobuf::Arena * arena) const4734 BlobShape* BlobShape::New(::google::protobuf::Arena* arena) const {
4735   BlobShape* n = new BlobShape;
4736   if (arena != NULL) {
4737     arena->Own(n);
4738   }
4739   return n;
4740 }
4741 
Clear()4742 void BlobShape::Clear() {
4743 // @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobShape)
4744   ::google::protobuf::uint32 cached_has_bits = 0;
4745   // Prevent compiler warnings about cached_has_bits being unused
4746   (void) cached_has_bits;
4747 
4748   dim_.Clear();
4749   _has_bits_.Clear();
4750   _internal_metadata_.Clear();
4751 }
4752 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)4753 bool BlobShape::MergePartialFromCodedStream(
4754     ::google::protobuf::io::CodedInputStream* input) {
4755 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4756   ::google::protobuf::uint32 tag;
4757   // @@protoc_insertion_point(parse_start:opencv_caffe.BlobShape)
4758   for (;;) {
4759     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4760     tag = p.first;
4761     if (!p.second) goto handle_unusual;
4762     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4763       // repeated int64 dim = 1 [packed = true];
4764       case 1: {
4765         if (static_cast< ::google::protobuf::uint8>(tag) ==
4766             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4767           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
4768                    ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
4769                  input, this->mutable_dim())));
4770         } else if (
4771             static_cast< ::google::protobuf::uint8>(tag) ==
4772             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4773           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
4774                    ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
4775                  1, 10u, input, this->mutable_dim())));
4776         } else {
4777           goto handle_unusual;
4778         }
4779         break;
4780       }
4781 
4782       default: {
4783       handle_unusual:
4784         if (tag == 0) {
4785           goto success;
4786         }
4787         DO_(::google::protobuf::internal::WireFormat::SkipField(
4788               input, tag, _internal_metadata_.mutable_unknown_fields()));
4789         break;
4790       }
4791     }
4792   }
4793 success:
4794   // @@protoc_insertion_point(parse_success:opencv_caffe.BlobShape)
4795   return true;
4796 failure:
4797   // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobShape)
4798   return false;
4799 #undef DO_
4800 }
4801 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const4802 void BlobShape::SerializeWithCachedSizes(
4803     ::google::protobuf::io::CodedOutputStream* output) const {
4804   // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobShape)
4805   ::google::protobuf::uint32 cached_has_bits = 0;
4806   (void) cached_has_bits;
4807 
4808   // repeated int64 dim = 1 [packed = true];
4809   if (this->dim_size() > 0) {
4810     ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
4811     output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
4812         _dim_cached_byte_size_));
4813   }
4814   for (int i = 0, n = this->dim_size(); i < n; i++) {
4815     ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag(
4816       this->dim(i), output);
4817   }
4818 
4819   if (_internal_metadata_.have_unknown_fields()) {
4820     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4821         _internal_metadata_.unknown_fields(), output);
4822   }
4823   // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobShape)
4824 }
4825 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const4826 ::google::protobuf::uint8* BlobShape::InternalSerializeWithCachedSizesToArray(
4827     bool deterministic, ::google::protobuf::uint8* target) const {
4828   (void)deterministic; // Unused
4829   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobShape)
4830   ::google::protobuf::uint32 cached_has_bits = 0;
4831   (void) cached_has_bits;
4832 
4833   // repeated int64 dim = 1 [packed = true];
4834   if (this->dim_size() > 0) {
4835     target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
4836       1,
4837       ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
4838       target);
4839     target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
4840         static_cast< ::google::protobuf::int32>(
4841             _dim_cached_byte_size_), target);
4842     target = ::google::protobuf::internal::WireFormatLite::
4843       WriteInt64NoTagToArray(this->dim_, target);
4844   }
4845 
4846   if (_internal_metadata_.have_unknown_fields()) {
4847     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4848         _internal_metadata_.unknown_fields(), target);
4849   }
4850   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobShape)
4851   return target;
4852 }
4853 
ByteSizeLong() const4854 size_t BlobShape::ByteSizeLong() const {
4855 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobShape)
4856   size_t total_size = 0;
4857 
4858   if (_internal_metadata_.have_unknown_fields()) {
4859     total_size +=
4860       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4861         _internal_metadata_.unknown_fields());
4862   }
4863   // repeated int64 dim = 1 [packed = true];
4864   {
4865     size_t data_size = ::google::protobuf::internal::WireFormatLite::
4866       Int64Size(this->dim_);
4867     if (data_size > 0) {
4868       total_size += 1 +
4869         ::google::protobuf::internal::WireFormatLite::Int32Size(
4870             static_cast< ::google::protobuf::int32>(data_size));
4871     }
4872     int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
4873     GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4874     _dim_cached_byte_size_ = cached_size;
4875     GOOGLE_SAFE_CONCURRENT_WRITES_END();
4876     total_size += data_size;
4877   }
4878 
4879   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4880   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4881   _cached_size_ = cached_size;
4882   GOOGLE_SAFE_CONCURRENT_WRITES_END();
4883   return total_size;
4884 }
4885 
MergeFrom(const::google::protobuf::Message & from)4886 void BlobShape::MergeFrom(const ::google::protobuf::Message& from) {
4887 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobShape)
4888   GOOGLE_DCHECK_NE(&from, this);
4889   const BlobShape* source =
4890       ::google::protobuf::internal::DynamicCastToGenerated<const BlobShape>(
4891           &from);
4892   if (source == NULL) {
4893   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobShape)
4894     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4895   } else {
4896   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobShape)
4897     MergeFrom(*source);
4898   }
4899 }
4900 
MergeFrom(const BlobShape & from)4901 void BlobShape::MergeFrom(const BlobShape& from) {
4902 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobShape)
4903   GOOGLE_DCHECK_NE(&from, this);
4904   _internal_metadata_.MergeFrom(from._internal_metadata_);
4905   ::google::protobuf::uint32 cached_has_bits = 0;
4906   (void) cached_has_bits;
4907 
4908   dim_.MergeFrom(from.dim_);
4909 }
4910 
CopyFrom(const::google::protobuf::Message & from)4911 void BlobShape::CopyFrom(const ::google::protobuf::Message& from) {
4912 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobShape)
4913   if (&from == this) return;
4914   Clear();
4915   MergeFrom(from);
4916 }
4917 
CopyFrom(const BlobShape & from)4918 void BlobShape::CopyFrom(const BlobShape& from) {
4919 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobShape)
4920   if (&from == this) return;
4921   Clear();
4922   MergeFrom(from);
4923 }
4924 
IsInitialized() const4925 bool BlobShape::IsInitialized() const {
4926   return true;
4927 }
4928 
Swap(BlobShape * other)4929 void BlobShape::Swap(BlobShape* other) {
4930   if (other == this) return;
4931   InternalSwap(other);
4932 }
InternalSwap(BlobShape * other)4933 void BlobShape::InternalSwap(BlobShape* other) {
4934   using std::swap;
4935   dim_.InternalSwap(&other->dim_);
4936   swap(_has_bits_[0], other->_has_bits_[0]);
4937   _internal_metadata_.Swap(&other->_internal_metadata_);
4938   swap(_cached_size_, other->_cached_size_);
4939 }
4940 
GetMetadata() const4941 ::google::protobuf::Metadata BlobShape::GetMetadata() const {
4942   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
4943   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
4944 }
4945 
4946 
4947 // ===================================================================
4948 
InitAsDefaultInstance()4949 void BlobProto::InitAsDefaultInstance() {
4950   ::opencv_caffe::_BlobProto_default_instance_._instance.get_mutable()->shape_ = const_cast< ::opencv_caffe::BlobShape*>(
4951       ::opencv_caffe::BlobShape::internal_default_instance());
4952 }
4953 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4954 const int BlobProto::kShapeFieldNumber;
4955 const int BlobProto::kDataFieldNumber;
4956 const int BlobProto::kDiffFieldNumber;
4957 const int BlobProto::kDoubleDataFieldNumber;
4958 const int BlobProto::kDoubleDiffFieldNumber;
4959 const int BlobProto::kRawDataTypeFieldNumber;
4960 const int BlobProto::kRawDataFieldNumber;
4961 const int BlobProto::kNumFieldNumber;
4962 const int BlobProto::kChannelsFieldNumber;
4963 const int BlobProto::kHeightFieldNumber;
4964 const int BlobProto::kWidthFieldNumber;
4965 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4966 
BlobProto()4967 BlobProto::BlobProto()
4968   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4969   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4970     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto();
4971   }
4972   SharedCtor();
4973   // @@protoc_insertion_point(constructor:opencv_caffe.BlobProto)
4974 }
BlobProto(const BlobProto & from)4975 BlobProto::BlobProto(const BlobProto& from)
4976   : ::google::protobuf::Message(),
4977       _internal_metadata_(NULL),
4978       _has_bits_(from._has_bits_),
4979       _cached_size_(0),
4980       data_(from.data_),
4981       diff_(from.diff_),
4982       double_data_(from.double_data_),
4983       double_diff_(from.double_diff_) {
4984   _internal_metadata_.MergeFrom(from._internal_metadata_);
4985   raw_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4986   if (from.has_raw_data()) {
4987     raw_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_data_);
4988   }
4989   if (from.has_shape()) {
4990     shape_ = new ::opencv_caffe::BlobShape(*from.shape_);
4991   } else {
4992     shape_ = NULL;
4993   }
4994   ::memcpy(&num_, &from.num_,
4995     static_cast<size_t>(reinterpret_cast<char*>(&raw_data_type_) -
4996     reinterpret_cast<char*>(&num_)) + sizeof(raw_data_type_));
4997   // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobProto)
4998 }
4999 
SharedCtor()5000 void BlobProto::SharedCtor() {
5001   _cached_size_ = 0;
5002   raw_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5003   ::memset(&shape_, 0, static_cast<size_t>(
5004       reinterpret_cast<char*>(&raw_data_type_) -
5005       reinterpret_cast<char*>(&shape_)) + sizeof(raw_data_type_));
5006 }
5007 
~BlobProto()5008 BlobProto::~BlobProto() {
5009   // @@protoc_insertion_point(destructor:opencv_caffe.BlobProto)
5010   SharedDtor();
5011 }
5012 
SharedDtor()5013 void BlobProto::SharedDtor() {
5014   raw_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5015   if (this != internal_default_instance()) delete shape_;
5016 }
5017 
SetCachedSize(int size) const5018 void BlobProto::SetCachedSize(int size) const {
5019   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5020   _cached_size_ = size;
5021   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5022 }
descriptor()5023 const ::google::protobuf::Descriptor* BlobProto::descriptor() {
5024   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
5025   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5026 }
5027 
default_instance()5028 const BlobProto& BlobProto::default_instance() {
5029   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProto();
5030   return *internal_default_instance();
5031 }
5032 
New(::google::protobuf::Arena * arena) const5033 BlobProto* BlobProto::New(::google::protobuf::Arena* arena) const {
5034   BlobProto* n = new BlobProto;
5035   if (arena != NULL) {
5036     arena->Own(n);
5037   }
5038   return n;
5039 }
5040 
Clear()5041 void BlobProto::Clear() {
5042 // @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobProto)
5043   ::google::protobuf::uint32 cached_has_bits = 0;
5044   // Prevent compiler warnings about cached_has_bits being unused
5045   (void) cached_has_bits;
5046 
5047   data_.Clear();
5048   diff_.Clear();
5049   double_data_.Clear();
5050   double_diff_.Clear();
5051   cached_has_bits = _has_bits_[0];
5052   if (cached_has_bits & 3u) {
5053     if (cached_has_bits & 0x00000001u) {
5054       GOOGLE_DCHECK(!raw_data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5055       (*raw_data_.UnsafeRawStringPointer())->clear();
5056     }
5057     if (cached_has_bits & 0x00000002u) {
5058       GOOGLE_DCHECK(shape_ != NULL);
5059       shape_->Clear();
5060     }
5061   }
5062   if (cached_has_bits & 124u) {
5063     ::memset(&num_, 0, static_cast<size_t>(
5064         reinterpret_cast<char*>(&raw_data_type_) -
5065         reinterpret_cast<char*>(&num_)) + sizeof(raw_data_type_));
5066   }
5067   _has_bits_.Clear();
5068   _internal_metadata_.Clear();
5069 }
5070 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)5071 bool BlobProto::MergePartialFromCodedStream(
5072     ::google::protobuf::io::CodedInputStream* input) {
5073 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5074   ::google::protobuf::uint32 tag;
5075   // @@protoc_insertion_point(parse_start:opencv_caffe.BlobProto)
5076   for (;;) {
5077     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5078     tag = p.first;
5079     if (!p.second) goto handle_unusual;
5080     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5081       // optional int32 num = 1 [default = 0];
5082       case 1: {
5083         if (static_cast< ::google::protobuf::uint8>(tag) ==
5084             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5085           set_has_num();
5086           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5087                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5088                  input, &num_)));
5089         } else {
5090           goto handle_unusual;
5091         }
5092         break;
5093       }
5094 
5095       // optional int32 channels = 2 [default = 0];
5096       case 2: {
5097         if (static_cast< ::google::protobuf::uint8>(tag) ==
5098             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5099           set_has_channels();
5100           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5101                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5102                  input, &channels_)));
5103         } else {
5104           goto handle_unusual;
5105         }
5106         break;
5107       }
5108 
5109       // optional int32 height = 3 [default = 0];
5110       case 3: {
5111         if (static_cast< ::google::protobuf::uint8>(tag) ==
5112             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5113           set_has_height();
5114           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5115                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5116                  input, &height_)));
5117         } else {
5118           goto handle_unusual;
5119         }
5120         break;
5121       }
5122 
5123       // optional int32 width = 4 [default = 0];
5124       case 4: {
5125         if (static_cast< ::google::protobuf::uint8>(tag) ==
5126             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
5127           set_has_width();
5128           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5129                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5130                  input, &width_)));
5131         } else {
5132           goto handle_unusual;
5133         }
5134         break;
5135       }
5136 
5137       // repeated float data = 5 [packed = true];
5138       case 5: {
5139         if (static_cast< ::google::protobuf::uint8>(tag) ==
5140             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
5141           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
5142                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
5143                  input, this->mutable_data())));
5144         } else if (
5145             static_cast< ::google::protobuf::uint8>(tag) ==
5146             static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
5147           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
5148                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
5149                  1, 42u, input, this->mutable_data())));
5150         } else {
5151           goto handle_unusual;
5152         }
5153         break;
5154       }
5155 
5156       // repeated float diff = 6 [packed = true];
5157       case 6: {
5158         if (static_cast< ::google::protobuf::uint8>(tag) ==
5159             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
5160           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
5161                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
5162                  input, this->mutable_diff())));
5163         } else if (
5164             static_cast< ::google::protobuf::uint8>(tag) ==
5165             static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
5166           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
5167                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
5168                  1, 50u, input, this->mutable_diff())));
5169         } else {
5170           goto handle_unusual;
5171         }
5172         break;
5173       }
5174 
5175       // optional .opencv_caffe.BlobShape shape = 7;
5176       case 7: {
5177         if (static_cast< ::google::protobuf::uint8>(tag) ==
5178             static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
5179           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5180                input, mutable_shape()));
5181         } else {
5182           goto handle_unusual;
5183         }
5184         break;
5185       }
5186 
5187       // repeated double double_data = 8 [packed = true];
5188       case 8: {
5189         if (static_cast< ::google::protobuf::uint8>(tag) ==
5190             static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
5191           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
5192                    double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
5193                  input, this->mutable_double_data())));
5194         } else if (
5195             static_cast< ::google::protobuf::uint8>(tag) ==
5196             static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
5197           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
5198                    double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
5199                  1, 66u, input, this->mutable_double_data())));
5200         } else {
5201           goto handle_unusual;
5202         }
5203         break;
5204       }
5205 
5206       // repeated double double_diff = 9 [packed = true];
5207       case 9: {
5208         if (static_cast< ::google::protobuf::uint8>(tag) ==
5209             static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
5210           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
5211                    double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
5212                  input, this->mutable_double_diff())));
5213         } else if (
5214             static_cast< ::google::protobuf::uint8>(tag) ==
5215             static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
5216           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
5217                    double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
5218                  1, 74u, input, this->mutable_double_diff())));
5219         } else {
5220           goto handle_unusual;
5221         }
5222         break;
5223       }
5224 
5225       // optional .opencv_caffe.Type raw_data_type = 10;
5226       case 10: {
5227         if (static_cast< ::google::protobuf::uint8>(tag) ==
5228             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
5229           int value;
5230           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5231                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5232                  input, &value)));
5233           if (::opencv_caffe::Type_IsValid(value)) {
5234             set_raw_data_type(static_cast< ::opencv_caffe::Type >(value));
5235           } else {
5236             mutable_unknown_fields()->AddVarint(
5237                 10, static_cast< ::google::protobuf::uint64>(value));
5238           }
5239         } else {
5240           goto handle_unusual;
5241         }
5242         break;
5243       }
5244 
5245       // optional bytes raw_data = 12 [packed = false];
5246       case 12: {
5247         if (static_cast< ::google::protobuf::uint8>(tag) ==
5248             static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
5249           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5250                 input, this->mutable_raw_data()));
5251         } else {
5252           goto handle_unusual;
5253         }
5254         break;
5255       }
5256 
5257       default: {
5258       handle_unusual:
5259         if (tag == 0) {
5260           goto success;
5261         }
5262         DO_(::google::protobuf::internal::WireFormat::SkipField(
5263               input, tag, _internal_metadata_.mutable_unknown_fields()));
5264         break;
5265       }
5266     }
5267   }
5268 success:
5269   // @@protoc_insertion_point(parse_success:opencv_caffe.BlobProto)
5270   return true;
5271 failure:
5272   // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobProto)
5273   return false;
5274 #undef DO_
5275 }
5276 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const5277 void BlobProto::SerializeWithCachedSizes(
5278     ::google::protobuf::io::CodedOutputStream* output) const {
5279   // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobProto)
5280   ::google::protobuf::uint32 cached_has_bits = 0;
5281   (void) cached_has_bits;
5282 
5283   cached_has_bits = _has_bits_[0];
5284   // optional int32 num = 1 [default = 0];
5285   if (cached_has_bits & 0x00000004u) {
5286     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->num(), output);
5287   }
5288 
5289   // optional int32 channels = 2 [default = 0];
5290   if (cached_has_bits & 0x00000008u) {
5291     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->channels(), output);
5292   }
5293 
5294   // optional int32 height = 3 [default = 0];
5295   if (cached_has_bits & 0x00000010u) {
5296     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->height(), output);
5297   }
5298 
5299   // optional int32 width = 4 [default = 0];
5300   if (cached_has_bits & 0x00000020u) {
5301     ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->width(), output);
5302   }
5303 
5304   // repeated float data = 5 [packed = true];
5305   if (this->data_size() > 0) {
5306     ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
5307     output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
5308         _data_cached_byte_size_));
5309     ::google::protobuf::internal::WireFormatLite::WriteFloatArray(
5310       this->data().data(), this->data_size(), output);
5311   }
5312 
5313   // repeated float diff = 6 [packed = true];
5314   if (this->diff_size() > 0) {
5315     ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
5316     output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
5317         _diff_cached_byte_size_));
5318     ::google::protobuf::internal::WireFormatLite::WriteFloatArray(
5319       this->diff().data(), this->diff_size(), output);
5320   }
5321 
5322   // optional .opencv_caffe.BlobShape shape = 7;
5323   if (cached_has_bits & 0x00000002u) {
5324     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5325       7, *this->shape_, output);
5326   }
5327 
5328   // repeated double double_data = 8 [packed = true];
5329   if (this->double_data_size() > 0) {
5330     ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
5331     output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
5332         _double_data_cached_byte_size_));
5333     ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
5334       this->double_data().data(), this->double_data_size(), output);
5335   }
5336 
5337   // repeated double double_diff = 9 [packed = true];
5338   if (this->double_diff_size() > 0) {
5339     ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
5340     output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
5341         _double_diff_cached_byte_size_));
5342     ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
5343       this->double_diff().data(), this->double_diff_size(), output);
5344   }
5345 
5346   // optional .opencv_caffe.Type raw_data_type = 10;
5347   if (cached_has_bits & 0x00000040u) {
5348     ::google::protobuf::internal::WireFormatLite::WriteEnum(
5349       10, this->raw_data_type(), output);
5350   }
5351 
5352   // optional bytes raw_data = 12 [packed = false];
5353   if (cached_has_bits & 0x00000001u) {
5354     ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5355       12, this->raw_data(), output);
5356   }
5357 
5358   if (_internal_metadata_.have_unknown_fields()) {
5359     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5360         _internal_metadata_.unknown_fields(), output);
5361   }
5362   // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobProto)
5363 }
5364 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const5365 ::google::protobuf::uint8* BlobProto::InternalSerializeWithCachedSizesToArray(
5366     bool deterministic, ::google::protobuf::uint8* target) const {
5367   (void)deterministic; // Unused
5368   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobProto)
5369   ::google::protobuf::uint32 cached_has_bits = 0;
5370   (void) cached_has_bits;
5371 
5372   cached_has_bits = _has_bits_[0];
5373   // optional int32 num = 1 [default = 0];
5374   if (cached_has_bits & 0x00000004u) {
5375     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->num(), target);
5376   }
5377 
5378   // optional int32 channels = 2 [default = 0];
5379   if (cached_has_bits & 0x00000008u) {
5380     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->channels(), target);
5381   }
5382 
5383   // optional int32 height = 3 [default = 0];
5384   if (cached_has_bits & 0x00000010u) {
5385     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->height(), target);
5386   }
5387 
5388   // optional int32 width = 4 [default = 0];
5389   if (cached_has_bits & 0x00000020u) {
5390     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->width(), target);
5391   }
5392 
5393   // repeated float data = 5 [packed = true];
5394   if (this->data_size() > 0) {
5395     target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
5396       5,
5397       ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
5398       target);
5399     target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
5400         static_cast< ::google::protobuf::int32>(
5401             _data_cached_byte_size_), target);
5402     target = ::google::protobuf::internal::WireFormatLite::
5403       WriteFloatNoTagToArray(this->data_, target);
5404   }
5405 
5406   // repeated float diff = 6 [packed = true];
5407   if (this->diff_size() > 0) {
5408     target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
5409       6,
5410       ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
5411       target);
5412     target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
5413         static_cast< ::google::protobuf::int32>(
5414             _diff_cached_byte_size_), target);
5415     target = ::google::protobuf::internal::WireFormatLite::
5416       WriteFloatNoTagToArray(this->diff_, target);
5417   }
5418 
5419   // optional .opencv_caffe.BlobShape shape = 7;
5420   if (cached_has_bits & 0x00000002u) {
5421     target = ::google::protobuf::internal::WireFormatLite::
5422       InternalWriteMessageToArray(
5423         7, *this->shape_, deterministic, target);
5424   }
5425 
5426   // repeated double double_data = 8 [packed = true];
5427   if (this->double_data_size() > 0) {
5428     target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
5429       8,
5430       ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
5431       target);
5432     target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
5433         static_cast< ::google::protobuf::int32>(
5434             _double_data_cached_byte_size_), target);
5435     target = ::google::protobuf::internal::WireFormatLite::
5436       WriteDoubleNoTagToArray(this->double_data_, target);
5437   }
5438 
5439   // repeated double double_diff = 9 [packed = true];
5440   if (this->double_diff_size() > 0) {
5441     target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
5442       9,
5443       ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
5444       target);
5445     target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
5446         static_cast< ::google::protobuf::int32>(
5447             _double_diff_cached_byte_size_), target);
5448     target = ::google::protobuf::internal::WireFormatLite::
5449       WriteDoubleNoTagToArray(this->double_diff_, target);
5450   }
5451 
5452   // optional .opencv_caffe.Type raw_data_type = 10;
5453   if (cached_has_bits & 0x00000040u) {
5454     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5455       10, this->raw_data_type(), target);
5456   }
5457 
5458   // optional bytes raw_data = 12 [packed = false];
5459   if (cached_has_bits & 0x00000001u) {
5460     target =
5461       ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5462         12, this->raw_data(), target);
5463   }
5464 
5465   if (_internal_metadata_.have_unknown_fields()) {
5466     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5467         _internal_metadata_.unknown_fields(), target);
5468   }
5469   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobProto)
5470   return target;
5471 }
5472 
ByteSizeLong() const5473 size_t BlobProto::ByteSizeLong() const {
5474 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobProto)
5475   size_t total_size = 0;
5476 
5477   if (_internal_metadata_.have_unknown_fields()) {
5478     total_size +=
5479       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5480         _internal_metadata_.unknown_fields());
5481   }
5482   // repeated float data = 5 [packed = true];
5483   {
5484     unsigned int count = static_cast<unsigned int>(this->data_size());
5485     size_t data_size = 4UL * count;
5486     if (data_size > 0) {
5487       total_size += 1 +
5488         ::google::protobuf::internal::WireFormatLite::Int32Size(
5489             static_cast< ::google::protobuf::int32>(data_size));
5490     }
5491     int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
5492     GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5493     _data_cached_byte_size_ = cached_size;
5494     GOOGLE_SAFE_CONCURRENT_WRITES_END();
5495     total_size += data_size;
5496   }
5497 
5498   // repeated float diff = 6 [packed = true];
5499   {
5500     unsigned int count = static_cast<unsigned int>(this->diff_size());
5501     size_t data_size = 4UL * count;
5502     if (data_size > 0) {
5503       total_size += 1 +
5504         ::google::protobuf::internal::WireFormatLite::Int32Size(
5505             static_cast< ::google::protobuf::int32>(data_size));
5506     }
5507     int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
5508     GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5509     _diff_cached_byte_size_ = cached_size;
5510     GOOGLE_SAFE_CONCURRENT_WRITES_END();
5511     total_size += data_size;
5512   }
5513 
5514   // repeated double double_data = 8 [packed = true];
5515   {
5516     unsigned int count = static_cast<unsigned int>(this->double_data_size());
5517     size_t data_size = 8UL * count;
5518     if (data_size > 0) {
5519       total_size += 1 +
5520         ::google::protobuf::internal::WireFormatLite::Int32Size(
5521             static_cast< ::google::protobuf::int32>(data_size));
5522     }
5523     int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
5524     GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5525     _double_data_cached_byte_size_ = cached_size;
5526     GOOGLE_SAFE_CONCURRENT_WRITES_END();
5527     total_size += data_size;
5528   }
5529 
5530   // repeated double double_diff = 9 [packed = true];
5531   {
5532     unsigned int count = static_cast<unsigned int>(this->double_diff_size());
5533     size_t data_size = 8UL * count;
5534     if (data_size > 0) {
5535       total_size += 1 +
5536         ::google::protobuf::internal::WireFormatLite::Int32Size(
5537             static_cast< ::google::protobuf::int32>(data_size));
5538     }
5539     int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
5540     GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5541     _double_diff_cached_byte_size_ = cached_size;
5542     GOOGLE_SAFE_CONCURRENT_WRITES_END();
5543     total_size += data_size;
5544   }
5545 
5546   if (_has_bits_[0 / 32] & 127u) {
5547     // optional bytes raw_data = 12 [packed = false];
5548     if (has_raw_data()) {
5549       total_size += 1 +
5550         ::google::protobuf::internal::WireFormatLite::BytesSize(
5551           this->raw_data());
5552     }
5553 
5554     // optional .opencv_caffe.BlobShape shape = 7;
5555     if (has_shape()) {
5556       total_size += 1 +
5557         ::google::protobuf::internal::WireFormatLite::MessageSize(
5558           *this->shape_);
5559     }
5560 
5561     // optional int32 num = 1 [default = 0];
5562     if (has_num()) {
5563       total_size += 1 +
5564         ::google::protobuf::internal::WireFormatLite::Int32Size(
5565           this->num());
5566     }
5567 
5568     // optional int32 channels = 2 [default = 0];
5569     if (has_channels()) {
5570       total_size += 1 +
5571         ::google::protobuf::internal::WireFormatLite::Int32Size(
5572           this->channels());
5573     }
5574 
5575     // optional int32 height = 3 [default = 0];
5576     if (has_height()) {
5577       total_size += 1 +
5578         ::google::protobuf::internal::WireFormatLite::Int32Size(
5579           this->height());
5580     }
5581 
5582     // optional int32 width = 4 [default = 0];
5583     if (has_width()) {
5584       total_size += 1 +
5585         ::google::protobuf::internal::WireFormatLite::Int32Size(
5586           this->width());
5587     }
5588 
5589     // optional .opencv_caffe.Type raw_data_type = 10;
5590     if (has_raw_data_type()) {
5591       total_size += 1 +
5592         ::google::protobuf::internal::WireFormatLite::EnumSize(this->raw_data_type());
5593     }
5594 
5595   }
5596   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5597   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5598   _cached_size_ = cached_size;
5599   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5600   return total_size;
5601 }
5602 
MergeFrom(const::google::protobuf::Message & from)5603 void BlobProto::MergeFrom(const ::google::protobuf::Message& from) {
5604 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobProto)
5605   GOOGLE_DCHECK_NE(&from, this);
5606   const BlobProto* source =
5607       ::google::protobuf::internal::DynamicCastToGenerated<const BlobProto>(
5608           &from);
5609   if (source == NULL) {
5610   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobProto)
5611     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5612   } else {
5613   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobProto)
5614     MergeFrom(*source);
5615   }
5616 }
5617 
MergeFrom(const BlobProto & from)5618 void BlobProto::MergeFrom(const BlobProto& from) {
5619 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobProto)
5620   GOOGLE_DCHECK_NE(&from, this);
5621   _internal_metadata_.MergeFrom(from._internal_metadata_);
5622   ::google::protobuf::uint32 cached_has_bits = 0;
5623   (void) cached_has_bits;
5624 
5625   data_.MergeFrom(from.data_);
5626   diff_.MergeFrom(from.diff_);
5627   double_data_.MergeFrom(from.double_data_);
5628   double_diff_.MergeFrom(from.double_diff_);
5629   cached_has_bits = from._has_bits_[0];
5630   if (cached_has_bits & 127u) {
5631     if (cached_has_bits & 0x00000001u) {
5632       set_has_raw_data();
5633       raw_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_data_);
5634     }
5635     if (cached_has_bits & 0x00000002u) {
5636       mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape());
5637     }
5638     if (cached_has_bits & 0x00000004u) {
5639       num_ = from.num_;
5640     }
5641     if (cached_has_bits & 0x00000008u) {
5642       channels_ = from.channels_;
5643     }
5644     if (cached_has_bits & 0x00000010u) {
5645       height_ = from.height_;
5646     }
5647     if (cached_has_bits & 0x00000020u) {
5648       width_ = from.width_;
5649     }
5650     if (cached_has_bits & 0x00000040u) {
5651       raw_data_type_ = from.raw_data_type_;
5652     }
5653     _has_bits_[0] |= cached_has_bits;
5654   }
5655 }
5656 
CopyFrom(const::google::protobuf::Message & from)5657 void BlobProto::CopyFrom(const ::google::protobuf::Message& from) {
5658 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobProto)
5659   if (&from == this) return;
5660   Clear();
5661   MergeFrom(from);
5662 }
5663 
CopyFrom(const BlobProto & from)5664 void BlobProto::CopyFrom(const BlobProto& from) {
5665 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobProto)
5666   if (&from == this) return;
5667   Clear();
5668   MergeFrom(from);
5669 }
5670 
IsInitialized() const5671 bool BlobProto::IsInitialized() const {
5672   return true;
5673 }
5674 
Swap(BlobProto * other)5675 void BlobProto::Swap(BlobProto* other) {
5676   if (other == this) return;
5677   InternalSwap(other);
5678 }
InternalSwap(BlobProto * other)5679 void BlobProto::InternalSwap(BlobProto* other) {
5680   using std::swap;
5681   data_.InternalSwap(&other->data_);
5682   diff_.InternalSwap(&other->diff_);
5683   double_data_.InternalSwap(&other->double_data_);
5684   double_diff_.InternalSwap(&other->double_diff_);
5685   raw_data_.Swap(&other->raw_data_);
5686   swap(shape_, other->shape_);
5687   swap(num_, other->num_);
5688   swap(channels_, other->channels_);
5689   swap(height_, other->height_);
5690   swap(width_, other->width_);
5691   swap(raw_data_type_, other->raw_data_type_);
5692   swap(_has_bits_[0], other->_has_bits_[0]);
5693   _internal_metadata_.Swap(&other->_internal_metadata_);
5694   swap(_cached_size_, other->_cached_size_);
5695 }
5696 
GetMetadata() const5697 ::google::protobuf::Metadata BlobProto::GetMetadata() const {
5698   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
5699   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
5700 }
5701 
5702 
5703 // ===================================================================
5704 
InitAsDefaultInstance()5705 void BlobProtoVector::InitAsDefaultInstance() {
5706 }
5707 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5708 const int BlobProtoVector::kBlobsFieldNumber;
5709 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5710 
BlobProtoVector()5711 BlobProtoVector::BlobProtoVector()
5712   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5713   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5714     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProtoVector();
5715   }
5716   SharedCtor();
5717   // @@protoc_insertion_point(constructor:opencv_caffe.BlobProtoVector)
5718 }
BlobProtoVector(const BlobProtoVector & from)5719 BlobProtoVector::BlobProtoVector(const BlobProtoVector& from)
5720   : ::google::protobuf::Message(),
5721       _internal_metadata_(NULL),
5722       _has_bits_(from._has_bits_),
5723       _cached_size_(0),
5724       blobs_(from.blobs_) {
5725   _internal_metadata_.MergeFrom(from._internal_metadata_);
5726   // @@protoc_insertion_point(copy_constructor:opencv_caffe.BlobProtoVector)
5727 }
5728 
SharedCtor()5729 void BlobProtoVector::SharedCtor() {
5730   _cached_size_ = 0;
5731 }
5732 
~BlobProtoVector()5733 BlobProtoVector::~BlobProtoVector() {
5734   // @@protoc_insertion_point(destructor:opencv_caffe.BlobProtoVector)
5735   SharedDtor();
5736 }
5737 
SharedDtor()5738 void BlobProtoVector::SharedDtor() {
5739 }
5740 
SetCachedSize(int size) const5741 void BlobProtoVector::SetCachedSize(int size) const {
5742   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5743   _cached_size_ = size;
5744   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5745 }
descriptor()5746 const ::google::protobuf::Descriptor* BlobProtoVector::descriptor() {
5747   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
5748   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5749 }
5750 
default_instance()5751 const BlobProtoVector& BlobProtoVector::default_instance() {
5752   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBlobProtoVector();
5753   return *internal_default_instance();
5754 }
5755 
New(::google::protobuf::Arena * arena) const5756 BlobProtoVector* BlobProtoVector::New(::google::protobuf::Arena* arena) const {
5757   BlobProtoVector* n = new BlobProtoVector;
5758   if (arena != NULL) {
5759     arena->Own(n);
5760   }
5761   return n;
5762 }
5763 
Clear()5764 void BlobProtoVector::Clear() {
5765 // @@protoc_insertion_point(message_clear_start:opencv_caffe.BlobProtoVector)
5766   ::google::protobuf::uint32 cached_has_bits = 0;
5767   // Prevent compiler warnings about cached_has_bits being unused
5768   (void) cached_has_bits;
5769 
5770   blobs_.Clear();
5771   _has_bits_.Clear();
5772   _internal_metadata_.Clear();
5773 }
5774 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)5775 bool BlobProtoVector::MergePartialFromCodedStream(
5776     ::google::protobuf::io::CodedInputStream* input) {
5777 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5778   ::google::protobuf::uint32 tag;
5779   // @@protoc_insertion_point(parse_start:opencv_caffe.BlobProtoVector)
5780   for (;;) {
5781     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5782     tag = p.first;
5783     if (!p.second) goto handle_unusual;
5784     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5785       // repeated .opencv_caffe.BlobProto blobs = 1;
5786       case 1: {
5787         if (static_cast< ::google::protobuf::uint8>(tag) ==
5788             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5789           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_blobs()));
5790         } else {
5791           goto handle_unusual;
5792         }
5793         break;
5794       }
5795 
5796       default: {
5797       handle_unusual:
5798         if (tag == 0) {
5799           goto success;
5800         }
5801         DO_(::google::protobuf::internal::WireFormat::SkipField(
5802               input, tag, _internal_metadata_.mutable_unknown_fields()));
5803         break;
5804       }
5805     }
5806   }
5807 success:
5808   // @@protoc_insertion_point(parse_success:opencv_caffe.BlobProtoVector)
5809   return true;
5810 failure:
5811   // @@protoc_insertion_point(parse_failure:opencv_caffe.BlobProtoVector)
5812   return false;
5813 #undef DO_
5814 }
5815 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const5816 void BlobProtoVector::SerializeWithCachedSizes(
5817     ::google::protobuf::io::CodedOutputStream* output) const {
5818   // @@protoc_insertion_point(serialize_start:opencv_caffe.BlobProtoVector)
5819   ::google::protobuf::uint32 cached_has_bits = 0;
5820   (void) cached_has_bits;
5821 
5822   // repeated .opencv_caffe.BlobProto blobs = 1;
5823   for (unsigned int i = 0,
5824       n = static_cast<unsigned int>(this->blobs_size()); i < n; i++) {
5825     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5826       1, this->blobs(static_cast<int>(i)), output);
5827   }
5828 
5829   if (_internal_metadata_.have_unknown_fields()) {
5830     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5831         _internal_metadata_.unknown_fields(), output);
5832   }
5833   // @@protoc_insertion_point(serialize_end:opencv_caffe.BlobProtoVector)
5834 }
5835 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const5836 ::google::protobuf::uint8* BlobProtoVector::InternalSerializeWithCachedSizesToArray(
5837     bool deterministic, ::google::protobuf::uint8* target) const {
5838   (void)deterministic; // Unused
5839   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BlobProtoVector)
5840   ::google::protobuf::uint32 cached_has_bits = 0;
5841   (void) cached_has_bits;
5842 
5843   // repeated .opencv_caffe.BlobProto blobs = 1;
5844   for (unsigned int i = 0,
5845       n = static_cast<unsigned int>(this->blobs_size()); i < n; i++) {
5846     target = ::google::protobuf::internal::WireFormatLite::
5847       InternalWriteMessageToArray(
5848         1, this->blobs(static_cast<int>(i)), deterministic, target);
5849   }
5850 
5851   if (_internal_metadata_.have_unknown_fields()) {
5852     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5853         _internal_metadata_.unknown_fields(), target);
5854   }
5855   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BlobProtoVector)
5856   return target;
5857 }
5858 
ByteSizeLong() const5859 size_t BlobProtoVector::ByteSizeLong() const {
5860 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BlobProtoVector)
5861   size_t total_size = 0;
5862 
5863   if (_internal_metadata_.have_unknown_fields()) {
5864     total_size +=
5865       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5866         _internal_metadata_.unknown_fields());
5867   }
5868   // repeated .opencv_caffe.BlobProto blobs = 1;
5869   {
5870     unsigned int count = static_cast<unsigned int>(this->blobs_size());
5871     total_size += 1UL * count;
5872     for (unsigned int i = 0; i < count; i++) {
5873       total_size +=
5874         ::google::protobuf::internal::WireFormatLite::MessageSize(
5875           this->blobs(static_cast<int>(i)));
5876     }
5877   }
5878 
5879   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5880   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5881   _cached_size_ = cached_size;
5882   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5883   return total_size;
5884 }
5885 
MergeFrom(const::google::protobuf::Message & from)5886 void BlobProtoVector::MergeFrom(const ::google::protobuf::Message& from) {
5887 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BlobProtoVector)
5888   GOOGLE_DCHECK_NE(&from, this);
5889   const BlobProtoVector* source =
5890       ::google::protobuf::internal::DynamicCastToGenerated<const BlobProtoVector>(
5891           &from);
5892   if (source == NULL) {
5893   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BlobProtoVector)
5894     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5895   } else {
5896   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BlobProtoVector)
5897     MergeFrom(*source);
5898   }
5899 }
5900 
MergeFrom(const BlobProtoVector & from)5901 void BlobProtoVector::MergeFrom(const BlobProtoVector& from) {
5902 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BlobProtoVector)
5903   GOOGLE_DCHECK_NE(&from, this);
5904   _internal_metadata_.MergeFrom(from._internal_metadata_);
5905   ::google::protobuf::uint32 cached_has_bits = 0;
5906   (void) cached_has_bits;
5907 
5908   blobs_.MergeFrom(from.blobs_);
5909 }
5910 
CopyFrom(const::google::protobuf::Message & from)5911 void BlobProtoVector::CopyFrom(const ::google::protobuf::Message& from) {
5912 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BlobProtoVector)
5913   if (&from == this) return;
5914   Clear();
5915   MergeFrom(from);
5916 }
5917 
CopyFrom(const BlobProtoVector & from)5918 void BlobProtoVector::CopyFrom(const BlobProtoVector& from) {
5919 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BlobProtoVector)
5920   if (&from == this) return;
5921   Clear();
5922   MergeFrom(from);
5923 }
5924 
IsInitialized() const5925 bool BlobProtoVector::IsInitialized() const {
5926   return true;
5927 }
5928 
Swap(BlobProtoVector * other)5929 void BlobProtoVector::Swap(BlobProtoVector* other) {
5930   if (other == this) return;
5931   InternalSwap(other);
5932 }
InternalSwap(BlobProtoVector * other)5933 void BlobProtoVector::InternalSwap(BlobProtoVector* other) {
5934   using std::swap;
5935   blobs_.InternalSwap(&other->blobs_);
5936   swap(_has_bits_[0], other->_has_bits_[0]);
5937   _internal_metadata_.Swap(&other->_internal_metadata_);
5938   swap(_cached_size_, other->_cached_size_);
5939 }
5940 
GetMetadata() const5941 ::google::protobuf::Metadata BlobProtoVector::GetMetadata() const {
5942   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
5943   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
5944 }
5945 
5946 
5947 // ===================================================================
5948 
InitAsDefaultInstance()5949 void PermuteParameter::InitAsDefaultInstance() {
5950 }
5951 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5952 const int PermuteParameter::kOrderFieldNumber;
5953 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5954 
PermuteParameter()5955 PermuteParameter::PermuteParameter()
5956   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5957   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5958     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPermuteParameter();
5959   }
5960   SharedCtor();
5961   // @@protoc_insertion_point(constructor:opencv_caffe.PermuteParameter)
5962 }
PermuteParameter(const PermuteParameter & from)5963 PermuteParameter::PermuteParameter(const PermuteParameter& from)
5964   : ::google::protobuf::Message(),
5965       _internal_metadata_(NULL),
5966       _has_bits_(from._has_bits_),
5967       _cached_size_(0),
5968       order_(from.order_) {
5969   _internal_metadata_.MergeFrom(from._internal_metadata_);
5970   // @@protoc_insertion_point(copy_constructor:opencv_caffe.PermuteParameter)
5971 }
5972 
SharedCtor()5973 void PermuteParameter::SharedCtor() {
5974   _cached_size_ = 0;
5975 }
5976 
~PermuteParameter()5977 PermuteParameter::~PermuteParameter() {
5978   // @@protoc_insertion_point(destructor:opencv_caffe.PermuteParameter)
5979   SharedDtor();
5980 }
5981 
SharedDtor()5982 void PermuteParameter::SharedDtor() {
5983 }
5984 
SetCachedSize(int size) const5985 void PermuteParameter::SetCachedSize(int size) const {
5986   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5987   _cached_size_ = size;
5988   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5989 }
descriptor()5990 const ::google::protobuf::Descriptor* PermuteParameter::descriptor() {
5991   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
5992   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5993 }
5994 
default_instance()5995 const PermuteParameter& PermuteParameter::default_instance() {
5996   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPermuteParameter();
5997   return *internal_default_instance();
5998 }
5999 
New(::google::protobuf::Arena * arena) const6000 PermuteParameter* PermuteParameter::New(::google::protobuf::Arena* arena) const {
6001   PermuteParameter* n = new PermuteParameter;
6002   if (arena != NULL) {
6003     arena->Own(n);
6004   }
6005   return n;
6006 }
6007 
Clear()6008 void PermuteParameter::Clear() {
6009 // @@protoc_insertion_point(message_clear_start:opencv_caffe.PermuteParameter)
6010   ::google::protobuf::uint32 cached_has_bits = 0;
6011   // Prevent compiler warnings about cached_has_bits being unused
6012   (void) cached_has_bits;
6013 
6014   order_.Clear();
6015   _has_bits_.Clear();
6016   _internal_metadata_.Clear();
6017 }
6018 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)6019 bool PermuteParameter::MergePartialFromCodedStream(
6020     ::google::protobuf::io::CodedInputStream* input) {
6021 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6022   ::google::protobuf::uint32 tag;
6023   // @@protoc_insertion_point(parse_start:opencv_caffe.PermuteParameter)
6024   for (;;) {
6025     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6026     tag = p.first;
6027     if (!p.second) goto handle_unusual;
6028     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6029       // repeated uint32 order = 1;
6030       case 1: {
6031         if (static_cast< ::google::protobuf::uint8>(tag) ==
6032             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6033           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6034                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6035                  1, 8u, input, this->mutable_order())));
6036         } else if (
6037             static_cast< ::google::protobuf::uint8>(tag) ==
6038             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6039           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6040                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6041                  input, this->mutable_order())));
6042         } else {
6043           goto handle_unusual;
6044         }
6045         break;
6046       }
6047 
6048       default: {
6049       handle_unusual:
6050         if (tag == 0) {
6051           goto success;
6052         }
6053         DO_(::google::protobuf::internal::WireFormat::SkipField(
6054               input, tag, _internal_metadata_.mutable_unknown_fields()));
6055         break;
6056       }
6057     }
6058   }
6059 success:
6060   // @@protoc_insertion_point(parse_success:opencv_caffe.PermuteParameter)
6061   return true;
6062 failure:
6063   // @@protoc_insertion_point(parse_failure:opencv_caffe.PermuteParameter)
6064   return false;
6065 #undef DO_
6066 }
6067 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const6068 void PermuteParameter::SerializeWithCachedSizes(
6069     ::google::protobuf::io::CodedOutputStream* output) const {
6070   // @@protoc_insertion_point(serialize_start:opencv_caffe.PermuteParameter)
6071   ::google::protobuf::uint32 cached_has_bits = 0;
6072   (void) cached_has_bits;
6073 
6074   // repeated uint32 order = 1;
6075   for (int i = 0, n = this->order_size(); i < n; i++) {
6076     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
6077       1, this->order(i), output);
6078   }
6079 
6080   if (_internal_metadata_.have_unknown_fields()) {
6081     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6082         _internal_metadata_.unknown_fields(), output);
6083   }
6084   // @@protoc_insertion_point(serialize_end:opencv_caffe.PermuteParameter)
6085 }
6086 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const6087 ::google::protobuf::uint8* PermuteParameter::InternalSerializeWithCachedSizesToArray(
6088     bool deterministic, ::google::protobuf::uint8* target) const {
6089   (void)deterministic; // Unused
6090   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PermuteParameter)
6091   ::google::protobuf::uint32 cached_has_bits = 0;
6092   (void) cached_has_bits;
6093 
6094   // repeated uint32 order = 1;
6095   target = ::google::protobuf::internal::WireFormatLite::
6096     WriteUInt32ToArray(1, this->order_, target);
6097 
6098   if (_internal_metadata_.have_unknown_fields()) {
6099     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6100         _internal_metadata_.unknown_fields(), target);
6101   }
6102   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PermuteParameter)
6103   return target;
6104 }
6105 
ByteSizeLong() const6106 size_t PermuteParameter::ByteSizeLong() const {
6107 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PermuteParameter)
6108   size_t total_size = 0;
6109 
6110   if (_internal_metadata_.have_unknown_fields()) {
6111     total_size +=
6112       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6113         _internal_metadata_.unknown_fields());
6114   }
6115   // repeated uint32 order = 1;
6116   {
6117     size_t data_size = ::google::protobuf::internal::WireFormatLite::
6118       UInt32Size(this->order_);
6119     total_size += 1 *
6120                   ::google::protobuf::internal::FromIntSize(this->order_size());
6121     total_size += data_size;
6122   }
6123 
6124   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6125   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6126   _cached_size_ = cached_size;
6127   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6128   return total_size;
6129 }
6130 
MergeFrom(const::google::protobuf::Message & from)6131 void PermuteParameter::MergeFrom(const ::google::protobuf::Message& from) {
6132 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PermuteParameter)
6133   GOOGLE_DCHECK_NE(&from, this);
6134   const PermuteParameter* source =
6135       ::google::protobuf::internal::DynamicCastToGenerated<const PermuteParameter>(
6136           &from);
6137   if (source == NULL) {
6138   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PermuteParameter)
6139     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6140   } else {
6141   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PermuteParameter)
6142     MergeFrom(*source);
6143   }
6144 }
6145 
MergeFrom(const PermuteParameter & from)6146 void PermuteParameter::MergeFrom(const PermuteParameter& from) {
6147 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PermuteParameter)
6148   GOOGLE_DCHECK_NE(&from, this);
6149   _internal_metadata_.MergeFrom(from._internal_metadata_);
6150   ::google::protobuf::uint32 cached_has_bits = 0;
6151   (void) cached_has_bits;
6152 
6153   order_.MergeFrom(from.order_);
6154 }
6155 
CopyFrom(const::google::protobuf::Message & from)6156 void PermuteParameter::CopyFrom(const ::google::protobuf::Message& from) {
6157 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PermuteParameter)
6158   if (&from == this) return;
6159   Clear();
6160   MergeFrom(from);
6161 }
6162 
CopyFrom(const PermuteParameter & from)6163 void PermuteParameter::CopyFrom(const PermuteParameter& from) {
6164 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PermuteParameter)
6165   if (&from == this) return;
6166   Clear();
6167   MergeFrom(from);
6168 }
6169 
IsInitialized() const6170 bool PermuteParameter::IsInitialized() const {
6171   return true;
6172 }
6173 
Swap(PermuteParameter * other)6174 void PermuteParameter::Swap(PermuteParameter* other) {
6175   if (other == this) return;
6176   InternalSwap(other);
6177 }
InternalSwap(PermuteParameter * other)6178 void PermuteParameter::InternalSwap(PermuteParameter* other) {
6179   using std::swap;
6180   order_.InternalSwap(&other->order_);
6181   swap(_has_bits_[0], other->_has_bits_[0]);
6182   _internal_metadata_.Swap(&other->_internal_metadata_);
6183   swap(_cached_size_, other->_cached_size_);
6184 }
6185 
GetMetadata() const6186 ::google::protobuf::Metadata PermuteParameter::GetMetadata() const {
6187   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
6188   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
6189 }
6190 
6191 
6192 // ===================================================================
6193 
InitAsDefaultInstance()6194 void NormalizeBBoxParameter::InitAsDefaultInstance() {
6195   ::opencv_caffe::_NormalizeBBoxParameter_default_instance_._instance.get_mutable()->scale_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
6196       ::opencv_caffe::FillerParameter::internal_default_instance());
6197 }
6198 #if !defined(_MSC_VER) || _MSC_VER >= 1900
6199 const int NormalizeBBoxParameter::kAcrossSpatialFieldNumber;
6200 const int NormalizeBBoxParameter::kScaleFillerFieldNumber;
6201 const int NormalizeBBoxParameter::kChannelSharedFieldNumber;
6202 const int NormalizeBBoxParameter::kEpsFieldNumber;
6203 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6204 
NormalizeBBoxParameter()6205 NormalizeBBoxParameter::NormalizeBBoxParameter()
6206   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6207   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6208     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizeBBoxParameter();
6209   }
6210   SharedCtor();
6211   // @@protoc_insertion_point(constructor:opencv_caffe.NormalizeBBoxParameter)
6212 }
NormalizeBBoxParameter(const NormalizeBBoxParameter & from)6213 NormalizeBBoxParameter::NormalizeBBoxParameter(const NormalizeBBoxParameter& from)
6214   : ::google::protobuf::Message(),
6215       _internal_metadata_(NULL),
6216       _has_bits_(from._has_bits_),
6217       _cached_size_(0) {
6218   _internal_metadata_.MergeFrom(from._internal_metadata_);
6219   if (from.has_scale_filler()) {
6220     scale_filler_ = new ::opencv_caffe::FillerParameter(*from.scale_filler_);
6221   } else {
6222     scale_filler_ = NULL;
6223   }
6224   ::memcpy(&across_spatial_, &from.across_spatial_,
6225     static_cast<size_t>(reinterpret_cast<char*>(&eps_) -
6226     reinterpret_cast<char*>(&across_spatial_)) + sizeof(eps_));
6227   // @@protoc_insertion_point(copy_constructor:opencv_caffe.NormalizeBBoxParameter)
6228 }
6229 
SharedCtor()6230 void NormalizeBBoxParameter::SharedCtor() {
6231   _cached_size_ = 0;
6232   scale_filler_ = NULL;
6233   across_spatial_ = true;
6234   channel_shared_ = true;
6235   eps_ = 1e-10f;
6236 }
6237 
~NormalizeBBoxParameter()6238 NormalizeBBoxParameter::~NormalizeBBoxParameter() {
6239   // @@protoc_insertion_point(destructor:opencv_caffe.NormalizeBBoxParameter)
6240   SharedDtor();
6241 }
6242 
SharedDtor()6243 void NormalizeBBoxParameter::SharedDtor() {
6244   if (this != internal_default_instance()) delete scale_filler_;
6245 }
6246 
SetCachedSize(int size) const6247 void NormalizeBBoxParameter::SetCachedSize(int size) const {
6248   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6249   _cached_size_ = size;
6250   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6251 }
descriptor()6252 const ::google::protobuf::Descriptor* NormalizeBBoxParameter::descriptor() {
6253   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
6254   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6255 }
6256 
default_instance()6257 const NormalizeBBoxParameter& NormalizeBBoxParameter::default_instance() {
6258   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizeBBoxParameter();
6259   return *internal_default_instance();
6260 }
6261 
New(::google::protobuf::Arena * arena) const6262 NormalizeBBoxParameter* NormalizeBBoxParameter::New(::google::protobuf::Arena* arena) const {
6263   NormalizeBBoxParameter* n = new NormalizeBBoxParameter;
6264   if (arena != NULL) {
6265     arena->Own(n);
6266   }
6267   return n;
6268 }
6269 
Clear()6270 void NormalizeBBoxParameter::Clear() {
6271 // @@protoc_insertion_point(message_clear_start:opencv_caffe.NormalizeBBoxParameter)
6272   ::google::protobuf::uint32 cached_has_bits = 0;
6273   // Prevent compiler warnings about cached_has_bits being unused
6274   (void) cached_has_bits;
6275 
6276   cached_has_bits = _has_bits_[0];
6277   if (cached_has_bits & 15u) {
6278     if (cached_has_bits & 0x00000001u) {
6279       GOOGLE_DCHECK(scale_filler_ != NULL);
6280       scale_filler_->Clear();
6281     }
6282     across_spatial_ = true;
6283     channel_shared_ = true;
6284     eps_ = 1e-10f;
6285   }
6286   _has_bits_.Clear();
6287   _internal_metadata_.Clear();
6288 }
6289 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)6290 bool NormalizeBBoxParameter::MergePartialFromCodedStream(
6291     ::google::protobuf::io::CodedInputStream* input) {
6292 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6293   ::google::protobuf::uint32 tag;
6294   // @@protoc_insertion_point(parse_start:opencv_caffe.NormalizeBBoxParameter)
6295   for (;;) {
6296     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6297     tag = p.first;
6298     if (!p.second) goto handle_unusual;
6299     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6300       // optional bool across_spatial = 1 [default = true];
6301       case 1: {
6302         if (static_cast< ::google::protobuf::uint8>(tag) ==
6303             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6304           set_has_across_spatial();
6305           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6306                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6307                  input, &across_spatial_)));
6308         } else {
6309           goto handle_unusual;
6310         }
6311         break;
6312       }
6313 
6314       // optional .opencv_caffe.FillerParameter scale_filler = 2;
6315       case 2: {
6316         if (static_cast< ::google::protobuf::uint8>(tag) ==
6317             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6318           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6319                input, mutable_scale_filler()));
6320         } else {
6321           goto handle_unusual;
6322         }
6323         break;
6324       }
6325 
6326       // optional bool channel_shared = 3 [default = true];
6327       case 3: {
6328         if (static_cast< ::google::protobuf::uint8>(tag) ==
6329             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
6330           set_has_channel_shared();
6331           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6332                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6333                  input, &channel_shared_)));
6334         } else {
6335           goto handle_unusual;
6336         }
6337         break;
6338       }
6339 
6340       // optional float eps = 4 [default = 1e-10];
6341       case 4: {
6342         if (static_cast< ::google::protobuf::uint8>(tag) ==
6343             static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
6344           set_has_eps();
6345           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6346                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6347                  input, &eps_)));
6348         } else {
6349           goto handle_unusual;
6350         }
6351         break;
6352       }
6353 
6354       default: {
6355       handle_unusual:
6356         if (tag == 0) {
6357           goto success;
6358         }
6359         DO_(::google::protobuf::internal::WireFormat::SkipField(
6360               input, tag, _internal_metadata_.mutable_unknown_fields()));
6361         break;
6362       }
6363     }
6364   }
6365 success:
6366   // @@protoc_insertion_point(parse_success:opencv_caffe.NormalizeBBoxParameter)
6367   return true;
6368 failure:
6369   // @@protoc_insertion_point(parse_failure:opencv_caffe.NormalizeBBoxParameter)
6370   return false;
6371 #undef DO_
6372 }
6373 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const6374 void NormalizeBBoxParameter::SerializeWithCachedSizes(
6375     ::google::protobuf::io::CodedOutputStream* output) const {
6376   // @@protoc_insertion_point(serialize_start:opencv_caffe.NormalizeBBoxParameter)
6377   ::google::protobuf::uint32 cached_has_bits = 0;
6378   (void) cached_has_bits;
6379 
6380   cached_has_bits = _has_bits_[0];
6381   // optional bool across_spatial = 1 [default = true];
6382   if (cached_has_bits & 0x00000002u) {
6383     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->across_spatial(), output);
6384   }
6385 
6386   // optional .opencv_caffe.FillerParameter scale_filler = 2;
6387   if (cached_has_bits & 0x00000001u) {
6388     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6389       2, *this->scale_filler_, output);
6390   }
6391 
6392   // optional bool channel_shared = 3 [default = true];
6393   if (cached_has_bits & 0x00000004u) {
6394     ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->channel_shared(), output);
6395   }
6396 
6397   // optional float eps = 4 [default = 1e-10];
6398   if (cached_has_bits & 0x00000008u) {
6399     ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->eps(), output);
6400   }
6401 
6402   if (_internal_metadata_.have_unknown_fields()) {
6403     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6404         _internal_metadata_.unknown_fields(), output);
6405   }
6406   // @@protoc_insertion_point(serialize_end:opencv_caffe.NormalizeBBoxParameter)
6407 }
6408 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const6409 ::google::protobuf::uint8* NormalizeBBoxParameter::InternalSerializeWithCachedSizesToArray(
6410     bool deterministic, ::google::protobuf::uint8* target) const {
6411   (void)deterministic; // Unused
6412   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NormalizeBBoxParameter)
6413   ::google::protobuf::uint32 cached_has_bits = 0;
6414   (void) cached_has_bits;
6415 
6416   cached_has_bits = _has_bits_[0];
6417   // optional bool across_spatial = 1 [default = true];
6418   if (cached_has_bits & 0x00000002u) {
6419     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->across_spatial(), target);
6420   }
6421 
6422   // optional .opencv_caffe.FillerParameter scale_filler = 2;
6423   if (cached_has_bits & 0x00000001u) {
6424     target = ::google::protobuf::internal::WireFormatLite::
6425       InternalWriteMessageToArray(
6426         2, *this->scale_filler_, deterministic, target);
6427   }
6428 
6429   // optional bool channel_shared = 3 [default = true];
6430   if (cached_has_bits & 0x00000004u) {
6431     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->channel_shared(), target);
6432   }
6433 
6434   // optional float eps = 4 [default = 1e-10];
6435   if (cached_has_bits & 0x00000008u) {
6436     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->eps(), target);
6437   }
6438 
6439   if (_internal_metadata_.have_unknown_fields()) {
6440     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6441         _internal_metadata_.unknown_fields(), target);
6442   }
6443   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NormalizeBBoxParameter)
6444   return target;
6445 }
6446 
ByteSizeLong() const6447 size_t NormalizeBBoxParameter::ByteSizeLong() const {
6448 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NormalizeBBoxParameter)
6449   size_t total_size = 0;
6450 
6451   if (_internal_metadata_.have_unknown_fields()) {
6452     total_size +=
6453       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6454         _internal_metadata_.unknown_fields());
6455   }
6456   if (_has_bits_[0 / 32] & 15u) {
6457     // optional .opencv_caffe.FillerParameter scale_filler = 2;
6458     if (has_scale_filler()) {
6459       total_size += 1 +
6460         ::google::protobuf::internal::WireFormatLite::MessageSize(
6461           *this->scale_filler_);
6462     }
6463 
6464     // optional bool across_spatial = 1 [default = true];
6465     if (has_across_spatial()) {
6466       total_size += 1 + 1;
6467     }
6468 
6469     // optional bool channel_shared = 3 [default = true];
6470     if (has_channel_shared()) {
6471       total_size += 1 + 1;
6472     }
6473 
6474     // optional float eps = 4 [default = 1e-10];
6475     if (has_eps()) {
6476       total_size += 1 + 4;
6477     }
6478 
6479   }
6480   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6481   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6482   _cached_size_ = cached_size;
6483   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6484   return total_size;
6485 }
6486 
MergeFrom(const::google::protobuf::Message & from)6487 void NormalizeBBoxParameter::MergeFrom(const ::google::protobuf::Message& from) {
6488 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NormalizeBBoxParameter)
6489   GOOGLE_DCHECK_NE(&from, this);
6490   const NormalizeBBoxParameter* source =
6491       ::google::protobuf::internal::DynamicCastToGenerated<const NormalizeBBoxParameter>(
6492           &from);
6493   if (source == NULL) {
6494   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NormalizeBBoxParameter)
6495     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6496   } else {
6497   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NormalizeBBoxParameter)
6498     MergeFrom(*source);
6499   }
6500 }
6501 
MergeFrom(const NormalizeBBoxParameter & from)6502 void NormalizeBBoxParameter::MergeFrom(const NormalizeBBoxParameter& from) {
6503 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NormalizeBBoxParameter)
6504   GOOGLE_DCHECK_NE(&from, this);
6505   _internal_metadata_.MergeFrom(from._internal_metadata_);
6506   ::google::protobuf::uint32 cached_has_bits = 0;
6507   (void) cached_has_bits;
6508 
6509   cached_has_bits = from._has_bits_[0];
6510   if (cached_has_bits & 15u) {
6511     if (cached_has_bits & 0x00000001u) {
6512       mutable_scale_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.scale_filler());
6513     }
6514     if (cached_has_bits & 0x00000002u) {
6515       across_spatial_ = from.across_spatial_;
6516     }
6517     if (cached_has_bits & 0x00000004u) {
6518       channel_shared_ = from.channel_shared_;
6519     }
6520     if (cached_has_bits & 0x00000008u) {
6521       eps_ = from.eps_;
6522     }
6523     _has_bits_[0] |= cached_has_bits;
6524   }
6525 }
6526 
CopyFrom(const::google::protobuf::Message & from)6527 void NormalizeBBoxParameter::CopyFrom(const ::google::protobuf::Message& from) {
6528 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NormalizeBBoxParameter)
6529   if (&from == this) return;
6530   Clear();
6531   MergeFrom(from);
6532 }
6533 
CopyFrom(const NormalizeBBoxParameter & from)6534 void NormalizeBBoxParameter::CopyFrom(const NormalizeBBoxParameter& from) {
6535 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NormalizeBBoxParameter)
6536   if (&from == this) return;
6537   Clear();
6538   MergeFrom(from);
6539 }
6540 
IsInitialized() const6541 bool NormalizeBBoxParameter::IsInitialized() const {
6542   return true;
6543 }
6544 
Swap(NormalizeBBoxParameter * other)6545 void NormalizeBBoxParameter::Swap(NormalizeBBoxParameter* other) {
6546   if (other == this) return;
6547   InternalSwap(other);
6548 }
InternalSwap(NormalizeBBoxParameter * other)6549 void NormalizeBBoxParameter::InternalSwap(NormalizeBBoxParameter* other) {
6550   using std::swap;
6551   swap(scale_filler_, other->scale_filler_);
6552   swap(across_spatial_, other->across_spatial_);
6553   swap(channel_shared_, other->channel_shared_);
6554   swap(eps_, other->eps_);
6555   swap(_has_bits_[0], other->_has_bits_[0]);
6556   _internal_metadata_.Swap(&other->_internal_metadata_);
6557   swap(_cached_size_, other->_cached_size_);
6558 }
6559 
GetMetadata() const6560 ::google::protobuf::Metadata NormalizeBBoxParameter::GetMetadata() const {
6561   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
6562   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
6563 }
6564 
6565 
6566 // ===================================================================
6567 
InitAsDefaultInstance()6568 void PriorBoxParameter::InitAsDefaultInstance() {
6569 }
6570 #if !defined(_MSC_VER) || _MSC_VER >= 1900
6571 const int PriorBoxParameter::kMinSizeFieldNumber;
6572 const int PriorBoxParameter::kMaxSizeFieldNumber;
6573 const int PriorBoxParameter::kAspectRatioFieldNumber;
6574 const int PriorBoxParameter::kFlipFieldNumber;
6575 const int PriorBoxParameter::kClipFieldNumber;
6576 const int PriorBoxParameter::kVarianceFieldNumber;
6577 const int PriorBoxParameter::kImgSizeFieldNumber;
6578 const int PriorBoxParameter::kImgHFieldNumber;
6579 const int PriorBoxParameter::kImgWFieldNumber;
6580 const int PriorBoxParameter::kStepFieldNumber;
6581 const int PriorBoxParameter::kStepHFieldNumber;
6582 const int PriorBoxParameter::kStepWFieldNumber;
6583 const int PriorBoxParameter::kOffsetFieldNumber;
6584 const int PriorBoxParameter::kOffsetHFieldNumber;
6585 const int PriorBoxParameter::kOffsetWFieldNumber;
6586 const int PriorBoxParameter::kWidthFieldNumber;
6587 const int PriorBoxParameter::kHeightFieldNumber;
6588 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6589 
PriorBoxParameter()6590 PriorBoxParameter::PriorBoxParameter()
6591   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6592   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6593     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPriorBoxParameter();
6594   }
6595   SharedCtor();
6596   // @@protoc_insertion_point(constructor:opencv_caffe.PriorBoxParameter)
6597 }
PriorBoxParameter(const PriorBoxParameter & from)6598 PriorBoxParameter::PriorBoxParameter(const PriorBoxParameter& from)
6599   : ::google::protobuf::Message(),
6600       _internal_metadata_(NULL),
6601       _has_bits_(from._has_bits_),
6602       _cached_size_(0),
6603       min_size_(from.min_size_),
6604       max_size_(from.max_size_),
6605       aspect_ratio_(from.aspect_ratio_),
6606       variance_(from.variance_),
6607       offset_h_(from.offset_h_),
6608       offset_w_(from.offset_w_),
6609       width_(from.width_),
6610       height_(from.height_) {
6611   _internal_metadata_.MergeFrom(from._internal_metadata_);
6612   ::memcpy(&img_size_, &from.img_size_,
6613     static_cast<size_t>(reinterpret_cast<char*>(&offset_) -
6614     reinterpret_cast<char*>(&img_size_)) + sizeof(offset_));
6615   // @@protoc_insertion_point(copy_constructor:opencv_caffe.PriorBoxParameter)
6616 }
6617 
SharedCtor()6618 void PriorBoxParameter::SharedCtor() {
6619   _cached_size_ = 0;
6620   ::memset(&img_size_, 0, static_cast<size_t>(
6621       reinterpret_cast<char*>(&step_w_) -
6622       reinterpret_cast<char*>(&img_size_)) + sizeof(step_w_));
6623   flip_ = true;
6624   clip_ = true;
6625   offset_ = 0.5f;
6626 }
6627 
~PriorBoxParameter()6628 PriorBoxParameter::~PriorBoxParameter() {
6629   // @@protoc_insertion_point(destructor:opencv_caffe.PriorBoxParameter)
6630   SharedDtor();
6631 }
6632 
SharedDtor()6633 void PriorBoxParameter::SharedDtor() {
6634 }
6635 
SetCachedSize(int size) const6636 void PriorBoxParameter::SetCachedSize(int size) const {
6637   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6638   _cached_size_ = size;
6639   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6640 }
descriptor()6641 const ::google::protobuf::Descriptor* PriorBoxParameter::descriptor() {
6642   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
6643   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6644 }
6645 
default_instance()6646 const PriorBoxParameter& PriorBoxParameter::default_instance() {
6647   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPriorBoxParameter();
6648   return *internal_default_instance();
6649 }
6650 
New(::google::protobuf::Arena * arena) const6651 PriorBoxParameter* PriorBoxParameter::New(::google::protobuf::Arena* arena) const {
6652   PriorBoxParameter* n = new PriorBoxParameter;
6653   if (arena != NULL) {
6654     arena->Own(n);
6655   }
6656   return n;
6657 }
6658 
Clear()6659 void PriorBoxParameter::Clear() {
6660 // @@protoc_insertion_point(message_clear_start:opencv_caffe.PriorBoxParameter)
6661   ::google::protobuf::uint32 cached_has_bits = 0;
6662   // Prevent compiler warnings about cached_has_bits being unused
6663   (void) cached_has_bits;
6664 
6665   min_size_.Clear();
6666   max_size_.Clear();
6667   aspect_ratio_.Clear();
6668   variance_.Clear();
6669   offset_h_.Clear();
6670   offset_w_.Clear();
6671   width_.Clear();
6672   height_.Clear();
6673   cached_has_bits = _has_bits_[0];
6674   if (cached_has_bits & 255u) {
6675     ::memset(&img_size_, 0, static_cast<size_t>(
6676         reinterpret_cast<char*>(&step_w_) -
6677         reinterpret_cast<char*>(&img_size_)) + sizeof(step_w_));
6678     flip_ = true;
6679     clip_ = true;
6680   }
6681   offset_ = 0.5f;
6682   _has_bits_.Clear();
6683   _internal_metadata_.Clear();
6684 }
6685 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)6686 bool PriorBoxParameter::MergePartialFromCodedStream(
6687     ::google::protobuf::io::CodedInputStream* input) {
6688 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6689   ::google::protobuf::uint32 tag;
6690   // @@protoc_insertion_point(parse_start:opencv_caffe.PriorBoxParameter)
6691   for (;;) {
6692     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
6693     tag = p.first;
6694     if (!p.second) goto handle_unusual;
6695     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6696       // repeated float min_size = 1;
6697       case 1: {
6698         if (static_cast< ::google::protobuf::uint8>(tag) ==
6699             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
6700           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6701                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6702                  1, 13u, input, this->mutable_min_size())));
6703         } else if (
6704             static_cast< ::google::protobuf::uint8>(tag) ==
6705             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6706           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6707                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6708                  input, this->mutable_min_size())));
6709         } else {
6710           goto handle_unusual;
6711         }
6712         break;
6713       }
6714 
6715       // repeated float max_size = 2;
6716       case 2: {
6717         if (static_cast< ::google::protobuf::uint8>(tag) ==
6718             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
6719           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6720                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6721                  1, 21u, input, this->mutable_max_size())));
6722         } else if (
6723             static_cast< ::google::protobuf::uint8>(tag) ==
6724             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6725           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6726                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6727                  input, this->mutable_max_size())));
6728         } else {
6729           goto handle_unusual;
6730         }
6731         break;
6732       }
6733 
6734       // repeated float aspect_ratio = 3;
6735       case 3: {
6736         if (static_cast< ::google::protobuf::uint8>(tag) ==
6737             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
6738           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6739                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6740                  1, 29u, input, this->mutable_aspect_ratio())));
6741         } else if (
6742             static_cast< ::google::protobuf::uint8>(tag) ==
6743             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6744           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6745                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6746                  input, this->mutable_aspect_ratio())));
6747         } else {
6748           goto handle_unusual;
6749         }
6750         break;
6751       }
6752 
6753       // optional bool flip = 4 [default = true];
6754       case 4: {
6755         if (static_cast< ::google::protobuf::uint8>(tag) ==
6756             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
6757           set_has_flip();
6758           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6759                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6760                  input, &flip_)));
6761         } else {
6762           goto handle_unusual;
6763         }
6764         break;
6765       }
6766 
6767       // optional bool clip = 5 [default = true];
6768       case 5: {
6769         if (static_cast< ::google::protobuf::uint8>(tag) ==
6770             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
6771           set_has_clip();
6772           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6773                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6774                  input, &clip_)));
6775         } else {
6776           goto handle_unusual;
6777         }
6778         break;
6779       }
6780 
6781       // repeated float variance = 6;
6782       case 6: {
6783         if (static_cast< ::google::protobuf::uint8>(tag) ==
6784             static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
6785           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6786                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6787                  1, 53u, input, this->mutable_variance())));
6788         } else if (
6789             static_cast< ::google::protobuf::uint8>(tag) ==
6790             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
6791           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6792                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6793                  input, this->mutable_variance())));
6794         } else {
6795           goto handle_unusual;
6796         }
6797         break;
6798       }
6799 
6800       // optional uint32 img_size = 7;
6801       case 7: {
6802         if (static_cast< ::google::protobuf::uint8>(tag) ==
6803             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
6804           set_has_img_size();
6805           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6806                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6807                  input, &img_size_)));
6808         } else {
6809           goto handle_unusual;
6810         }
6811         break;
6812       }
6813 
6814       // optional uint32 img_h = 8;
6815       case 8: {
6816         if (static_cast< ::google::protobuf::uint8>(tag) ==
6817             static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
6818           set_has_img_h();
6819           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6820                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6821                  input, &img_h_)));
6822         } else {
6823           goto handle_unusual;
6824         }
6825         break;
6826       }
6827 
6828       // optional uint32 img_w = 9;
6829       case 9: {
6830         if (static_cast< ::google::protobuf::uint8>(tag) ==
6831             static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
6832           set_has_img_w();
6833           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6834                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6835                  input, &img_w_)));
6836         } else {
6837           goto handle_unusual;
6838         }
6839         break;
6840       }
6841 
6842       // optional float step = 10;
6843       case 10: {
6844         if (static_cast< ::google::protobuf::uint8>(tag) ==
6845             static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
6846           set_has_step();
6847           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6848                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6849                  input, &step_)));
6850         } else {
6851           goto handle_unusual;
6852         }
6853         break;
6854       }
6855 
6856       // optional float step_h = 11;
6857       case 11: {
6858         if (static_cast< ::google::protobuf::uint8>(tag) ==
6859             static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
6860           set_has_step_h();
6861           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6862                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6863                  input, &step_h_)));
6864         } else {
6865           goto handle_unusual;
6866         }
6867         break;
6868       }
6869 
6870       // optional float step_w = 12;
6871       case 12: {
6872         if (static_cast< ::google::protobuf::uint8>(tag) ==
6873             static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
6874           set_has_step_w();
6875           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6876                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6877                  input, &step_w_)));
6878         } else {
6879           goto handle_unusual;
6880         }
6881         break;
6882       }
6883 
6884       // optional float offset = 13 [default = 0.5];
6885       case 13: {
6886         if (static_cast< ::google::protobuf::uint8>(tag) ==
6887             static_cast< ::google::protobuf::uint8>(109u /* 109 & 0xFF */)) {
6888           set_has_offset();
6889           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6890                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6891                  input, &offset_)));
6892         } else {
6893           goto handle_unusual;
6894         }
6895         break;
6896       }
6897 
6898       // repeated float offset_h = 14;
6899       case 14: {
6900         if (static_cast< ::google::protobuf::uint8>(tag) ==
6901             static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
6902           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6903                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6904                  1, 117u, input, this->mutable_offset_h())));
6905         } else if (
6906             static_cast< ::google::protobuf::uint8>(tag) ==
6907             static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
6908           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6909                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6910                  input, this->mutable_offset_h())));
6911         } else {
6912           goto handle_unusual;
6913         }
6914         break;
6915       }
6916 
6917       // repeated float offset_w = 15;
6918       case 15: {
6919         if (static_cast< ::google::protobuf::uint8>(tag) ==
6920             static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) {
6921           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6922                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6923                  1, 125u, input, this->mutable_offset_w())));
6924         } else if (
6925             static_cast< ::google::protobuf::uint8>(tag) ==
6926             static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
6927           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6928                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6929                  input, this->mutable_offset_w())));
6930         } else {
6931           goto handle_unusual;
6932         }
6933         break;
6934       }
6935 
6936       // repeated float width = 16;
6937       case 16: {
6938         if (static_cast< ::google::protobuf::uint8>(tag) ==
6939             static_cast< ::google::protobuf::uint8>(133u /* 133 & 0xFF */)) {
6940           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6941                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6942                  2, 133u, input, this->mutable_width())));
6943         } else if (
6944             static_cast< ::google::protobuf::uint8>(tag) ==
6945             static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
6946           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6947                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6948                  input, this->mutable_width())));
6949         } else {
6950           goto handle_unusual;
6951         }
6952         break;
6953       }
6954 
6955       // repeated float height = 17;
6956       case 17: {
6957         if (static_cast< ::google::protobuf::uint8>(tag) ==
6958             static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) {
6959           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
6960                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6961                  2, 141u, input, this->mutable_height())));
6962         } else if (
6963             static_cast< ::google::protobuf::uint8>(tag) ==
6964             static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
6965           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
6966                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
6967                  input, this->mutable_height())));
6968         } else {
6969           goto handle_unusual;
6970         }
6971         break;
6972       }
6973 
6974       default: {
6975       handle_unusual:
6976         if (tag == 0) {
6977           goto success;
6978         }
6979         DO_(::google::protobuf::internal::WireFormat::SkipField(
6980               input, tag, _internal_metadata_.mutable_unknown_fields()));
6981         break;
6982       }
6983     }
6984   }
6985 success:
6986   // @@protoc_insertion_point(parse_success:opencv_caffe.PriorBoxParameter)
6987   return true;
6988 failure:
6989   // @@protoc_insertion_point(parse_failure:opencv_caffe.PriorBoxParameter)
6990   return false;
6991 #undef DO_
6992 }
6993 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const6994 void PriorBoxParameter::SerializeWithCachedSizes(
6995     ::google::protobuf::io::CodedOutputStream* output) const {
6996   // @@protoc_insertion_point(serialize_start:opencv_caffe.PriorBoxParameter)
6997   ::google::protobuf::uint32 cached_has_bits = 0;
6998   (void) cached_has_bits;
6999 
7000   // repeated float min_size = 1;
7001   for (int i = 0, n = this->min_size_size(); i < n; i++) {
7002     ::google::protobuf::internal::WireFormatLite::WriteFloat(
7003       1, this->min_size(i), output);
7004   }
7005 
7006   // repeated float max_size = 2;
7007   for (int i = 0, n = this->max_size_size(); i < n; i++) {
7008     ::google::protobuf::internal::WireFormatLite::WriteFloat(
7009       2, this->max_size(i), output);
7010   }
7011 
7012   // repeated float aspect_ratio = 3;
7013   for (int i = 0, n = this->aspect_ratio_size(); i < n; i++) {
7014     ::google::protobuf::internal::WireFormatLite::WriteFloat(
7015       3, this->aspect_ratio(i), output);
7016   }
7017 
7018   cached_has_bits = _has_bits_[0];
7019   // optional bool flip = 4 [default = true];
7020   if (cached_has_bits & 0x00000040u) {
7021     ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->flip(), output);
7022   }
7023 
7024   // optional bool clip = 5 [default = true];
7025   if (cached_has_bits & 0x00000080u) {
7026     ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->clip(), output);
7027   }
7028 
7029   // repeated float variance = 6;
7030   for (int i = 0, n = this->variance_size(); i < n; i++) {
7031     ::google::protobuf::internal::WireFormatLite::WriteFloat(
7032       6, this->variance(i), output);
7033   }
7034 
7035   // optional uint32 img_size = 7;
7036   if (cached_has_bits & 0x00000001u) {
7037     ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->img_size(), output);
7038   }
7039 
7040   // optional uint32 img_h = 8;
7041   if (cached_has_bits & 0x00000002u) {
7042     ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->img_h(), output);
7043   }
7044 
7045   // optional uint32 img_w = 9;
7046   if (cached_has_bits & 0x00000004u) {
7047     ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->img_w(), output);
7048   }
7049 
7050   // optional float step = 10;
7051   if (cached_has_bits & 0x00000008u) {
7052     ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->step(), output);
7053   }
7054 
7055   // optional float step_h = 11;
7056   if (cached_has_bits & 0x00000010u) {
7057     ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->step_h(), output);
7058   }
7059 
7060   // optional float step_w = 12;
7061   if (cached_has_bits & 0x00000020u) {
7062     ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->step_w(), output);
7063   }
7064 
7065   // optional float offset = 13 [default = 0.5];
7066   if (cached_has_bits & 0x00000100u) {
7067     ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->offset(), output);
7068   }
7069 
7070   // repeated float offset_h = 14;
7071   for (int i = 0, n = this->offset_h_size(); i < n; i++) {
7072     ::google::protobuf::internal::WireFormatLite::WriteFloat(
7073       14, this->offset_h(i), output);
7074   }
7075 
7076   // repeated float offset_w = 15;
7077   for (int i = 0, n = this->offset_w_size(); i < n; i++) {
7078     ::google::protobuf::internal::WireFormatLite::WriteFloat(
7079       15, this->offset_w(i), output);
7080   }
7081 
7082   // repeated float width = 16;
7083   for (int i = 0, n = this->width_size(); i < n; i++) {
7084     ::google::protobuf::internal::WireFormatLite::WriteFloat(
7085       16, this->width(i), output);
7086   }
7087 
7088   // repeated float height = 17;
7089   for (int i = 0, n = this->height_size(); i < n; i++) {
7090     ::google::protobuf::internal::WireFormatLite::WriteFloat(
7091       17, this->height(i), output);
7092   }
7093 
7094   if (_internal_metadata_.have_unknown_fields()) {
7095     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7096         _internal_metadata_.unknown_fields(), output);
7097   }
7098   // @@protoc_insertion_point(serialize_end:opencv_caffe.PriorBoxParameter)
7099 }
7100 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const7101 ::google::protobuf::uint8* PriorBoxParameter::InternalSerializeWithCachedSizesToArray(
7102     bool deterministic, ::google::protobuf::uint8* target) const {
7103   (void)deterministic; // Unused
7104   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PriorBoxParameter)
7105   ::google::protobuf::uint32 cached_has_bits = 0;
7106   (void) cached_has_bits;
7107 
7108   // repeated float min_size = 1;
7109   target = ::google::protobuf::internal::WireFormatLite::
7110     WriteFloatToArray(1, this->min_size_, target);
7111 
7112   // repeated float max_size = 2;
7113   target = ::google::protobuf::internal::WireFormatLite::
7114     WriteFloatToArray(2, this->max_size_, target);
7115 
7116   // repeated float aspect_ratio = 3;
7117   target = ::google::protobuf::internal::WireFormatLite::
7118     WriteFloatToArray(3, this->aspect_ratio_, target);
7119 
7120   cached_has_bits = _has_bits_[0];
7121   // optional bool flip = 4 [default = true];
7122   if (cached_has_bits & 0x00000040u) {
7123     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->flip(), target);
7124   }
7125 
7126   // optional bool clip = 5 [default = true];
7127   if (cached_has_bits & 0x00000080u) {
7128     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->clip(), target);
7129   }
7130 
7131   // repeated float variance = 6;
7132   target = ::google::protobuf::internal::WireFormatLite::
7133     WriteFloatToArray(6, this->variance_, target);
7134 
7135   // optional uint32 img_size = 7;
7136   if (cached_has_bits & 0x00000001u) {
7137     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->img_size(), target);
7138   }
7139 
7140   // optional uint32 img_h = 8;
7141   if (cached_has_bits & 0x00000002u) {
7142     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->img_h(), target);
7143   }
7144 
7145   // optional uint32 img_w = 9;
7146   if (cached_has_bits & 0x00000004u) {
7147     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->img_w(), target);
7148   }
7149 
7150   // optional float step = 10;
7151   if (cached_has_bits & 0x00000008u) {
7152     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->step(), target);
7153   }
7154 
7155   // optional float step_h = 11;
7156   if (cached_has_bits & 0x00000010u) {
7157     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->step_h(), target);
7158   }
7159 
7160   // optional float step_w = 12;
7161   if (cached_has_bits & 0x00000020u) {
7162     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->step_w(), target);
7163   }
7164 
7165   // optional float offset = 13 [default = 0.5];
7166   if (cached_has_bits & 0x00000100u) {
7167     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->offset(), target);
7168   }
7169 
7170   // repeated float offset_h = 14;
7171   target = ::google::protobuf::internal::WireFormatLite::
7172     WriteFloatToArray(14, this->offset_h_, target);
7173 
7174   // repeated float offset_w = 15;
7175   target = ::google::protobuf::internal::WireFormatLite::
7176     WriteFloatToArray(15, this->offset_w_, target);
7177 
7178   // repeated float width = 16;
7179   target = ::google::protobuf::internal::WireFormatLite::
7180     WriteFloatToArray(16, this->width_, target);
7181 
7182   // repeated float height = 17;
7183   target = ::google::protobuf::internal::WireFormatLite::
7184     WriteFloatToArray(17, this->height_, target);
7185 
7186   if (_internal_metadata_.have_unknown_fields()) {
7187     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7188         _internal_metadata_.unknown_fields(), target);
7189   }
7190   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PriorBoxParameter)
7191   return target;
7192 }
7193 
ByteSizeLong() const7194 size_t PriorBoxParameter::ByteSizeLong() const {
7195 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PriorBoxParameter)
7196   size_t total_size = 0;
7197 
7198   if (_internal_metadata_.have_unknown_fields()) {
7199     total_size +=
7200       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7201         _internal_metadata_.unknown_fields());
7202   }
7203   // repeated float min_size = 1;
7204   {
7205     unsigned int count = static_cast<unsigned int>(this->min_size_size());
7206     size_t data_size = 4UL * count;
7207     total_size += 1 *
7208                   ::google::protobuf::internal::FromIntSize(this->min_size_size());
7209     total_size += data_size;
7210   }
7211 
7212   // repeated float max_size = 2;
7213   {
7214     unsigned int count = static_cast<unsigned int>(this->max_size_size());
7215     size_t data_size = 4UL * count;
7216     total_size += 1 *
7217                   ::google::protobuf::internal::FromIntSize(this->max_size_size());
7218     total_size += data_size;
7219   }
7220 
7221   // repeated float aspect_ratio = 3;
7222   {
7223     unsigned int count = static_cast<unsigned int>(this->aspect_ratio_size());
7224     size_t data_size = 4UL * count;
7225     total_size += 1 *
7226                   ::google::protobuf::internal::FromIntSize(this->aspect_ratio_size());
7227     total_size += data_size;
7228   }
7229 
7230   // repeated float variance = 6;
7231   {
7232     unsigned int count = static_cast<unsigned int>(this->variance_size());
7233     size_t data_size = 4UL * count;
7234     total_size += 1 *
7235                   ::google::protobuf::internal::FromIntSize(this->variance_size());
7236     total_size += data_size;
7237   }
7238 
7239   // repeated float offset_h = 14;
7240   {
7241     unsigned int count = static_cast<unsigned int>(this->offset_h_size());
7242     size_t data_size = 4UL * count;
7243     total_size += 1 *
7244                   ::google::protobuf::internal::FromIntSize(this->offset_h_size());
7245     total_size += data_size;
7246   }
7247 
7248   // repeated float offset_w = 15;
7249   {
7250     unsigned int count = static_cast<unsigned int>(this->offset_w_size());
7251     size_t data_size = 4UL * count;
7252     total_size += 1 *
7253                   ::google::protobuf::internal::FromIntSize(this->offset_w_size());
7254     total_size += data_size;
7255   }
7256 
7257   // repeated float width = 16;
7258   {
7259     unsigned int count = static_cast<unsigned int>(this->width_size());
7260     size_t data_size = 4UL * count;
7261     total_size += 2 *
7262                   ::google::protobuf::internal::FromIntSize(this->width_size());
7263     total_size += data_size;
7264   }
7265 
7266   // repeated float height = 17;
7267   {
7268     unsigned int count = static_cast<unsigned int>(this->height_size());
7269     size_t data_size = 4UL * count;
7270     total_size += 2 *
7271                   ::google::protobuf::internal::FromIntSize(this->height_size());
7272     total_size += data_size;
7273   }
7274 
7275   if (_has_bits_[0 / 32] & 255u) {
7276     // optional uint32 img_size = 7;
7277     if (has_img_size()) {
7278       total_size += 1 +
7279         ::google::protobuf::internal::WireFormatLite::UInt32Size(
7280           this->img_size());
7281     }
7282 
7283     // optional uint32 img_h = 8;
7284     if (has_img_h()) {
7285       total_size += 1 +
7286         ::google::protobuf::internal::WireFormatLite::UInt32Size(
7287           this->img_h());
7288     }
7289 
7290     // optional uint32 img_w = 9;
7291     if (has_img_w()) {
7292       total_size += 1 +
7293         ::google::protobuf::internal::WireFormatLite::UInt32Size(
7294           this->img_w());
7295     }
7296 
7297     // optional float step = 10;
7298     if (has_step()) {
7299       total_size += 1 + 4;
7300     }
7301 
7302     // optional float step_h = 11;
7303     if (has_step_h()) {
7304       total_size += 1 + 4;
7305     }
7306 
7307     // optional float step_w = 12;
7308     if (has_step_w()) {
7309       total_size += 1 + 4;
7310     }
7311 
7312     // optional bool flip = 4 [default = true];
7313     if (has_flip()) {
7314       total_size += 1 + 1;
7315     }
7316 
7317     // optional bool clip = 5 [default = true];
7318     if (has_clip()) {
7319       total_size += 1 + 1;
7320     }
7321 
7322   }
7323   // optional float offset = 13 [default = 0.5];
7324   if (has_offset()) {
7325     total_size += 1 + 4;
7326   }
7327 
7328   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7329   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7330   _cached_size_ = cached_size;
7331   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7332   return total_size;
7333 }
7334 
MergeFrom(const::google::protobuf::Message & from)7335 void PriorBoxParameter::MergeFrom(const ::google::protobuf::Message& from) {
7336 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PriorBoxParameter)
7337   GOOGLE_DCHECK_NE(&from, this);
7338   const PriorBoxParameter* source =
7339       ::google::protobuf::internal::DynamicCastToGenerated<const PriorBoxParameter>(
7340           &from);
7341   if (source == NULL) {
7342   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PriorBoxParameter)
7343     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7344   } else {
7345   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PriorBoxParameter)
7346     MergeFrom(*source);
7347   }
7348 }
7349 
MergeFrom(const PriorBoxParameter & from)7350 void PriorBoxParameter::MergeFrom(const PriorBoxParameter& from) {
7351 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PriorBoxParameter)
7352   GOOGLE_DCHECK_NE(&from, this);
7353   _internal_metadata_.MergeFrom(from._internal_metadata_);
7354   ::google::protobuf::uint32 cached_has_bits = 0;
7355   (void) cached_has_bits;
7356 
7357   min_size_.MergeFrom(from.min_size_);
7358   max_size_.MergeFrom(from.max_size_);
7359   aspect_ratio_.MergeFrom(from.aspect_ratio_);
7360   variance_.MergeFrom(from.variance_);
7361   offset_h_.MergeFrom(from.offset_h_);
7362   offset_w_.MergeFrom(from.offset_w_);
7363   width_.MergeFrom(from.width_);
7364   height_.MergeFrom(from.height_);
7365   cached_has_bits = from._has_bits_[0];
7366   if (cached_has_bits & 255u) {
7367     if (cached_has_bits & 0x00000001u) {
7368       img_size_ = from.img_size_;
7369     }
7370     if (cached_has_bits & 0x00000002u) {
7371       img_h_ = from.img_h_;
7372     }
7373     if (cached_has_bits & 0x00000004u) {
7374       img_w_ = from.img_w_;
7375     }
7376     if (cached_has_bits & 0x00000008u) {
7377       step_ = from.step_;
7378     }
7379     if (cached_has_bits & 0x00000010u) {
7380       step_h_ = from.step_h_;
7381     }
7382     if (cached_has_bits & 0x00000020u) {
7383       step_w_ = from.step_w_;
7384     }
7385     if (cached_has_bits & 0x00000040u) {
7386       flip_ = from.flip_;
7387     }
7388     if (cached_has_bits & 0x00000080u) {
7389       clip_ = from.clip_;
7390     }
7391     _has_bits_[0] |= cached_has_bits;
7392   }
7393   if (cached_has_bits & 0x00000100u) {
7394     set_offset(from.offset());
7395   }
7396 }
7397 
CopyFrom(const::google::protobuf::Message & from)7398 void PriorBoxParameter::CopyFrom(const ::google::protobuf::Message& from) {
7399 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PriorBoxParameter)
7400   if (&from == this) return;
7401   Clear();
7402   MergeFrom(from);
7403 }
7404 
CopyFrom(const PriorBoxParameter & from)7405 void PriorBoxParameter::CopyFrom(const PriorBoxParameter& from) {
7406 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PriorBoxParameter)
7407   if (&from == this) return;
7408   Clear();
7409   MergeFrom(from);
7410 }
7411 
IsInitialized() const7412 bool PriorBoxParameter::IsInitialized() const {
7413   return true;
7414 }
7415 
Swap(PriorBoxParameter * other)7416 void PriorBoxParameter::Swap(PriorBoxParameter* other) {
7417   if (other == this) return;
7418   InternalSwap(other);
7419 }
InternalSwap(PriorBoxParameter * other)7420 void PriorBoxParameter::InternalSwap(PriorBoxParameter* other) {
7421   using std::swap;
7422   min_size_.InternalSwap(&other->min_size_);
7423   max_size_.InternalSwap(&other->max_size_);
7424   aspect_ratio_.InternalSwap(&other->aspect_ratio_);
7425   variance_.InternalSwap(&other->variance_);
7426   offset_h_.InternalSwap(&other->offset_h_);
7427   offset_w_.InternalSwap(&other->offset_w_);
7428   width_.InternalSwap(&other->width_);
7429   height_.InternalSwap(&other->height_);
7430   swap(img_size_, other->img_size_);
7431   swap(img_h_, other->img_h_);
7432   swap(img_w_, other->img_w_);
7433   swap(step_, other->step_);
7434   swap(step_h_, other->step_h_);
7435   swap(step_w_, other->step_w_);
7436   swap(flip_, other->flip_);
7437   swap(clip_, other->clip_);
7438   swap(offset_, other->offset_);
7439   swap(_has_bits_[0], other->_has_bits_[0]);
7440   _internal_metadata_.Swap(&other->_internal_metadata_);
7441   swap(_cached_size_, other->_cached_size_);
7442 }
7443 
GetMetadata() const7444 ::google::protobuf::Metadata PriorBoxParameter::GetMetadata() const {
7445   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
7446   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
7447 }
7448 
7449 
7450 // ===================================================================
7451 
InitAsDefaultInstance()7452 void DetectionOutputParameter::InitAsDefaultInstance() {
7453   ::opencv_caffe::_DetectionOutputParameter_default_instance_._instance.get_mutable()->nms_param_ = const_cast< ::opencv_caffe::NonMaximumSuppressionParameter*>(
7454       ::opencv_caffe::NonMaximumSuppressionParameter::internal_default_instance());
7455   ::opencv_caffe::_DetectionOutputParameter_default_instance_._instance.get_mutable()->save_output_param_ = const_cast< ::opencv_caffe::SaveOutputParameter*>(
7456       ::opencv_caffe::SaveOutputParameter::internal_default_instance());
7457 }
7458 #if !defined(_MSC_VER) || _MSC_VER >= 1900
7459 const int DetectionOutputParameter::kNumClassesFieldNumber;
7460 const int DetectionOutputParameter::kShareLocationFieldNumber;
7461 const int DetectionOutputParameter::kBackgroundLabelIdFieldNumber;
7462 const int DetectionOutputParameter::kNmsParamFieldNumber;
7463 const int DetectionOutputParameter::kSaveOutputParamFieldNumber;
7464 const int DetectionOutputParameter::kCodeTypeFieldNumber;
7465 const int DetectionOutputParameter::kVarianceEncodedInTargetFieldNumber;
7466 const int DetectionOutputParameter::kKeepTopKFieldNumber;
7467 const int DetectionOutputParameter::kConfidenceThresholdFieldNumber;
7468 const int DetectionOutputParameter::kNormalizedBboxFieldNumber;
7469 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7470 
DetectionOutputParameter()7471 DetectionOutputParameter::DetectionOutputParameter()
7472   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7473   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7474     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDetectionOutputParameter();
7475   }
7476   SharedCtor();
7477   // @@protoc_insertion_point(constructor:opencv_caffe.DetectionOutputParameter)
7478 }
DetectionOutputParameter(const DetectionOutputParameter & from)7479 DetectionOutputParameter::DetectionOutputParameter(const DetectionOutputParameter& from)
7480   : ::google::protobuf::Message(),
7481       _internal_metadata_(NULL),
7482       _has_bits_(from._has_bits_),
7483       _cached_size_(0) {
7484   _internal_metadata_.MergeFrom(from._internal_metadata_);
7485   if (from.has_nms_param()) {
7486     nms_param_ = new ::opencv_caffe::NonMaximumSuppressionParameter(*from.nms_param_);
7487   } else {
7488     nms_param_ = NULL;
7489   }
7490   if (from.has_save_output_param()) {
7491     save_output_param_ = new ::opencv_caffe::SaveOutputParameter(*from.save_output_param_);
7492   } else {
7493     save_output_param_ = NULL;
7494   }
7495   ::memcpy(&num_classes_, &from.num_classes_,
7496     static_cast<size_t>(reinterpret_cast<char*>(&normalized_bbox_) -
7497     reinterpret_cast<char*>(&num_classes_)) + sizeof(normalized_bbox_));
7498   // @@protoc_insertion_point(copy_constructor:opencv_caffe.DetectionOutputParameter)
7499 }
7500 
SharedCtor()7501 void DetectionOutputParameter::SharedCtor() {
7502   _cached_size_ = 0;
7503   ::memset(&nms_param_, 0, static_cast<size_t>(
7504       reinterpret_cast<char*>(&confidence_threshold_) -
7505       reinterpret_cast<char*>(&nms_param_)) + sizeof(confidence_threshold_));
7506   keep_top_k_ = -1;
7507   code_type_ = 1;
7508   share_location_ = true;
7509   normalized_bbox_ = true;
7510 }
7511 
~DetectionOutputParameter()7512 DetectionOutputParameter::~DetectionOutputParameter() {
7513   // @@protoc_insertion_point(destructor:opencv_caffe.DetectionOutputParameter)
7514   SharedDtor();
7515 }
7516 
SharedDtor()7517 void DetectionOutputParameter::SharedDtor() {
7518   if (this != internal_default_instance()) delete nms_param_;
7519   if (this != internal_default_instance()) delete save_output_param_;
7520 }
7521 
SetCachedSize(int size) const7522 void DetectionOutputParameter::SetCachedSize(int size) const {
7523   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7524   _cached_size_ = size;
7525   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7526 }
descriptor()7527 const ::google::protobuf::Descriptor* DetectionOutputParameter::descriptor() {
7528   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
7529   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7530 }
7531 
default_instance()7532 const DetectionOutputParameter& DetectionOutputParameter::default_instance() {
7533   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDetectionOutputParameter();
7534   return *internal_default_instance();
7535 }
7536 
New(::google::protobuf::Arena * arena) const7537 DetectionOutputParameter* DetectionOutputParameter::New(::google::protobuf::Arena* arena) const {
7538   DetectionOutputParameter* n = new DetectionOutputParameter;
7539   if (arena != NULL) {
7540     arena->Own(n);
7541   }
7542   return n;
7543 }
7544 
Clear()7545 void DetectionOutputParameter::Clear() {
7546 // @@protoc_insertion_point(message_clear_start:opencv_caffe.DetectionOutputParameter)
7547   ::google::protobuf::uint32 cached_has_bits = 0;
7548   // Prevent compiler warnings about cached_has_bits being unused
7549   (void) cached_has_bits;
7550 
7551   cached_has_bits = _has_bits_[0];
7552   if (cached_has_bits & 3u) {
7553     if (cached_has_bits & 0x00000001u) {
7554       GOOGLE_DCHECK(nms_param_ != NULL);
7555       nms_param_->Clear();
7556     }
7557     if (cached_has_bits & 0x00000002u) {
7558       GOOGLE_DCHECK(save_output_param_ != NULL);
7559       save_output_param_->Clear();
7560     }
7561   }
7562   if (cached_has_bits & 252u) {
7563     ::memset(&num_classes_, 0, static_cast<size_t>(
7564         reinterpret_cast<char*>(&confidence_threshold_) -
7565         reinterpret_cast<char*>(&num_classes_)) + sizeof(confidence_threshold_));
7566     keep_top_k_ = -1;
7567     code_type_ = 1;
7568   }
7569   if (cached_has_bits & 768u) {
7570     share_location_ = true;
7571     normalized_bbox_ = true;
7572   }
7573   _has_bits_.Clear();
7574   _internal_metadata_.Clear();
7575 }
7576 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)7577 bool DetectionOutputParameter::MergePartialFromCodedStream(
7578     ::google::protobuf::io::CodedInputStream* input) {
7579 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7580   ::google::protobuf::uint32 tag;
7581   // @@protoc_insertion_point(parse_start:opencv_caffe.DetectionOutputParameter)
7582   for (;;) {
7583     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7584     tag = p.first;
7585     if (!p.second) goto handle_unusual;
7586     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7587       // optional uint32 num_classes = 1;
7588       case 1: {
7589         if (static_cast< ::google::protobuf::uint8>(tag) ==
7590             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7591           set_has_num_classes();
7592           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7593                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
7594                  input, &num_classes_)));
7595         } else {
7596           goto handle_unusual;
7597         }
7598         break;
7599       }
7600 
7601       // optional bool share_location = 2 [default = true];
7602       case 2: {
7603         if (static_cast< ::google::protobuf::uint8>(tag) ==
7604             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7605           set_has_share_location();
7606           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7607                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7608                  input, &share_location_)));
7609         } else {
7610           goto handle_unusual;
7611         }
7612         break;
7613       }
7614 
7615       // optional int32 background_label_id = 3 [default = 0];
7616       case 3: {
7617         if (static_cast< ::google::protobuf::uint8>(tag) ==
7618             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
7619           set_has_background_label_id();
7620           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7621                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7622                  input, &background_label_id_)));
7623         } else {
7624           goto handle_unusual;
7625         }
7626         break;
7627       }
7628 
7629       // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4;
7630       case 4: {
7631         if (static_cast< ::google::protobuf::uint8>(tag) ==
7632             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
7633           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7634                input, mutable_nms_param()));
7635         } else {
7636           goto handle_unusual;
7637         }
7638         break;
7639       }
7640 
7641       // optional .opencv_caffe.SaveOutputParameter save_output_param = 5;
7642       case 5: {
7643         if (static_cast< ::google::protobuf::uint8>(tag) ==
7644             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
7645           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7646                input, mutable_save_output_param()));
7647         } else {
7648           goto handle_unusual;
7649         }
7650         break;
7651       }
7652 
7653       // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER];
7654       case 6: {
7655         if (static_cast< ::google::protobuf::uint8>(tag) ==
7656             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
7657           int value;
7658           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7659                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7660                  input, &value)));
7661           if (::opencv_caffe::PriorBoxParameter_CodeType_IsValid(value)) {
7662             set_code_type(static_cast< ::opencv_caffe::PriorBoxParameter_CodeType >(value));
7663           } else {
7664             mutable_unknown_fields()->AddVarint(
7665                 6, static_cast< ::google::protobuf::uint64>(value));
7666           }
7667         } else {
7668           goto handle_unusual;
7669         }
7670         break;
7671       }
7672 
7673       // optional int32 keep_top_k = 7 [default = -1];
7674       case 7: {
7675         if (static_cast< ::google::protobuf::uint8>(tag) ==
7676             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
7677           set_has_keep_top_k();
7678           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7679                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7680                  input, &keep_top_k_)));
7681         } else {
7682           goto handle_unusual;
7683         }
7684         break;
7685       }
7686 
7687       // optional bool variance_encoded_in_target = 8 [default = false];
7688       case 8: {
7689         if (static_cast< ::google::protobuf::uint8>(tag) ==
7690             static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
7691           set_has_variance_encoded_in_target();
7692           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7693                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7694                  input, &variance_encoded_in_target_)));
7695         } else {
7696           goto handle_unusual;
7697         }
7698         break;
7699       }
7700 
7701       // optional float confidence_threshold = 9;
7702       case 9: {
7703         if (static_cast< ::google::protobuf::uint8>(tag) ==
7704             static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
7705           set_has_confidence_threshold();
7706           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7707                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
7708                  input, &confidence_threshold_)));
7709         } else {
7710           goto handle_unusual;
7711         }
7712         break;
7713       }
7714 
7715       // optional bool normalized_bbox = 10 [default = true];
7716       case 10: {
7717         if (static_cast< ::google::protobuf::uint8>(tag) ==
7718             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
7719           set_has_normalized_bbox();
7720           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7721                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7722                  input, &normalized_bbox_)));
7723         } else {
7724           goto handle_unusual;
7725         }
7726         break;
7727       }
7728 
7729       default: {
7730       handle_unusual:
7731         if (tag == 0) {
7732           goto success;
7733         }
7734         DO_(::google::protobuf::internal::WireFormat::SkipField(
7735               input, tag, _internal_metadata_.mutable_unknown_fields()));
7736         break;
7737       }
7738     }
7739   }
7740 success:
7741   // @@protoc_insertion_point(parse_success:opencv_caffe.DetectionOutputParameter)
7742   return true;
7743 failure:
7744   // @@protoc_insertion_point(parse_failure:opencv_caffe.DetectionOutputParameter)
7745   return false;
7746 #undef DO_
7747 }
7748 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const7749 void DetectionOutputParameter::SerializeWithCachedSizes(
7750     ::google::protobuf::io::CodedOutputStream* output) const {
7751   // @@protoc_insertion_point(serialize_start:opencv_caffe.DetectionOutputParameter)
7752   ::google::protobuf::uint32 cached_has_bits = 0;
7753   (void) cached_has_bits;
7754 
7755   cached_has_bits = _has_bits_[0];
7756   // optional uint32 num_classes = 1;
7757   if (cached_has_bits & 0x00000004u) {
7758     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_classes(), output);
7759   }
7760 
7761   // optional bool share_location = 2 [default = true];
7762   if (cached_has_bits & 0x00000100u) {
7763     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->share_location(), output);
7764   }
7765 
7766   // optional int32 background_label_id = 3 [default = 0];
7767   if (cached_has_bits & 0x00000008u) {
7768     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->background_label_id(), output);
7769   }
7770 
7771   // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4;
7772   if (cached_has_bits & 0x00000001u) {
7773     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7774       4, *this->nms_param_, output);
7775   }
7776 
7777   // optional .opencv_caffe.SaveOutputParameter save_output_param = 5;
7778   if (cached_has_bits & 0x00000002u) {
7779     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7780       5, *this->save_output_param_, output);
7781   }
7782 
7783   // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER];
7784   if (cached_has_bits & 0x00000080u) {
7785     ::google::protobuf::internal::WireFormatLite::WriteEnum(
7786       6, this->code_type(), output);
7787   }
7788 
7789   // optional int32 keep_top_k = 7 [default = -1];
7790   if (cached_has_bits & 0x00000040u) {
7791     ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->keep_top_k(), output);
7792   }
7793 
7794   // optional bool variance_encoded_in_target = 8 [default = false];
7795   if (cached_has_bits & 0x00000010u) {
7796     ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->variance_encoded_in_target(), output);
7797   }
7798 
7799   // optional float confidence_threshold = 9;
7800   if (cached_has_bits & 0x00000020u) {
7801     ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->confidence_threshold(), output);
7802   }
7803 
7804   // optional bool normalized_bbox = 10 [default = true];
7805   if (cached_has_bits & 0x00000200u) {
7806     ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->normalized_bbox(), output);
7807   }
7808 
7809   if (_internal_metadata_.have_unknown_fields()) {
7810     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7811         _internal_metadata_.unknown_fields(), output);
7812   }
7813   // @@protoc_insertion_point(serialize_end:opencv_caffe.DetectionOutputParameter)
7814 }
7815 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const7816 ::google::protobuf::uint8* DetectionOutputParameter::InternalSerializeWithCachedSizesToArray(
7817     bool deterministic, ::google::protobuf::uint8* target) const {
7818   (void)deterministic; // Unused
7819   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DetectionOutputParameter)
7820   ::google::protobuf::uint32 cached_has_bits = 0;
7821   (void) cached_has_bits;
7822 
7823   cached_has_bits = _has_bits_[0];
7824   // optional uint32 num_classes = 1;
7825   if (cached_has_bits & 0x00000004u) {
7826     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_classes(), target);
7827   }
7828 
7829   // optional bool share_location = 2 [default = true];
7830   if (cached_has_bits & 0x00000100u) {
7831     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->share_location(), target);
7832   }
7833 
7834   // optional int32 background_label_id = 3 [default = 0];
7835   if (cached_has_bits & 0x00000008u) {
7836     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->background_label_id(), target);
7837   }
7838 
7839   // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4;
7840   if (cached_has_bits & 0x00000001u) {
7841     target = ::google::protobuf::internal::WireFormatLite::
7842       InternalWriteMessageToArray(
7843         4, *this->nms_param_, deterministic, target);
7844   }
7845 
7846   // optional .opencv_caffe.SaveOutputParameter save_output_param = 5;
7847   if (cached_has_bits & 0x00000002u) {
7848     target = ::google::protobuf::internal::WireFormatLite::
7849       InternalWriteMessageToArray(
7850         5, *this->save_output_param_, deterministic, target);
7851   }
7852 
7853   // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER];
7854   if (cached_has_bits & 0x00000080u) {
7855     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7856       6, this->code_type(), target);
7857   }
7858 
7859   // optional int32 keep_top_k = 7 [default = -1];
7860   if (cached_has_bits & 0x00000040u) {
7861     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->keep_top_k(), target);
7862   }
7863 
7864   // optional bool variance_encoded_in_target = 8 [default = false];
7865   if (cached_has_bits & 0x00000010u) {
7866     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->variance_encoded_in_target(), target);
7867   }
7868 
7869   // optional float confidence_threshold = 9;
7870   if (cached_has_bits & 0x00000020u) {
7871     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->confidence_threshold(), target);
7872   }
7873 
7874   // optional bool normalized_bbox = 10 [default = true];
7875   if (cached_has_bits & 0x00000200u) {
7876     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->normalized_bbox(), target);
7877   }
7878 
7879   if (_internal_metadata_.have_unknown_fields()) {
7880     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7881         _internal_metadata_.unknown_fields(), target);
7882   }
7883   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DetectionOutputParameter)
7884   return target;
7885 }
7886 
ByteSizeLong() const7887 size_t DetectionOutputParameter::ByteSizeLong() const {
7888 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DetectionOutputParameter)
7889   size_t total_size = 0;
7890 
7891   if (_internal_metadata_.have_unknown_fields()) {
7892     total_size +=
7893       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7894         _internal_metadata_.unknown_fields());
7895   }
7896   if (_has_bits_[0 / 32] & 255u) {
7897     // optional .opencv_caffe.NonMaximumSuppressionParameter nms_param = 4;
7898     if (has_nms_param()) {
7899       total_size += 1 +
7900         ::google::protobuf::internal::WireFormatLite::MessageSize(
7901           *this->nms_param_);
7902     }
7903 
7904     // optional .opencv_caffe.SaveOutputParameter save_output_param = 5;
7905     if (has_save_output_param()) {
7906       total_size += 1 +
7907         ::google::protobuf::internal::WireFormatLite::MessageSize(
7908           *this->save_output_param_);
7909     }
7910 
7911     // optional uint32 num_classes = 1;
7912     if (has_num_classes()) {
7913       total_size += 1 +
7914         ::google::protobuf::internal::WireFormatLite::UInt32Size(
7915           this->num_classes());
7916     }
7917 
7918     // optional int32 background_label_id = 3 [default = 0];
7919     if (has_background_label_id()) {
7920       total_size += 1 +
7921         ::google::protobuf::internal::WireFormatLite::Int32Size(
7922           this->background_label_id());
7923     }
7924 
7925     // optional bool variance_encoded_in_target = 8 [default = false];
7926     if (has_variance_encoded_in_target()) {
7927       total_size += 1 + 1;
7928     }
7929 
7930     // optional float confidence_threshold = 9;
7931     if (has_confidence_threshold()) {
7932       total_size += 1 + 4;
7933     }
7934 
7935     // optional int32 keep_top_k = 7 [default = -1];
7936     if (has_keep_top_k()) {
7937       total_size += 1 +
7938         ::google::protobuf::internal::WireFormatLite::Int32Size(
7939           this->keep_top_k());
7940     }
7941 
7942     // optional .opencv_caffe.PriorBoxParameter.CodeType code_type = 6 [default = CORNER];
7943     if (has_code_type()) {
7944       total_size += 1 +
7945         ::google::protobuf::internal::WireFormatLite::EnumSize(this->code_type());
7946     }
7947 
7948   }
7949   if (_has_bits_[8 / 32] & 768u) {
7950     // optional bool share_location = 2 [default = true];
7951     if (has_share_location()) {
7952       total_size += 1 + 1;
7953     }
7954 
7955     // optional bool normalized_bbox = 10 [default = true];
7956     if (has_normalized_bbox()) {
7957       total_size += 1 + 1;
7958     }
7959 
7960   }
7961   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7962   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7963   _cached_size_ = cached_size;
7964   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7965   return total_size;
7966 }
7967 
MergeFrom(const::google::protobuf::Message & from)7968 void DetectionOutputParameter::MergeFrom(const ::google::protobuf::Message& from) {
7969 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DetectionOutputParameter)
7970   GOOGLE_DCHECK_NE(&from, this);
7971   const DetectionOutputParameter* source =
7972       ::google::protobuf::internal::DynamicCastToGenerated<const DetectionOutputParameter>(
7973           &from);
7974   if (source == NULL) {
7975   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DetectionOutputParameter)
7976     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7977   } else {
7978   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DetectionOutputParameter)
7979     MergeFrom(*source);
7980   }
7981 }
7982 
MergeFrom(const DetectionOutputParameter & from)7983 void DetectionOutputParameter::MergeFrom(const DetectionOutputParameter& from) {
7984 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DetectionOutputParameter)
7985   GOOGLE_DCHECK_NE(&from, this);
7986   _internal_metadata_.MergeFrom(from._internal_metadata_);
7987   ::google::protobuf::uint32 cached_has_bits = 0;
7988   (void) cached_has_bits;
7989 
7990   cached_has_bits = from._has_bits_[0];
7991   if (cached_has_bits & 255u) {
7992     if (cached_has_bits & 0x00000001u) {
7993       mutable_nms_param()->::opencv_caffe::NonMaximumSuppressionParameter::MergeFrom(from.nms_param());
7994     }
7995     if (cached_has_bits & 0x00000002u) {
7996       mutable_save_output_param()->::opencv_caffe::SaveOutputParameter::MergeFrom(from.save_output_param());
7997     }
7998     if (cached_has_bits & 0x00000004u) {
7999       num_classes_ = from.num_classes_;
8000     }
8001     if (cached_has_bits & 0x00000008u) {
8002       background_label_id_ = from.background_label_id_;
8003     }
8004     if (cached_has_bits & 0x00000010u) {
8005       variance_encoded_in_target_ = from.variance_encoded_in_target_;
8006     }
8007     if (cached_has_bits & 0x00000020u) {
8008       confidence_threshold_ = from.confidence_threshold_;
8009     }
8010     if (cached_has_bits & 0x00000040u) {
8011       keep_top_k_ = from.keep_top_k_;
8012     }
8013     if (cached_has_bits & 0x00000080u) {
8014       code_type_ = from.code_type_;
8015     }
8016     _has_bits_[0] |= cached_has_bits;
8017   }
8018   if (cached_has_bits & 768u) {
8019     if (cached_has_bits & 0x00000100u) {
8020       share_location_ = from.share_location_;
8021     }
8022     if (cached_has_bits & 0x00000200u) {
8023       normalized_bbox_ = from.normalized_bbox_;
8024     }
8025     _has_bits_[0] |= cached_has_bits;
8026   }
8027 }
8028 
CopyFrom(const::google::protobuf::Message & from)8029 void DetectionOutputParameter::CopyFrom(const ::google::protobuf::Message& from) {
8030 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DetectionOutputParameter)
8031   if (&from == this) return;
8032   Clear();
8033   MergeFrom(from);
8034 }
8035 
CopyFrom(const DetectionOutputParameter & from)8036 void DetectionOutputParameter::CopyFrom(const DetectionOutputParameter& from) {
8037 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DetectionOutputParameter)
8038   if (&from == this) return;
8039   Clear();
8040   MergeFrom(from);
8041 }
8042 
IsInitialized() const8043 bool DetectionOutputParameter::IsInitialized() const {
8044   return true;
8045 }
8046 
Swap(DetectionOutputParameter * other)8047 void DetectionOutputParameter::Swap(DetectionOutputParameter* other) {
8048   if (other == this) return;
8049   InternalSwap(other);
8050 }
InternalSwap(DetectionOutputParameter * other)8051 void DetectionOutputParameter::InternalSwap(DetectionOutputParameter* other) {
8052   using std::swap;
8053   swap(nms_param_, other->nms_param_);
8054   swap(save_output_param_, other->save_output_param_);
8055   swap(num_classes_, other->num_classes_);
8056   swap(background_label_id_, other->background_label_id_);
8057   swap(variance_encoded_in_target_, other->variance_encoded_in_target_);
8058   swap(confidence_threshold_, other->confidence_threshold_);
8059   swap(keep_top_k_, other->keep_top_k_);
8060   swap(code_type_, other->code_type_);
8061   swap(share_location_, other->share_location_);
8062   swap(normalized_bbox_, other->normalized_bbox_);
8063   swap(_has_bits_[0], other->_has_bits_[0]);
8064   _internal_metadata_.Swap(&other->_internal_metadata_);
8065   swap(_cached_size_, other->_cached_size_);
8066 }
8067 
GetMetadata() const8068 ::google::protobuf::Metadata DetectionOutputParameter::GetMetadata() const {
8069   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
8070   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
8071 }
8072 
8073 
8074 // ===================================================================
8075 
InitAsDefaultInstance()8076 void Datum::InitAsDefaultInstance() {
8077 }
8078 #if !defined(_MSC_VER) || _MSC_VER >= 1900
8079 const int Datum::kChannelsFieldNumber;
8080 const int Datum::kHeightFieldNumber;
8081 const int Datum::kWidthFieldNumber;
8082 const int Datum::kDataFieldNumber;
8083 const int Datum::kLabelFieldNumber;
8084 const int Datum::kFloatDataFieldNumber;
8085 const int Datum::kEncodedFieldNumber;
8086 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8087 
Datum()8088 Datum::Datum()
8089   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8090   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8091     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDatum();
8092   }
8093   SharedCtor();
8094   // @@protoc_insertion_point(constructor:opencv_caffe.Datum)
8095 }
Datum(const Datum & from)8096 Datum::Datum(const Datum& from)
8097   : ::google::protobuf::Message(),
8098       _internal_metadata_(NULL),
8099       _has_bits_(from._has_bits_),
8100       _cached_size_(0),
8101       float_data_(from.float_data_) {
8102   _internal_metadata_.MergeFrom(from._internal_metadata_);
8103   data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8104   if (from.has_data()) {
8105     data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
8106   }
8107   ::memcpy(&channels_, &from.channels_,
8108     static_cast<size_t>(reinterpret_cast<char*>(&encoded_) -
8109     reinterpret_cast<char*>(&channels_)) + sizeof(encoded_));
8110   // @@protoc_insertion_point(copy_constructor:opencv_caffe.Datum)
8111 }
8112 
SharedCtor()8113 void Datum::SharedCtor() {
8114   _cached_size_ = 0;
8115   data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8116   ::memset(&channels_, 0, static_cast<size_t>(
8117       reinterpret_cast<char*>(&encoded_) -
8118       reinterpret_cast<char*>(&channels_)) + sizeof(encoded_));
8119 }
8120 
~Datum()8121 Datum::~Datum() {
8122   // @@protoc_insertion_point(destructor:opencv_caffe.Datum)
8123   SharedDtor();
8124 }
8125 
SharedDtor()8126 void Datum::SharedDtor() {
8127   data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8128 }
8129 
SetCachedSize(int size) const8130 void Datum::SetCachedSize(int size) const {
8131   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8132   _cached_size_ = size;
8133   GOOGLE_SAFE_CONCURRENT_WRITES_END();
8134 }
descriptor()8135 const ::google::protobuf::Descriptor* Datum::descriptor() {
8136   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
8137   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8138 }
8139 
default_instance()8140 const Datum& Datum::default_instance() {
8141   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDatum();
8142   return *internal_default_instance();
8143 }
8144 
New(::google::protobuf::Arena * arena) const8145 Datum* Datum::New(::google::protobuf::Arena* arena) const {
8146   Datum* n = new Datum;
8147   if (arena != NULL) {
8148     arena->Own(n);
8149   }
8150   return n;
8151 }
8152 
Clear()8153 void Datum::Clear() {
8154 // @@protoc_insertion_point(message_clear_start:opencv_caffe.Datum)
8155   ::google::protobuf::uint32 cached_has_bits = 0;
8156   // Prevent compiler warnings about cached_has_bits being unused
8157   (void) cached_has_bits;
8158 
8159   float_data_.Clear();
8160   cached_has_bits = _has_bits_[0];
8161   if (cached_has_bits & 0x00000001u) {
8162     GOOGLE_DCHECK(!data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8163     (*data_.UnsafeRawStringPointer())->clear();
8164   }
8165   if (cached_has_bits & 62u) {
8166     ::memset(&channels_, 0, static_cast<size_t>(
8167         reinterpret_cast<char*>(&encoded_) -
8168         reinterpret_cast<char*>(&channels_)) + sizeof(encoded_));
8169   }
8170   _has_bits_.Clear();
8171   _internal_metadata_.Clear();
8172 }
8173 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)8174 bool Datum::MergePartialFromCodedStream(
8175     ::google::protobuf::io::CodedInputStream* input) {
8176 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8177   ::google::protobuf::uint32 tag;
8178   // @@protoc_insertion_point(parse_start:opencv_caffe.Datum)
8179   for (;;) {
8180     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8181     tag = p.first;
8182     if (!p.second) goto handle_unusual;
8183     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8184       // optional int32 channels = 1;
8185       case 1: {
8186         if (static_cast< ::google::protobuf::uint8>(tag) ==
8187             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
8188           set_has_channels();
8189           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8190                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8191                  input, &channels_)));
8192         } else {
8193           goto handle_unusual;
8194         }
8195         break;
8196       }
8197 
8198       // optional int32 height = 2;
8199       case 2: {
8200         if (static_cast< ::google::protobuf::uint8>(tag) ==
8201             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8202           set_has_height();
8203           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8204                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8205                  input, &height_)));
8206         } else {
8207           goto handle_unusual;
8208         }
8209         break;
8210       }
8211 
8212       // optional int32 width = 3;
8213       case 3: {
8214         if (static_cast< ::google::protobuf::uint8>(tag) ==
8215             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
8216           set_has_width();
8217           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8218                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8219                  input, &width_)));
8220         } else {
8221           goto handle_unusual;
8222         }
8223         break;
8224       }
8225 
8226       // optional bytes data = 4;
8227       case 4: {
8228         if (static_cast< ::google::protobuf::uint8>(tag) ==
8229             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
8230           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8231                 input, this->mutable_data()));
8232         } else {
8233           goto handle_unusual;
8234         }
8235         break;
8236       }
8237 
8238       // optional int32 label = 5;
8239       case 5: {
8240         if (static_cast< ::google::protobuf::uint8>(tag) ==
8241             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
8242           set_has_label();
8243           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8244                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8245                  input, &label_)));
8246         } else {
8247           goto handle_unusual;
8248         }
8249         break;
8250       }
8251 
8252       // repeated float float_data = 6;
8253       case 6: {
8254         if (static_cast< ::google::protobuf::uint8>(tag) ==
8255             static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
8256           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
8257                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8258                  1, 53u, input, this->mutable_float_data())));
8259         } else if (
8260             static_cast< ::google::protobuf::uint8>(tag) ==
8261             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
8262           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
8263                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8264                  input, this->mutable_float_data())));
8265         } else {
8266           goto handle_unusual;
8267         }
8268         break;
8269       }
8270 
8271       // optional bool encoded = 7 [default = false];
8272       case 7: {
8273         if (static_cast< ::google::protobuf::uint8>(tag) ==
8274             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
8275           set_has_encoded();
8276           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8277                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8278                  input, &encoded_)));
8279         } else {
8280           goto handle_unusual;
8281         }
8282         break;
8283       }
8284 
8285       default: {
8286       handle_unusual:
8287         if (tag == 0) {
8288           goto success;
8289         }
8290         DO_(::google::protobuf::internal::WireFormat::SkipField(
8291               input, tag, _internal_metadata_.mutable_unknown_fields()));
8292         break;
8293       }
8294     }
8295   }
8296 success:
8297   // @@protoc_insertion_point(parse_success:opencv_caffe.Datum)
8298   return true;
8299 failure:
8300   // @@protoc_insertion_point(parse_failure:opencv_caffe.Datum)
8301   return false;
8302 #undef DO_
8303 }
8304 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const8305 void Datum::SerializeWithCachedSizes(
8306     ::google::protobuf::io::CodedOutputStream* output) const {
8307   // @@protoc_insertion_point(serialize_start:opencv_caffe.Datum)
8308   ::google::protobuf::uint32 cached_has_bits = 0;
8309   (void) cached_has_bits;
8310 
8311   cached_has_bits = _has_bits_[0];
8312   // optional int32 channels = 1;
8313   if (cached_has_bits & 0x00000002u) {
8314     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->channels(), output);
8315   }
8316 
8317   // optional int32 height = 2;
8318   if (cached_has_bits & 0x00000004u) {
8319     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->height(), output);
8320   }
8321 
8322   // optional int32 width = 3;
8323   if (cached_has_bits & 0x00000008u) {
8324     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->width(), output);
8325   }
8326 
8327   // optional bytes data = 4;
8328   if (cached_has_bits & 0x00000001u) {
8329     ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8330       4, this->data(), output);
8331   }
8332 
8333   // optional int32 label = 5;
8334   if (cached_has_bits & 0x00000010u) {
8335     ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->label(), output);
8336   }
8337 
8338   // repeated float float_data = 6;
8339   for (int i = 0, n = this->float_data_size(); i < n; i++) {
8340     ::google::protobuf::internal::WireFormatLite::WriteFloat(
8341       6, this->float_data(i), output);
8342   }
8343 
8344   // optional bool encoded = 7 [default = false];
8345   if (cached_has_bits & 0x00000020u) {
8346     ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->encoded(), output);
8347   }
8348 
8349   if (_internal_metadata_.have_unknown_fields()) {
8350     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8351         _internal_metadata_.unknown_fields(), output);
8352   }
8353   // @@protoc_insertion_point(serialize_end:opencv_caffe.Datum)
8354 }
8355 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const8356 ::google::protobuf::uint8* Datum::InternalSerializeWithCachedSizesToArray(
8357     bool deterministic, ::google::protobuf::uint8* target) const {
8358   (void)deterministic; // Unused
8359   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.Datum)
8360   ::google::protobuf::uint32 cached_has_bits = 0;
8361   (void) cached_has_bits;
8362 
8363   cached_has_bits = _has_bits_[0];
8364   // optional int32 channels = 1;
8365   if (cached_has_bits & 0x00000002u) {
8366     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->channels(), target);
8367   }
8368 
8369   // optional int32 height = 2;
8370   if (cached_has_bits & 0x00000004u) {
8371     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->height(), target);
8372   }
8373 
8374   // optional int32 width = 3;
8375   if (cached_has_bits & 0x00000008u) {
8376     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->width(), target);
8377   }
8378 
8379   // optional bytes data = 4;
8380   if (cached_has_bits & 0x00000001u) {
8381     target =
8382       ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8383         4, this->data(), target);
8384   }
8385 
8386   // optional int32 label = 5;
8387   if (cached_has_bits & 0x00000010u) {
8388     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->label(), target);
8389   }
8390 
8391   // repeated float float_data = 6;
8392   target = ::google::protobuf::internal::WireFormatLite::
8393     WriteFloatToArray(6, this->float_data_, target);
8394 
8395   // optional bool encoded = 7 [default = false];
8396   if (cached_has_bits & 0x00000020u) {
8397     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->encoded(), target);
8398   }
8399 
8400   if (_internal_metadata_.have_unknown_fields()) {
8401     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8402         _internal_metadata_.unknown_fields(), target);
8403   }
8404   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.Datum)
8405   return target;
8406 }
8407 
ByteSizeLong() const8408 size_t Datum::ByteSizeLong() const {
8409 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.Datum)
8410   size_t total_size = 0;
8411 
8412   if (_internal_metadata_.have_unknown_fields()) {
8413     total_size +=
8414       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8415         _internal_metadata_.unknown_fields());
8416   }
8417   // repeated float float_data = 6;
8418   {
8419     unsigned int count = static_cast<unsigned int>(this->float_data_size());
8420     size_t data_size = 4UL * count;
8421     total_size += 1 *
8422                   ::google::protobuf::internal::FromIntSize(this->float_data_size());
8423     total_size += data_size;
8424   }
8425 
8426   if (_has_bits_[0 / 32] & 63u) {
8427     // optional bytes data = 4;
8428     if (has_data()) {
8429       total_size += 1 +
8430         ::google::protobuf::internal::WireFormatLite::BytesSize(
8431           this->data());
8432     }
8433 
8434     // optional int32 channels = 1;
8435     if (has_channels()) {
8436       total_size += 1 +
8437         ::google::protobuf::internal::WireFormatLite::Int32Size(
8438           this->channels());
8439     }
8440 
8441     // optional int32 height = 2;
8442     if (has_height()) {
8443       total_size += 1 +
8444         ::google::protobuf::internal::WireFormatLite::Int32Size(
8445           this->height());
8446     }
8447 
8448     // optional int32 width = 3;
8449     if (has_width()) {
8450       total_size += 1 +
8451         ::google::protobuf::internal::WireFormatLite::Int32Size(
8452           this->width());
8453     }
8454 
8455     // optional int32 label = 5;
8456     if (has_label()) {
8457       total_size += 1 +
8458         ::google::protobuf::internal::WireFormatLite::Int32Size(
8459           this->label());
8460     }
8461 
8462     // optional bool encoded = 7 [default = false];
8463     if (has_encoded()) {
8464       total_size += 1 + 1;
8465     }
8466 
8467   }
8468   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8469   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8470   _cached_size_ = cached_size;
8471   GOOGLE_SAFE_CONCURRENT_WRITES_END();
8472   return total_size;
8473 }
8474 
MergeFrom(const::google::protobuf::Message & from)8475 void Datum::MergeFrom(const ::google::protobuf::Message& from) {
8476 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.Datum)
8477   GOOGLE_DCHECK_NE(&from, this);
8478   const Datum* source =
8479       ::google::protobuf::internal::DynamicCastToGenerated<const Datum>(
8480           &from);
8481   if (source == NULL) {
8482   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.Datum)
8483     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8484   } else {
8485   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.Datum)
8486     MergeFrom(*source);
8487   }
8488 }
8489 
MergeFrom(const Datum & from)8490 void Datum::MergeFrom(const Datum& from) {
8491 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.Datum)
8492   GOOGLE_DCHECK_NE(&from, this);
8493   _internal_metadata_.MergeFrom(from._internal_metadata_);
8494   ::google::protobuf::uint32 cached_has_bits = 0;
8495   (void) cached_has_bits;
8496 
8497   float_data_.MergeFrom(from.float_data_);
8498   cached_has_bits = from._has_bits_[0];
8499   if (cached_has_bits & 63u) {
8500     if (cached_has_bits & 0x00000001u) {
8501       set_has_data();
8502       data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
8503     }
8504     if (cached_has_bits & 0x00000002u) {
8505       channels_ = from.channels_;
8506     }
8507     if (cached_has_bits & 0x00000004u) {
8508       height_ = from.height_;
8509     }
8510     if (cached_has_bits & 0x00000008u) {
8511       width_ = from.width_;
8512     }
8513     if (cached_has_bits & 0x00000010u) {
8514       label_ = from.label_;
8515     }
8516     if (cached_has_bits & 0x00000020u) {
8517       encoded_ = from.encoded_;
8518     }
8519     _has_bits_[0] |= cached_has_bits;
8520   }
8521 }
8522 
CopyFrom(const::google::protobuf::Message & from)8523 void Datum::CopyFrom(const ::google::protobuf::Message& from) {
8524 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.Datum)
8525   if (&from == this) return;
8526   Clear();
8527   MergeFrom(from);
8528 }
8529 
CopyFrom(const Datum & from)8530 void Datum::CopyFrom(const Datum& from) {
8531 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.Datum)
8532   if (&from == this) return;
8533   Clear();
8534   MergeFrom(from);
8535 }
8536 
IsInitialized() const8537 bool Datum::IsInitialized() const {
8538   return true;
8539 }
8540 
Swap(Datum * other)8541 void Datum::Swap(Datum* other) {
8542   if (other == this) return;
8543   InternalSwap(other);
8544 }
InternalSwap(Datum * other)8545 void Datum::InternalSwap(Datum* other) {
8546   using std::swap;
8547   float_data_.InternalSwap(&other->float_data_);
8548   data_.Swap(&other->data_);
8549   swap(channels_, other->channels_);
8550   swap(height_, other->height_);
8551   swap(width_, other->width_);
8552   swap(label_, other->label_);
8553   swap(encoded_, other->encoded_);
8554   swap(_has_bits_[0], other->_has_bits_[0]);
8555   _internal_metadata_.Swap(&other->_internal_metadata_);
8556   swap(_cached_size_, other->_cached_size_);
8557 }
8558 
GetMetadata() const8559 ::google::protobuf::Metadata Datum::GetMetadata() const {
8560   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
8561   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
8562 }
8563 
8564 
8565 // ===================================================================
8566 
InitAsDefaultInstance()8567 void FillerParameter::InitAsDefaultInstance() {
8568 }
8569 ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> FillerParameter::_default_type_;
8570 #if !defined(_MSC_VER) || _MSC_VER >= 1900
8571 const int FillerParameter::kTypeFieldNumber;
8572 const int FillerParameter::kValueFieldNumber;
8573 const int FillerParameter::kMinFieldNumber;
8574 const int FillerParameter::kMaxFieldNumber;
8575 const int FillerParameter::kMeanFieldNumber;
8576 const int FillerParameter::kStdFieldNumber;
8577 const int FillerParameter::kSparseFieldNumber;
8578 const int FillerParameter::kVarianceNormFieldNumber;
8579 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8580 
FillerParameter()8581 FillerParameter::FillerParameter()
8582   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8583   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8584     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
8585   }
8586   SharedCtor();
8587   // @@protoc_insertion_point(constructor:opencv_caffe.FillerParameter)
8588 }
FillerParameter(const FillerParameter & from)8589 FillerParameter::FillerParameter(const FillerParameter& from)
8590   : ::google::protobuf::Message(),
8591       _internal_metadata_(NULL),
8592       _has_bits_(from._has_bits_),
8593       _cached_size_(0) {
8594   _internal_metadata_.MergeFrom(from._internal_metadata_);
8595   type_.UnsafeSetDefault(&::opencv_caffe::FillerParameter::_default_type_.get());
8596   if (from.has_type()) {
8597     type_.AssignWithDefault(&::opencv_caffe::FillerParameter::_default_type_.get(), from.type_);
8598   }
8599   ::memcpy(&value_, &from.value_,
8600     static_cast<size_t>(reinterpret_cast<char*>(&std_) -
8601     reinterpret_cast<char*>(&value_)) + sizeof(std_));
8602   // @@protoc_insertion_point(copy_constructor:opencv_caffe.FillerParameter)
8603 }
8604 
SharedCtor()8605 void FillerParameter::SharedCtor() {
8606   _cached_size_ = 0;
8607   type_.UnsafeSetDefault(&::opencv_caffe::FillerParameter::_default_type_.get());
8608   ::memset(&value_, 0, static_cast<size_t>(
8609       reinterpret_cast<char*>(&variance_norm_) -
8610       reinterpret_cast<char*>(&value_)) + sizeof(variance_norm_));
8611   sparse_ = -1;
8612   max_ = 1;
8613   std_ = 1;
8614 }
8615 
~FillerParameter()8616 FillerParameter::~FillerParameter() {
8617   // @@protoc_insertion_point(destructor:opencv_caffe.FillerParameter)
8618   SharedDtor();
8619 }
8620 
SharedDtor()8621 void FillerParameter::SharedDtor() {
8622   type_.DestroyNoArena(&::opencv_caffe::FillerParameter::_default_type_.get());
8623 }
8624 
SetCachedSize(int size) const8625 void FillerParameter::SetCachedSize(int size) const {
8626   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8627   _cached_size_ = size;
8628   GOOGLE_SAFE_CONCURRENT_WRITES_END();
8629 }
descriptor()8630 const ::google::protobuf::Descriptor* FillerParameter::descriptor() {
8631   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
8632   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8633 }
8634 
default_instance()8635 const FillerParameter& FillerParameter::default_instance() {
8636   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFillerParameter();
8637   return *internal_default_instance();
8638 }
8639 
New(::google::protobuf::Arena * arena) const8640 FillerParameter* FillerParameter::New(::google::protobuf::Arena* arena) const {
8641   FillerParameter* n = new FillerParameter;
8642   if (arena != NULL) {
8643     arena->Own(n);
8644   }
8645   return n;
8646 }
8647 
Clear()8648 void FillerParameter::Clear() {
8649 // @@protoc_insertion_point(message_clear_start:opencv_caffe.FillerParameter)
8650   ::google::protobuf::uint32 cached_has_bits = 0;
8651   // Prevent compiler warnings about cached_has_bits being unused
8652   (void) cached_has_bits;
8653 
8654   cached_has_bits = _has_bits_[0];
8655   if (cached_has_bits & 0x00000001u) {
8656     GOOGLE_DCHECK(!type_.IsDefault(&::opencv_caffe::FillerParameter::_default_type_.get()));
8657     (*type_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::FillerParameter::_default_type_.get());
8658   }
8659   if (cached_has_bits & 254u) {
8660     ::memset(&value_, 0, static_cast<size_t>(
8661         reinterpret_cast<char*>(&variance_norm_) -
8662         reinterpret_cast<char*>(&value_)) + sizeof(variance_norm_));
8663     sparse_ = -1;
8664     max_ = 1;
8665     std_ = 1;
8666   }
8667   _has_bits_.Clear();
8668   _internal_metadata_.Clear();
8669 }
8670 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)8671 bool FillerParameter::MergePartialFromCodedStream(
8672     ::google::protobuf::io::CodedInputStream* input) {
8673 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8674   ::google::protobuf::uint32 tag;
8675   // @@protoc_insertion_point(parse_start:opencv_caffe.FillerParameter)
8676   for (;;) {
8677     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8678     tag = p.first;
8679     if (!p.second) goto handle_unusual;
8680     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8681       // optional string type = 1 [default = "constant"];
8682       case 1: {
8683         if (static_cast< ::google::protobuf::uint8>(tag) ==
8684             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8685           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8686                 input, this->mutable_type()));
8687           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8688             this->type().data(), static_cast<int>(this->type().length()),
8689             ::google::protobuf::internal::WireFormat::PARSE,
8690             "opencv_caffe.FillerParameter.type");
8691         } else {
8692           goto handle_unusual;
8693         }
8694         break;
8695       }
8696 
8697       // optional float value = 2 [default = 0];
8698       case 2: {
8699         if (static_cast< ::google::protobuf::uint8>(tag) ==
8700             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
8701           set_has_value();
8702           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8703                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8704                  input, &value_)));
8705         } else {
8706           goto handle_unusual;
8707         }
8708         break;
8709       }
8710 
8711       // optional float min = 3 [default = 0];
8712       case 3: {
8713         if (static_cast< ::google::protobuf::uint8>(tag) ==
8714             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
8715           set_has_min();
8716           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8717                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8718                  input, &min_)));
8719         } else {
8720           goto handle_unusual;
8721         }
8722         break;
8723       }
8724 
8725       // optional float max = 4 [default = 1];
8726       case 4: {
8727         if (static_cast< ::google::protobuf::uint8>(tag) ==
8728             static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
8729           set_has_max();
8730           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8731                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8732                  input, &max_)));
8733         } else {
8734           goto handle_unusual;
8735         }
8736         break;
8737       }
8738 
8739       // optional float mean = 5 [default = 0];
8740       case 5: {
8741         if (static_cast< ::google::protobuf::uint8>(tag) ==
8742             static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
8743           set_has_mean();
8744           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8745                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8746                  input, &mean_)));
8747         } else {
8748           goto handle_unusual;
8749         }
8750         break;
8751       }
8752 
8753       // optional float std = 6 [default = 1];
8754       case 6: {
8755         if (static_cast< ::google::protobuf::uint8>(tag) ==
8756             static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
8757           set_has_std();
8758           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8759                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8760                  input, &std_)));
8761         } else {
8762           goto handle_unusual;
8763         }
8764         break;
8765       }
8766 
8767       // optional int32 sparse = 7 [default = -1];
8768       case 7: {
8769         if (static_cast< ::google::protobuf::uint8>(tag) ==
8770             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
8771           set_has_sparse();
8772           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8773                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8774                  input, &sparse_)));
8775         } else {
8776           goto handle_unusual;
8777         }
8778         break;
8779       }
8780 
8781       // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN];
8782       case 8: {
8783         if (static_cast< ::google::protobuf::uint8>(tag) ==
8784             static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
8785           int value;
8786           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8787                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8788                  input, &value)));
8789           if (::opencv_caffe::FillerParameter_VarianceNorm_IsValid(value)) {
8790             set_variance_norm(static_cast< ::opencv_caffe::FillerParameter_VarianceNorm >(value));
8791           } else {
8792             mutable_unknown_fields()->AddVarint(
8793                 8, static_cast< ::google::protobuf::uint64>(value));
8794           }
8795         } else {
8796           goto handle_unusual;
8797         }
8798         break;
8799       }
8800 
8801       default: {
8802       handle_unusual:
8803         if (tag == 0) {
8804           goto success;
8805         }
8806         DO_(::google::protobuf::internal::WireFormat::SkipField(
8807               input, tag, _internal_metadata_.mutable_unknown_fields()));
8808         break;
8809       }
8810     }
8811   }
8812 success:
8813   // @@protoc_insertion_point(parse_success:opencv_caffe.FillerParameter)
8814   return true;
8815 failure:
8816   // @@protoc_insertion_point(parse_failure:opencv_caffe.FillerParameter)
8817   return false;
8818 #undef DO_
8819 }
8820 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const8821 void FillerParameter::SerializeWithCachedSizes(
8822     ::google::protobuf::io::CodedOutputStream* output) const {
8823   // @@protoc_insertion_point(serialize_start:opencv_caffe.FillerParameter)
8824   ::google::protobuf::uint32 cached_has_bits = 0;
8825   (void) cached_has_bits;
8826 
8827   cached_has_bits = _has_bits_[0];
8828   // optional string type = 1 [default = "constant"];
8829   if (cached_has_bits & 0x00000001u) {
8830     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8831       this->type().data(), static_cast<int>(this->type().length()),
8832       ::google::protobuf::internal::WireFormat::SERIALIZE,
8833       "opencv_caffe.FillerParameter.type");
8834     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8835       1, this->type(), output);
8836   }
8837 
8838   // optional float value = 2 [default = 0];
8839   if (cached_has_bits & 0x00000002u) {
8840     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->value(), output);
8841   }
8842 
8843   // optional float min = 3 [default = 0];
8844   if (cached_has_bits & 0x00000004u) {
8845     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->min(), output);
8846   }
8847 
8848   // optional float max = 4 [default = 1];
8849   if (cached_has_bits & 0x00000040u) {
8850     ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->max(), output);
8851   }
8852 
8853   // optional float mean = 5 [default = 0];
8854   if (cached_has_bits & 0x00000008u) {
8855     ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->mean(), output);
8856   }
8857 
8858   // optional float std = 6 [default = 1];
8859   if (cached_has_bits & 0x00000080u) {
8860     ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->std(), output);
8861   }
8862 
8863   // optional int32 sparse = 7 [default = -1];
8864   if (cached_has_bits & 0x00000020u) {
8865     ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->sparse(), output);
8866   }
8867 
8868   // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN];
8869   if (cached_has_bits & 0x00000010u) {
8870     ::google::protobuf::internal::WireFormatLite::WriteEnum(
8871       8, this->variance_norm(), output);
8872   }
8873 
8874   if (_internal_metadata_.have_unknown_fields()) {
8875     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8876         _internal_metadata_.unknown_fields(), output);
8877   }
8878   // @@protoc_insertion_point(serialize_end:opencv_caffe.FillerParameter)
8879 }
8880 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const8881 ::google::protobuf::uint8* FillerParameter::InternalSerializeWithCachedSizesToArray(
8882     bool deterministic, ::google::protobuf::uint8* target) const {
8883   (void)deterministic; // Unused
8884   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.FillerParameter)
8885   ::google::protobuf::uint32 cached_has_bits = 0;
8886   (void) cached_has_bits;
8887 
8888   cached_has_bits = _has_bits_[0];
8889   // optional string type = 1 [default = "constant"];
8890   if (cached_has_bits & 0x00000001u) {
8891     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8892       this->type().data(), static_cast<int>(this->type().length()),
8893       ::google::protobuf::internal::WireFormat::SERIALIZE,
8894       "opencv_caffe.FillerParameter.type");
8895     target =
8896       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8897         1, this->type(), target);
8898   }
8899 
8900   // optional float value = 2 [default = 0];
8901   if (cached_has_bits & 0x00000002u) {
8902     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->value(), target);
8903   }
8904 
8905   // optional float min = 3 [default = 0];
8906   if (cached_has_bits & 0x00000004u) {
8907     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->min(), target);
8908   }
8909 
8910   // optional float max = 4 [default = 1];
8911   if (cached_has_bits & 0x00000040u) {
8912     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->max(), target);
8913   }
8914 
8915   // optional float mean = 5 [default = 0];
8916   if (cached_has_bits & 0x00000008u) {
8917     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->mean(), target);
8918   }
8919 
8920   // optional float std = 6 [default = 1];
8921   if (cached_has_bits & 0x00000080u) {
8922     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->std(), target);
8923   }
8924 
8925   // optional int32 sparse = 7 [default = -1];
8926   if (cached_has_bits & 0x00000020u) {
8927     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->sparse(), target);
8928   }
8929 
8930   // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN];
8931   if (cached_has_bits & 0x00000010u) {
8932     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8933       8, this->variance_norm(), target);
8934   }
8935 
8936   if (_internal_metadata_.have_unknown_fields()) {
8937     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8938         _internal_metadata_.unknown_fields(), target);
8939   }
8940   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.FillerParameter)
8941   return target;
8942 }
8943 
ByteSizeLong() const8944 size_t FillerParameter::ByteSizeLong() const {
8945 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.FillerParameter)
8946   size_t total_size = 0;
8947 
8948   if (_internal_metadata_.have_unknown_fields()) {
8949     total_size +=
8950       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8951         _internal_metadata_.unknown_fields());
8952   }
8953   if (_has_bits_[0 / 32] & 255u) {
8954     // optional string type = 1 [default = "constant"];
8955     if (has_type()) {
8956       total_size += 1 +
8957         ::google::protobuf::internal::WireFormatLite::StringSize(
8958           this->type());
8959     }
8960 
8961     // optional float value = 2 [default = 0];
8962     if (has_value()) {
8963       total_size += 1 + 4;
8964     }
8965 
8966     // optional float min = 3 [default = 0];
8967     if (has_min()) {
8968       total_size += 1 + 4;
8969     }
8970 
8971     // optional float mean = 5 [default = 0];
8972     if (has_mean()) {
8973       total_size += 1 + 4;
8974     }
8975 
8976     // optional .opencv_caffe.FillerParameter.VarianceNorm variance_norm = 8 [default = FAN_IN];
8977     if (has_variance_norm()) {
8978       total_size += 1 +
8979         ::google::protobuf::internal::WireFormatLite::EnumSize(this->variance_norm());
8980     }
8981 
8982     // optional int32 sparse = 7 [default = -1];
8983     if (has_sparse()) {
8984       total_size += 1 +
8985         ::google::protobuf::internal::WireFormatLite::Int32Size(
8986           this->sparse());
8987     }
8988 
8989     // optional float max = 4 [default = 1];
8990     if (has_max()) {
8991       total_size += 1 + 4;
8992     }
8993 
8994     // optional float std = 6 [default = 1];
8995     if (has_std()) {
8996       total_size += 1 + 4;
8997     }
8998 
8999   }
9000   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9001   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9002   _cached_size_ = cached_size;
9003   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9004   return total_size;
9005 }
9006 
MergeFrom(const::google::protobuf::Message & from)9007 void FillerParameter::MergeFrom(const ::google::protobuf::Message& from) {
9008 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.FillerParameter)
9009   GOOGLE_DCHECK_NE(&from, this);
9010   const FillerParameter* source =
9011       ::google::protobuf::internal::DynamicCastToGenerated<const FillerParameter>(
9012           &from);
9013   if (source == NULL) {
9014   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.FillerParameter)
9015     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9016   } else {
9017   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.FillerParameter)
9018     MergeFrom(*source);
9019   }
9020 }
9021 
MergeFrom(const FillerParameter & from)9022 void FillerParameter::MergeFrom(const FillerParameter& from) {
9023 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.FillerParameter)
9024   GOOGLE_DCHECK_NE(&from, this);
9025   _internal_metadata_.MergeFrom(from._internal_metadata_);
9026   ::google::protobuf::uint32 cached_has_bits = 0;
9027   (void) cached_has_bits;
9028 
9029   cached_has_bits = from._has_bits_[0];
9030   if (cached_has_bits & 255u) {
9031     if (cached_has_bits & 0x00000001u) {
9032       set_has_type();
9033       type_.AssignWithDefault(&::opencv_caffe::FillerParameter::_default_type_.get(), from.type_);
9034     }
9035     if (cached_has_bits & 0x00000002u) {
9036       value_ = from.value_;
9037     }
9038     if (cached_has_bits & 0x00000004u) {
9039       min_ = from.min_;
9040     }
9041     if (cached_has_bits & 0x00000008u) {
9042       mean_ = from.mean_;
9043     }
9044     if (cached_has_bits & 0x00000010u) {
9045       variance_norm_ = from.variance_norm_;
9046     }
9047     if (cached_has_bits & 0x00000020u) {
9048       sparse_ = from.sparse_;
9049     }
9050     if (cached_has_bits & 0x00000040u) {
9051       max_ = from.max_;
9052     }
9053     if (cached_has_bits & 0x00000080u) {
9054       std_ = from.std_;
9055     }
9056     _has_bits_[0] |= cached_has_bits;
9057   }
9058 }
9059 
CopyFrom(const::google::protobuf::Message & from)9060 void FillerParameter::CopyFrom(const ::google::protobuf::Message& from) {
9061 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.FillerParameter)
9062   if (&from == this) return;
9063   Clear();
9064   MergeFrom(from);
9065 }
9066 
CopyFrom(const FillerParameter & from)9067 void FillerParameter::CopyFrom(const FillerParameter& from) {
9068 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.FillerParameter)
9069   if (&from == this) return;
9070   Clear();
9071   MergeFrom(from);
9072 }
9073 
IsInitialized() const9074 bool FillerParameter::IsInitialized() const {
9075   return true;
9076 }
9077 
Swap(FillerParameter * other)9078 void FillerParameter::Swap(FillerParameter* other) {
9079   if (other == this) return;
9080   InternalSwap(other);
9081 }
InternalSwap(FillerParameter * other)9082 void FillerParameter::InternalSwap(FillerParameter* other) {
9083   using std::swap;
9084   type_.Swap(&other->type_);
9085   swap(value_, other->value_);
9086   swap(min_, other->min_);
9087   swap(mean_, other->mean_);
9088   swap(variance_norm_, other->variance_norm_);
9089   swap(sparse_, other->sparse_);
9090   swap(max_, other->max_);
9091   swap(std_, other->std_);
9092   swap(_has_bits_[0], other->_has_bits_[0]);
9093   _internal_metadata_.Swap(&other->_internal_metadata_);
9094   swap(_cached_size_, other->_cached_size_);
9095 }
9096 
GetMetadata() const9097 ::google::protobuf::Metadata FillerParameter::GetMetadata() const {
9098   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
9099   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
9100 }
9101 
9102 
9103 // ===================================================================
9104 
InitAsDefaultInstance()9105 void NetParameter::InitAsDefaultInstance() {
9106   ::opencv_caffe::_NetParameter_default_instance_._instance.get_mutable()->state_ = const_cast< ::opencv_caffe::NetState*>(
9107       ::opencv_caffe::NetState::internal_default_instance());
9108 }
9109 #if !defined(_MSC_VER) || _MSC_VER >= 1900
9110 const int NetParameter::kNameFieldNumber;
9111 const int NetParameter::kInputFieldNumber;
9112 const int NetParameter::kInputShapeFieldNumber;
9113 const int NetParameter::kInputDimFieldNumber;
9114 const int NetParameter::kForceBackwardFieldNumber;
9115 const int NetParameter::kStateFieldNumber;
9116 const int NetParameter::kDebugInfoFieldNumber;
9117 const int NetParameter::kLayerFieldNumber;
9118 const int NetParameter::kLayersFieldNumber;
9119 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9120 
NetParameter()9121 NetParameter::NetParameter()
9122   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9123   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9124     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetParameter();
9125   }
9126   SharedCtor();
9127   // @@protoc_insertion_point(constructor:opencv_caffe.NetParameter)
9128 }
NetParameter(const NetParameter & from)9129 NetParameter::NetParameter(const NetParameter& from)
9130   : ::google::protobuf::Message(),
9131       _internal_metadata_(NULL),
9132       _has_bits_(from._has_bits_),
9133       _cached_size_(0),
9134       layers_(from.layers_),
9135       input_(from.input_),
9136       input_dim_(from.input_dim_),
9137       input_shape_(from.input_shape_),
9138       layer_(from.layer_) {
9139   _internal_metadata_.MergeFrom(from._internal_metadata_);
9140   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9141   if (from.has_name()) {
9142     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
9143   }
9144   if (from.has_state()) {
9145     state_ = new ::opencv_caffe::NetState(*from.state_);
9146   } else {
9147     state_ = NULL;
9148   }
9149   ::memcpy(&force_backward_, &from.force_backward_,
9150     static_cast<size_t>(reinterpret_cast<char*>(&debug_info_) -
9151     reinterpret_cast<char*>(&force_backward_)) + sizeof(debug_info_));
9152   // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetParameter)
9153 }
9154 
SharedCtor()9155 void NetParameter::SharedCtor() {
9156   _cached_size_ = 0;
9157   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9158   ::memset(&state_, 0, static_cast<size_t>(
9159       reinterpret_cast<char*>(&debug_info_) -
9160       reinterpret_cast<char*>(&state_)) + sizeof(debug_info_));
9161 }
9162 
~NetParameter()9163 NetParameter::~NetParameter() {
9164   // @@protoc_insertion_point(destructor:opencv_caffe.NetParameter)
9165   SharedDtor();
9166 }
9167 
SharedDtor()9168 void NetParameter::SharedDtor() {
9169   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9170   if (this != internal_default_instance()) delete state_;
9171 }
9172 
SetCachedSize(int size) const9173 void NetParameter::SetCachedSize(int size) const {
9174   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9175   _cached_size_ = size;
9176   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9177 }
descriptor()9178 const ::google::protobuf::Descriptor* NetParameter::descriptor() {
9179   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
9180   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9181 }
9182 
default_instance()9183 const NetParameter& NetParameter::default_instance() {
9184   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetParameter();
9185   return *internal_default_instance();
9186 }
9187 
New(::google::protobuf::Arena * arena) const9188 NetParameter* NetParameter::New(::google::protobuf::Arena* arena) const {
9189   NetParameter* n = new NetParameter;
9190   if (arena != NULL) {
9191     arena->Own(n);
9192   }
9193   return n;
9194 }
9195 
Clear()9196 void NetParameter::Clear() {
9197 // @@protoc_insertion_point(message_clear_start:opencv_caffe.NetParameter)
9198   ::google::protobuf::uint32 cached_has_bits = 0;
9199   // Prevent compiler warnings about cached_has_bits being unused
9200   (void) cached_has_bits;
9201 
9202   layers_.Clear();
9203   input_.Clear();
9204   input_dim_.Clear();
9205   input_shape_.Clear();
9206   layer_.Clear();
9207   cached_has_bits = _has_bits_[0];
9208   if (cached_has_bits & 3u) {
9209     if (cached_has_bits & 0x00000001u) {
9210       GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9211       (*name_.UnsafeRawStringPointer())->clear();
9212     }
9213     if (cached_has_bits & 0x00000002u) {
9214       GOOGLE_DCHECK(state_ != NULL);
9215       state_->Clear();
9216     }
9217   }
9218   ::memset(&force_backward_, 0, static_cast<size_t>(
9219       reinterpret_cast<char*>(&debug_info_) -
9220       reinterpret_cast<char*>(&force_backward_)) + sizeof(debug_info_));
9221   _has_bits_.Clear();
9222   _internal_metadata_.Clear();
9223 }
9224 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)9225 bool NetParameter::MergePartialFromCodedStream(
9226     ::google::protobuf::io::CodedInputStream* input) {
9227 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9228   ::google::protobuf::uint32 tag;
9229   // @@protoc_insertion_point(parse_start:opencv_caffe.NetParameter)
9230   for (;;) {
9231     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
9232     tag = p.first;
9233     if (!p.second) goto handle_unusual;
9234     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9235       // optional string name = 1;
9236       case 1: {
9237         if (static_cast< ::google::protobuf::uint8>(tag) ==
9238             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9239           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9240                 input, this->mutable_name()));
9241           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9242             this->name().data(), static_cast<int>(this->name().length()),
9243             ::google::protobuf::internal::WireFormat::PARSE,
9244             "opencv_caffe.NetParameter.name");
9245         } else {
9246           goto handle_unusual;
9247         }
9248         break;
9249       }
9250 
9251       // repeated .opencv_caffe.V1LayerParameter layers = 2;
9252       case 2: {
9253         if (static_cast< ::google::protobuf::uint8>(tag) ==
9254             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
9255           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_layers()));
9256         } else {
9257           goto handle_unusual;
9258         }
9259         break;
9260       }
9261 
9262       // repeated string input = 3;
9263       case 3: {
9264         if (static_cast< ::google::protobuf::uint8>(tag) ==
9265             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
9266           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9267                 input, this->add_input()));
9268           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9269             this->input(this->input_size() - 1).data(),
9270             static_cast<int>(this->input(this->input_size() - 1).length()),
9271             ::google::protobuf::internal::WireFormat::PARSE,
9272             "opencv_caffe.NetParameter.input");
9273         } else {
9274           goto handle_unusual;
9275         }
9276         break;
9277       }
9278 
9279       // repeated int32 input_dim = 4;
9280       case 4: {
9281         if (static_cast< ::google::protobuf::uint8>(tag) ==
9282             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
9283           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
9284                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9285                  1, 32u, input, this->mutable_input_dim())));
9286         } else if (
9287             static_cast< ::google::protobuf::uint8>(tag) ==
9288             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
9289           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
9290                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9291                  input, this->mutable_input_dim())));
9292         } else {
9293           goto handle_unusual;
9294         }
9295         break;
9296       }
9297 
9298       // optional bool force_backward = 5 [default = false];
9299       case 5: {
9300         if (static_cast< ::google::protobuf::uint8>(tag) ==
9301             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
9302           set_has_force_backward();
9303           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9304                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9305                  input, &force_backward_)));
9306         } else {
9307           goto handle_unusual;
9308         }
9309         break;
9310       }
9311 
9312       // optional .opencv_caffe.NetState state = 6;
9313       case 6: {
9314         if (static_cast< ::google::protobuf::uint8>(tag) ==
9315             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
9316           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9317                input, mutable_state()));
9318         } else {
9319           goto handle_unusual;
9320         }
9321         break;
9322       }
9323 
9324       // optional bool debug_info = 7 [default = false];
9325       case 7: {
9326         if (static_cast< ::google::protobuf::uint8>(tag) ==
9327             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
9328           set_has_debug_info();
9329           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9330                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9331                  input, &debug_info_)));
9332         } else {
9333           goto handle_unusual;
9334         }
9335         break;
9336       }
9337 
9338       // repeated .opencv_caffe.BlobShape input_shape = 8;
9339       case 8: {
9340         if (static_cast< ::google::protobuf::uint8>(tag) ==
9341             static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
9342           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_input_shape()));
9343         } else {
9344           goto handle_unusual;
9345         }
9346         break;
9347       }
9348 
9349       // repeated .opencv_caffe.LayerParameter layer = 100;
9350       case 100: {
9351         if (static_cast< ::google::protobuf::uint8>(tag) ==
9352             static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) {
9353           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_layer()));
9354         } else {
9355           goto handle_unusual;
9356         }
9357         break;
9358       }
9359 
9360       default: {
9361       handle_unusual:
9362         if (tag == 0) {
9363           goto success;
9364         }
9365         DO_(::google::protobuf::internal::WireFormat::SkipField(
9366               input, tag, _internal_metadata_.mutable_unknown_fields()));
9367         break;
9368       }
9369     }
9370   }
9371 success:
9372   // @@protoc_insertion_point(parse_success:opencv_caffe.NetParameter)
9373   return true;
9374 failure:
9375   // @@protoc_insertion_point(parse_failure:opencv_caffe.NetParameter)
9376   return false;
9377 #undef DO_
9378 }
9379 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const9380 void NetParameter::SerializeWithCachedSizes(
9381     ::google::protobuf::io::CodedOutputStream* output) const {
9382   // @@protoc_insertion_point(serialize_start:opencv_caffe.NetParameter)
9383   ::google::protobuf::uint32 cached_has_bits = 0;
9384   (void) cached_has_bits;
9385 
9386   cached_has_bits = _has_bits_[0];
9387   // optional string name = 1;
9388   if (cached_has_bits & 0x00000001u) {
9389     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9390       this->name().data(), static_cast<int>(this->name().length()),
9391       ::google::protobuf::internal::WireFormat::SERIALIZE,
9392       "opencv_caffe.NetParameter.name");
9393     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9394       1, this->name(), output);
9395   }
9396 
9397   // repeated .opencv_caffe.V1LayerParameter layers = 2;
9398   for (unsigned int i = 0,
9399       n = static_cast<unsigned int>(this->layers_size()); i < n; i++) {
9400     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9401       2, this->layers(static_cast<int>(i)), output);
9402   }
9403 
9404   // repeated string input = 3;
9405   for (int i = 0, n = this->input_size(); i < n; i++) {
9406     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9407       this->input(i).data(), static_cast<int>(this->input(i).length()),
9408       ::google::protobuf::internal::WireFormat::SERIALIZE,
9409       "opencv_caffe.NetParameter.input");
9410     ::google::protobuf::internal::WireFormatLite::WriteString(
9411       3, this->input(i), output);
9412   }
9413 
9414   // repeated int32 input_dim = 4;
9415   for (int i = 0, n = this->input_dim_size(); i < n; i++) {
9416     ::google::protobuf::internal::WireFormatLite::WriteInt32(
9417       4, this->input_dim(i), output);
9418   }
9419 
9420   // optional bool force_backward = 5 [default = false];
9421   if (cached_has_bits & 0x00000004u) {
9422     ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->force_backward(), output);
9423   }
9424 
9425   // optional .opencv_caffe.NetState state = 6;
9426   if (cached_has_bits & 0x00000002u) {
9427     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9428       6, *this->state_, output);
9429   }
9430 
9431   // optional bool debug_info = 7 [default = false];
9432   if (cached_has_bits & 0x00000008u) {
9433     ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->debug_info(), output);
9434   }
9435 
9436   // repeated .opencv_caffe.BlobShape input_shape = 8;
9437   for (unsigned int i = 0,
9438       n = static_cast<unsigned int>(this->input_shape_size()); i < n; i++) {
9439     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9440       8, this->input_shape(static_cast<int>(i)), output);
9441   }
9442 
9443   // repeated .opencv_caffe.LayerParameter layer = 100;
9444   for (unsigned int i = 0,
9445       n = static_cast<unsigned int>(this->layer_size()); i < n; i++) {
9446     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9447       100, this->layer(static_cast<int>(i)), output);
9448   }
9449 
9450   if (_internal_metadata_.have_unknown_fields()) {
9451     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9452         _internal_metadata_.unknown_fields(), output);
9453   }
9454   // @@protoc_insertion_point(serialize_end:opencv_caffe.NetParameter)
9455 }
9456 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const9457 ::google::protobuf::uint8* NetParameter::InternalSerializeWithCachedSizesToArray(
9458     bool deterministic, ::google::protobuf::uint8* target) const {
9459   (void)deterministic; // Unused
9460   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetParameter)
9461   ::google::protobuf::uint32 cached_has_bits = 0;
9462   (void) cached_has_bits;
9463 
9464   cached_has_bits = _has_bits_[0];
9465   // optional string name = 1;
9466   if (cached_has_bits & 0x00000001u) {
9467     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9468       this->name().data(), static_cast<int>(this->name().length()),
9469       ::google::protobuf::internal::WireFormat::SERIALIZE,
9470       "opencv_caffe.NetParameter.name");
9471     target =
9472       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9473         1, this->name(), target);
9474   }
9475 
9476   // repeated .opencv_caffe.V1LayerParameter layers = 2;
9477   for (unsigned int i = 0,
9478       n = static_cast<unsigned int>(this->layers_size()); i < n; i++) {
9479     target = ::google::protobuf::internal::WireFormatLite::
9480       InternalWriteMessageToArray(
9481         2, this->layers(static_cast<int>(i)), deterministic, target);
9482   }
9483 
9484   // repeated string input = 3;
9485   for (int i = 0, n = this->input_size(); i < n; i++) {
9486     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9487       this->input(i).data(), static_cast<int>(this->input(i).length()),
9488       ::google::protobuf::internal::WireFormat::SERIALIZE,
9489       "opencv_caffe.NetParameter.input");
9490     target = ::google::protobuf::internal::WireFormatLite::
9491       WriteStringToArray(3, this->input(i), target);
9492   }
9493 
9494   // repeated int32 input_dim = 4;
9495   target = ::google::protobuf::internal::WireFormatLite::
9496     WriteInt32ToArray(4, this->input_dim_, target);
9497 
9498   // optional bool force_backward = 5 [default = false];
9499   if (cached_has_bits & 0x00000004u) {
9500     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->force_backward(), target);
9501   }
9502 
9503   // optional .opencv_caffe.NetState state = 6;
9504   if (cached_has_bits & 0x00000002u) {
9505     target = ::google::protobuf::internal::WireFormatLite::
9506       InternalWriteMessageToArray(
9507         6, *this->state_, deterministic, target);
9508   }
9509 
9510   // optional bool debug_info = 7 [default = false];
9511   if (cached_has_bits & 0x00000008u) {
9512     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->debug_info(), target);
9513   }
9514 
9515   // repeated .opencv_caffe.BlobShape input_shape = 8;
9516   for (unsigned int i = 0,
9517       n = static_cast<unsigned int>(this->input_shape_size()); i < n; i++) {
9518     target = ::google::protobuf::internal::WireFormatLite::
9519       InternalWriteMessageToArray(
9520         8, this->input_shape(static_cast<int>(i)), deterministic, target);
9521   }
9522 
9523   // repeated .opencv_caffe.LayerParameter layer = 100;
9524   for (unsigned int i = 0,
9525       n = static_cast<unsigned int>(this->layer_size()); i < n; i++) {
9526     target = ::google::protobuf::internal::WireFormatLite::
9527       InternalWriteMessageToArray(
9528         100, this->layer(static_cast<int>(i)), deterministic, target);
9529   }
9530 
9531   if (_internal_metadata_.have_unknown_fields()) {
9532     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9533         _internal_metadata_.unknown_fields(), target);
9534   }
9535   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetParameter)
9536   return target;
9537 }
9538 
ByteSizeLong() const9539 size_t NetParameter::ByteSizeLong() const {
9540 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetParameter)
9541   size_t total_size = 0;
9542 
9543   if (_internal_metadata_.have_unknown_fields()) {
9544     total_size +=
9545       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9546         _internal_metadata_.unknown_fields());
9547   }
9548   // repeated .opencv_caffe.V1LayerParameter layers = 2;
9549   {
9550     unsigned int count = static_cast<unsigned int>(this->layers_size());
9551     total_size += 1UL * count;
9552     for (unsigned int i = 0; i < count; i++) {
9553       total_size +=
9554         ::google::protobuf::internal::WireFormatLite::MessageSize(
9555           this->layers(static_cast<int>(i)));
9556     }
9557   }
9558 
9559   // repeated string input = 3;
9560   total_size += 1 *
9561       ::google::protobuf::internal::FromIntSize(this->input_size());
9562   for (int i = 0, n = this->input_size(); i < n; i++) {
9563     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
9564       this->input(i));
9565   }
9566 
9567   // repeated int32 input_dim = 4;
9568   {
9569     size_t data_size = ::google::protobuf::internal::WireFormatLite::
9570       Int32Size(this->input_dim_);
9571     total_size += 1 *
9572                   ::google::protobuf::internal::FromIntSize(this->input_dim_size());
9573     total_size += data_size;
9574   }
9575 
9576   // repeated .opencv_caffe.BlobShape input_shape = 8;
9577   {
9578     unsigned int count = static_cast<unsigned int>(this->input_shape_size());
9579     total_size += 1UL * count;
9580     for (unsigned int i = 0; i < count; i++) {
9581       total_size +=
9582         ::google::protobuf::internal::WireFormatLite::MessageSize(
9583           this->input_shape(static_cast<int>(i)));
9584     }
9585   }
9586 
9587   // repeated .opencv_caffe.LayerParameter layer = 100;
9588   {
9589     unsigned int count = static_cast<unsigned int>(this->layer_size());
9590     total_size += 2UL * count;
9591     for (unsigned int i = 0; i < count; i++) {
9592       total_size +=
9593         ::google::protobuf::internal::WireFormatLite::MessageSize(
9594           this->layer(static_cast<int>(i)));
9595     }
9596   }
9597 
9598   if (_has_bits_[0 / 32] & 15u) {
9599     // optional string name = 1;
9600     if (has_name()) {
9601       total_size += 1 +
9602         ::google::protobuf::internal::WireFormatLite::StringSize(
9603           this->name());
9604     }
9605 
9606     // optional .opencv_caffe.NetState state = 6;
9607     if (has_state()) {
9608       total_size += 1 +
9609         ::google::protobuf::internal::WireFormatLite::MessageSize(
9610           *this->state_);
9611     }
9612 
9613     // optional bool force_backward = 5 [default = false];
9614     if (has_force_backward()) {
9615       total_size += 1 + 1;
9616     }
9617 
9618     // optional bool debug_info = 7 [default = false];
9619     if (has_debug_info()) {
9620       total_size += 1 + 1;
9621     }
9622 
9623   }
9624   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9625   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9626   _cached_size_ = cached_size;
9627   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9628   return total_size;
9629 }
9630 
MergeFrom(const::google::protobuf::Message & from)9631 void NetParameter::MergeFrom(const ::google::protobuf::Message& from) {
9632 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetParameter)
9633   GOOGLE_DCHECK_NE(&from, this);
9634   const NetParameter* source =
9635       ::google::protobuf::internal::DynamicCastToGenerated<const NetParameter>(
9636           &from);
9637   if (source == NULL) {
9638   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetParameter)
9639     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9640   } else {
9641   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetParameter)
9642     MergeFrom(*source);
9643   }
9644 }
9645 
MergeFrom(const NetParameter & from)9646 void NetParameter::MergeFrom(const NetParameter& from) {
9647 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetParameter)
9648   GOOGLE_DCHECK_NE(&from, this);
9649   _internal_metadata_.MergeFrom(from._internal_metadata_);
9650   ::google::protobuf::uint32 cached_has_bits = 0;
9651   (void) cached_has_bits;
9652 
9653   layers_.MergeFrom(from.layers_);
9654   input_.MergeFrom(from.input_);
9655   input_dim_.MergeFrom(from.input_dim_);
9656   input_shape_.MergeFrom(from.input_shape_);
9657   layer_.MergeFrom(from.layer_);
9658   cached_has_bits = from._has_bits_[0];
9659   if (cached_has_bits & 15u) {
9660     if (cached_has_bits & 0x00000001u) {
9661       set_has_name();
9662       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
9663     }
9664     if (cached_has_bits & 0x00000002u) {
9665       mutable_state()->::opencv_caffe::NetState::MergeFrom(from.state());
9666     }
9667     if (cached_has_bits & 0x00000004u) {
9668       force_backward_ = from.force_backward_;
9669     }
9670     if (cached_has_bits & 0x00000008u) {
9671       debug_info_ = from.debug_info_;
9672     }
9673     _has_bits_[0] |= cached_has_bits;
9674   }
9675 }
9676 
CopyFrom(const::google::protobuf::Message & from)9677 void NetParameter::CopyFrom(const ::google::protobuf::Message& from) {
9678 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetParameter)
9679   if (&from == this) return;
9680   Clear();
9681   MergeFrom(from);
9682 }
9683 
CopyFrom(const NetParameter & from)9684 void NetParameter::CopyFrom(const NetParameter& from) {
9685 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetParameter)
9686   if (&from == this) return;
9687   Clear();
9688   MergeFrom(from);
9689 }
9690 
IsInitialized() const9691 bool NetParameter::IsInitialized() const {
9692   if (!::google::protobuf::internal::AllAreInitialized(this->layer())) return false;
9693   return true;
9694 }
9695 
Swap(NetParameter * other)9696 void NetParameter::Swap(NetParameter* other) {
9697   if (other == this) return;
9698   InternalSwap(other);
9699 }
InternalSwap(NetParameter * other)9700 void NetParameter::InternalSwap(NetParameter* other) {
9701   using std::swap;
9702   layers_.InternalSwap(&other->layers_);
9703   input_.InternalSwap(&other->input_);
9704   input_dim_.InternalSwap(&other->input_dim_);
9705   input_shape_.InternalSwap(&other->input_shape_);
9706   layer_.InternalSwap(&other->layer_);
9707   name_.Swap(&other->name_);
9708   swap(state_, other->state_);
9709   swap(force_backward_, other->force_backward_);
9710   swap(debug_info_, other->debug_info_);
9711   swap(_has_bits_[0], other->_has_bits_[0]);
9712   _internal_metadata_.Swap(&other->_internal_metadata_);
9713   swap(_cached_size_, other->_cached_size_);
9714 }
9715 
GetMetadata() const9716 ::google::protobuf::Metadata NetParameter::GetMetadata() const {
9717   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
9718   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
9719 }
9720 
9721 
9722 // ===================================================================
9723 
InitAsDefaultInstance()9724 void SolverParameter::InitAsDefaultInstance() {
9725   ::opencv_caffe::_SolverParameter_default_instance_._instance.get_mutable()->net_param_ = const_cast< ::opencv_caffe::NetParameter*>(
9726       ::opencv_caffe::NetParameter::internal_default_instance());
9727   ::opencv_caffe::_SolverParameter_default_instance_._instance.get_mutable()->train_net_param_ = const_cast< ::opencv_caffe::NetParameter*>(
9728       ::opencv_caffe::NetParameter::internal_default_instance());
9729   ::opencv_caffe::_SolverParameter_default_instance_._instance.get_mutable()->train_state_ = const_cast< ::opencv_caffe::NetState*>(
9730       ::opencv_caffe::NetState::internal_default_instance());
9731 }
9732 ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> SolverParameter::_default_regularization_type_;
9733 ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> SolverParameter::_default_type_;
9734 #if !defined(_MSC_VER) || _MSC_VER >= 1900
9735 const int SolverParameter::kNetFieldNumber;
9736 const int SolverParameter::kNetParamFieldNumber;
9737 const int SolverParameter::kTrainNetFieldNumber;
9738 const int SolverParameter::kTestNetFieldNumber;
9739 const int SolverParameter::kTrainNetParamFieldNumber;
9740 const int SolverParameter::kTestNetParamFieldNumber;
9741 const int SolverParameter::kTrainStateFieldNumber;
9742 const int SolverParameter::kTestStateFieldNumber;
9743 const int SolverParameter::kTestIterFieldNumber;
9744 const int SolverParameter::kTestIntervalFieldNumber;
9745 const int SolverParameter::kTestComputeLossFieldNumber;
9746 const int SolverParameter::kTestInitializationFieldNumber;
9747 const int SolverParameter::kBaseLrFieldNumber;
9748 const int SolverParameter::kDisplayFieldNumber;
9749 const int SolverParameter::kAverageLossFieldNumber;
9750 const int SolverParameter::kMaxIterFieldNumber;
9751 const int SolverParameter::kIterSizeFieldNumber;
9752 const int SolverParameter::kLrPolicyFieldNumber;
9753 const int SolverParameter::kGammaFieldNumber;
9754 const int SolverParameter::kPowerFieldNumber;
9755 const int SolverParameter::kMomentumFieldNumber;
9756 const int SolverParameter::kWeightDecayFieldNumber;
9757 const int SolverParameter::kRegularizationTypeFieldNumber;
9758 const int SolverParameter::kStepsizeFieldNumber;
9759 const int SolverParameter::kStepvalueFieldNumber;
9760 const int SolverParameter::kClipGradientsFieldNumber;
9761 const int SolverParameter::kSnapshotFieldNumber;
9762 const int SolverParameter::kSnapshotPrefixFieldNumber;
9763 const int SolverParameter::kSnapshotDiffFieldNumber;
9764 const int SolverParameter::kSnapshotFormatFieldNumber;
9765 const int SolverParameter::kSolverModeFieldNumber;
9766 const int SolverParameter::kDeviceIdFieldNumber;
9767 const int SolverParameter::kRandomSeedFieldNumber;
9768 const int SolverParameter::kTypeFieldNumber;
9769 const int SolverParameter::kDeltaFieldNumber;
9770 const int SolverParameter::kMomentum2FieldNumber;
9771 const int SolverParameter::kRmsDecayFieldNumber;
9772 const int SolverParameter::kDebugInfoFieldNumber;
9773 const int SolverParameter::kSnapshotAfterTrainFieldNumber;
9774 const int SolverParameter::kSolverTypeFieldNumber;
9775 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9776 
SolverParameter()9777 SolverParameter::SolverParameter()
9778   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9779   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9780     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverParameter();
9781   }
9782   SharedCtor();
9783   // @@protoc_insertion_point(constructor:opencv_caffe.SolverParameter)
9784 }
SolverParameter(const SolverParameter & from)9785 SolverParameter::SolverParameter(const SolverParameter& from)
9786   : ::google::protobuf::Message(),
9787       _internal_metadata_(NULL),
9788       _has_bits_(from._has_bits_),
9789       test_net_(from.test_net_),
9790       test_iter_(from.test_iter_),
9791       test_net_param_(from.test_net_param_),
9792       test_state_(from.test_state_),
9793       stepvalue_(from.stepvalue_),
9794       _cached_size_(0) {
9795   _internal_metadata_.MergeFrom(from._internal_metadata_);
9796   train_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9797   if (from.has_train_net()) {
9798     train_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.train_net_);
9799   }
9800   lr_policy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9801   if (from.has_lr_policy()) {
9802     lr_policy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lr_policy_);
9803   }
9804   snapshot_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9805   if (from.has_snapshot_prefix()) {
9806     snapshot_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_prefix_);
9807   }
9808   net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9809   if (from.has_net()) {
9810     net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.net_);
9811   }
9812   regularization_type_.UnsafeSetDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get());
9813   if (from.has_regularization_type()) {
9814     regularization_type_.AssignWithDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get(), from.regularization_type_);
9815   }
9816   type_.UnsafeSetDefault(&::opencv_caffe::SolverParameter::_default_type_.get());
9817   if (from.has_type()) {
9818     type_.AssignWithDefault(&::opencv_caffe::SolverParameter::_default_type_.get(), from.type_);
9819   }
9820   if (from.has_train_net_param()) {
9821     train_net_param_ = new ::opencv_caffe::NetParameter(*from.train_net_param_);
9822   } else {
9823     train_net_param_ = NULL;
9824   }
9825   if (from.has_net_param()) {
9826     net_param_ = new ::opencv_caffe::NetParameter(*from.net_param_);
9827   } else {
9828     net_param_ = NULL;
9829   }
9830   if (from.has_train_state()) {
9831     train_state_ = new ::opencv_caffe::NetState(*from.train_state_);
9832   } else {
9833     train_state_ = NULL;
9834   }
9835   ::memcpy(&test_interval_, &from.test_interval_,
9836     static_cast<size_t>(reinterpret_cast<char*>(&rms_decay_) -
9837     reinterpret_cast<char*>(&test_interval_)) + sizeof(rms_decay_));
9838   // @@protoc_insertion_point(copy_constructor:opencv_caffe.SolverParameter)
9839 }
9840 
SharedCtor()9841 void SolverParameter::SharedCtor() {
9842   train_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9843   lr_policy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9844   snapshot_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9845   net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9846   regularization_type_.UnsafeSetDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get());
9847   type_.UnsafeSetDefault(&::opencv_caffe::SolverParameter::_default_type_.get());
9848   ::memset(&train_net_param_, 0, static_cast<size_t>(
9849       reinterpret_cast<char*>(&solver_type_) -
9850       reinterpret_cast<char*>(&train_net_param_)) + sizeof(solver_type_));
9851   momentum2_ = 0.999f;
9852   random_seed_ = GOOGLE_LONGLONG(-1);
9853   solver_mode_ = 1;
9854   test_initialization_ = true;
9855   snapshot_after_train_ = true;
9856   delta_ = 1e-08f;
9857   average_loss_ = 1;
9858   clip_gradients_ = -1;
9859   iter_size_ = 1;
9860   snapshot_format_ = 1;
9861   rms_decay_ = 0.99f;
9862   _cached_size_ = 0;
9863 }
9864 
~SolverParameter()9865 SolverParameter::~SolverParameter() {
9866   // @@protoc_insertion_point(destructor:opencv_caffe.SolverParameter)
9867   SharedDtor();
9868 }
9869 
SharedDtor()9870 void SolverParameter::SharedDtor() {
9871   train_net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9872   lr_policy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9873   snapshot_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9874   net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9875   regularization_type_.DestroyNoArena(&::opencv_caffe::SolverParameter::_default_regularization_type_.get());
9876   type_.DestroyNoArena(&::opencv_caffe::SolverParameter::_default_type_.get());
9877   if (this != internal_default_instance()) delete train_net_param_;
9878   if (this != internal_default_instance()) delete net_param_;
9879   if (this != internal_default_instance()) delete train_state_;
9880 }
9881 
SetCachedSize(int size) const9882 void SolverParameter::SetCachedSize(int size) const {
9883   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9884   _cached_size_ = size;
9885   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9886 }
descriptor()9887 const ::google::protobuf::Descriptor* SolverParameter::descriptor() {
9888   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
9889   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9890 }
9891 
default_instance()9892 const SolverParameter& SolverParameter::default_instance() {
9893   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverParameter();
9894   return *internal_default_instance();
9895 }
9896 
New(::google::protobuf::Arena * arena) const9897 SolverParameter* SolverParameter::New(::google::protobuf::Arena* arena) const {
9898   SolverParameter* n = new SolverParameter;
9899   if (arena != NULL) {
9900     arena->Own(n);
9901   }
9902   return n;
9903 }
9904 
Clear()9905 void SolverParameter::Clear() {
9906 // @@protoc_insertion_point(message_clear_start:opencv_caffe.SolverParameter)
9907   ::google::protobuf::uint32 cached_has_bits = 0;
9908   // Prevent compiler warnings about cached_has_bits being unused
9909   (void) cached_has_bits;
9910 
9911   test_net_.Clear();
9912   test_iter_.Clear();
9913   test_net_param_.Clear();
9914   test_state_.Clear();
9915   stepvalue_.Clear();
9916   cached_has_bits = _has_bits_[0];
9917   if (cached_has_bits & 255u) {
9918     if (cached_has_bits & 0x00000001u) {
9919       GOOGLE_DCHECK(!train_net_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9920       (*train_net_.UnsafeRawStringPointer())->clear();
9921     }
9922     if (cached_has_bits & 0x00000002u) {
9923       GOOGLE_DCHECK(!lr_policy_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9924       (*lr_policy_.UnsafeRawStringPointer())->clear();
9925     }
9926     if (cached_has_bits & 0x00000004u) {
9927       GOOGLE_DCHECK(!snapshot_prefix_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9928       (*snapshot_prefix_.UnsafeRawStringPointer())->clear();
9929     }
9930     if (cached_has_bits & 0x00000008u) {
9931       GOOGLE_DCHECK(!net_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9932       (*net_.UnsafeRawStringPointer())->clear();
9933     }
9934     if (cached_has_bits & 0x00000010u) {
9935       GOOGLE_DCHECK(!regularization_type_.IsDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get()));
9936       (*regularization_type_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::SolverParameter::_default_regularization_type_.get());
9937     }
9938     if (cached_has_bits & 0x00000020u) {
9939       GOOGLE_DCHECK(!type_.IsDefault(&::opencv_caffe::SolverParameter::_default_type_.get()));
9940       (*type_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::SolverParameter::_default_type_.get());
9941     }
9942     if (cached_has_bits & 0x00000040u) {
9943       GOOGLE_DCHECK(train_net_param_ != NULL);
9944       train_net_param_->Clear();
9945     }
9946     if (cached_has_bits & 0x00000080u) {
9947       GOOGLE_DCHECK(net_param_ != NULL);
9948       net_param_->Clear();
9949     }
9950   }
9951   if (cached_has_bits & 0x00000100u) {
9952     GOOGLE_DCHECK(train_state_ != NULL);
9953     train_state_->Clear();
9954   }
9955   if (cached_has_bits & 65024u) {
9956     ::memset(&test_interval_, 0, static_cast<size_t>(
9957         reinterpret_cast<char*>(&momentum_) -
9958         reinterpret_cast<char*>(&test_interval_)) + sizeof(momentum_));
9959   }
9960   if (cached_has_bits & 16711680u) {
9961     ::memset(&weight_decay_, 0, static_cast<size_t>(
9962         reinterpret_cast<char*>(&solver_type_) -
9963         reinterpret_cast<char*>(&weight_decay_)) + sizeof(solver_type_));
9964   }
9965   if (cached_has_bits & 4278190080u) {
9966     momentum2_ = 0.999f;
9967     random_seed_ = GOOGLE_LONGLONG(-1);
9968     solver_mode_ = 1;
9969     test_initialization_ = true;
9970     snapshot_after_train_ = true;
9971     delta_ = 1e-08f;
9972     average_loss_ = 1;
9973     clip_gradients_ = -1;
9974   }
9975   cached_has_bits = _has_bits_[1];
9976   if (cached_has_bits & 7u) {
9977     iter_size_ = 1;
9978     snapshot_format_ = 1;
9979     rms_decay_ = 0.99f;
9980   }
9981   _has_bits_.Clear();
9982   _internal_metadata_.Clear();
9983 }
9984 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)9985 bool SolverParameter::MergePartialFromCodedStream(
9986     ::google::protobuf::io::CodedInputStream* input) {
9987 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9988   ::google::protobuf::uint32 tag;
9989   // @@protoc_insertion_point(parse_start:opencv_caffe.SolverParameter)
9990   for (;;) {
9991     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
9992     tag = p.first;
9993     if (!p.second) goto handle_unusual;
9994     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9995       // optional string train_net = 1;
9996       case 1: {
9997         if (static_cast< ::google::protobuf::uint8>(tag) ==
9998             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9999           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10000                 input, this->mutable_train_net()));
10001           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10002             this->train_net().data(), static_cast<int>(this->train_net().length()),
10003             ::google::protobuf::internal::WireFormat::PARSE,
10004             "opencv_caffe.SolverParameter.train_net");
10005         } else {
10006           goto handle_unusual;
10007         }
10008         break;
10009       }
10010 
10011       // repeated string test_net = 2;
10012       case 2: {
10013         if (static_cast< ::google::protobuf::uint8>(tag) ==
10014             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10015           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10016                 input, this->add_test_net()));
10017           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10018             this->test_net(this->test_net_size() - 1).data(),
10019             static_cast<int>(this->test_net(this->test_net_size() - 1).length()),
10020             ::google::protobuf::internal::WireFormat::PARSE,
10021             "opencv_caffe.SolverParameter.test_net");
10022         } else {
10023           goto handle_unusual;
10024         }
10025         break;
10026       }
10027 
10028       // repeated int32 test_iter = 3;
10029       case 3: {
10030         if (static_cast< ::google::protobuf::uint8>(tag) ==
10031             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
10032           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
10033                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10034                  1, 24u, input, this->mutable_test_iter())));
10035         } else if (
10036             static_cast< ::google::protobuf::uint8>(tag) ==
10037             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
10038           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
10039                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10040                  input, this->mutable_test_iter())));
10041         } else {
10042           goto handle_unusual;
10043         }
10044         break;
10045       }
10046 
10047       // optional int32 test_interval = 4 [default = 0];
10048       case 4: {
10049         if (static_cast< ::google::protobuf::uint8>(tag) ==
10050             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
10051           set_has_test_interval();
10052           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10053                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10054                  input, &test_interval_)));
10055         } else {
10056           goto handle_unusual;
10057         }
10058         break;
10059       }
10060 
10061       // optional float base_lr = 5;
10062       case 5: {
10063         if (static_cast< ::google::protobuf::uint8>(tag) ==
10064             static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
10065           set_has_base_lr();
10066           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10067                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10068                  input, &base_lr_)));
10069         } else {
10070           goto handle_unusual;
10071         }
10072         break;
10073       }
10074 
10075       // optional int32 display = 6;
10076       case 6: {
10077         if (static_cast< ::google::protobuf::uint8>(tag) ==
10078             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
10079           set_has_display();
10080           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10081                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10082                  input, &display_)));
10083         } else {
10084           goto handle_unusual;
10085         }
10086         break;
10087       }
10088 
10089       // optional int32 max_iter = 7;
10090       case 7: {
10091         if (static_cast< ::google::protobuf::uint8>(tag) ==
10092             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
10093           set_has_max_iter();
10094           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10095                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10096                  input, &max_iter_)));
10097         } else {
10098           goto handle_unusual;
10099         }
10100         break;
10101       }
10102 
10103       // optional string lr_policy = 8;
10104       case 8: {
10105         if (static_cast< ::google::protobuf::uint8>(tag) ==
10106             static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
10107           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10108                 input, this->mutable_lr_policy()));
10109           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10110             this->lr_policy().data(), static_cast<int>(this->lr_policy().length()),
10111             ::google::protobuf::internal::WireFormat::PARSE,
10112             "opencv_caffe.SolverParameter.lr_policy");
10113         } else {
10114           goto handle_unusual;
10115         }
10116         break;
10117       }
10118 
10119       // optional float gamma = 9;
10120       case 9: {
10121         if (static_cast< ::google::protobuf::uint8>(tag) ==
10122             static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
10123           set_has_gamma();
10124           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10125                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10126                  input, &gamma_)));
10127         } else {
10128           goto handle_unusual;
10129         }
10130         break;
10131       }
10132 
10133       // optional float power = 10;
10134       case 10: {
10135         if (static_cast< ::google::protobuf::uint8>(tag) ==
10136             static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
10137           set_has_power();
10138           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10139                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10140                  input, &power_)));
10141         } else {
10142           goto handle_unusual;
10143         }
10144         break;
10145       }
10146 
10147       // optional float momentum = 11;
10148       case 11: {
10149         if (static_cast< ::google::protobuf::uint8>(tag) ==
10150             static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
10151           set_has_momentum();
10152           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10153                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10154                  input, &momentum_)));
10155         } else {
10156           goto handle_unusual;
10157         }
10158         break;
10159       }
10160 
10161       // optional float weight_decay = 12;
10162       case 12: {
10163         if (static_cast< ::google::protobuf::uint8>(tag) ==
10164             static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
10165           set_has_weight_decay();
10166           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10167                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10168                  input, &weight_decay_)));
10169         } else {
10170           goto handle_unusual;
10171         }
10172         break;
10173       }
10174 
10175       // optional int32 stepsize = 13;
10176       case 13: {
10177         if (static_cast< ::google::protobuf::uint8>(tag) ==
10178             static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
10179           set_has_stepsize();
10180           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10181                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10182                  input, &stepsize_)));
10183         } else {
10184           goto handle_unusual;
10185         }
10186         break;
10187       }
10188 
10189       // optional int32 snapshot = 14 [default = 0];
10190       case 14: {
10191         if (static_cast< ::google::protobuf::uint8>(tag) ==
10192             static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
10193           set_has_snapshot();
10194           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10195                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10196                  input, &snapshot_)));
10197         } else {
10198           goto handle_unusual;
10199         }
10200         break;
10201       }
10202 
10203       // optional string snapshot_prefix = 15;
10204       case 15: {
10205         if (static_cast< ::google::protobuf::uint8>(tag) ==
10206             static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
10207           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10208                 input, this->mutable_snapshot_prefix()));
10209           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10210             this->snapshot_prefix().data(), static_cast<int>(this->snapshot_prefix().length()),
10211             ::google::protobuf::internal::WireFormat::PARSE,
10212             "opencv_caffe.SolverParameter.snapshot_prefix");
10213         } else {
10214           goto handle_unusual;
10215         }
10216         break;
10217       }
10218 
10219       // optional bool snapshot_diff = 16 [default = false];
10220       case 16: {
10221         if (static_cast< ::google::protobuf::uint8>(tag) ==
10222             static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
10223           set_has_snapshot_diff();
10224           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10225                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10226                  input, &snapshot_diff_)));
10227         } else {
10228           goto handle_unusual;
10229         }
10230         break;
10231       }
10232 
10233       // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
10234       case 17: {
10235         if (static_cast< ::google::protobuf::uint8>(tag) ==
10236             static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
10237           int value;
10238           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10239                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10240                  input, &value)));
10241           if (::opencv_caffe::SolverParameter_SolverMode_IsValid(value)) {
10242             set_solver_mode(static_cast< ::opencv_caffe::SolverParameter_SolverMode >(value));
10243           } else {
10244             mutable_unknown_fields()->AddVarint(
10245                 17, static_cast< ::google::protobuf::uint64>(value));
10246           }
10247         } else {
10248           goto handle_unusual;
10249         }
10250         break;
10251       }
10252 
10253       // optional int32 device_id = 18 [default = 0];
10254       case 18: {
10255         if (static_cast< ::google::protobuf::uint8>(tag) ==
10256             static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {
10257           set_has_device_id();
10258           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10259                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10260                  input, &device_id_)));
10261         } else {
10262           goto handle_unusual;
10263         }
10264         break;
10265       }
10266 
10267       // optional bool test_compute_loss = 19 [default = false];
10268       case 19: {
10269         if (static_cast< ::google::protobuf::uint8>(tag) ==
10270             static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
10271           set_has_test_compute_loss();
10272           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10273                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10274                  input, &test_compute_loss_)));
10275         } else {
10276           goto handle_unusual;
10277         }
10278         break;
10279       }
10280 
10281       // optional int64 random_seed = 20 [default = -1];
10282       case 20: {
10283         if (static_cast< ::google::protobuf::uint8>(tag) ==
10284             static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
10285           set_has_random_seed();
10286           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10287                    ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
10288                  input, &random_seed_)));
10289         } else {
10290           goto handle_unusual;
10291         }
10292         break;
10293       }
10294 
10295       // optional .opencv_caffe.NetParameter train_net_param = 21;
10296       case 21: {
10297         if (static_cast< ::google::protobuf::uint8>(tag) ==
10298             static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
10299           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10300                input, mutable_train_net_param()));
10301         } else {
10302           goto handle_unusual;
10303         }
10304         break;
10305       }
10306 
10307       // repeated .opencv_caffe.NetParameter test_net_param = 22;
10308       case 22: {
10309         if (static_cast< ::google::protobuf::uint8>(tag) ==
10310             static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
10311           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_test_net_param()));
10312         } else {
10313           goto handle_unusual;
10314         }
10315         break;
10316       }
10317 
10318       // optional bool debug_info = 23 [default = false];
10319       case 23: {
10320         if (static_cast< ::google::protobuf::uint8>(tag) ==
10321             static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
10322           set_has_debug_info();
10323           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10324                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10325                  input, &debug_info_)));
10326         } else {
10327           goto handle_unusual;
10328         }
10329         break;
10330       }
10331 
10332       // optional string net = 24;
10333       case 24: {
10334         if (static_cast< ::google::protobuf::uint8>(tag) ==
10335             static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
10336           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10337                 input, this->mutable_net()));
10338           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10339             this->net().data(), static_cast<int>(this->net().length()),
10340             ::google::protobuf::internal::WireFormat::PARSE,
10341             "opencv_caffe.SolverParameter.net");
10342         } else {
10343           goto handle_unusual;
10344         }
10345         break;
10346       }
10347 
10348       // optional .opencv_caffe.NetParameter net_param = 25;
10349       case 25: {
10350         if (static_cast< ::google::protobuf::uint8>(tag) ==
10351             static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) {
10352           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10353                input, mutable_net_param()));
10354         } else {
10355           goto handle_unusual;
10356         }
10357         break;
10358       }
10359 
10360       // optional .opencv_caffe.NetState train_state = 26;
10361       case 26: {
10362         if (static_cast< ::google::protobuf::uint8>(tag) ==
10363             static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) {
10364           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10365                input, mutable_train_state()));
10366         } else {
10367           goto handle_unusual;
10368         }
10369         break;
10370       }
10371 
10372       // repeated .opencv_caffe.NetState test_state = 27;
10373       case 27: {
10374         if (static_cast< ::google::protobuf::uint8>(tag) ==
10375             static_cast< ::google::protobuf::uint8>(218u /* 218 & 0xFF */)) {
10376           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_test_state()));
10377         } else {
10378           goto handle_unusual;
10379         }
10380         break;
10381       }
10382 
10383       // optional bool snapshot_after_train = 28 [default = true];
10384       case 28: {
10385         if (static_cast< ::google::protobuf::uint8>(tag) ==
10386             static_cast< ::google::protobuf::uint8>(224u /* 224 & 0xFF */)) {
10387           set_has_snapshot_after_train();
10388           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10389                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10390                  input, &snapshot_after_train_)));
10391         } else {
10392           goto handle_unusual;
10393         }
10394         break;
10395       }
10396 
10397       // optional string regularization_type = 29 [default = "L2"];
10398       case 29: {
10399         if (static_cast< ::google::protobuf::uint8>(tag) ==
10400             static_cast< ::google::protobuf::uint8>(234u /* 234 & 0xFF */)) {
10401           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10402                 input, this->mutable_regularization_type()));
10403           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10404             this->regularization_type().data(), static_cast<int>(this->regularization_type().length()),
10405             ::google::protobuf::internal::WireFormat::PARSE,
10406             "opencv_caffe.SolverParameter.regularization_type");
10407         } else {
10408           goto handle_unusual;
10409         }
10410         break;
10411       }
10412 
10413       // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
10414       case 30: {
10415         if (static_cast< ::google::protobuf::uint8>(tag) ==
10416             static_cast< ::google::protobuf::uint8>(240u /* 240 & 0xFF */)) {
10417           int value;
10418           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10419                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10420                  input, &value)));
10421           if (::opencv_caffe::SolverParameter_SolverType_IsValid(value)) {
10422             set_solver_type(static_cast< ::opencv_caffe::SolverParameter_SolverType >(value));
10423           } else {
10424             mutable_unknown_fields()->AddVarint(
10425                 30, static_cast< ::google::protobuf::uint64>(value));
10426           }
10427         } else {
10428           goto handle_unusual;
10429         }
10430         break;
10431       }
10432 
10433       // optional float delta = 31 [default = 1e-08];
10434       case 31: {
10435         if (static_cast< ::google::protobuf::uint8>(tag) ==
10436             static_cast< ::google::protobuf::uint8>(253u /* 253 & 0xFF */)) {
10437           set_has_delta();
10438           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10439                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10440                  input, &delta_)));
10441         } else {
10442           goto handle_unusual;
10443         }
10444         break;
10445       }
10446 
10447       // optional bool test_initialization = 32 [default = true];
10448       case 32: {
10449         if (static_cast< ::google::protobuf::uint8>(tag) ==
10450             static_cast< ::google::protobuf::uint8>(0u /* 256 & 0xFF */)) {
10451           set_has_test_initialization();
10452           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10453                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10454                  input, &test_initialization_)));
10455         } else {
10456           goto handle_unusual;
10457         }
10458         break;
10459       }
10460 
10461       // optional int32 average_loss = 33 [default = 1];
10462       case 33: {
10463         if (static_cast< ::google::protobuf::uint8>(tag) ==
10464             static_cast< ::google::protobuf::uint8>(8u /* 264 & 0xFF */)) {
10465           set_has_average_loss();
10466           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10467                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10468                  input, &average_loss_)));
10469         } else {
10470           goto handle_unusual;
10471         }
10472         break;
10473       }
10474 
10475       // repeated int32 stepvalue = 34;
10476       case 34: {
10477         if (static_cast< ::google::protobuf::uint8>(tag) ==
10478             static_cast< ::google::protobuf::uint8>(16u /* 272 & 0xFF */)) {
10479           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
10480                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10481                  2, 272u, input, this->mutable_stepvalue())));
10482         } else if (
10483             static_cast< ::google::protobuf::uint8>(tag) ==
10484             static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) {
10485           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
10486                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10487                  input, this->mutable_stepvalue())));
10488         } else {
10489           goto handle_unusual;
10490         }
10491         break;
10492       }
10493 
10494       // optional float clip_gradients = 35 [default = -1];
10495       case 35: {
10496         if (static_cast< ::google::protobuf::uint8>(tag) ==
10497             static_cast< ::google::protobuf::uint8>(29u /* 285 & 0xFF */)) {
10498           set_has_clip_gradients();
10499           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10500                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10501                  input, &clip_gradients_)));
10502         } else {
10503           goto handle_unusual;
10504         }
10505         break;
10506       }
10507 
10508       // optional int32 iter_size = 36 [default = 1];
10509       case 36: {
10510         if (static_cast< ::google::protobuf::uint8>(tag) ==
10511             static_cast< ::google::protobuf::uint8>(32u /* 288 & 0xFF */)) {
10512           set_has_iter_size();
10513           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10514                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10515                  input, &iter_size_)));
10516         } else {
10517           goto handle_unusual;
10518         }
10519         break;
10520       }
10521 
10522       // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
10523       case 37: {
10524         if (static_cast< ::google::protobuf::uint8>(tag) ==
10525             static_cast< ::google::protobuf::uint8>(40u /* 296 & 0xFF */)) {
10526           int value;
10527           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10528                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10529                  input, &value)));
10530           if (::opencv_caffe::SolverParameter_SnapshotFormat_IsValid(value)) {
10531             set_snapshot_format(static_cast< ::opencv_caffe::SolverParameter_SnapshotFormat >(value));
10532           } else {
10533             mutable_unknown_fields()->AddVarint(
10534                 37, static_cast< ::google::protobuf::uint64>(value));
10535           }
10536         } else {
10537           goto handle_unusual;
10538         }
10539         break;
10540       }
10541 
10542       // optional float rms_decay = 38 [default = 0.99];
10543       case 38: {
10544         if (static_cast< ::google::protobuf::uint8>(tag) ==
10545             static_cast< ::google::protobuf::uint8>(53u /* 309 & 0xFF */)) {
10546           set_has_rms_decay();
10547           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10548                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10549                  input, &rms_decay_)));
10550         } else {
10551           goto handle_unusual;
10552         }
10553         break;
10554       }
10555 
10556       // optional float momentum2 = 39 [default = 0.999];
10557       case 39: {
10558         if (static_cast< ::google::protobuf::uint8>(tag) ==
10559             static_cast< ::google::protobuf::uint8>(61u /* 317 & 0xFF */)) {
10560           set_has_momentum2();
10561           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10562                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
10563                  input, &momentum2_)));
10564         } else {
10565           goto handle_unusual;
10566         }
10567         break;
10568       }
10569 
10570       // optional string type = 40 [default = "SGD"];
10571       case 40: {
10572         if (static_cast< ::google::protobuf::uint8>(tag) ==
10573             static_cast< ::google::protobuf::uint8>(66u /* 322 & 0xFF */)) {
10574           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10575                 input, this->mutable_type()));
10576           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10577             this->type().data(), static_cast<int>(this->type().length()),
10578             ::google::protobuf::internal::WireFormat::PARSE,
10579             "opencv_caffe.SolverParameter.type");
10580         } else {
10581           goto handle_unusual;
10582         }
10583         break;
10584       }
10585 
10586       default: {
10587       handle_unusual:
10588         if (tag == 0) {
10589           goto success;
10590         }
10591         DO_(::google::protobuf::internal::WireFormat::SkipField(
10592               input, tag, _internal_metadata_.mutable_unknown_fields()));
10593         break;
10594       }
10595     }
10596   }
10597 success:
10598   // @@protoc_insertion_point(parse_success:opencv_caffe.SolverParameter)
10599   return true;
10600 failure:
10601   // @@protoc_insertion_point(parse_failure:opencv_caffe.SolverParameter)
10602   return false;
10603 #undef DO_
10604 }
10605 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const10606 void SolverParameter::SerializeWithCachedSizes(
10607     ::google::protobuf::io::CodedOutputStream* output) const {
10608   // @@protoc_insertion_point(serialize_start:opencv_caffe.SolverParameter)
10609   ::google::protobuf::uint32 cached_has_bits = 0;
10610   (void) cached_has_bits;
10611 
10612   cached_has_bits = _has_bits_[0];
10613   // optional string train_net = 1;
10614   if (cached_has_bits & 0x00000001u) {
10615     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10616       this->train_net().data(), static_cast<int>(this->train_net().length()),
10617       ::google::protobuf::internal::WireFormat::SERIALIZE,
10618       "opencv_caffe.SolverParameter.train_net");
10619     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10620       1, this->train_net(), output);
10621   }
10622 
10623   // repeated string test_net = 2;
10624   for (int i = 0, n = this->test_net_size(); i < n; i++) {
10625     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10626       this->test_net(i).data(), static_cast<int>(this->test_net(i).length()),
10627       ::google::protobuf::internal::WireFormat::SERIALIZE,
10628       "opencv_caffe.SolverParameter.test_net");
10629     ::google::protobuf::internal::WireFormatLite::WriteString(
10630       2, this->test_net(i), output);
10631   }
10632 
10633   // repeated int32 test_iter = 3;
10634   for (int i = 0, n = this->test_iter_size(); i < n; i++) {
10635     ::google::protobuf::internal::WireFormatLite::WriteInt32(
10636       3, this->test_iter(i), output);
10637   }
10638 
10639   // optional int32 test_interval = 4 [default = 0];
10640   if (cached_has_bits & 0x00000200u) {
10641     ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->test_interval(), output);
10642   }
10643 
10644   // optional float base_lr = 5;
10645   if (cached_has_bits & 0x00000400u) {
10646     ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->base_lr(), output);
10647   }
10648 
10649   // optional int32 display = 6;
10650   if (cached_has_bits & 0x00000800u) {
10651     ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->display(), output);
10652   }
10653 
10654   // optional int32 max_iter = 7;
10655   if (cached_has_bits & 0x00001000u) {
10656     ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->max_iter(), output);
10657   }
10658 
10659   // optional string lr_policy = 8;
10660   if (cached_has_bits & 0x00000002u) {
10661     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10662       this->lr_policy().data(), static_cast<int>(this->lr_policy().length()),
10663       ::google::protobuf::internal::WireFormat::SERIALIZE,
10664       "opencv_caffe.SolverParameter.lr_policy");
10665     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10666       8, this->lr_policy(), output);
10667   }
10668 
10669   // optional float gamma = 9;
10670   if (cached_has_bits & 0x00002000u) {
10671     ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->gamma(), output);
10672   }
10673 
10674   // optional float power = 10;
10675   if (cached_has_bits & 0x00004000u) {
10676     ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->power(), output);
10677   }
10678 
10679   // optional float momentum = 11;
10680   if (cached_has_bits & 0x00008000u) {
10681     ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->momentum(), output);
10682   }
10683 
10684   // optional float weight_decay = 12;
10685   if (cached_has_bits & 0x00010000u) {
10686     ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->weight_decay(), output);
10687   }
10688 
10689   // optional int32 stepsize = 13;
10690   if (cached_has_bits & 0x00020000u) {
10691     ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->stepsize(), output);
10692   }
10693 
10694   // optional int32 snapshot = 14 [default = 0];
10695   if (cached_has_bits & 0x00040000u) {
10696     ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->snapshot(), output);
10697   }
10698 
10699   // optional string snapshot_prefix = 15;
10700   if (cached_has_bits & 0x00000004u) {
10701     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10702       this->snapshot_prefix().data(), static_cast<int>(this->snapshot_prefix().length()),
10703       ::google::protobuf::internal::WireFormat::SERIALIZE,
10704       "opencv_caffe.SolverParameter.snapshot_prefix");
10705     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10706       15, this->snapshot_prefix(), output);
10707   }
10708 
10709   // optional bool snapshot_diff = 16 [default = false];
10710   if (cached_has_bits & 0x00200000u) {
10711     ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->snapshot_diff(), output);
10712   }
10713 
10714   // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
10715   if (cached_has_bits & 0x04000000u) {
10716     ::google::protobuf::internal::WireFormatLite::WriteEnum(
10717       17, this->solver_mode(), output);
10718   }
10719 
10720   // optional int32 device_id = 18 [default = 0];
10721   if (cached_has_bits & 0x00080000u) {
10722     ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->device_id(), output);
10723   }
10724 
10725   // optional bool test_compute_loss = 19 [default = false];
10726   if (cached_has_bits & 0x00100000u) {
10727     ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->test_compute_loss(), output);
10728   }
10729 
10730   // optional int64 random_seed = 20 [default = -1];
10731   if (cached_has_bits & 0x02000000u) {
10732     ::google::protobuf::internal::WireFormatLite::WriteInt64(20, this->random_seed(), output);
10733   }
10734 
10735   // optional .opencv_caffe.NetParameter train_net_param = 21;
10736   if (cached_has_bits & 0x00000040u) {
10737     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10738       21, *this->train_net_param_, output);
10739   }
10740 
10741   // repeated .opencv_caffe.NetParameter test_net_param = 22;
10742   for (unsigned int i = 0,
10743       n = static_cast<unsigned int>(this->test_net_param_size()); i < n; i++) {
10744     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10745       22, this->test_net_param(static_cast<int>(i)), output);
10746   }
10747 
10748   // optional bool debug_info = 23 [default = false];
10749   if (cached_has_bits & 0x00400000u) {
10750     ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->debug_info(), output);
10751   }
10752 
10753   // optional string net = 24;
10754   if (cached_has_bits & 0x00000008u) {
10755     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10756       this->net().data(), static_cast<int>(this->net().length()),
10757       ::google::protobuf::internal::WireFormat::SERIALIZE,
10758       "opencv_caffe.SolverParameter.net");
10759     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10760       24, this->net(), output);
10761   }
10762 
10763   // optional .opencv_caffe.NetParameter net_param = 25;
10764   if (cached_has_bits & 0x00000080u) {
10765     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10766       25, *this->net_param_, output);
10767   }
10768 
10769   // optional .opencv_caffe.NetState train_state = 26;
10770   if (cached_has_bits & 0x00000100u) {
10771     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10772       26, *this->train_state_, output);
10773   }
10774 
10775   // repeated .opencv_caffe.NetState test_state = 27;
10776   for (unsigned int i = 0,
10777       n = static_cast<unsigned int>(this->test_state_size()); i < n; i++) {
10778     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10779       27, this->test_state(static_cast<int>(i)), output);
10780   }
10781 
10782   // optional bool snapshot_after_train = 28 [default = true];
10783   if (cached_has_bits & 0x10000000u) {
10784     ::google::protobuf::internal::WireFormatLite::WriteBool(28, this->snapshot_after_train(), output);
10785   }
10786 
10787   // optional string regularization_type = 29 [default = "L2"];
10788   if (cached_has_bits & 0x00000010u) {
10789     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10790       this->regularization_type().data(), static_cast<int>(this->regularization_type().length()),
10791       ::google::protobuf::internal::WireFormat::SERIALIZE,
10792       "opencv_caffe.SolverParameter.regularization_type");
10793     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10794       29, this->regularization_type(), output);
10795   }
10796 
10797   // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
10798   if (cached_has_bits & 0x00800000u) {
10799     ::google::protobuf::internal::WireFormatLite::WriteEnum(
10800       30, this->solver_type(), output);
10801   }
10802 
10803   // optional float delta = 31 [default = 1e-08];
10804   if (cached_has_bits & 0x20000000u) {
10805     ::google::protobuf::internal::WireFormatLite::WriteFloat(31, this->delta(), output);
10806   }
10807 
10808   // optional bool test_initialization = 32 [default = true];
10809   if (cached_has_bits & 0x08000000u) {
10810     ::google::protobuf::internal::WireFormatLite::WriteBool(32, this->test_initialization(), output);
10811   }
10812 
10813   // optional int32 average_loss = 33 [default = 1];
10814   if (cached_has_bits & 0x40000000u) {
10815     ::google::protobuf::internal::WireFormatLite::WriteInt32(33, this->average_loss(), output);
10816   }
10817 
10818   // repeated int32 stepvalue = 34;
10819   for (int i = 0, n = this->stepvalue_size(); i < n; i++) {
10820     ::google::protobuf::internal::WireFormatLite::WriteInt32(
10821       34, this->stepvalue(i), output);
10822   }
10823 
10824   // optional float clip_gradients = 35 [default = -1];
10825   if (cached_has_bits & 0x80000000u) {
10826     ::google::protobuf::internal::WireFormatLite::WriteFloat(35, this->clip_gradients(), output);
10827   }
10828 
10829   cached_has_bits = _has_bits_[1];
10830   // optional int32 iter_size = 36 [default = 1];
10831   if (cached_has_bits & 0x00000001u) {
10832     ::google::protobuf::internal::WireFormatLite::WriteInt32(36, this->iter_size(), output);
10833   }
10834 
10835   // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
10836   if (cached_has_bits & 0x00000002u) {
10837     ::google::protobuf::internal::WireFormatLite::WriteEnum(
10838       37, this->snapshot_format(), output);
10839   }
10840 
10841   // optional float rms_decay = 38 [default = 0.99];
10842   if (cached_has_bits & 0x00000004u) {
10843     ::google::protobuf::internal::WireFormatLite::WriteFloat(38, this->rms_decay(), output);
10844   }
10845 
10846   cached_has_bits = _has_bits_[0];
10847   // optional float momentum2 = 39 [default = 0.999];
10848   if (cached_has_bits & 0x01000000u) {
10849     ::google::protobuf::internal::WireFormatLite::WriteFloat(39, this->momentum2(), output);
10850   }
10851 
10852   // optional string type = 40 [default = "SGD"];
10853   if (cached_has_bits & 0x00000020u) {
10854     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10855       this->type().data(), static_cast<int>(this->type().length()),
10856       ::google::protobuf::internal::WireFormat::SERIALIZE,
10857       "opencv_caffe.SolverParameter.type");
10858     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10859       40, this->type(), output);
10860   }
10861 
10862   if (_internal_metadata_.have_unknown_fields()) {
10863     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10864         _internal_metadata_.unknown_fields(), output);
10865   }
10866   // @@protoc_insertion_point(serialize_end:opencv_caffe.SolverParameter)
10867 }
10868 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const10869 ::google::protobuf::uint8* SolverParameter::InternalSerializeWithCachedSizesToArray(
10870     bool deterministic, ::google::protobuf::uint8* target) const {
10871   (void)deterministic; // Unused
10872   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SolverParameter)
10873   ::google::protobuf::uint32 cached_has_bits = 0;
10874   (void) cached_has_bits;
10875 
10876   cached_has_bits = _has_bits_[0];
10877   // optional string train_net = 1;
10878   if (cached_has_bits & 0x00000001u) {
10879     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10880       this->train_net().data(), static_cast<int>(this->train_net().length()),
10881       ::google::protobuf::internal::WireFormat::SERIALIZE,
10882       "opencv_caffe.SolverParameter.train_net");
10883     target =
10884       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10885         1, this->train_net(), target);
10886   }
10887 
10888   // repeated string test_net = 2;
10889   for (int i = 0, n = this->test_net_size(); i < n; i++) {
10890     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10891       this->test_net(i).data(), static_cast<int>(this->test_net(i).length()),
10892       ::google::protobuf::internal::WireFormat::SERIALIZE,
10893       "opencv_caffe.SolverParameter.test_net");
10894     target = ::google::protobuf::internal::WireFormatLite::
10895       WriteStringToArray(2, this->test_net(i), target);
10896   }
10897 
10898   // repeated int32 test_iter = 3;
10899   target = ::google::protobuf::internal::WireFormatLite::
10900     WriteInt32ToArray(3, this->test_iter_, target);
10901 
10902   // optional int32 test_interval = 4 [default = 0];
10903   if (cached_has_bits & 0x00000200u) {
10904     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->test_interval(), target);
10905   }
10906 
10907   // optional float base_lr = 5;
10908   if (cached_has_bits & 0x00000400u) {
10909     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->base_lr(), target);
10910   }
10911 
10912   // optional int32 display = 6;
10913   if (cached_has_bits & 0x00000800u) {
10914     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->display(), target);
10915   }
10916 
10917   // optional int32 max_iter = 7;
10918   if (cached_has_bits & 0x00001000u) {
10919     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->max_iter(), target);
10920   }
10921 
10922   // optional string lr_policy = 8;
10923   if (cached_has_bits & 0x00000002u) {
10924     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10925       this->lr_policy().data(), static_cast<int>(this->lr_policy().length()),
10926       ::google::protobuf::internal::WireFormat::SERIALIZE,
10927       "opencv_caffe.SolverParameter.lr_policy");
10928     target =
10929       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10930         8, this->lr_policy(), target);
10931   }
10932 
10933   // optional float gamma = 9;
10934   if (cached_has_bits & 0x00002000u) {
10935     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->gamma(), target);
10936   }
10937 
10938   // optional float power = 10;
10939   if (cached_has_bits & 0x00004000u) {
10940     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->power(), target);
10941   }
10942 
10943   // optional float momentum = 11;
10944   if (cached_has_bits & 0x00008000u) {
10945     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->momentum(), target);
10946   }
10947 
10948   // optional float weight_decay = 12;
10949   if (cached_has_bits & 0x00010000u) {
10950     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->weight_decay(), target);
10951   }
10952 
10953   // optional int32 stepsize = 13;
10954   if (cached_has_bits & 0x00020000u) {
10955     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->stepsize(), target);
10956   }
10957 
10958   // optional int32 snapshot = 14 [default = 0];
10959   if (cached_has_bits & 0x00040000u) {
10960     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->snapshot(), target);
10961   }
10962 
10963   // optional string snapshot_prefix = 15;
10964   if (cached_has_bits & 0x00000004u) {
10965     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10966       this->snapshot_prefix().data(), static_cast<int>(this->snapshot_prefix().length()),
10967       ::google::protobuf::internal::WireFormat::SERIALIZE,
10968       "opencv_caffe.SolverParameter.snapshot_prefix");
10969     target =
10970       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10971         15, this->snapshot_prefix(), target);
10972   }
10973 
10974   // optional bool snapshot_diff = 16 [default = false];
10975   if (cached_has_bits & 0x00200000u) {
10976     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->snapshot_diff(), target);
10977   }
10978 
10979   // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
10980   if (cached_has_bits & 0x04000000u) {
10981     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10982       17, this->solver_mode(), target);
10983   }
10984 
10985   // optional int32 device_id = 18 [default = 0];
10986   if (cached_has_bits & 0x00080000u) {
10987     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->device_id(), target);
10988   }
10989 
10990   // optional bool test_compute_loss = 19 [default = false];
10991   if (cached_has_bits & 0x00100000u) {
10992     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->test_compute_loss(), target);
10993   }
10994 
10995   // optional int64 random_seed = 20 [default = -1];
10996   if (cached_has_bits & 0x02000000u) {
10997     target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(20, this->random_seed(), target);
10998   }
10999 
11000   // optional .opencv_caffe.NetParameter train_net_param = 21;
11001   if (cached_has_bits & 0x00000040u) {
11002     target = ::google::protobuf::internal::WireFormatLite::
11003       InternalWriteMessageToArray(
11004         21, *this->train_net_param_, deterministic, target);
11005   }
11006 
11007   // repeated .opencv_caffe.NetParameter test_net_param = 22;
11008   for (unsigned int i = 0,
11009       n = static_cast<unsigned int>(this->test_net_param_size()); i < n; i++) {
11010     target = ::google::protobuf::internal::WireFormatLite::
11011       InternalWriteMessageToArray(
11012         22, this->test_net_param(static_cast<int>(i)), deterministic, target);
11013   }
11014 
11015   // optional bool debug_info = 23 [default = false];
11016   if (cached_has_bits & 0x00400000u) {
11017     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->debug_info(), target);
11018   }
11019 
11020   // optional string net = 24;
11021   if (cached_has_bits & 0x00000008u) {
11022     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11023       this->net().data(), static_cast<int>(this->net().length()),
11024       ::google::protobuf::internal::WireFormat::SERIALIZE,
11025       "opencv_caffe.SolverParameter.net");
11026     target =
11027       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11028         24, this->net(), target);
11029   }
11030 
11031   // optional .opencv_caffe.NetParameter net_param = 25;
11032   if (cached_has_bits & 0x00000080u) {
11033     target = ::google::protobuf::internal::WireFormatLite::
11034       InternalWriteMessageToArray(
11035         25, *this->net_param_, deterministic, target);
11036   }
11037 
11038   // optional .opencv_caffe.NetState train_state = 26;
11039   if (cached_has_bits & 0x00000100u) {
11040     target = ::google::protobuf::internal::WireFormatLite::
11041       InternalWriteMessageToArray(
11042         26, *this->train_state_, deterministic, target);
11043   }
11044 
11045   // repeated .opencv_caffe.NetState test_state = 27;
11046   for (unsigned int i = 0,
11047       n = static_cast<unsigned int>(this->test_state_size()); i < n; i++) {
11048     target = ::google::protobuf::internal::WireFormatLite::
11049       InternalWriteMessageToArray(
11050         27, this->test_state(static_cast<int>(i)), deterministic, target);
11051   }
11052 
11053   // optional bool snapshot_after_train = 28 [default = true];
11054   if (cached_has_bits & 0x10000000u) {
11055     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(28, this->snapshot_after_train(), target);
11056   }
11057 
11058   // optional string regularization_type = 29 [default = "L2"];
11059   if (cached_has_bits & 0x00000010u) {
11060     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11061       this->regularization_type().data(), static_cast<int>(this->regularization_type().length()),
11062       ::google::protobuf::internal::WireFormat::SERIALIZE,
11063       "opencv_caffe.SolverParameter.regularization_type");
11064     target =
11065       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11066         29, this->regularization_type(), target);
11067   }
11068 
11069   // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
11070   if (cached_has_bits & 0x00800000u) {
11071     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11072       30, this->solver_type(), target);
11073   }
11074 
11075   // optional float delta = 31 [default = 1e-08];
11076   if (cached_has_bits & 0x20000000u) {
11077     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(31, this->delta(), target);
11078   }
11079 
11080   // optional bool test_initialization = 32 [default = true];
11081   if (cached_has_bits & 0x08000000u) {
11082     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(32, this->test_initialization(), target);
11083   }
11084 
11085   // optional int32 average_loss = 33 [default = 1];
11086   if (cached_has_bits & 0x40000000u) {
11087     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(33, this->average_loss(), target);
11088   }
11089 
11090   // repeated int32 stepvalue = 34;
11091   target = ::google::protobuf::internal::WireFormatLite::
11092     WriteInt32ToArray(34, this->stepvalue_, target);
11093 
11094   // optional float clip_gradients = 35 [default = -1];
11095   if (cached_has_bits & 0x80000000u) {
11096     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(35, this->clip_gradients(), target);
11097   }
11098 
11099   cached_has_bits = _has_bits_[1];
11100   // optional int32 iter_size = 36 [default = 1];
11101   if (cached_has_bits & 0x00000001u) {
11102     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(36, this->iter_size(), target);
11103   }
11104 
11105   // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
11106   if (cached_has_bits & 0x00000002u) {
11107     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11108       37, this->snapshot_format(), target);
11109   }
11110 
11111   // optional float rms_decay = 38 [default = 0.99];
11112   if (cached_has_bits & 0x00000004u) {
11113     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(38, this->rms_decay(), target);
11114   }
11115 
11116   cached_has_bits = _has_bits_[0];
11117   // optional float momentum2 = 39 [default = 0.999];
11118   if (cached_has_bits & 0x01000000u) {
11119     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(39, this->momentum2(), target);
11120   }
11121 
11122   // optional string type = 40 [default = "SGD"];
11123   if (cached_has_bits & 0x00000020u) {
11124     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11125       this->type().data(), static_cast<int>(this->type().length()),
11126       ::google::protobuf::internal::WireFormat::SERIALIZE,
11127       "opencv_caffe.SolverParameter.type");
11128     target =
11129       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11130         40, this->type(), target);
11131   }
11132 
11133   if (_internal_metadata_.have_unknown_fields()) {
11134     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11135         _internal_metadata_.unknown_fields(), target);
11136   }
11137   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SolverParameter)
11138   return target;
11139 }
11140 
ByteSizeLong() const11141 size_t SolverParameter::ByteSizeLong() const {
11142 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SolverParameter)
11143   size_t total_size = 0;
11144 
11145   if (_internal_metadata_.have_unknown_fields()) {
11146     total_size +=
11147       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11148         _internal_metadata_.unknown_fields());
11149   }
11150   // repeated string test_net = 2;
11151   total_size += 1 *
11152       ::google::protobuf::internal::FromIntSize(this->test_net_size());
11153   for (int i = 0, n = this->test_net_size(); i < n; i++) {
11154     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
11155       this->test_net(i));
11156   }
11157 
11158   // repeated int32 test_iter = 3;
11159   {
11160     size_t data_size = ::google::protobuf::internal::WireFormatLite::
11161       Int32Size(this->test_iter_);
11162     total_size += 1 *
11163                   ::google::protobuf::internal::FromIntSize(this->test_iter_size());
11164     total_size += data_size;
11165   }
11166 
11167   // repeated .opencv_caffe.NetParameter test_net_param = 22;
11168   {
11169     unsigned int count = static_cast<unsigned int>(this->test_net_param_size());
11170     total_size += 2UL * count;
11171     for (unsigned int i = 0; i < count; i++) {
11172       total_size +=
11173         ::google::protobuf::internal::WireFormatLite::MessageSize(
11174           this->test_net_param(static_cast<int>(i)));
11175     }
11176   }
11177 
11178   // repeated .opencv_caffe.NetState test_state = 27;
11179   {
11180     unsigned int count = static_cast<unsigned int>(this->test_state_size());
11181     total_size += 2UL * count;
11182     for (unsigned int i = 0; i < count; i++) {
11183       total_size +=
11184         ::google::protobuf::internal::WireFormatLite::MessageSize(
11185           this->test_state(static_cast<int>(i)));
11186     }
11187   }
11188 
11189   // repeated int32 stepvalue = 34;
11190   {
11191     size_t data_size = ::google::protobuf::internal::WireFormatLite::
11192       Int32Size(this->stepvalue_);
11193     total_size += 2 *
11194                   ::google::protobuf::internal::FromIntSize(this->stepvalue_size());
11195     total_size += data_size;
11196   }
11197 
11198   if (_has_bits_[0 / 32] & 255u) {
11199     // optional string train_net = 1;
11200     if (has_train_net()) {
11201       total_size += 1 +
11202         ::google::protobuf::internal::WireFormatLite::StringSize(
11203           this->train_net());
11204     }
11205 
11206     // optional string lr_policy = 8;
11207     if (has_lr_policy()) {
11208       total_size += 1 +
11209         ::google::protobuf::internal::WireFormatLite::StringSize(
11210           this->lr_policy());
11211     }
11212 
11213     // optional string snapshot_prefix = 15;
11214     if (has_snapshot_prefix()) {
11215       total_size += 1 +
11216         ::google::protobuf::internal::WireFormatLite::StringSize(
11217           this->snapshot_prefix());
11218     }
11219 
11220     // optional string net = 24;
11221     if (has_net()) {
11222       total_size += 2 +
11223         ::google::protobuf::internal::WireFormatLite::StringSize(
11224           this->net());
11225     }
11226 
11227     // optional string regularization_type = 29 [default = "L2"];
11228     if (has_regularization_type()) {
11229       total_size += 2 +
11230         ::google::protobuf::internal::WireFormatLite::StringSize(
11231           this->regularization_type());
11232     }
11233 
11234     // optional string type = 40 [default = "SGD"];
11235     if (has_type()) {
11236       total_size += 2 +
11237         ::google::protobuf::internal::WireFormatLite::StringSize(
11238           this->type());
11239     }
11240 
11241     // optional .opencv_caffe.NetParameter train_net_param = 21;
11242     if (has_train_net_param()) {
11243       total_size += 2 +
11244         ::google::protobuf::internal::WireFormatLite::MessageSize(
11245           *this->train_net_param_);
11246     }
11247 
11248     // optional .opencv_caffe.NetParameter net_param = 25;
11249     if (has_net_param()) {
11250       total_size += 2 +
11251         ::google::protobuf::internal::WireFormatLite::MessageSize(
11252           *this->net_param_);
11253     }
11254 
11255   }
11256   if (_has_bits_[8 / 32] & 65280u) {
11257     // optional .opencv_caffe.NetState train_state = 26;
11258     if (has_train_state()) {
11259       total_size += 2 +
11260         ::google::protobuf::internal::WireFormatLite::MessageSize(
11261           *this->train_state_);
11262     }
11263 
11264     // optional int32 test_interval = 4 [default = 0];
11265     if (has_test_interval()) {
11266       total_size += 1 +
11267         ::google::protobuf::internal::WireFormatLite::Int32Size(
11268           this->test_interval());
11269     }
11270 
11271     // optional float base_lr = 5;
11272     if (has_base_lr()) {
11273       total_size += 1 + 4;
11274     }
11275 
11276     // optional int32 display = 6;
11277     if (has_display()) {
11278       total_size += 1 +
11279         ::google::protobuf::internal::WireFormatLite::Int32Size(
11280           this->display());
11281     }
11282 
11283     // optional int32 max_iter = 7;
11284     if (has_max_iter()) {
11285       total_size += 1 +
11286         ::google::protobuf::internal::WireFormatLite::Int32Size(
11287           this->max_iter());
11288     }
11289 
11290     // optional float gamma = 9;
11291     if (has_gamma()) {
11292       total_size += 1 + 4;
11293     }
11294 
11295     // optional float power = 10;
11296     if (has_power()) {
11297       total_size += 1 + 4;
11298     }
11299 
11300     // optional float momentum = 11;
11301     if (has_momentum()) {
11302       total_size += 1 + 4;
11303     }
11304 
11305   }
11306   if (_has_bits_[16 / 32] & 16711680u) {
11307     // optional float weight_decay = 12;
11308     if (has_weight_decay()) {
11309       total_size += 1 + 4;
11310     }
11311 
11312     // optional int32 stepsize = 13;
11313     if (has_stepsize()) {
11314       total_size += 1 +
11315         ::google::protobuf::internal::WireFormatLite::Int32Size(
11316           this->stepsize());
11317     }
11318 
11319     // optional int32 snapshot = 14 [default = 0];
11320     if (has_snapshot()) {
11321       total_size += 1 +
11322         ::google::protobuf::internal::WireFormatLite::Int32Size(
11323           this->snapshot());
11324     }
11325 
11326     // optional int32 device_id = 18 [default = 0];
11327     if (has_device_id()) {
11328       total_size += 2 +
11329         ::google::protobuf::internal::WireFormatLite::Int32Size(
11330           this->device_id());
11331     }
11332 
11333     // optional bool test_compute_loss = 19 [default = false];
11334     if (has_test_compute_loss()) {
11335       total_size += 2 + 1;
11336     }
11337 
11338     // optional bool snapshot_diff = 16 [default = false];
11339     if (has_snapshot_diff()) {
11340       total_size += 2 + 1;
11341     }
11342 
11343     // optional bool debug_info = 23 [default = false];
11344     if (has_debug_info()) {
11345       total_size += 2 + 1;
11346     }
11347 
11348     // optional .opencv_caffe.SolverParameter.SolverType solver_type = 30 [default = SGD];
11349     if (has_solver_type()) {
11350       total_size += 2 +
11351         ::google::protobuf::internal::WireFormatLite::EnumSize(this->solver_type());
11352     }
11353 
11354   }
11355   if (_has_bits_[24 / 32] & 4278190080u) {
11356     // optional float momentum2 = 39 [default = 0.999];
11357     if (has_momentum2()) {
11358       total_size += 2 + 4;
11359     }
11360 
11361     // optional int64 random_seed = 20 [default = -1];
11362     if (has_random_seed()) {
11363       total_size += 2 +
11364         ::google::protobuf::internal::WireFormatLite::Int64Size(
11365           this->random_seed());
11366     }
11367 
11368     // optional .opencv_caffe.SolverParameter.SolverMode solver_mode = 17 [default = GPU];
11369     if (has_solver_mode()) {
11370       total_size += 2 +
11371         ::google::protobuf::internal::WireFormatLite::EnumSize(this->solver_mode());
11372     }
11373 
11374     // optional bool test_initialization = 32 [default = true];
11375     if (has_test_initialization()) {
11376       total_size += 2 + 1;
11377     }
11378 
11379     // optional bool snapshot_after_train = 28 [default = true];
11380     if (has_snapshot_after_train()) {
11381       total_size += 2 + 1;
11382     }
11383 
11384     // optional float delta = 31 [default = 1e-08];
11385     if (has_delta()) {
11386       total_size += 2 + 4;
11387     }
11388 
11389     // optional int32 average_loss = 33 [default = 1];
11390     if (has_average_loss()) {
11391       total_size += 2 +
11392         ::google::protobuf::internal::WireFormatLite::Int32Size(
11393           this->average_loss());
11394     }
11395 
11396     // optional float clip_gradients = 35 [default = -1];
11397     if (has_clip_gradients()) {
11398       total_size += 2 + 4;
11399     }
11400 
11401   }
11402   if (_has_bits_[32 / 32] & 7u) {
11403     // optional int32 iter_size = 36 [default = 1];
11404     if (has_iter_size()) {
11405       total_size += 2 +
11406         ::google::protobuf::internal::WireFormatLite::Int32Size(
11407           this->iter_size());
11408     }
11409 
11410     // optional .opencv_caffe.SolverParameter.SnapshotFormat snapshot_format = 37 [default = BINARYPROTO];
11411     if (has_snapshot_format()) {
11412       total_size += 2 +
11413         ::google::protobuf::internal::WireFormatLite::EnumSize(this->snapshot_format());
11414     }
11415 
11416     // optional float rms_decay = 38 [default = 0.99];
11417     if (has_rms_decay()) {
11418       total_size += 2 + 4;
11419     }
11420 
11421   }
11422   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11423   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11424   _cached_size_ = cached_size;
11425   GOOGLE_SAFE_CONCURRENT_WRITES_END();
11426   return total_size;
11427 }
11428 
MergeFrom(const::google::protobuf::Message & from)11429 void SolverParameter::MergeFrom(const ::google::protobuf::Message& from) {
11430 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SolverParameter)
11431   GOOGLE_DCHECK_NE(&from, this);
11432   const SolverParameter* source =
11433       ::google::protobuf::internal::DynamicCastToGenerated<const SolverParameter>(
11434           &from);
11435   if (source == NULL) {
11436   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SolverParameter)
11437     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11438   } else {
11439   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SolverParameter)
11440     MergeFrom(*source);
11441   }
11442 }
11443 
MergeFrom(const SolverParameter & from)11444 void SolverParameter::MergeFrom(const SolverParameter& from) {
11445 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SolverParameter)
11446   GOOGLE_DCHECK_NE(&from, this);
11447   _internal_metadata_.MergeFrom(from._internal_metadata_);
11448   ::google::protobuf::uint32 cached_has_bits = 0;
11449   (void) cached_has_bits;
11450 
11451   test_net_.MergeFrom(from.test_net_);
11452   test_iter_.MergeFrom(from.test_iter_);
11453   test_net_param_.MergeFrom(from.test_net_param_);
11454   test_state_.MergeFrom(from.test_state_);
11455   stepvalue_.MergeFrom(from.stepvalue_);
11456   cached_has_bits = from._has_bits_[0];
11457   if (cached_has_bits & 255u) {
11458     if (cached_has_bits & 0x00000001u) {
11459       set_has_train_net();
11460       train_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.train_net_);
11461     }
11462     if (cached_has_bits & 0x00000002u) {
11463       set_has_lr_policy();
11464       lr_policy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lr_policy_);
11465     }
11466     if (cached_has_bits & 0x00000004u) {
11467       set_has_snapshot_prefix();
11468       snapshot_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_prefix_);
11469     }
11470     if (cached_has_bits & 0x00000008u) {
11471       set_has_net();
11472       net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.net_);
11473     }
11474     if (cached_has_bits & 0x00000010u) {
11475       set_has_regularization_type();
11476       regularization_type_.AssignWithDefault(&::opencv_caffe::SolverParameter::_default_regularization_type_.get(), from.regularization_type_);
11477     }
11478     if (cached_has_bits & 0x00000020u) {
11479       set_has_type();
11480       type_.AssignWithDefault(&::opencv_caffe::SolverParameter::_default_type_.get(), from.type_);
11481     }
11482     if (cached_has_bits & 0x00000040u) {
11483       mutable_train_net_param()->::opencv_caffe::NetParameter::MergeFrom(from.train_net_param());
11484     }
11485     if (cached_has_bits & 0x00000080u) {
11486       mutable_net_param()->::opencv_caffe::NetParameter::MergeFrom(from.net_param());
11487     }
11488   }
11489   if (cached_has_bits & 65280u) {
11490     if (cached_has_bits & 0x00000100u) {
11491       mutable_train_state()->::opencv_caffe::NetState::MergeFrom(from.train_state());
11492     }
11493     if (cached_has_bits & 0x00000200u) {
11494       test_interval_ = from.test_interval_;
11495     }
11496     if (cached_has_bits & 0x00000400u) {
11497       base_lr_ = from.base_lr_;
11498     }
11499     if (cached_has_bits & 0x00000800u) {
11500       display_ = from.display_;
11501     }
11502     if (cached_has_bits & 0x00001000u) {
11503       max_iter_ = from.max_iter_;
11504     }
11505     if (cached_has_bits & 0x00002000u) {
11506       gamma_ = from.gamma_;
11507     }
11508     if (cached_has_bits & 0x00004000u) {
11509       power_ = from.power_;
11510     }
11511     if (cached_has_bits & 0x00008000u) {
11512       momentum_ = from.momentum_;
11513     }
11514     _has_bits_[0] |= cached_has_bits;
11515   }
11516   if (cached_has_bits & 16711680u) {
11517     if (cached_has_bits & 0x00010000u) {
11518       weight_decay_ = from.weight_decay_;
11519     }
11520     if (cached_has_bits & 0x00020000u) {
11521       stepsize_ = from.stepsize_;
11522     }
11523     if (cached_has_bits & 0x00040000u) {
11524       snapshot_ = from.snapshot_;
11525     }
11526     if (cached_has_bits & 0x00080000u) {
11527       device_id_ = from.device_id_;
11528     }
11529     if (cached_has_bits & 0x00100000u) {
11530       test_compute_loss_ = from.test_compute_loss_;
11531     }
11532     if (cached_has_bits & 0x00200000u) {
11533       snapshot_diff_ = from.snapshot_diff_;
11534     }
11535     if (cached_has_bits & 0x00400000u) {
11536       debug_info_ = from.debug_info_;
11537     }
11538     if (cached_has_bits & 0x00800000u) {
11539       solver_type_ = from.solver_type_;
11540     }
11541     _has_bits_[0] |= cached_has_bits;
11542   }
11543   if (cached_has_bits & 4278190080u) {
11544     if (cached_has_bits & 0x01000000u) {
11545       momentum2_ = from.momentum2_;
11546     }
11547     if (cached_has_bits & 0x02000000u) {
11548       random_seed_ = from.random_seed_;
11549     }
11550     if (cached_has_bits & 0x04000000u) {
11551       solver_mode_ = from.solver_mode_;
11552     }
11553     if (cached_has_bits & 0x08000000u) {
11554       test_initialization_ = from.test_initialization_;
11555     }
11556     if (cached_has_bits & 0x10000000u) {
11557       snapshot_after_train_ = from.snapshot_after_train_;
11558     }
11559     if (cached_has_bits & 0x20000000u) {
11560       delta_ = from.delta_;
11561     }
11562     if (cached_has_bits & 0x40000000u) {
11563       average_loss_ = from.average_loss_;
11564     }
11565     if (cached_has_bits & 0x80000000u) {
11566       clip_gradients_ = from.clip_gradients_;
11567     }
11568     _has_bits_[0] |= cached_has_bits;
11569   }
11570   cached_has_bits = from._has_bits_[1];
11571   if (cached_has_bits & 7u) {
11572     if (cached_has_bits & 0x00000001u) {
11573       iter_size_ = from.iter_size_;
11574     }
11575     if (cached_has_bits & 0x00000002u) {
11576       snapshot_format_ = from.snapshot_format_;
11577     }
11578     if (cached_has_bits & 0x00000004u) {
11579       rms_decay_ = from.rms_decay_;
11580     }
11581     _has_bits_[1] |= cached_has_bits;
11582   }
11583 }
11584 
CopyFrom(const::google::protobuf::Message & from)11585 void SolverParameter::CopyFrom(const ::google::protobuf::Message& from) {
11586 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SolverParameter)
11587   if (&from == this) return;
11588   Clear();
11589   MergeFrom(from);
11590 }
11591 
CopyFrom(const SolverParameter & from)11592 void SolverParameter::CopyFrom(const SolverParameter& from) {
11593 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SolverParameter)
11594   if (&from == this) return;
11595   Clear();
11596   MergeFrom(from);
11597 }
11598 
IsInitialized() const11599 bool SolverParameter::IsInitialized() const {
11600   if (!::google::protobuf::internal::AllAreInitialized(this->test_net_param())) return false;
11601   if (has_train_net_param()) {
11602     if (!this->train_net_param_->IsInitialized()) return false;
11603   }
11604   if (has_net_param()) {
11605     if (!this->net_param_->IsInitialized()) return false;
11606   }
11607   return true;
11608 }
11609 
Swap(SolverParameter * other)11610 void SolverParameter::Swap(SolverParameter* other) {
11611   if (other == this) return;
11612   InternalSwap(other);
11613 }
InternalSwap(SolverParameter * other)11614 void SolverParameter::InternalSwap(SolverParameter* other) {
11615   using std::swap;
11616   test_net_.InternalSwap(&other->test_net_);
11617   test_iter_.InternalSwap(&other->test_iter_);
11618   test_net_param_.InternalSwap(&other->test_net_param_);
11619   test_state_.InternalSwap(&other->test_state_);
11620   stepvalue_.InternalSwap(&other->stepvalue_);
11621   train_net_.Swap(&other->train_net_);
11622   lr_policy_.Swap(&other->lr_policy_);
11623   snapshot_prefix_.Swap(&other->snapshot_prefix_);
11624   net_.Swap(&other->net_);
11625   regularization_type_.Swap(&other->regularization_type_);
11626   type_.Swap(&other->type_);
11627   swap(train_net_param_, other->train_net_param_);
11628   swap(net_param_, other->net_param_);
11629   swap(train_state_, other->train_state_);
11630   swap(test_interval_, other->test_interval_);
11631   swap(base_lr_, other->base_lr_);
11632   swap(display_, other->display_);
11633   swap(max_iter_, other->max_iter_);
11634   swap(gamma_, other->gamma_);
11635   swap(power_, other->power_);
11636   swap(momentum_, other->momentum_);
11637   swap(weight_decay_, other->weight_decay_);
11638   swap(stepsize_, other->stepsize_);
11639   swap(snapshot_, other->snapshot_);
11640   swap(device_id_, other->device_id_);
11641   swap(test_compute_loss_, other->test_compute_loss_);
11642   swap(snapshot_diff_, other->snapshot_diff_);
11643   swap(debug_info_, other->debug_info_);
11644   swap(solver_type_, other->solver_type_);
11645   swap(momentum2_, other->momentum2_);
11646   swap(random_seed_, other->random_seed_);
11647   swap(solver_mode_, other->solver_mode_);
11648   swap(test_initialization_, other->test_initialization_);
11649   swap(snapshot_after_train_, other->snapshot_after_train_);
11650   swap(delta_, other->delta_);
11651   swap(average_loss_, other->average_loss_);
11652   swap(clip_gradients_, other->clip_gradients_);
11653   swap(iter_size_, other->iter_size_);
11654   swap(snapshot_format_, other->snapshot_format_);
11655   swap(rms_decay_, other->rms_decay_);
11656   swap(_has_bits_[0], other->_has_bits_[0]);
11657   swap(_has_bits_[1], other->_has_bits_[1]);
11658   _internal_metadata_.Swap(&other->_internal_metadata_);
11659   swap(_cached_size_, other->_cached_size_);
11660 }
11661 
GetMetadata() const11662 ::google::protobuf::Metadata SolverParameter::GetMetadata() const {
11663   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
11664   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
11665 }
11666 
11667 
11668 // ===================================================================
11669 
InitAsDefaultInstance()11670 void SolverState::InitAsDefaultInstance() {
11671 }
11672 #if !defined(_MSC_VER) || _MSC_VER >= 1900
11673 const int SolverState::kIterFieldNumber;
11674 const int SolverState::kLearnedNetFieldNumber;
11675 const int SolverState::kHistoryFieldNumber;
11676 const int SolverState::kCurrentStepFieldNumber;
11677 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11678 
SolverState()11679 SolverState::SolverState()
11680   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11681   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11682     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverState();
11683   }
11684   SharedCtor();
11685   // @@protoc_insertion_point(constructor:opencv_caffe.SolverState)
11686 }
SolverState(const SolverState & from)11687 SolverState::SolverState(const SolverState& from)
11688   : ::google::protobuf::Message(),
11689       _internal_metadata_(NULL),
11690       _has_bits_(from._has_bits_),
11691       _cached_size_(0),
11692       history_(from.history_) {
11693   _internal_metadata_.MergeFrom(from._internal_metadata_);
11694   learned_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11695   if (from.has_learned_net()) {
11696     learned_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.learned_net_);
11697   }
11698   ::memcpy(&iter_, &from.iter_,
11699     static_cast<size_t>(reinterpret_cast<char*>(&current_step_) -
11700     reinterpret_cast<char*>(&iter_)) + sizeof(current_step_));
11701   // @@protoc_insertion_point(copy_constructor:opencv_caffe.SolverState)
11702 }
11703 
SharedCtor()11704 void SolverState::SharedCtor() {
11705   _cached_size_ = 0;
11706   learned_net_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11707   ::memset(&iter_, 0, static_cast<size_t>(
11708       reinterpret_cast<char*>(&current_step_) -
11709       reinterpret_cast<char*>(&iter_)) + sizeof(current_step_));
11710 }
11711 
~SolverState()11712 SolverState::~SolverState() {
11713   // @@protoc_insertion_point(destructor:opencv_caffe.SolverState)
11714   SharedDtor();
11715 }
11716 
SharedDtor()11717 void SolverState::SharedDtor() {
11718   learned_net_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11719 }
11720 
SetCachedSize(int size) const11721 void SolverState::SetCachedSize(int size) const {
11722   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11723   _cached_size_ = size;
11724   GOOGLE_SAFE_CONCURRENT_WRITES_END();
11725 }
descriptor()11726 const ::google::protobuf::Descriptor* SolverState::descriptor() {
11727   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
11728   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11729 }
11730 
default_instance()11731 const SolverState& SolverState::default_instance() {
11732   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSolverState();
11733   return *internal_default_instance();
11734 }
11735 
New(::google::protobuf::Arena * arena) const11736 SolverState* SolverState::New(::google::protobuf::Arena* arena) const {
11737   SolverState* n = new SolverState;
11738   if (arena != NULL) {
11739     arena->Own(n);
11740   }
11741   return n;
11742 }
11743 
Clear()11744 void SolverState::Clear() {
11745 // @@protoc_insertion_point(message_clear_start:opencv_caffe.SolverState)
11746   ::google::protobuf::uint32 cached_has_bits = 0;
11747   // Prevent compiler warnings about cached_has_bits being unused
11748   (void) cached_has_bits;
11749 
11750   history_.Clear();
11751   cached_has_bits = _has_bits_[0];
11752   if (cached_has_bits & 0x00000001u) {
11753     GOOGLE_DCHECK(!learned_net_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11754     (*learned_net_.UnsafeRawStringPointer())->clear();
11755   }
11756   if (cached_has_bits & 6u) {
11757     ::memset(&iter_, 0, static_cast<size_t>(
11758         reinterpret_cast<char*>(&current_step_) -
11759         reinterpret_cast<char*>(&iter_)) + sizeof(current_step_));
11760   }
11761   _has_bits_.Clear();
11762   _internal_metadata_.Clear();
11763 }
11764 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)11765 bool SolverState::MergePartialFromCodedStream(
11766     ::google::protobuf::io::CodedInputStream* input) {
11767 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11768   ::google::protobuf::uint32 tag;
11769   // @@protoc_insertion_point(parse_start:opencv_caffe.SolverState)
11770   for (;;) {
11771     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11772     tag = p.first;
11773     if (!p.second) goto handle_unusual;
11774     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11775       // optional int32 iter = 1;
11776       case 1: {
11777         if (static_cast< ::google::protobuf::uint8>(tag) ==
11778             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
11779           set_has_iter();
11780           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11781                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
11782                  input, &iter_)));
11783         } else {
11784           goto handle_unusual;
11785         }
11786         break;
11787       }
11788 
11789       // optional string learned_net = 2;
11790       case 2: {
11791         if (static_cast< ::google::protobuf::uint8>(tag) ==
11792             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
11793           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11794                 input, this->mutable_learned_net()));
11795           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11796             this->learned_net().data(), static_cast<int>(this->learned_net().length()),
11797             ::google::protobuf::internal::WireFormat::PARSE,
11798             "opencv_caffe.SolverState.learned_net");
11799         } else {
11800           goto handle_unusual;
11801         }
11802         break;
11803       }
11804 
11805       // repeated .opencv_caffe.BlobProto history = 3;
11806       case 3: {
11807         if (static_cast< ::google::protobuf::uint8>(tag) ==
11808             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
11809           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_history()));
11810         } else {
11811           goto handle_unusual;
11812         }
11813         break;
11814       }
11815 
11816       // optional int32 current_step = 4 [default = 0];
11817       case 4: {
11818         if (static_cast< ::google::protobuf::uint8>(tag) ==
11819             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
11820           set_has_current_step();
11821           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11822                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
11823                  input, &current_step_)));
11824         } else {
11825           goto handle_unusual;
11826         }
11827         break;
11828       }
11829 
11830       default: {
11831       handle_unusual:
11832         if (tag == 0) {
11833           goto success;
11834         }
11835         DO_(::google::protobuf::internal::WireFormat::SkipField(
11836               input, tag, _internal_metadata_.mutable_unknown_fields()));
11837         break;
11838       }
11839     }
11840   }
11841 success:
11842   // @@protoc_insertion_point(parse_success:opencv_caffe.SolverState)
11843   return true;
11844 failure:
11845   // @@protoc_insertion_point(parse_failure:opencv_caffe.SolverState)
11846   return false;
11847 #undef DO_
11848 }
11849 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const11850 void SolverState::SerializeWithCachedSizes(
11851     ::google::protobuf::io::CodedOutputStream* output) const {
11852   // @@protoc_insertion_point(serialize_start:opencv_caffe.SolverState)
11853   ::google::protobuf::uint32 cached_has_bits = 0;
11854   (void) cached_has_bits;
11855 
11856   cached_has_bits = _has_bits_[0];
11857   // optional int32 iter = 1;
11858   if (cached_has_bits & 0x00000002u) {
11859     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->iter(), output);
11860   }
11861 
11862   // optional string learned_net = 2;
11863   if (cached_has_bits & 0x00000001u) {
11864     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11865       this->learned_net().data(), static_cast<int>(this->learned_net().length()),
11866       ::google::protobuf::internal::WireFormat::SERIALIZE,
11867       "opencv_caffe.SolverState.learned_net");
11868     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11869       2, this->learned_net(), output);
11870   }
11871 
11872   // repeated .opencv_caffe.BlobProto history = 3;
11873   for (unsigned int i = 0,
11874       n = static_cast<unsigned int>(this->history_size()); i < n; i++) {
11875     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11876       3, this->history(static_cast<int>(i)), output);
11877   }
11878 
11879   // optional int32 current_step = 4 [default = 0];
11880   if (cached_has_bits & 0x00000004u) {
11881     ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->current_step(), output);
11882   }
11883 
11884   if (_internal_metadata_.have_unknown_fields()) {
11885     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11886         _internal_metadata_.unknown_fields(), output);
11887   }
11888   // @@protoc_insertion_point(serialize_end:opencv_caffe.SolverState)
11889 }
11890 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const11891 ::google::protobuf::uint8* SolverState::InternalSerializeWithCachedSizesToArray(
11892     bool deterministic, ::google::protobuf::uint8* target) const {
11893   (void)deterministic; // Unused
11894   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SolverState)
11895   ::google::protobuf::uint32 cached_has_bits = 0;
11896   (void) cached_has_bits;
11897 
11898   cached_has_bits = _has_bits_[0];
11899   // optional int32 iter = 1;
11900   if (cached_has_bits & 0x00000002u) {
11901     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->iter(), target);
11902   }
11903 
11904   // optional string learned_net = 2;
11905   if (cached_has_bits & 0x00000001u) {
11906     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11907       this->learned_net().data(), static_cast<int>(this->learned_net().length()),
11908       ::google::protobuf::internal::WireFormat::SERIALIZE,
11909       "opencv_caffe.SolverState.learned_net");
11910     target =
11911       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11912         2, this->learned_net(), target);
11913   }
11914 
11915   // repeated .opencv_caffe.BlobProto history = 3;
11916   for (unsigned int i = 0,
11917       n = static_cast<unsigned int>(this->history_size()); i < n; i++) {
11918     target = ::google::protobuf::internal::WireFormatLite::
11919       InternalWriteMessageToArray(
11920         3, this->history(static_cast<int>(i)), deterministic, target);
11921   }
11922 
11923   // optional int32 current_step = 4 [default = 0];
11924   if (cached_has_bits & 0x00000004u) {
11925     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->current_step(), target);
11926   }
11927 
11928   if (_internal_metadata_.have_unknown_fields()) {
11929     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11930         _internal_metadata_.unknown_fields(), target);
11931   }
11932   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SolverState)
11933   return target;
11934 }
11935 
ByteSizeLong() const11936 size_t SolverState::ByteSizeLong() const {
11937 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SolverState)
11938   size_t total_size = 0;
11939 
11940   if (_internal_metadata_.have_unknown_fields()) {
11941     total_size +=
11942       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11943         _internal_metadata_.unknown_fields());
11944   }
11945   // repeated .opencv_caffe.BlobProto history = 3;
11946   {
11947     unsigned int count = static_cast<unsigned int>(this->history_size());
11948     total_size += 1UL * count;
11949     for (unsigned int i = 0; i < count; i++) {
11950       total_size +=
11951         ::google::protobuf::internal::WireFormatLite::MessageSize(
11952           this->history(static_cast<int>(i)));
11953     }
11954   }
11955 
11956   if (_has_bits_[0 / 32] & 7u) {
11957     // optional string learned_net = 2;
11958     if (has_learned_net()) {
11959       total_size += 1 +
11960         ::google::protobuf::internal::WireFormatLite::StringSize(
11961           this->learned_net());
11962     }
11963 
11964     // optional int32 iter = 1;
11965     if (has_iter()) {
11966       total_size += 1 +
11967         ::google::protobuf::internal::WireFormatLite::Int32Size(
11968           this->iter());
11969     }
11970 
11971     // optional int32 current_step = 4 [default = 0];
11972     if (has_current_step()) {
11973       total_size += 1 +
11974         ::google::protobuf::internal::WireFormatLite::Int32Size(
11975           this->current_step());
11976     }
11977 
11978   }
11979   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11980   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11981   _cached_size_ = cached_size;
11982   GOOGLE_SAFE_CONCURRENT_WRITES_END();
11983   return total_size;
11984 }
11985 
MergeFrom(const::google::protobuf::Message & from)11986 void SolverState::MergeFrom(const ::google::protobuf::Message& from) {
11987 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SolverState)
11988   GOOGLE_DCHECK_NE(&from, this);
11989   const SolverState* source =
11990       ::google::protobuf::internal::DynamicCastToGenerated<const SolverState>(
11991           &from);
11992   if (source == NULL) {
11993   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SolverState)
11994     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11995   } else {
11996   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SolverState)
11997     MergeFrom(*source);
11998   }
11999 }
12000 
MergeFrom(const SolverState & from)12001 void SolverState::MergeFrom(const SolverState& from) {
12002 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SolverState)
12003   GOOGLE_DCHECK_NE(&from, this);
12004   _internal_metadata_.MergeFrom(from._internal_metadata_);
12005   ::google::protobuf::uint32 cached_has_bits = 0;
12006   (void) cached_has_bits;
12007 
12008   history_.MergeFrom(from.history_);
12009   cached_has_bits = from._has_bits_[0];
12010   if (cached_has_bits & 7u) {
12011     if (cached_has_bits & 0x00000001u) {
12012       set_has_learned_net();
12013       learned_net_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.learned_net_);
12014     }
12015     if (cached_has_bits & 0x00000002u) {
12016       iter_ = from.iter_;
12017     }
12018     if (cached_has_bits & 0x00000004u) {
12019       current_step_ = from.current_step_;
12020     }
12021     _has_bits_[0] |= cached_has_bits;
12022   }
12023 }
12024 
CopyFrom(const::google::protobuf::Message & from)12025 void SolverState::CopyFrom(const ::google::protobuf::Message& from) {
12026 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SolverState)
12027   if (&from == this) return;
12028   Clear();
12029   MergeFrom(from);
12030 }
12031 
CopyFrom(const SolverState & from)12032 void SolverState::CopyFrom(const SolverState& from) {
12033 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SolverState)
12034   if (&from == this) return;
12035   Clear();
12036   MergeFrom(from);
12037 }
12038 
IsInitialized() const12039 bool SolverState::IsInitialized() const {
12040   return true;
12041 }
12042 
Swap(SolverState * other)12043 void SolverState::Swap(SolverState* other) {
12044   if (other == this) return;
12045   InternalSwap(other);
12046 }
InternalSwap(SolverState * other)12047 void SolverState::InternalSwap(SolverState* other) {
12048   using std::swap;
12049   history_.InternalSwap(&other->history_);
12050   learned_net_.Swap(&other->learned_net_);
12051   swap(iter_, other->iter_);
12052   swap(current_step_, other->current_step_);
12053   swap(_has_bits_[0], other->_has_bits_[0]);
12054   _internal_metadata_.Swap(&other->_internal_metadata_);
12055   swap(_cached_size_, other->_cached_size_);
12056 }
12057 
GetMetadata() const12058 ::google::protobuf::Metadata SolverState::GetMetadata() const {
12059   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
12060   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
12061 }
12062 
12063 
12064 // ===================================================================
12065 
InitAsDefaultInstance()12066 void NetState::InitAsDefaultInstance() {
12067 }
12068 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12069 const int NetState::kPhaseFieldNumber;
12070 const int NetState::kLevelFieldNumber;
12071 const int NetState::kStageFieldNumber;
12072 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12073 
NetState()12074 NetState::NetState()
12075   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12076   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12077     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetState();
12078   }
12079   SharedCtor();
12080   // @@protoc_insertion_point(constructor:opencv_caffe.NetState)
12081 }
NetState(const NetState & from)12082 NetState::NetState(const NetState& from)
12083   : ::google::protobuf::Message(),
12084       _internal_metadata_(NULL),
12085       _has_bits_(from._has_bits_),
12086       _cached_size_(0),
12087       stage_(from.stage_) {
12088   _internal_metadata_.MergeFrom(from._internal_metadata_);
12089   ::memcpy(&level_, &from.level_,
12090     static_cast<size_t>(reinterpret_cast<char*>(&phase_) -
12091     reinterpret_cast<char*>(&level_)) + sizeof(phase_));
12092   // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetState)
12093 }
12094 
SharedCtor()12095 void NetState::SharedCtor() {
12096   _cached_size_ = 0;
12097   level_ = 0;
12098   phase_ = 1;
12099 }
12100 
~NetState()12101 NetState::~NetState() {
12102   // @@protoc_insertion_point(destructor:opencv_caffe.NetState)
12103   SharedDtor();
12104 }
12105 
SharedDtor()12106 void NetState::SharedDtor() {
12107 }
12108 
SetCachedSize(int size) const12109 void NetState::SetCachedSize(int size) const {
12110   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12111   _cached_size_ = size;
12112   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12113 }
descriptor()12114 const ::google::protobuf::Descriptor* NetState::descriptor() {
12115   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
12116   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12117 }
12118 
default_instance()12119 const NetState& NetState::default_instance() {
12120   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetState();
12121   return *internal_default_instance();
12122 }
12123 
New(::google::protobuf::Arena * arena) const12124 NetState* NetState::New(::google::protobuf::Arena* arena) const {
12125   NetState* n = new NetState;
12126   if (arena != NULL) {
12127     arena->Own(n);
12128   }
12129   return n;
12130 }
12131 
Clear()12132 void NetState::Clear() {
12133 // @@protoc_insertion_point(message_clear_start:opencv_caffe.NetState)
12134   ::google::protobuf::uint32 cached_has_bits = 0;
12135   // Prevent compiler warnings about cached_has_bits being unused
12136   (void) cached_has_bits;
12137 
12138   stage_.Clear();
12139   cached_has_bits = _has_bits_[0];
12140   if (cached_has_bits & 3u) {
12141     level_ = 0;
12142     phase_ = 1;
12143   }
12144   _has_bits_.Clear();
12145   _internal_metadata_.Clear();
12146 }
12147 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)12148 bool NetState::MergePartialFromCodedStream(
12149     ::google::protobuf::io::CodedInputStream* input) {
12150 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12151   ::google::protobuf::uint32 tag;
12152   // @@protoc_insertion_point(parse_start:opencv_caffe.NetState)
12153   for (;;) {
12154     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12155     tag = p.first;
12156     if (!p.second) goto handle_unusual;
12157     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12158       // optional .opencv_caffe.Phase phase = 1 [default = TEST];
12159       case 1: {
12160         if (static_cast< ::google::protobuf::uint8>(tag) ==
12161             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
12162           int value;
12163           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12164                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12165                  input, &value)));
12166           if (::opencv_caffe::Phase_IsValid(value)) {
12167             set_phase(static_cast< ::opencv_caffe::Phase >(value));
12168           } else {
12169             mutable_unknown_fields()->AddVarint(
12170                 1, static_cast< ::google::protobuf::uint64>(value));
12171           }
12172         } else {
12173           goto handle_unusual;
12174         }
12175         break;
12176       }
12177 
12178       // optional int32 level = 2 [default = 0];
12179       case 2: {
12180         if (static_cast< ::google::protobuf::uint8>(tag) ==
12181             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
12182           set_has_level();
12183           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12184                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
12185                  input, &level_)));
12186         } else {
12187           goto handle_unusual;
12188         }
12189         break;
12190       }
12191 
12192       // repeated string stage = 3;
12193       case 3: {
12194         if (static_cast< ::google::protobuf::uint8>(tag) ==
12195             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
12196           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12197                 input, this->add_stage()));
12198           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12199             this->stage(this->stage_size() - 1).data(),
12200             static_cast<int>(this->stage(this->stage_size() - 1).length()),
12201             ::google::protobuf::internal::WireFormat::PARSE,
12202             "opencv_caffe.NetState.stage");
12203         } else {
12204           goto handle_unusual;
12205         }
12206         break;
12207       }
12208 
12209       default: {
12210       handle_unusual:
12211         if (tag == 0) {
12212           goto success;
12213         }
12214         DO_(::google::protobuf::internal::WireFormat::SkipField(
12215               input, tag, _internal_metadata_.mutable_unknown_fields()));
12216         break;
12217       }
12218     }
12219   }
12220 success:
12221   // @@protoc_insertion_point(parse_success:opencv_caffe.NetState)
12222   return true;
12223 failure:
12224   // @@protoc_insertion_point(parse_failure:opencv_caffe.NetState)
12225   return false;
12226 #undef DO_
12227 }
12228 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const12229 void NetState::SerializeWithCachedSizes(
12230     ::google::protobuf::io::CodedOutputStream* output) const {
12231   // @@protoc_insertion_point(serialize_start:opencv_caffe.NetState)
12232   ::google::protobuf::uint32 cached_has_bits = 0;
12233   (void) cached_has_bits;
12234 
12235   cached_has_bits = _has_bits_[0];
12236   // optional .opencv_caffe.Phase phase = 1 [default = TEST];
12237   if (cached_has_bits & 0x00000002u) {
12238     ::google::protobuf::internal::WireFormatLite::WriteEnum(
12239       1, this->phase(), output);
12240   }
12241 
12242   // optional int32 level = 2 [default = 0];
12243   if (cached_has_bits & 0x00000001u) {
12244     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->level(), output);
12245   }
12246 
12247   // repeated string stage = 3;
12248   for (int i = 0, n = this->stage_size(); i < n; i++) {
12249     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12250       this->stage(i).data(), static_cast<int>(this->stage(i).length()),
12251       ::google::protobuf::internal::WireFormat::SERIALIZE,
12252       "opencv_caffe.NetState.stage");
12253     ::google::protobuf::internal::WireFormatLite::WriteString(
12254       3, this->stage(i), output);
12255   }
12256 
12257   if (_internal_metadata_.have_unknown_fields()) {
12258     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12259         _internal_metadata_.unknown_fields(), output);
12260   }
12261   // @@protoc_insertion_point(serialize_end:opencv_caffe.NetState)
12262 }
12263 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const12264 ::google::protobuf::uint8* NetState::InternalSerializeWithCachedSizesToArray(
12265     bool deterministic, ::google::protobuf::uint8* target) const {
12266   (void)deterministic; // Unused
12267   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetState)
12268   ::google::protobuf::uint32 cached_has_bits = 0;
12269   (void) cached_has_bits;
12270 
12271   cached_has_bits = _has_bits_[0];
12272   // optional .opencv_caffe.Phase phase = 1 [default = TEST];
12273   if (cached_has_bits & 0x00000002u) {
12274     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12275       1, this->phase(), target);
12276   }
12277 
12278   // optional int32 level = 2 [default = 0];
12279   if (cached_has_bits & 0x00000001u) {
12280     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->level(), target);
12281   }
12282 
12283   // repeated string stage = 3;
12284   for (int i = 0, n = this->stage_size(); i < n; i++) {
12285     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12286       this->stage(i).data(), static_cast<int>(this->stage(i).length()),
12287       ::google::protobuf::internal::WireFormat::SERIALIZE,
12288       "opencv_caffe.NetState.stage");
12289     target = ::google::protobuf::internal::WireFormatLite::
12290       WriteStringToArray(3, this->stage(i), target);
12291   }
12292 
12293   if (_internal_metadata_.have_unknown_fields()) {
12294     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12295         _internal_metadata_.unknown_fields(), target);
12296   }
12297   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetState)
12298   return target;
12299 }
12300 
ByteSizeLong() const12301 size_t NetState::ByteSizeLong() const {
12302 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetState)
12303   size_t total_size = 0;
12304 
12305   if (_internal_metadata_.have_unknown_fields()) {
12306     total_size +=
12307       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12308         _internal_metadata_.unknown_fields());
12309   }
12310   // repeated string stage = 3;
12311   total_size += 1 *
12312       ::google::protobuf::internal::FromIntSize(this->stage_size());
12313   for (int i = 0, n = this->stage_size(); i < n; i++) {
12314     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
12315       this->stage(i));
12316   }
12317 
12318   if (_has_bits_[0 / 32] & 3u) {
12319     // optional int32 level = 2 [default = 0];
12320     if (has_level()) {
12321       total_size += 1 +
12322         ::google::protobuf::internal::WireFormatLite::Int32Size(
12323           this->level());
12324     }
12325 
12326     // optional .opencv_caffe.Phase phase = 1 [default = TEST];
12327     if (has_phase()) {
12328       total_size += 1 +
12329         ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase());
12330     }
12331 
12332   }
12333   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12334   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12335   _cached_size_ = cached_size;
12336   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12337   return total_size;
12338 }
12339 
MergeFrom(const::google::protobuf::Message & from)12340 void NetState::MergeFrom(const ::google::protobuf::Message& from) {
12341 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetState)
12342   GOOGLE_DCHECK_NE(&from, this);
12343   const NetState* source =
12344       ::google::protobuf::internal::DynamicCastToGenerated<const NetState>(
12345           &from);
12346   if (source == NULL) {
12347   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetState)
12348     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12349   } else {
12350   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetState)
12351     MergeFrom(*source);
12352   }
12353 }
12354 
MergeFrom(const NetState & from)12355 void NetState::MergeFrom(const NetState& from) {
12356 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetState)
12357   GOOGLE_DCHECK_NE(&from, this);
12358   _internal_metadata_.MergeFrom(from._internal_metadata_);
12359   ::google::protobuf::uint32 cached_has_bits = 0;
12360   (void) cached_has_bits;
12361 
12362   stage_.MergeFrom(from.stage_);
12363   cached_has_bits = from._has_bits_[0];
12364   if (cached_has_bits & 3u) {
12365     if (cached_has_bits & 0x00000001u) {
12366       level_ = from.level_;
12367     }
12368     if (cached_has_bits & 0x00000002u) {
12369       phase_ = from.phase_;
12370     }
12371     _has_bits_[0] |= cached_has_bits;
12372   }
12373 }
12374 
CopyFrom(const::google::protobuf::Message & from)12375 void NetState::CopyFrom(const ::google::protobuf::Message& from) {
12376 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetState)
12377   if (&from == this) return;
12378   Clear();
12379   MergeFrom(from);
12380 }
12381 
CopyFrom(const NetState & from)12382 void NetState::CopyFrom(const NetState& from) {
12383 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetState)
12384   if (&from == this) return;
12385   Clear();
12386   MergeFrom(from);
12387 }
12388 
IsInitialized() const12389 bool NetState::IsInitialized() const {
12390   return true;
12391 }
12392 
Swap(NetState * other)12393 void NetState::Swap(NetState* other) {
12394   if (other == this) return;
12395   InternalSwap(other);
12396 }
InternalSwap(NetState * other)12397 void NetState::InternalSwap(NetState* other) {
12398   using std::swap;
12399   stage_.InternalSwap(&other->stage_);
12400   swap(level_, other->level_);
12401   swap(phase_, other->phase_);
12402   swap(_has_bits_[0], other->_has_bits_[0]);
12403   _internal_metadata_.Swap(&other->_internal_metadata_);
12404   swap(_cached_size_, other->_cached_size_);
12405 }
12406 
GetMetadata() const12407 ::google::protobuf::Metadata NetState::GetMetadata() const {
12408   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
12409   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
12410 }
12411 
12412 
12413 // ===================================================================
12414 
InitAsDefaultInstance()12415 void NetStateRule::InitAsDefaultInstance() {
12416 }
12417 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12418 const int NetStateRule::kPhaseFieldNumber;
12419 const int NetStateRule::kMinLevelFieldNumber;
12420 const int NetStateRule::kMaxLevelFieldNumber;
12421 const int NetStateRule::kStageFieldNumber;
12422 const int NetStateRule::kNotStageFieldNumber;
12423 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12424 
NetStateRule()12425 NetStateRule::NetStateRule()
12426   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12427   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12428     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRule();
12429   }
12430   SharedCtor();
12431   // @@protoc_insertion_point(constructor:opencv_caffe.NetStateRule)
12432 }
NetStateRule(const NetStateRule & from)12433 NetStateRule::NetStateRule(const NetStateRule& from)
12434   : ::google::protobuf::Message(),
12435       _internal_metadata_(NULL),
12436       _has_bits_(from._has_bits_),
12437       _cached_size_(0),
12438       stage_(from.stage_),
12439       not_stage_(from.not_stage_) {
12440   _internal_metadata_.MergeFrom(from._internal_metadata_);
12441   ::memcpy(&phase_, &from.phase_,
12442     static_cast<size_t>(reinterpret_cast<char*>(&max_level_) -
12443     reinterpret_cast<char*>(&phase_)) + sizeof(max_level_));
12444   // @@protoc_insertion_point(copy_constructor:opencv_caffe.NetStateRule)
12445 }
12446 
SharedCtor()12447 void NetStateRule::SharedCtor() {
12448   _cached_size_ = 0;
12449   ::memset(&phase_, 0, static_cast<size_t>(
12450       reinterpret_cast<char*>(&max_level_) -
12451       reinterpret_cast<char*>(&phase_)) + sizeof(max_level_));
12452 }
12453 
~NetStateRule()12454 NetStateRule::~NetStateRule() {
12455   // @@protoc_insertion_point(destructor:opencv_caffe.NetStateRule)
12456   SharedDtor();
12457 }
12458 
SharedDtor()12459 void NetStateRule::SharedDtor() {
12460 }
12461 
SetCachedSize(int size) const12462 void NetStateRule::SetCachedSize(int size) const {
12463   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12464   _cached_size_ = size;
12465   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12466 }
descriptor()12467 const ::google::protobuf::Descriptor* NetStateRule::descriptor() {
12468   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
12469   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12470 }
12471 
default_instance()12472 const NetStateRule& NetStateRule::default_instance() {
12473   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNetStateRule();
12474   return *internal_default_instance();
12475 }
12476 
New(::google::protobuf::Arena * arena) const12477 NetStateRule* NetStateRule::New(::google::protobuf::Arena* arena) const {
12478   NetStateRule* n = new NetStateRule;
12479   if (arena != NULL) {
12480     arena->Own(n);
12481   }
12482   return n;
12483 }
12484 
Clear()12485 void NetStateRule::Clear() {
12486 // @@protoc_insertion_point(message_clear_start:opencv_caffe.NetStateRule)
12487   ::google::protobuf::uint32 cached_has_bits = 0;
12488   // Prevent compiler warnings about cached_has_bits being unused
12489   (void) cached_has_bits;
12490 
12491   stage_.Clear();
12492   not_stage_.Clear();
12493   cached_has_bits = _has_bits_[0];
12494   if (cached_has_bits & 7u) {
12495     ::memset(&phase_, 0, static_cast<size_t>(
12496         reinterpret_cast<char*>(&max_level_) -
12497         reinterpret_cast<char*>(&phase_)) + sizeof(max_level_));
12498   }
12499   _has_bits_.Clear();
12500   _internal_metadata_.Clear();
12501 }
12502 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)12503 bool NetStateRule::MergePartialFromCodedStream(
12504     ::google::protobuf::io::CodedInputStream* input) {
12505 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12506   ::google::protobuf::uint32 tag;
12507   // @@protoc_insertion_point(parse_start:opencv_caffe.NetStateRule)
12508   for (;;) {
12509     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12510     tag = p.first;
12511     if (!p.second) goto handle_unusual;
12512     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12513       // optional .opencv_caffe.Phase phase = 1;
12514       case 1: {
12515         if (static_cast< ::google::protobuf::uint8>(tag) ==
12516             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
12517           int value;
12518           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12519                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12520                  input, &value)));
12521           if (::opencv_caffe::Phase_IsValid(value)) {
12522             set_phase(static_cast< ::opencv_caffe::Phase >(value));
12523           } else {
12524             mutable_unknown_fields()->AddVarint(
12525                 1, static_cast< ::google::protobuf::uint64>(value));
12526           }
12527         } else {
12528           goto handle_unusual;
12529         }
12530         break;
12531       }
12532 
12533       // optional int32 min_level = 2;
12534       case 2: {
12535         if (static_cast< ::google::protobuf::uint8>(tag) ==
12536             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
12537           set_has_min_level();
12538           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12539                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
12540                  input, &min_level_)));
12541         } else {
12542           goto handle_unusual;
12543         }
12544         break;
12545       }
12546 
12547       // optional int32 max_level = 3;
12548       case 3: {
12549         if (static_cast< ::google::protobuf::uint8>(tag) ==
12550             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
12551           set_has_max_level();
12552           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12553                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
12554                  input, &max_level_)));
12555         } else {
12556           goto handle_unusual;
12557         }
12558         break;
12559       }
12560 
12561       // repeated string stage = 4;
12562       case 4: {
12563         if (static_cast< ::google::protobuf::uint8>(tag) ==
12564             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
12565           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12566                 input, this->add_stage()));
12567           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12568             this->stage(this->stage_size() - 1).data(),
12569             static_cast<int>(this->stage(this->stage_size() - 1).length()),
12570             ::google::protobuf::internal::WireFormat::PARSE,
12571             "opencv_caffe.NetStateRule.stage");
12572         } else {
12573           goto handle_unusual;
12574         }
12575         break;
12576       }
12577 
12578       // repeated string not_stage = 5;
12579       case 5: {
12580         if (static_cast< ::google::protobuf::uint8>(tag) ==
12581             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
12582           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12583                 input, this->add_not_stage()));
12584           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12585             this->not_stage(this->not_stage_size() - 1).data(),
12586             static_cast<int>(this->not_stage(this->not_stage_size() - 1).length()),
12587             ::google::protobuf::internal::WireFormat::PARSE,
12588             "opencv_caffe.NetStateRule.not_stage");
12589         } else {
12590           goto handle_unusual;
12591         }
12592         break;
12593       }
12594 
12595       default: {
12596       handle_unusual:
12597         if (tag == 0) {
12598           goto success;
12599         }
12600         DO_(::google::protobuf::internal::WireFormat::SkipField(
12601               input, tag, _internal_metadata_.mutable_unknown_fields()));
12602         break;
12603       }
12604     }
12605   }
12606 success:
12607   // @@protoc_insertion_point(parse_success:opencv_caffe.NetStateRule)
12608   return true;
12609 failure:
12610   // @@protoc_insertion_point(parse_failure:opencv_caffe.NetStateRule)
12611   return false;
12612 #undef DO_
12613 }
12614 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const12615 void NetStateRule::SerializeWithCachedSizes(
12616     ::google::protobuf::io::CodedOutputStream* output) const {
12617   // @@protoc_insertion_point(serialize_start:opencv_caffe.NetStateRule)
12618   ::google::protobuf::uint32 cached_has_bits = 0;
12619   (void) cached_has_bits;
12620 
12621   cached_has_bits = _has_bits_[0];
12622   // optional .opencv_caffe.Phase phase = 1;
12623   if (cached_has_bits & 0x00000001u) {
12624     ::google::protobuf::internal::WireFormatLite::WriteEnum(
12625       1, this->phase(), output);
12626   }
12627 
12628   // optional int32 min_level = 2;
12629   if (cached_has_bits & 0x00000002u) {
12630     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_level(), output);
12631   }
12632 
12633   // optional int32 max_level = 3;
12634   if (cached_has_bits & 0x00000004u) {
12635     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->max_level(), output);
12636   }
12637 
12638   // repeated string stage = 4;
12639   for (int i = 0, n = this->stage_size(); i < n; i++) {
12640     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12641       this->stage(i).data(), static_cast<int>(this->stage(i).length()),
12642       ::google::protobuf::internal::WireFormat::SERIALIZE,
12643       "opencv_caffe.NetStateRule.stage");
12644     ::google::protobuf::internal::WireFormatLite::WriteString(
12645       4, this->stage(i), output);
12646   }
12647 
12648   // repeated string not_stage = 5;
12649   for (int i = 0, n = this->not_stage_size(); i < n; i++) {
12650     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12651       this->not_stage(i).data(), static_cast<int>(this->not_stage(i).length()),
12652       ::google::protobuf::internal::WireFormat::SERIALIZE,
12653       "opencv_caffe.NetStateRule.not_stage");
12654     ::google::protobuf::internal::WireFormatLite::WriteString(
12655       5, this->not_stage(i), output);
12656   }
12657 
12658   if (_internal_metadata_.have_unknown_fields()) {
12659     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12660         _internal_metadata_.unknown_fields(), output);
12661   }
12662   // @@protoc_insertion_point(serialize_end:opencv_caffe.NetStateRule)
12663 }
12664 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const12665 ::google::protobuf::uint8* NetStateRule::InternalSerializeWithCachedSizesToArray(
12666     bool deterministic, ::google::protobuf::uint8* target) const {
12667   (void)deterministic; // Unused
12668   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NetStateRule)
12669   ::google::protobuf::uint32 cached_has_bits = 0;
12670   (void) cached_has_bits;
12671 
12672   cached_has_bits = _has_bits_[0];
12673   // optional .opencv_caffe.Phase phase = 1;
12674   if (cached_has_bits & 0x00000001u) {
12675     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12676       1, this->phase(), target);
12677   }
12678 
12679   // optional int32 min_level = 2;
12680   if (cached_has_bits & 0x00000002u) {
12681     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_level(), target);
12682   }
12683 
12684   // optional int32 max_level = 3;
12685   if (cached_has_bits & 0x00000004u) {
12686     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->max_level(), target);
12687   }
12688 
12689   // repeated string stage = 4;
12690   for (int i = 0, n = this->stage_size(); i < n; i++) {
12691     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12692       this->stage(i).data(), static_cast<int>(this->stage(i).length()),
12693       ::google::protobuf::internal::WireFormat::SERIALIZE,
12694       "opencv_caffe.NetStateRule.stage");
12695     target = ::google::protobuf::internal::WireFormatLite::
12696       WriteStringToArray(4, this->stage(i), target);
12697   }
12698 
12699   // repeated string not_stage = 5;
12700   for (int i = 0, n = this->not_stage_size(); i < n; i++) {
12701     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12702       this->not_stage(i).data(), static_cast<int>(this->not_stage(i).length()),
12703       ::google::protobuf::internal::WireFormat::SERIALIZE,
12704       "opencv_caffe.NetStateRule.not_stage");
12705     target = ::google::protobuf::internal::WireFormatLite::
12706       WriteStringToArray(5, this->not_stage(i), target);
12707   }
12708 
12709   if (_internal_metadata_.have_unknown_fields()) {
12710     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12711         _internal_metadata_.unknown_fields(), target);
12712   }
12713   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NetStateRule)
12714   return target;
12715 }
12716 
ByteSizeLong() const12717 size_t NetStateRule::ByteSizeLong() const {
12718 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NetStateRule)
12719   size_t total_size = 0;
12720 
12721   if (_internal_metadata_.have_unknown_fields()) {
12722     total_size +=
12723       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12724         _internal_metadata_.unknown_fields());
12725   }
12726   // repeated string stage = 4;
12727   total_size += 1 *
12728       ::google::protobuf::internal::FromIntSize(this->stage_size());
12729   for (int i = 0, n = this->stage_size(); i < n; i++) {
12730     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
12731       this->stage(i));
12732   }
12733 
12734   // repeated string not_stage = 5;
12735   total_size += 1 *
12736       ::google::protobuf::internal::FromIntSize(this->not_stage_size());
12737   for (int i = 0, n = this->not_stage_size(); i < n; i++) {
12738     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
12739       this->not_stage(i));
12740   }
12741 
12742   if (_has_bits_[0 / 32] & 7u) {
12743     // optional .opencv_caffe.Phase phase = 1;
12744     if (has_phase()) {
12745       total_size += 1 +
12746         ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase());
12747     }
12748 
12749     // optional int32 min_level = 2;
12750     if (has_min_level()) {
12751       total_size += 1 +
12752         ::google::protobuf::internal::WireFormatLite::Int32Size(
12753           this->min_level());
12754     }
12755 
12756     // optional int32 max_level = 3;
12757     if (has_max_level()) {
12758       total_size += 1 +
12759         ::google::protobuf::internal::WireFormatLite::Int32Size(
12760           this->max_level());
12761     }
12762 
12763   }
12764   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12765   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12766   _cached_size_ = cached_size;
12767   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12768   return total_size;
12769 }
12770 
MergeFrom(const::google::protobuf::Message & from)12771 void NetStateRule::MergeFrom(const ::google::protobuf::Message& from) {
12772 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NetStateRule)
12773   GOOGLE_DCHECK_NE(&from, this);
12774   const NetStateRule* source =
12775       ::google::protobuf::internal::DynamicCastToGenerated<const NetStateRule>(
12776           &from);
12777   if (source == NULL) {
12778   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NetStateRule)
12779     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12780   } else {
12781   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NetStateRule)
12782     MergeFrom(*source);
12783   }
12784 }
12785 
MergeFrom(const NetStateRule & from)12786 void NetStateRule::MergeFrom(const NetStateRule& from) {
12787 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NetStateRule)
12788   GOOGLE_DCHECK_NE(&from, this);
12789   _internal_metadata_.MergeFrom(from._internal_metadata_);
12790   ::google::protobuf::uint32 cached_has_bits = 0;
12791   (void) cached_has_bits;
12792 
12793   stage_.MergeFrom(from.stage_);
12794   not_stage_.MergeFrom(from.not_stage_);
12795   cached_has_bits = from._has_bits_[0];
12796   if (cached_has_bits & 7u) {
12797     if (cached_has_bits & 0x00000001u) {
12798       phase_ = from.phase_;
12799     }
12800     if (cached_has_bits & 0x00000002u) {
12801       min_level_ = from.min_level_;
12802     }
12803     if (cached_has_bits & 0x00000004u) {
12804       max_level_ = from.max_level_;
12805     }
12806     _has_bits_[0] |= cached_has_bits;
12807   }
12808 }
12809 
CopyFrom(const::google::protobuf::Message & from)12810 void NetStateRule::CopyFrom(const ::google::protobuf::Message& from) {
12811 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NetStateRule)
12812   if (&from == this) return;
12813   Clear();
12814   MergeFrom(from);
12815 }
12816 
CopyFrom(const NetStateRule & from)12817 void NetStateRule::CopyFrom(const NetStateRule& from) {
12818 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NetStateRule)
12819   if (&from == this) return;
12820   Clear();
12821   MergeFrom(from);
12822 }
12823 
IsInitialized() const12824 bool NetStateRule::IsInitialized() const {
12825   return true;
12826 }
12827 
Swap(NetStateRule * other)12828 void NetStateRule::Swap(NetStateRule* other) {
12829   if (other == this) return;
12830   InternalSwap(other);
12831 }
InternalSwap(NetStateRule * other)12832 void NetStateRule::InternalSwap(NetStateRule* other) {
12833   using std::swap;
12834   stage_.InternalSwap(&other->stage_);
12835   not_stage_.InternalSwap(&other->not_stage_);
12836   swap(phase_, other->phase_);
12837   swap(min_level_, other->min_level_);
12838   swap(max_level_, other->max_level_);
12839   swap(_has_bits_[0], other->_has_bits_[0]);
12840   _internal_metadata_.Swap(&other->_internal_metadata_);
12841   swap(_cached_size_, other->_cached_size_);
12842 }
12843 
GetMetadata() const12844 ::google::protobuf::Metadata NetStateRule::GetMetadata() const {
12845   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
12846   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
12847 }
12848 
12849 
12850 // ===================================================================
12851 
InitAsDefaultInstance()12852 void ParamSpec::InitAsDefaultInstance() {
12853 }
12854 #if !defined(_MSC_VER) || _MSC_VER >= 1900
12855 const int ParamSpec::kNameFieldNumber;
12856 const int ParamSpec::kShareModeFieldNumber;
12857 const int ParamSpec::kLrMultFieldNumber;
12858 const int ParamSpec::kDecayMultFieldNumber;
12859 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12860 
ParamSpec()12861 ParamSpec::ParamSpec()
12862   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12863   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12864     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParamSpec();
12865   }
12866   SharedCtor();
12867   // @@protoc_insertion_point(constructor:opencv_caffe.ParamSpec)
12868 }
ParamSpec(const ParamSpec & from)12869 ParamSpec::ParamSpec(const ParamSpec& from)
12870   : ::google::protobuf::Message(),
12871       _internal_metadata_(NULL),
12872       _has_bits_(from._has_bits_),
12873       _cached_size_(0) {
12874   _internal_metadata_.MergeFrom(from._internal_metadata_);
12875   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12876   if (from.has_name()) {
12877     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
12878   }
12879   ::memcpy(&share_mode_, &from.share_mode_,
12880     static_cast<size_t>(reinterpret_cast<char*>(&decay_mult_) -
12881     reinterpret_cast<char*>(&share_mode_)) + sizeof(decay_mult_));
12882   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ParamSpec)
12883 }
12884 
SharedCtor()12885 void ParamSpec::SharedCtor() {
12886   _cached_size_ = 0;
12887   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12888   share_mode_ = 0;
12889   lr_mult_ = 1;
12890   decay_mult_ = 1;
12891 }
12892 
~ParamSpec()12893 ParamSpec::~ParamSpec() {
12894   // @@protoc_insertion_point(destructor:opencv_caffe.ParamSpec)
12895   SharedDtor();
12896 }
12897 
SharedDtor()12898 void ParamSpec::SharedDtor() {
12899   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12900 }
12901 
SetCachedSize(int size) const12902 void ParamSpec::SetCachedSize(int size) const {
12903   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12904   _cached_size_ = size;
12905   GOOGLE_SAFE_CONCURRENT_WRITES_END();
12906 }
descriptor()12907 const ::google::protobuf::Descriptor* ParamSpec::descriptor() {
12908   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
12909   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12910 }
12911 
default_instance()12912 const ParamSpec& ParamSpec::default_instance() {
12913   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParamSpec();
12914   return *internal_default_instance();
12915 }
12916 
New(::google::protobuf::Arena * arena) const12917 ParamSpec* ParamSpec::New(::google::protobuf::Arena* arena) const {
12918   ParamSpec* n = new ParamSpec;
12919   if (arena != NULL) {
12920     arena->Own(n);
12921   }
12922   return n;
12923 }
12924 
Clear()12925 void ParamSpec::Clear() {
12926 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ParamSpec)
12927   ::google::protobuf::uint32 cached_has_bits = 0;
12928   // Prevent compiler warnings about cached_has_bits being unused
12929   (void) cached_has_bits;
12930 
12931   cached_has_bits = _has_bits_[0];
12932   if (cached_has_bits & 0x00000001u) {
12933     GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12934     (*name_.UnsafeRawStringPointer())->clear();
12935   }
12936   if (cached_has_bits & 14u) {
12937     share_mode_ = 0;
12938     lr_mult_ = 1;
12939     decay_mult_ = 1;
12940   }
12941   _has_bits_.Clear();
12942   _internal_metadata_.Clear();
12943 }
12944 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)12945 bool ParamSpec::MergePartialFromCodedStream(
12946     ::google::protobuf::io::CodedInputStream* input) {
12947 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12948   ::google::protobuf::uint32 tag;
12949   // @@protoc_insertion_point(parse_start:opencv_caffe.ParamSpec)
12950   for (;;) {
12951     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12952     tag = p.first;
12953     if (!p.second) goto handle_unusual;
12954     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12955       // optional string name = 1;
12956       case 1: {
12957         if (static_cast< ::google::protobuf::uint8>(tag) ==
12958             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12959           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12960                 input, this->mutable_name()));
12961           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12962             this->name().data(), static_cast<int>(this->name().length()),
12963             ::google::protobuf::internal::WireFormat::PARSE,
12964             "opencv_caffe.ParamSpec.name");
12965         } else {
12966           goto handle_unusual;
12967         }
12968         break;
12969       }
12970 
12971       // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2;
12972       case 2: {
12973         if (static_cast< ::google::protobuf::uint8>(tag) ==
12974             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
12975           int value;
12976           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12977                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12978                  input, &value)));
12979           if (::opencv_caffe::ParamSpec_DimCheckMode_IsValid(value)) {
12980             set_share_mode(static_cast< ::opencv_caffe::ParamSpec_DimCheckMode >(value));
12981           } else {
12982             mutable_unknown_fields()->AddVarint(
12983                 2, static_cast< ::google::protobuf::uint64>(value));
12984           }
12985         } else {
12986           goto handle_unusual;
12987         }
12988         break;
12989       }
12990 
12991       // optional float lr_mult = 3 [default = 1];
12992       case 3: {
12993         if (static_cast< ::google::protobuf::uint8>(tag) ==
12994             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
12995           set_has_lr_mult();
12996           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12997                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
12998                  input, &lr_mult_)));
12999         } else {
13000           goto handle_unusual;
13001         }
13002         break;
13003       }
13004 
13005       // optional float decay_mult = 4 [default = 1];
13006       case 4: {
13007         if (static_cast< ::google::protobuf::uint8>(tag) ==
13008             static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
13009           set_has_decay_mult();
13010           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13011                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
13012                  input, &decay_mult_)));
13013         } else {
13014           goto handle_unusual;
13015         }
13016         break;
13017       }
13018 
13019       default: {
13020       handle_unusual:
13021         if (tag == 0) {
13022           goto success;
13023         }
13024         DO_(::google::protobuf::internal::WireFormat::SkipField(
13025               input, tag, _internal_metadata_.mutable_unknown_fields()));
13026         break;
13027       }
13028     }
13029   }
13030 success:
13031   // @@protoc_insertion_point(parse_success:opencv_caffe.ParamSpec)
13032   return true;
13033 failure:
13034   // @@protoc_insertion_point(parse_failure:opencv_caffe.ParamSpec)
13035   return false;
13036 #undef DO_
13037 }
13038 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const13039 void ParamSpec::SerializeWithCachedSizes(
13040     ::google::protobuf::io::CodedOutputStream* output) const {
13041   // @@protoc_insertion_point(serialize_start:opencv_caffe.ParamSpec)
13042   ::google::protobuf::uint32 cached_has_bits = 0;
13043   (void) cached_has_bits;
13044 
13045   cached_has_bits = _has_bits_[0];
13046   // optional string name = 1;
13047   if (cached_has_bits & 0x00000001u) {
13048     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13049       this->name().data(), static_cast<int>(this->name().length()),
13050       ::google::protobuf::internal::WireFormat::SERIALIZE,
13051       "opencv_caffe.ParamSpec.name");
13052     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13053       1, this->name(), output);
13054   }
13055 
13056   // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2;
13057   if (cached_has_bits & 0x00000002u) {
13058     ::google::protobuf::internal::WireFormatLite::WriteEnum(
13059       2, this->share_mode(), output);
13060   }
13061 
13062   // optional float lr_mult = 3 [default = 1];
13063   if (cached_has_bits & 0x00000004u) {
13064     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->lr_mult(), output);
13065   }
13066 
13067   // optional float decay_mult = 4 [default = 1];
13068   if (cached_has_bits & 0x00000008u) {
13069     ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->decay_mult(), output);
13070   }
13071 
13072   if (_internal_metadata_.have_unknown_fields()) {
13073     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13074         _internal_metadata_.unknown_fields(), output);
13075   }
13076   // @@protoc_insertion_point(serialize_end:opencv_caffe.ParamSpec)
13077 }
13078 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const13079 ::google::protobuf::uint8* ParamSpec::InternalSerializeWithCachedSizesToArray(
13080     bool deterministic, ::google::protobuf::uint8* target) const {
13081   (void)deterministic; // Unused
13082   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ParamSpec)
13083   ::google::protobuf::uint32 cached_has_bits = 0;
13084   (void) cached_has_bits;
13085 
13086   cached_has_bits = _has_bits_[0];
13087   // optional string name = 1;
13088   if (cached_has_bits & 0x00000001u) {
13089     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13090       this->name().data(), static_cast<int>(this->name().length()),
13091       ::google::protobuf::internal::WireFormat::SERIALIZE,
13092       "opencv_caffe.ParamSpec.name");
13093     target =
13094       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13095         1, this->name(), target);
13096   }
13097 
13098   // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2;
13099   if (cached_has_bits & 0x00000002u) {
13100     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
13101       2, this->share_mode(), target);
13102   }
13103 
13104   // optional float lr_mult = 3 [default = 1];
13105   if (cached_has_bits & 0x00000004u) {
13106     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->lr_mult(), target);
13107   }
13108 
13109   // optional float decay_mult = 4 [default = 1];
13110   if (cached_has_bits & 0x00000008u) {
13111     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->decay_mult(), target);
13112   }
13113 
13114   if (_internal_metadata_.have_unknown_fields()) {
13115     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13116         _internal_metadata_.unknown_fields(), target);
13117   }
13118   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ParamSpec)
13119   return target;
13120 }
13121 
ByteSizeLong() const13122 size_t ParamSpec::ByteSizeLong() const {
13123 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ParamSpec)
13124   size_t total_size = 0;
13125 
13126   if (_internal_metadata_.have_unknown_fields()) {
13127     total_size +=
13128       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13129         _internal_metadata_.unknown_fields());
13130   }
13131   if (_has_bits_[0 / 32] & 15u) {
13132     // optional string name = 1;
13133     if (has_name()) {
13134       total_size += 1 +
13135         ::google::protobuf::internal::WireFormatLite::StringSize(
13136           this->name());
13137     }
13138 
13139     // optional .opencv_caffe.ParamSpec.DimCheckMode share_mode = 2;
13140     if (has_share_mode()) {
13141       total_size += 1 +
13142         ::google::protobuf::internal::WireFormatLite::EnumSize(this->share_mode());
13143     }
13144 
13145     // optional float lr_mult = 3 [default = 1];
13146     if (has_lr_mult()) {
13147       total_size += 1 + 4;
13148     }
13149 
13150     // optional float decay_mult = 4 [default = 1];
13151     if (has_decay_mult()) {
13152       total_size += 1 + 4;
13153     }
13154 
13155   }
13156   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13157   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13158   _cached_size_ = cached_size;
13159   GOOGLE_SAFE_CONCURRENT_WRITES_END();
13160   return total_size;
13161 }
13162 
MergeFrom(const::google::protobuf::Message & from)13163 void ParamSpec::MergeFrom(const ::google::protobuf::Message& from) {
13164 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ParamSpec)
13165   GOOGLE_DCHECK_NE(&from, this);
13166   const ParamSpec* source =
13167       ::google::protobuf::internal::DynamicCastToGenerated<const ParamSpec>(
13168           &from);
13169   if (source == NULL) {
13170   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ParamSpec)
13171     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13172   } else {
13173   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ParamSpec)
13174     MergeFrom(*source);
13175   }
13176 }
13177 
MergeFrom(const ParamSpec & from)13178 void ParamSpec::MergeFrom(const ParamSpec& from) {
13179 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ParamSpec)
13180   GOOGLE_DCHECK_NE(&from, this);
13181   _internal_metadata_.MergeFrom(from._internal_metadata_);
13182   ::google::protobuf::uint32 cached_has_bits = 0;
13183   (void) cached_has_bits;
13184 
13185   cached_has_bits = from._has_bits_[0];
13186   if (cached_has_bits & 15u) {
13187     if (cached_has_bits & 0x00000001u) {
13188       set_has_name();
13189       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
13190     }
13191     if (cached_has_bits & 0x00000002u) {
13192       share_mode_ = from.share_mode_;
13193     }
13194     if (cached_has_bits & 0x00000004u) {
13195       lr_mult_ = from.lr_mult_;
13196     }
13197     if (cached_has_bits & 0x00000008u) {
13198       decay_mult_ = from.decay_mult_;
13199     }
13200     _has_bits_[0] |= cached_has_bits;
13201   }
13202 }
13203 
CopyFrom(const::google::protobuf::Message & from)13204 void ParamSpec::CopyFrom(const ::google::protobuf::Message& from) {
13205 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ParamSpec)
13206   if (&from == this) return;
13207   Clear();
13208   MergeFrom(from);
13209 }
13210 
CopyFrom(const ParamSpec & from)13211 void ParamSpec::CopyFrom(const ParamSpec& from) {
13212 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ParamSpec)
13213   if (&from == this) return;
13214   Clear();
13215   MergeFrom(from);
13216 }
13217 
IsInitialized() const13218 bool ParamSpec::IsInitialized() const {
13219   return true;
13220 }
13221 
Swap(ParamSpec * other)13222 void ParamSpec::Swap(ParamSpec* other) {
13223   if (other == this) return;
13224   InternalSwap(other);
13225 }
InternalSwap(ParamSpec * other)13226 void ParamSpec::InternalSwap(ParamSpec* other) {
13227   using std::swap;
13228   name_.Swap(&other->name_);
13229   swap(share_mode_, other->share_mode_);
13230   swap(lr_mult_, other->lr_mult_);
13231   swap(decay_mult_, other->decay_mult_);
13232   swap(_has_bits_[0], other->_has_bits_[0]);
13233   _internal_metadata_.Swap(&other->_internal_metadata_);
13234   swap(_cached_size_, other->_cached_size_);
13235 }
13236 
GetMetadata() const13237 ::google::protobuf::Metadata ParamSpec::GetMetadata() const {
13238   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
13239   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
13240 }
13241 
13242 
13243 // ===================================================================
13244 
InitAsDefaultInstance()13245 void LayerParameter::InitAsDefaultInstance() {
13246   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->transform_param_ = const_cast< ::opencv_caffe::TransformationParameter*>(
13247       ::opencv_caffe::TransformationParameter::internal_default_instance());
13248   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->loss_param_ = const_cast< ::opencv_caffe::LossParameter*>(
13249       ::opencv_caffe::LossParameter::internal_default_instance());
13250   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->accuracy_param_ = const_cast< ::opencv_caffe::AccuracyParameter*>(
13251       ::opencv_caffe::AccuracyParameter::internal_default_instance());
13252   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->argmax_param_ = const_cast< ::opencv_caffe::ArgMaxParameter*>(
13253       ::opencv_caffe::ArgMaxParameter::internal_default_instance());
13254   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->batch_norm_param_ = const_cast< ::opencv_caffe::BatchNormParameter*>(
13255       ::opencv_caffe::BatchNormParameter::internal_default_instance());
13256   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->bias_param_ = const_cast< ::opencv_caffe::BiasParameter*>(
13257       ::opencv_caffe::BiasParameter::internal_default_instance());
13258   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->concat_param_ = const_cast< ::opencv_caffe::ConcatParameter*>(
13259       ::opencv_caffe::ConcatParameter::internal_default_instance());
13260   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->contrastive_loss_param_ = const_cast< ::opencv_caffe::ContrastiveLossParameter*>(
13261       ::opencv_caffe::ContrastiveLossParameter::internal_default_instance());
13262   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->convolution_param_ = const_cast< ::opencv_caffe::ConvolutionParameter*>(
13263       ::opencv_caffe::ConvolutionParameter::internal_default_instance());
13264   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->crop_param_ = const_cast< ::opencv_caffe::CropParameter*>(
13265       ::opencv_caffe::CropParameter::internal_default_instance());
13266   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->data_param_ = const_cast< ::opencv_caffe::DataParameter*>(
13267       ::opencv_caffe::DataParameter::internal_default_instance());
13268   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->detection_output_param_ = const_cast< ::opencv_caffe::DetectionOutputParameter*>(
13269       ::opencv_caffe::DetectionOutputParameter::internal_default_instance());
13270   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->dropout_param_ = const_cast< ::opencv_caffe::DropoutParameter*>(
13271       ::opencv_caffe::DropoutParameter::internal_default_instance());
13272   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->dummy_data_param_ = const_cast< ::opencv_caffe::DummyDataParameter*>(
13273       ::opencv_caffe::DummyDataParameter::internal_default_instance());
13274   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->eltwise_param_ = const_cast< ::opencv_caffe::EltwiseParameter*>(
13275       ::opencv_caffe::EltwiseParameter::internal_default_instance());
13276   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->elu_param_ = const_cast< ::opencv_caffe::ELUParameter*>(
13277       ::opencv_caffe::ELUParameter::internal_default_instance());
13278   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->embed_param_ = const_cast< ::opencv_caffe::EmbedParameter*>(
13279       ::opencv_caffe::EmbedParameter::internal_default_instance());
13280   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->exp_param_ = const_cast< ::opencv_caffe::ExpParameter*>(
13281       ::opencv_caffe::ExpParameter::internal_default_instance());
13282   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->flatten_param_ = const_cast< ::opencv_caffe::FlattenParameter*>(
13283       ::opencv_caffe::FlattenParameter::internal_default_instance());
13284   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->hdf5_data_param_ = const_cast< ::opencv_caffe::HDF5DataParameter*>(
13285       ::opencv_caffe::HDF5DataParameter::internal_default_instance());
13286   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>(
13287       ::opencv_caffe::HDF5OutputParameter::internal_default_instance());
13288   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->hinge_loss_param_ = const_cast< ::opencv_caffe::HingeLossParameter*>(
13289       ::opencv_caffe::HingeLossParameter::internal_default_instance());
13290   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->image_data_param_ = const_cast< ::opencv_caffe::ImageDataParameter*>(
13291       ::opencv_caffe::ImageDataParameter::internal_default_instance());
13292   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->infogain_loss_param_ = const_cast< ::opencv_caffe::InfogainLossParameter*>(
13293       ::opencv_caffe::InfogainLossParameter::internal_default_instance());
13294   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->inner_product_param_ = const_cast< ::opencv_caffe::InnerProductParameter*>(
13295       ::opencv_caffe::InnerProductParameter::internal_default_instance());
13296   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->input_param_ = const_cast< ::opencv_caffe::InputParameter*>(
13297       ::opencv_caffe::InputParameter::internal_default_instance());
13298   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->log_param_ = const_cast< ::opencv_caffe::LogParameter*>(
13299       ::opencv_caffe::LogParameter::internal_default_instance());
13300   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->lrn_param_ = const_cast< ::opencv_caffe::LRNParameter*>(
13301       ::opencv_caffe::LRNParameter::internal_default_instance());
13302   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->memory_data_param_ = const_cast< ::opencv_caffe::MemoryDataParameter*>(
13303       ::opencv_caffe::MemoryDataParameter::internal_default_instance());
13304   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->mvn_param_ = const_cast< ::opencv_caffe::MVNParameter*>(
13305       ::opencv_caffe::MVNParameter::internal_default_instance());
13306   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->norm_param_ = const_cast< ::opencv_caffe::NormalizeBBoxParameter*>(
13307       ::opencv_caffe::NormalizeBBoxParameter::internal_default_instance());
13308   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->permute_param_ = const_cast< ::opencv_caffe::PermuteParameter*>(
13309       ::opencv_caffe::PermuteParameter::internal_default_instance());
13310   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->parameter_param_ = const_cast< ::opencv_caffe::ParameterParameter*>(
13311       ::opencv_caffe::ParameterParameter::internal_default_instance());
13312   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->pooling_param_ = const_cast< ::opencv_caffe::PoolingParameter*>(
13313       ::opencv_caffe::PoolingParameter::internal_default_instance());
13314   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->power_param_ = const_cast< ::opencv_caffe::PowerParameter*>(
13315       ::opencv_caffe::PowerParameter::internal_default_instance());
13316   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->prelu_param_ = const_cast< ::opencv_caffe::PReLUParameter*>(
13317       ::opencv_caffe::PReLUParameter::internal_default_instance());
13318   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->prior_box_param_ = const_cast< ::opencv_caffe::PriorBoxParameter*>(
13319       ::opencv_caffe::PriorBoxParameter::internal_default_instance());
13320   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->proposal_param_ = const_cast< ::opencv_caffe::ProposalParameter*>(
13321       ::opencv_caffe::ProposalParameter::internal_default_instance());
13322   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->psroi_pooling_param_ = const_cast< ::opencv_caffe::PSROIPoolingParameter*>(
13323       ::opencv_caffe::PSROIPoolingParameter::internal_default_instance());
13324   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->python_param_ = const_cast< ::opencv_caffe::PythonParameter*>(
13325       ::opencv_caffe::PythonParameter::internal_default_instance());
13326   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->recurrent_param_ = const_cast< ::opencv_caffe::RecurrentParameter*>(
13327       ::opencv_caffe::RecurrentParameter::internal_default_instance());
13328   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->reduction_param_ = const_cast< ::opencv_caffe::ReductionParameter*>(
13329       ::opencv_caffe::ReductionParameter::internal_default_instance());
13330   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->relu_param_ = const_cast< ::opencv_caffe::ReLUParameter*>(
13331       ::opencv_caffe::ReLUParameter::internal_default_instance());
13332   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->reshape_param_ = const_cast< ::opencv_caffe::ReshapeParameter*>(
13333       ::opencv_caffe::ReshapeParameter::internal_default_instance());
13334   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->roi_pooling_param_ = const_cast< ::opencv_caffe::ROIPoolingParameter*>(
13335       ::opencv_caffe::ROIPoolingParameter::internal_default_instance());
13336   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->scale_param_ = const_cast< ::opencv_caffe::ScaleParameter*>(
13337       ::opencv_caffe::ScaleParameter::internal_default_instance());
13338   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->sigmoid_param_ = const_cast< ::opencv_caffe::SigmoidParameter*>(
13339       ::opencv_caffe::SigmoidParameter::internal_default_instance());
13340   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->softmax_param_ = const_cast< ::opencv_caffe::SoftmaxParameter*>(
13341       ::opencv_caffe::SoftmaxParameter::internal_default_instance());
13342   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->spp_param_ = const_cast< ::opencv_caffe::SPPParameter*>(
13343       ::opencv_caffe::SPPParameter::internal_default_instance());
13344   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->slice_param_ = const_cast< ::opencv_caffe::SliceParameter*>(
13345       ::opencv_caffe::SliceParameter::internal_default_instance());
13346   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->tanh_param_ = const_cast< ::opencv_caffe::TanHParameter*>(
13347       ::opencv_caffe::TanHParameter::internal_default_instance());
13348   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->threshold_param_ = const_cast< ::opencv_caffe::ThresholdParameter*>(
13349       ::opencv_caffe::ThresholdParameter::internal_default_instance());
13350   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->tile_param_ = const_cast< ::opencv_caffe::TileParameter*>(
13351       ::opencv_caffe::TileParameter::internal_default_instance());
13352   ::opencv_caffe::_LayerParameter_default_instance_._instance.get_mutable()->window_data_param_ = const_cast< ::opencv_caffe::WindowDataParameter*>(
13353       ::opencv_caffe::WindowDataParameter::internal_default_instance());
13354 }
13355 #if !defined(_MSC_VER) || _MSC_VER >= 1900
13356 const int LayerParameter::kNameFieldNumber;
13357 const int LayerParameter::kTypeFieldNumber;
13358 const int LayerParameter::kBottomFieldNumber;
13359 const int LayerParameter::kTopFieldNumber;
13360 const int LayerParameter::kPhaseFieldNumber;
13361 const int LayerParameter::kLossWeightFieldNumber;
13362 const int LayerParameter::kParamFieldNumber;
13363 const int LayerParameter::kBlobsFieldNumber;
13364 const int LayerParameter::kPropagateDownFieldNumber;
13365 const int LayerParameter::kIncludeFieldNumber;
13366 const int LayerParameter::kExcludeFieldNumber;
13367 const int LayerParameter::kTransformParamFieldNumber;
13368 const int LayerParameter::kLossParamFieldNumber;
13369 const int LayerParameter::kAccuracyParamFieldNumber;
13370 const int LayerParameter::kArgmaxParamFieldNumber;
13371 const int LayerParameter::kBatchNormParamFieldNumber;
13372 const int LayerParameter::kBiasParamFieldNumber;
13373 const int LayerParameter::kConcatParamFieldNumber;
13374 const int LayerParameter::kContrastiveLossParamFieldNumber;
13375 const int LayerParameter::kConvolutionParamFieldNumber;
13376 const int LayerParameter::kCropParamFieldNumber;
13377 const int LayerParameter::kDataParamFieldNumber;
13378 const int LayerParameter::kDetectionOutputParamFieldNumber;
13379 const int LayerParameter::kDropoutParamFieldNumber;
13380 const int LayerParameter::kDummyDataParamFieldNumber;
13381 const int LayerParameter::kEltwiseParamFieldNumber;
13382 const int LayerParameter::kEluParamFieldNumber;
13383 const int LayerParameter::kEmbedParamFieldNumber;
13384 const int LayerParameter::kExpParamFieldNumber;
13385 const int LayerParameter::kFlattenParamFieldNumber;
13386 const int LayerParameter::kHdf5DataParamFieldNumber;
13387 const int LayerParameter::kHdf5OutputParamFieldNumber;
13388 const int LayerParameter::kHingeLossParamFieldNumber;
13389 const int LayerParameter::kImageDataParamFieldNumber;
13390 const int LayerParameter::kInfogainLossParamFieldNumber;
13391 const int LayerParameter::kInnerProductParamFieldNumber;
13392 const int LayerParameter::kInputParamFieldNumber;
13393 const int LayerParameter::kLogParamFieldNumber;
13394 const int LayerParameter::kLrnParamFieldNumber;
13395 const int LayerParameter::kMemoryDataParamFieldNumber;
13396 const int LayerParameter::kMvnParamFieldNumber;
13397 const int LayerParameter::kNormParamFieldNumber;
13398 const int LayerParameter::kPermuteParamFieldNumber;
13399 const int LayerParameter::kParameterParamFieldNumber;
13400 const int LayerParameter::kPoolingParamFieldNumber;
13401 const int LayerParameter::kPowerParamFieldNumber;
13402 const int LayerParameter::kPreluParamFieldNumber;
13403 const int LayerParameter::kPriorBoxParamFieldNumber;
13404 const int LayerParameter::kProposalParamFieldNumber;
13405 const int LayerParameter::kPsroiPoolingParamFieldNumber;
13406 const int LayerParameter::kPythonParamFieldNumber;
13407 const int LayerParameter::kRecurrentParamFieldNumber;
13408 const int LayerParameter::kReductionParamFieldNumber;
13409 const int LayerParameter::kReluParamFieldNumber;
13410 const int LayerParameter::kReshapeParamFieldNumber;
13411 const int LayerParameter::kRoiPoolingParamFieldNumber;
13412 const int LayerParameter::kScaleParamFieldNumber;
13413 const int LayerParameter::kSigmoidParamFieldNumber;
13414 const int LayerParameter::kSoftmaxParamFieldNumber;
13415 const int LayerParameter::kSppParamFieldNumber;
13416 const int LayerParameter::kSliceParamFieldNumber;
13417 const int LayerParameter::kTanhParamFieldNumber;
13418 const int LayerParameter::kThresholdParamFieldNumber;
13419 const int LayerParameter::kTileParamFieldNumber;
13420 const int LayerParameter::kWindowDataParamFieldNumber;
13421 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13422 
LayerParameter()13423 LayerParameter::LayerParameter()
13424   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13425   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13426     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLayerParameter();
13427   }
13428   SharedCtor();
13429   // @@protoc_insertion_point(constructor:opencv_caffe.LayerParameter)
13430 }
LayerParameter(const LayerParameter & from)13431 LayerParameter::LayerParameter(const LayerParameter& from)
13432   : ::google::protobuf::Message(),
13433       _internal_metadata_(NULL),
13434       _has_bits_(from._has_bits_),
13435       bottom_(from.bottom_),
13436       top_(from.top_),
13437       loss_weight_(from.loss_weight_),
13438       param_(from.param_),
13439       blobs_(from.blobs_),
13440       include_(from.include_),
13441       exclude_(from.exclude_),
13442       propagate_down_(from.propagate_down_),
13443       _cached_size_(0) {
13444   _internal_metadata_.MergeFrom(from._internal_metadata_);
13445   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13446   if (from.has_name()) {
13447     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
13448   }
13449   type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13450   if (from.has_type()) {
13451     type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
13452   }
13453   if (from.has_transform_param()) {
13454     transform_param_ = new ::opencv_caffe::TransformationParameter(*from.transform_param_);
13455   } else {
13456     transform_param_ = NULL;
13457   }
13458   if (from.has_loss_param()) {
13459     loss_param_ = new ::opencv_caffe::LossParameter(*from.loss_param_);
13460   } else {
13461     loss_param_ = NULL;
13462   }
13463   if (from.has_accuracy_param()) {
13464     accuracy_param_ = new ::opencv_caffe::AccuracyParameter(*from.accuracy_param_);
13465   } else {
13466     accuracy_param_ = NULL;
13467   }
13468   if (from.has_argmax_param()) {
13469     argmax_param_ = new ::opencv_caffe::ArgMaxParameter(*from.argmax_param_);
13470   } else {
13471     argmax_param_ = NULL;
13472   }
13473   if (from.has_concat_param()) {
13474     concat_param_ = new ::opencv_caffe::ConcatParameter(*from.concat_param_);
13475   } else {
13476     concat_param_ = NULL;
13477   }
13478   if (from.has_contrastive_loss_param()) {
13479     contrastive_loss_param_ = new ::opencv_caffe::ContrastiveLossParameter(*from.contrastive_loss_param_);
13480   } else {
13481     contrastive_loss_param_ = NULL;
13482   }
13483   if (from.has_convolution_param()) {
13484     convolution_param_ = new ::opencv_caffe::ConvolutionParameter(*from.convolution_param_);
13485   } else {
13486     convolution_param_ = NULL;
13487   }
13488   if (from.has_data_param()) {
13489     data_param_ = new ::opencv_caffe::DataParameter(*from.data_param_);
13490   } else {
13491     data_param_ = NULL;
13492   }
13493   if (from.has_dropout_param()) {
13494     dropout_param_ = new ::opencv_caffe::DropoutParameter(*from.dropout_param_);
13495   } else {
13496     dropout_param_ = NULL;
13497   }
13498   if (from.has_dummy_data_param()) {
13499     dummy_data_param_ = new ::opencv_caffe::DummyDataParameter(*from.dummy_data_param_);
13500   } else {
13501     dummy_data_param_ = NULL;
13502   }
13503   if (from.has_eltwise_param()) {
13504     eltwise_param_ = new ::opencv_caffe::EltwiseParameter(*from.eltwise_param_);
13505   } else {
13506     eltwise_param_ = NULL;
13507   }
13508   if (from.has_exp_param()) {
13509     exp_param_ = new ::opencv_caffe::ExpParameter(*from.exp_param_);
13510   } else {
13511     exp_param_ = NULL;
13512   }
13513   if (from.has_hdf5_data_param()) {
13514     hdf5_data_param_ = new ::opencv_caffe::HDF5DataParameter(*from.hdf5_data_param_);
13515   } else {
13516     hdf5_data_param_ = NULL;
13517   }
13518   if (from.has_hdf5_output_param()) {
13519     hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter(*from.hdf5_output_param_);
13520   } else {
13521     hdf5_output_param_ = NULL;
13522   }
13523   if (from.has_hinge_loss_param()) {
13524     hinge_loss_param_ = new ::opencv_caffe::HingeLossParameter(*from.hinge_loss_param_);
13525   } else {
13526     hinge_loss_param_ = NULL;
13527   }
13528   if (from.has_image_data_param()) {
13529     image_data_param_ = new ::opencv_caffe::ImageDataParameter(*from.image_data_param_);
13530   } else {
13531     image_data_param_ = NULL;
13532   }
13533   if (from.has_infogain_loss_param()) {
13534     infogain_loss_param_ = new ::opencv_caffe::InfogainLossParameter(*from.infogain_loss_param_);
13535   } else {
13536     infogain_loss_param_ = NULL;
13537   }
13538   if (from.has_inner_product_param()) {
13539     inner_product_param_ = new ::opencv_caffe::InnerProductParameter(*from.inner_product_param_);
13540   } else {
13541     inner_product_param_ = NULL;
13542   }
13543   if (from.has_lrn_param()) {
13544     lrn_param_ = new ::opencv_caffe::LRNParameter(*from.lrn_param_);
13545   } else {
13546     lrn_param_ = NULL;
13547   }
13548   if (from.has_memory_data_param()) {
13549     memory_data_param_ = new ::opencv_caffe::MemoryDataParameter(*from.memory_data_param_);
13550   } else {
13551     memory_data_param_ = NULL;
13552   }
13553   if (from.has_mvn_param()) {
13554     mvn_param_ = new ::opencv_caffe::MVNParameter(*from.mvn_param_);
13555   } else {
13556     mvn_param_ = NULL;
13557   }
13558   if (from.has_pooling_param()) {
13559     pooling_param_ = new ::opencv_caffe::PoolingParameter(*from.pooling_param_);
13560   } else {
13561     pooling_param_ = NULL;
13562   }
13563   if (from.has_power_param()) {
13564     power_param_ = new ::opencv_caffe::PowerParameter(*from.power_param_);
13565   } else {
13566     power_param_ = NULL;
13567   }
13568   if (from.has_relu_param()) {
13569     relu_param_ = new ::opencv_caffe::ReLUParameter(*from.relu_param_);
13570   } else {
13571     relu_param_ = NULL;
13572   }
13573   if (from.has_sigmoid_param()) {
13574     sigmoid_param_ = new ::opencv_caffe::SigmoidParameter(*from.sigmoid_param_);
13575   } else {
13576     sigmoid_param_ = NULL;
13577   }
13578   if (from.has_softmax_param()) {
13579     softmax_param_ = new ::opencv_caffe::SoftmaxParameter(*from.softmax_param_);
13580   } else {
13581     softmax_param_ = NULL;
13582   }
13583   if (from.has_slice_param()) {
13584     slice_param_ = new ::opencv_caffe::SliceParameter(*from.slice_param_);
13585   } else {
13586     slice_param_ = NULL;
13587   }
13588   if (from.has_tanh_param()) {
13589     tanh_param_ = new ::opencv_caffe::TanHParameter(*from.tanh_param_);
13590   } else {
13591     tanh_param_ = NULL;
13592   }
13593   if (from.has_threshold_param()) {
13594     threshold_param_ = new ::opencv_caffe::ThresholdParameter(*from.threshold_param_);
13595   } else {
13596     threshold_param_ = NULL;
13597   }
13598   if (from.has_window_data_param()) {
13599     window_data_param_ = new ::opencv_caffe::WindowDataParameter(*from.window_data_param_);
13600   } else {
13601     window_data_param_ = NULL;
13602   }
13603   if (from.has_python_param()) {
13604     python_param_ = new ::opencv_caffe::PythonParameter(*from.python_param_);
13605   } else {
13606     python_param_ = NULL;
13607   }
13608   if (from.has_prelu_param()) {
13609     prelu_param_ = new ::opencv_caffe::PReLUParameter(*from.prelu_param_);
13610   } else {
13611     prelu_param_ = NULL;
13612   }
13613   if (from.has_spp_param()) {
13614     spp_param_ = new ::opencv_caffe::SPPParameter(*from.spp_param_);
13615   } else {
13616     spp_param_ = NULL;
13617   }
13618   if (from.has_reshape_param()) {
13619     reshape_param_ = new ::opencv_caffe::ReshapeParameter(*from.reshape_param_);
13620   } else {
13621     reshape_param_ = NULL;
13622   }
13623   if (from.has_log_param()) {
13624     log_param_ = new ::opencv_caffe::LogParameter(*from.log_param_);
13625   } else {
13626     log_param_ = NULL;
13627   }
13628   if (from.has_flatten_param()) {
13629     flatten_param_ = new ::opencv_caffe::FlattenParameter(*from.flatten_param_);
13630   } else {
13631     flatten_param_ = NULL;
13632   }
13633   if (from.has_reduction_param()) {
13634     reduction_param_ = new ::opencv_caffe::ReductionParameter(*from.reduction_param_);
13635   } else {
13636     reduction_param_ = NULL;
13637   }
13638   if (from.has_embed_param()) {
13639     embed_param_ = new ::opencv_caffe::EmbedParameter(*from.embed_param_);
13640   } else {
13641     embed_param_ = NULL;
13642   }
13643   if (from.has_tile_param()) {
13644     tile_param_ = new ::opencv_caffe::TileParameter(*from.tile_param_);
13645   } else {
13646     tile_param_ = NULL;
13647   }
13648   if (from.has_batch_norm_param()) {
13649     batch_norm_param_ = new ::opencv_caffe::BatchNormParameter(*from.batch_norm_param_);
13650   } else {
13651     batch_norm_param_ = NULL;
13652   }
13653   if (from.has_elu_param()) {
13654     elu_param_ = new ::opencv_caffe::ELUParameter(*from.elu_param_);
13655   } else {
13656     elu_param_ = NULL;
13657   }
13658   if (from.has_bias_param()) {
13659     bias_param_ = new ::opencv_caffe::BiasParameter(*from.bias_param_);
13660   } else {
13661     bias_param_ = NULL;
13662   }
13663   if (from.has_scale_param()) {
13664     scale_param_ = new ::opencv_caffe::ScaleParameter(*from.scale_param_);
13665   } else {
13666     scale_param_ = NULL;
13667   }
13668   if (from.has_input_param()) {
13669     input_param_ = new ::opencv_caffe::InputParameter(*from.input_param_);
13670   } else {
13671     input_param_ = NULL;
13672   }
13673   if (from.has_crop_param()) {
13674     crop_param_ = new ::opencv_caffe::CropParameter(*from.crop_param_);
13675   } else {
13676     crop_param_ = NULL;
13677   }
13678   if (from.has_parameter_param()) {
13679     parameter_param_ = new ::opencv_caffe::ParameterParameter(*from.parameter_param_);
13680   } else {
13681     parameter_param_ = NULL;
13682   }
13683   if (from.has_recurrent_param()) {
13684     recurrent_param_ = new ::opencv_caffe::RecurrentParameter(*from.recurrent_param_);
13685   } else {
13686     recurrent_param_ = NULL;
13687   }
13688   if (from.has_detection_output_param()) {
13689     detection_output_param_ = new ::opencv_caffe::DetectionOutputParameter(*from.detection_output_param_);
13690   } else {
13691     detection_output_param_ = NULL;
13692   }
13693   if (from.has_permute_param()) {
13694     permute_param_ = new ::opencv_caffe::PermuteParameter(*from.permute_param_);
13695   } else {
13696     permute_param_ = NULL;
13697   }
13698   if (from.has_norm_param()) {
13699     norm_param_ = new ::opencv_caffe::NormalizeBBoxParameter(*from.norm_param_);
13700   } else {
13701     norm_param_ = NULL;
13702   }
13703   if (from.has_prior_box_param()) {
13704     prior_box_param_ = new ::opencv_caffe::PriorBoxParameter(*from.prior_box_param_);
13705   } else {
13706     prior_box_param_ = NULL;
13707   }
13708   if (from.has_proposal_param()) {
13709     proposal_param_ = new ::opencv_caffe::ProposalParameter(*from.proposal_param_);
13710   } else {
13711     proposal_param_ = NULL;
13712   }
13713   if (from.has_psroi_pooling_param()) {
13714     psroi_pooling_param_ = new ::opencv_caffe::PSROIPoolingParameter(*from.psroi_pooling_param_);
13715   } else {
13716     psroi_pooling_param_ = NULL;
13717   }
13718   if (from.has_roi_pooling_param()) {
13719     roi_pooling_param_ = new ::opencv_caffe::ROIPoolingParameter(*from.roi_pooling_param_);
13720   } else {
13721     roi_pooling_param_ = NULL;
13722   }
13723   phase_ = from.phase_;
13724   // @@protoc_insertion_point(copy_constructor:opencv_caffe.LayerParameter)
13725 }
13726 
SharedCtor()13727 void LayerParameter::SharedCtor() {
13728   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13729   type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13730   ::memset(&transform_param_, 0, static_cast<size_t>(
13731       reinterpret_cast<char*>(&phase_) -
13732       reinterpret_cast<char*>(&transform_param_)) + sizeof(phase_));
13733   _cached_size_ = 0;
13734 }
13735 
~LayerParameter()13736 LayerParameter::~LayerParameter() {
13737   // @@protoc_insertion_point(destructor:opencv_caffe.LayerParameter)
13738   SharedDtor();
13739 }
13740 
SharedDtor()13741 void LayerParameter::SharedDtor() {
13742   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13743   type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13744   if (this != internal_default_instance()) delete transform_param_;
13745   if (this != internal_default_instance()) delete loss_param_;
13746   if (this != internal_default_instance()) delete accuracy_param_;
13747   if (this != internal_default_instance()) delete argmax_param_;
13748   if (this != internal_default_instance()) delete concat_param_;
13749   if (this != internal_default_instance()) delete contrastive_loss_param_;
13750   if (this != internal_default_instance()) delete convolution_param_;
13751   if (this != internal_default_instance()) delete data_param_;
13752   if (this != internal_default_instance()) delete dropout_param_;
13753   if (this != internal_default_instance()) delete dummy_data_param_;
13754   if (this != internal_default_instance()) delete eltwise_param_;
13755   if (this != internal_default_instance()) delete exp_param_;
13756   if (this != internal_default_instance()) delete hdf5_data_param_;
13757   if (this != internal_default_instance()) delete hdf5_output_param_;
13758   if (this != internal_default_instance()) delete hinge_loss_param_;
13759   if (this != internal_default_instance()) delete image_data_param_;
13760   if (this != internal_default_instance()) delete infogain_loss_param_;
13761   if (this != internal_default_instance()) delete inner_product_param_;
13762   if (this != internal_default_instance()) delete lrn_param_;
13763   if (this != internal_default_instance()) delete memory_data_param_;
13764   if (this != internal_default_instance()) delete mvn_param_;
13765   if (this != internal_default_instance()) delete pooling_param_;
13766   if (this != internal_default_instance()) delete power_param_;
13767   if (this != internal_default_instance()) delete relu_param_;
13768   if (this != internal_default_instance()) delete sigmoid_param_;
13769   if (this != internal_default_instance()) delete softmax_param_;
13770   if (this != internal_default_instance()) delete slice_param_;
13771   if (this != internal_default_instance()) delete tanh_param_;
13772   if (this != internal_default_instance()) delete threshold_param_;
13773   if (this != internal_default_instance()) delete window_data_param_;
13774   if (this != internal_default_instance()) delete python_param_;
13775   if (this != internal_default_instance()) delete prelu_param_;
13776   if (this != internal_default_instance()) delete spp_param_;
13777   if (this != internal_default_instance()) delete reshape_param_;
13778   if (this != internal_default_instance()) delete log_param_;
13779   if (this != internal_default_instance()) delete flatten_param_;
13780   if (this != internal_default_instance()) delete reduction_param_;
13781   if (this != internal_default_instance()) delete embed_param_;
13782   if (this != internal_default_instance()) delete tile_param_;
13783   if (this != internal_default_instance()) delete batch_norm_param_;
13784   if (this != internal_default_instance()) delete elu_param_;
13785   if (this != internal_default_instance()) delete bias_param_;
13786   if (this != internal_default_instance()) delete scale_param_;
13787   if (this != internal_default_instance()) delete input_param_;
13788   if (this != internal_default_instance()) delete crop_param_;
13789   if (this != internal_default_instance()) delete parameter_param_;
13790   if (this != internal_default_instance()) delete recurrent_param_;
13791   if (this != internal_default_instance()) delete detection_output_param_;
13792   if (this != internal_default_instance()) delete permute_param_;
13793   if (this != internal_default_instance()) delete norm_param_;
13794   if (this != internal_default_instance()) delete prior_box_param_;
13795   if (this != internal_default_instance()) delete proposal_param_;
13796   if (this != internal_default_instance()) delete psroi_pooling_param_;
13797   if (this != internal_default_instance()) delete roi_pooling_param_;
13798 }
13799 
SetCachedSize(int size) const13800 void LayerParameter::SetCachedSize(int size) const {
13801   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13802   _cached_size_ = size;
13803   GOOGLE_SAFE_CONCURRENT_WRITES_END();
13804 }
descriptor()13805 const ::google::protobuf::Descriptor* LayerParameter::descriptor() {
13806   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
13807   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13808 }
13809 
default_instance()13810 const LayerParameter& LayerParameter::default_instance() {
13811   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLayerParameter();
13812   return *internal_default_instance();
13813 }
13814 
New(::google::protobuf::Arena * arena) const13815 LayerParameter* LayerParameter::New(::google::protobuf::Arena* arena) const {
13816   LayerParameter* n = new LayerParameter;
13817   if (arena != NULL) {
13818     arena->Own(n);
13819   }
13820   return n;
13821 }
13822 
Clear()13823 void LayerParameter::Clear() {
13824 // @@protoc_insertion_point(message_clear_start:opencv_caffe.LayerParameter)
13825   ::google::protobuf::uint32 cached_has_bits = 0;
13826   // Prevent compiler warnings about cached_has_bits being unused
13827   (void) cached_has_bits;
13828 
13829   bottom_.Clear();
13830   top_.Clear();
13831   loss_weight_.Clear();
13832   param_.Clear();
13833   blobs_.Clear();
13834   include_.Clear();
13835   exclude_.Clear();
13836   propagate_down_.Clear();
13837   cached_has_bits = _has_bits_[0];
13838   if (cached_has_bits & 255u) {
13839     if (cached_has_bits & 0x00000001u) {
13840       GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13841       (*name_.UnsafeRawStringPointer())->clear();
13842     }
13843     if (cached_has_bits & 0x00000002u) {
13844       GOOGLE_DCHECK(!type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13845       (*type_.UnsafeRawStringPointer())->clear();
13846     }
13847     if (cached_has_bits & 0x00000004u) {
13848       GOOGLE_DCHECK(transform_param_ != NULL);
13849       transform_param_->Clear();
13850     }
13851     if (cached_has_bits & 0x00000008u) {
13852       GOOGLE_DCHECK(loss_param_ != NULL);
13853       loss_param_->Clear();
13854     }
13855     if (cached_has_bits & 0x00000010u) {
13856       GOOGLE_DCHECK(accuracy_param_ != NULL);
13857       accuracy_param_->Clear();
13858     }
13859     if (cached_has_bits & 0x00000020u) {
13860       GOOGLE_DCHECK(argmax_param_ != NULL);
13861       argmax_param_->Clear();
13862     }
13863     if (cached_has_bits & 0x00000040u) {
13864       GOOGLE_DCHECK(concat_param_ != NULL);
13865       concat_param_->Clear();
13866     }
13867     if (cached_has_bits & 0x00000080u) {
13868       GOOGLE_DCHECK(contrastive_loss_param_ != NULL);
13869       contrastive_loss_param_->Clear();
13870     }
13871   }
13872   if (cached_has_bits & 65280u) {
13873     if (cached_has_bits & 0x00000100u) {
13874       GOOGLE_DCHECK(convolution_param_ != NULL);
13875       convolution_param_->Clear();
13876     }
13877     if (cached_has_bits & 0x00000200u) {
13878       GOOGLE_DCHECK(data_param_ != NULL);
13879       data_param_->Clear();
13880     }
13881     if (cached_has_bits & 0x00000400u) {
13882       GOOGLE_DCHECK(dropout_param_ != NULL);
13883       dropout_param_->Clear();
13884     }
13885     if (cached_has_bits & 0x00000800u) {
13886       GOOGLE_DCHECK(dummy_data_param_ != NULL);
13887       dummy_data_param_->Clear();
13888     }
13889     if (cached_has_bits & 0x00001000u) {
13890       GOOGLE_DCHECK(eltwise_param_ != NULL);
13891       eltwise_param_->Clear();
13892     }
13893     if (cached_has_bits & 0x00002000u) {
13894       GOOGLE_DCHECK(exp_param_ != NULL);
13895       exp_param_->Clear();
13896     }
13897     if (cached_has_bits & 0x00004000u) {
13898       GOOGLE_DCHECK(hdf5_data_param_ != NULL);
13899       hdf5_data_param_->Clear();
13900     }
13901     if (cached_has_bits & 0x00008000u) {
13902       GOOGLE_DCHECK(hdf5_output_param_ != NULL);
13903       hdf5_output_param_->Clear();
13904     }
13905   }
13906   if (cached_has_bits & 16711680u) {
13907     if (cached_has_bits & 0x00010000u) {
13908       GOOGLE_DCHECK(hinge_loss_param_ != NULL);
13909       hinge_loss_param_->Clear();
13910     }
13911     if (cached_has_bits & 0x00020000u) {
13912       GOOGLE_DCHECK(image_data_param_ != NULL);
13913       image_data_param_->Clear();
13914     }
13915     if (cached_has_bits & 0x00040000u) {
13916       GOOGLE_DCHECK(infogain_loss_param_ != NULL);
13917       infogain_loss_param_->Clear();
13918     }
13919     if (cached_has_bits & 0x00080000u) {
13920       GOOGLE_DCHECK(inner_product_param_ != NULL);
13921       inner_product_param_->Clear();
13922     }
13923     if (cached_has_bits & 0x00100000u) {
13924       GOOGLE_DCHECK(lrn_param_ != NULL);
13925       lrn_param_->Clear();
13926     }
13927     if (cached_has_bits & 0x00200000u) {
13928       GOOGLE_DCHECK(memory_data_param_ != NULL);
13929       memory_data_param_->Clear();
13930     }
13931     if (cached_has_bits & 0x00400000u) {
13932       GOOGLE_DCHECK(mvn_param_ != NULL);
13933       mvn_param_->Clear();
13934     }
13935     if (cached_has_bits & 0x00800000u) {
13936       GOOGLE_DCHECK(pooling_param_ != NULL);
13937       pooling_param_->Clear();
13938     }
13939   }
13940   if (cached_has_bits & 4278190080u) {
13941     if (cached_has_bits & 0x01000000u) {
13942       GOOGLE_DCHECK(power_param_ != NULL);
13943       power_param_->Clear();
13944     }
13945     if (cached_has_bits & 0x02000000u) {
13946       GOOGLE_DCHECK(relu_param_ != NULL);
13947       relu_param_->Clear();
13948     }
13949     if (cached_has_bits & 0x04000000u) {
13950       GOOGLE_DCHECK(sigmoid_param_ != NULL);
13951       sigmoid_param_->Clear();
13952     }
13953     if (cached_has_bits & 0x08000000u) {
13954       GOOGLE_DCHECK(softmax_param_ != NULL);
13955       softmax_param_->Clear();
13956     }
13957     if (cached_has_bits & 0x10000000u) {
13958       GOOGLE_DCHECK(slice_param_ != NULL);
13959       slice_param_->Clear();
13960     }
13961     if (cached_has_bits & 0x20000000u) {
13962       GOOGLE_DCHECK(tanh_param_ != NULL);
13963       tanh_param_->Clear();
13964     }
13965     if (cached_has_bits & 0x40000000u) {
13966       GOOGLE_DCHECK(threshold_param_ != NULL);
13967       threshold_param_->Clear();
13968     }
13969     if (cached_has_bits & 0x80000000u) {
13970       GOOGLE_DCHECK(window_data_param_ != NULL);
13971       window_data_param_->Clear();
13972     }
13973   }
13974   cached_has_bits = _has_bits_[1];
13975   if (cached_has_bits & 255u) {
13976     if (cached_has_bits & 0x00000001u) {
13977       GOOGLE_DCHECK(python_param_ != NULL);
13978       python_param_->Clear();
13979     }
13980     if (cached_has_bits & 0x00000002u) {
13981       GOOGLE_DCHECK(prelu_param_ != NULL);
13982       prelu_param_->Clear();
13983     }
13984     if (cached_has_bits & 0x00000004u) {
13985       GOOGLE_DCHECK(spp_param_ != NULL);
13986       spp_param_->Clear();
13987     }
13988     if (cached_has_bits & 0x00000008u) {
13989       GOOGLE_DCHECK(reshape_param_ != NULL);
13990       reshape_param_->Clear();
13991     }
13992     if (cached_has_bits & 0x00000010u) {
13993       GOOGLE_DCHECK(log_param_ != NULL);
13994       log_param_->Clear();
13995     }
13996     if (cached_has_bits & 0x00000020u) {
13997       GOOGLE_DCHECK(flatten_param_ != NULL);
13998       flatten_param_->Clear();
13999     }
14000     if (cached_has_bits & 0x00000040u) {
14001       GOOGLE_DCHECK(reduction_param_ != NULL);
14002       reduction_param_->Clear();
14003     }
14004     if (cached_has_bits & 0x00000080u) {
14005       GOOGLE_DCHECK(embed_param_ != NULL);
14006       embed_param_->Clear();
14007     }
14008   }
14009   if (cached_has_bits & 65280u) {
14010     if (cached_has_bits & 0x00000100u) {
14011       GOOGLE_DCHECK(tile_param_ != NULL);
14012       tile_param_->Clear();
14013     }
14014     if (cached_has_bits & 0x00000200u) {
14015       GOOGLE_DCHECK(batch_norm_param_ != NULL);
14016       batch_norm_param_->Clear();
14017     }
14018     if (cached_has_bits & 0x00000400u) {
14019       GOOGLE_DCHECK(elu_param_ != NULL);
14020       elu_param_->Clear();
14021     }
14022     if (cached_has_bits & 0x00000800u) {
14023       GOOGLE_DCHECK(bias_param_ != NULL);
14024       bias_param_->Clear();
14025     }
14026     if (cached_has_bits & 0x00001000u) {
14027       GOOGLE_DCHECK(scale_param_ != NULL);
14028       scale_param_->Clear();
14029     }
14030     if (cached_has_bits & 0x00002000u) {
14031       GOOGLE_DCHECK(input_param_ != NULL);
14032       input_param_->Clear();
14033     }
14034     if (cached_has_bits & 0x00004000u) {
14035       GOOGLE_DCHECK(crop_param_ != NULL);
14036       crop_param_->Clear();
14037     }
14038     if (cached_has_bits & 0x00008000u) {
14039       GOOGLE_DCHECK(parameter_param_ != NULL);
14040       parameter_param_->Clear();
14041     }
14042   }
14043   if (cached_has_bits & 16711680u) {
14044     if (cached_has_bits & 0x00010000u) {
14045       GOOGLE_DCHECK(recurrent_param_ != NULL);
14046       recurrent_param_->Clear();
14047     }
14048     if (cached_has_bits & 0x00020000u) {
14049       GOOGLE_DCHECK(detection_output_param_ != NULL);
14050       detection_output_param_->Clear();
14051     }
14052     if (cached_has_bits & 0x00040000u) {
14053       GOOGLE_DCHECK(permute_param_ != NULL);
14054       permute_param_->Clear();
14055     }
14056     if (cached_has_bits & 0x00080000u) {
14057       GOOGLE_DCHECK(norm_param_ != NULL);
14058       norm_param_->Clear();
14059     }
14060     if (cached_has_bits & 0x00100000u) {
14061       GOOGLE_DCHECK(prior_box_param_ != NULL);
14062       prior_box_param_->Clear();
14063     }
14064     if (cached_has_bits & 0x00200000u) {
14065       GOOGLE_DCHECK(proposal_param_ != NULL);
14066       proposal_param_->Clear();
14067     }
14068     if (cached_has_bits & 0x00400000u) {
14069       GOOGLE_DCHECK(psroi_pooling_param_ != NULL);
14070       psroi_pooling_param_->Clear();
14071     }
14072     if (cached_has_bits & 0x00800000u) {
14073       GOOGLE_DCHECK(roi_pooling_param_ != NULL);
14074       roi_pooling_param_->Clear();
14075     }
14076   }
14077   phase_ = 0;
14078   _has_bits_.Clear();
14079   _internal_metadata_.Clear();
14080 }
14081 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)14082 bool LayerParameter::MergePartialFromCodedStream(
14083     ::google::protobuf::io::CodedInputStream* input) {
14084 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14085   ::google::protobuf::uint32 tag;
14086   // @@protoc_insertion_point(parse_start:opencv_caffe.LayerParameter)
14087   for (;;) {
14088     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(66133690u);
14089     tag = p.first;
14090     if (!p.second) goto handle_unusual;
14091     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14092       // optional string name = 1;
14093       case 1: {
14094         if (static_cast< ::google::protobuf::uint8>(tag) ==
14095             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
14096           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14097                 input, this->mutable_name()));
14098           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14099             this->name().data(), static_cast<int>(this->name().length()),
14100             ::google::protobuf::internal::WireFormat::PARSE,
14101             "opencv_caffe.LayerParameter.name");
14102         } else {
14103           goto handle_unusual;
14104         }
14105         break;
14106       }
14107 
14108       // optional string type = 2;
14109       case 2: {
14110         if (static_cast< ::google::protobuf::uint8>(tag) ==
14111             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
14112           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14113                 input, this->mutable_type()));
14114           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14115             this->type().data(), static_cast<int>(this->type().length()),
14116             ::google::protobuf::internal::WireFormat::PARSE,
14117             "opencv_caffe.LayerParameter.type");
14118         } else {
14119           goto handle_unusual;
14120         }
14121         break;
14122       }
14123 
14124       // repeated string bottom = 3;
14125       case 3: {
14126         if (static_cast< ::google::protobuf::uint8>(tag) ==
14127             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
14128           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14129                 input, this->add_bottom()));
14130           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14131             this->bottom(this->bottom_size() - 1).data(),
14132             static_cast<int>(this->bottom(this->bottom_size() - 1).length()),
14133             ::google::protobuf::internal::WireFormat::PARSE,
14134             "opencv_caffe.LayerParameter.bottom");
14135         } else {
14136           goto handle_unusual;
14137         }
14138         break;
14139       }
14140 
14141       // repeated string top = 4;
14142       case 4: {
14143         if (static_cast< ::google::protobuf::uint8>(tag) ==
14144             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
14145           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14146                 input, this->add_top()));
14147           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14148             this->top(this->top_size() - 1).data(),
14149             static_cast<int>(this->top(this->top_size() - 1).length()),
14150             ::google::protobuf::internal::WireFormat::PARSE,
14151             "opencv_caffe.LayerParameter.top");
14152         } else {
14153           goto handle_unusual;
14154         }
14155         break;
14156       }
14157 
14158       // repeated float loss_weight = 5;
14159       case 5: {
14160         if (static_cast< ::google::protobuf::uint8>(tag) ==
14161             static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
14162           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
14163                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
14164                  1, 45u, input, this->mutable_loss_weight())));
14165         } else if (
14166             static_cast< ::google::protobuf::uint8>(tag) ==
14167             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
14168           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
14169                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
14170                  input, this->mutable_loss_weight())));
14171         } else {
14172           goto handle_unusual;
14173         }
14174         break;
14175       }
14176 
14177       // repeated .opencv_caffe.ParamSpec param = 6;
14178       case 6: {
14179         if (static_cast< ::google::protobuf::uint8>(tag) ==
14180             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
14181           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_param()));
14182         } else {
14183           goto handle_unusual;
14184         }
14185         break;
14186       }
14187 
14188       // repeated .opencv_caffe.BlobProto blobs = 7;
14189       case 7: {
14190         if (static_cast< ::google::protobuf::uint8>(tag) ==
14191             static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
14192           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_blobs()));
14193         } else {
14194           goto handle_unusual;
14195         }
14196         break;
14197       }
14198 
14199       // repeated .opencv_caffe.NetStateRule include = 8;
14200       case 8: {
14201         if (static_cast< ::google::protobuf::uint8>(tag) ==
14202             static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
14203           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_include()));
14204         } else {
14205           goto handle_unusual;
14206         }
14207         break;
14208       }
14209 
14210       // repeated .opencv_caffe.NetStateRule exclude = 9;
14211       case 9: {
14212         if (static_cast< ::google::protobuf::uint8>(tag) ==
14213             static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
14214           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_exclude()));
14215         } else {
14216           goto handle_unusual;
14217         }
14218         break;
14219       }
14220 
14221       // optional .opencv_caffe.Phase phase = 10;
14222       case 10: {
14223         if (static_cast< ::google::protobuf::uint8>(tag) ==
14224             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
14225           int value;
14226           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14227                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
14228                  input, &value)));
14229           if (::opencv_caffe::Phase_IsValid(value)) {
14230             set_phase(static_cast< ::opencv_caffe::Phase >(value));
14231           } else {
14232             mutable_unknown_fields()->AddVarint(
14233                 10, static_cast< ::google::protobuf::uint64>(value));
14234           }
14235         } else {
14236           goto handle_unusual;
14237         }
14238         break;
14239       }
14240 
14241       // repeated bool propagate_down = 11;
14242       case 11: {
14243         if (static_cast< ::google::protobuf::uint8>(tag) ==
14244             static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
14245           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
14246                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
14247                  1, 88u, input, this->mutable_propagate_down())));
14248         } else if (
14249             static_cast< ::google::protobuf::uint8>(tag) ==
14250             static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
14251           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
14252                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
14253                  input, this->mutable_propagate_down())));
14254         } else {
14255           goto handle_unusual;
14256         }
14257         break;
14258       }
14259 
14260       // optional .opencv_caffe.TransformationParameter transform_param = 100;
14261       case 100: {
14262         if (static_cast< ::google::protobuf::uint8>(tag) ==
14263             static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) {
14264           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14265                input, mutable_transform_param()));
14266         } else {
14267           goto handle_unusual;
14268         }
14269         break;
14270       }
14271 
14272       // optional .opencv_caffe.LossParameter loss_param = 101;
14273       case 101: {
14274         if (static_cast< ::google::protobuf::uint8>(tag) ==
14275             static_cast< ::google::protobuf::uint8>(42u /* 810 & 0xFF */)) {
14276           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14277                input, mutable_loss_param()));
14278         } else {
14279           goto handle_unusual;
14280         }
14281         break;
14282       }
14283 
14284       // optional .opencv_caffe.AccuracyParameter accuracy_param = 102;
14285       case 102: {
14286         if (static_cast< ::google::protobuf::uint8>(tag) ==
14287             static_cast< ::google::protobuf::uint8>(50u /* 818 & 0xFF */)) {
14288           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14289                input, mutable_accuracy_param()));
14290         } else {
14291           goto handle_unusual;
14292         }
14293         break;
14294       }
14295 
14296       // optional .opencv_caffe.ArgMaxParameter argmax_param = 103;
14297       case 103: {
14298         if (static_cast< ::google::protobuf::uint8>(tag) ==
14299             static_cast< ::google::protobuf::uint8>(58u /* 826 & 0xFF */)) {
14300           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14301                input, mutable_argmax_param()));
14302         } else {
14303           goto handle_unusual;
14304         }
14305         break;
14306       }
14307 
14308       // optional .opencv_caffe.ConcatParameter concat_param = 104;
14309       case 104: {
14310         if (static_cast< ::google::protobuf::uint8>(tag) ==
14311             static_cast< ::google::protobuf::uint8>(66u /* 834 & 0xFF */)) {
14312           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14313                input, mutable_concat_param()));
14314         } else {
14315           goto handle_unusual;
14316         }
14317         break;
14318       }
14319 
14320       // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105;
14321       case 105: {
14322         if (static_cast< ::google::protobuf::uint8>(tag) ==
14323             static_cast< ::google::protobuf::uint8>(74u /* 842 & 0xFF */)) {
14324           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14325                input, mutable_contrastive_loss_param()));
14326         } else {
14327           goto handle_unusual;
14328         }
14329         break;
14330       }
14331 
14332       // optional .opencv_caffe.ConvolutionParameter convolution_param = 106;
14333       case 106: {
14334         if (static_cast< ::google::protobuf::uint8>(tag) ==
14335             static_cast< ::google::protobuf::uint8>(82u /* 850 & 0xFF */)) {
14336           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14337                input, mutable_convolution_param()));
14338         } else {
14339           goto handle_unusual;
14340         }
14341         break;
14342       }
14343 
14344       // optional .opencv_caffe.DataParameter data_param = 107;
14345       case 107: {
14346         if (static_cast< ::google::protobuf::uint8>(tag) ==
14347             static_cast< ::google::protobuf::uint8>(90u /* 858 & 0xFF */)) {
14348           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14349                input, mutable_data_param()));
14350         } else {
14351           goto handle_unusual;
14352         }
14353         break;
14354       }
14355 
14356       // optional .opencv_caffe.DropoutParameter dropout_param = 108;
14357       case 108: {
14358         if (static_cast< ::google::protobuf::uint8>(tag) ==
14359             static_cast< ::google::protobuf::uint8>(98u /* 866 & 0xFF */)) {
14360           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14361                input, mutable_dropout_param()));
14362         } else {
14363           goto handle_unusual;
14364         }
14365         break;
14366       }
14367 
14368       // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109;
14369       case 109: {
14370         if (static_cast< ::google::protobuf::uint8>(tag) ==
14371             static_cast< ::google::protobuf::uint8>(106u /* 874 & 0xFF */)) {
14372           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14373                input, mutable_dummy_data_param()));
14374         } else {
14375           goto handle_unusual;
14376         }
14377         break;
14378       }
14379 
14380       // optional .opencv_caffe.EltwiseParameter eltwise_param = 110;
14381       case 110: {
14382         if (static_cast< ::google::protobuf::uint8>(tag) ==
14383             static_cast< ::google::protobuf::uint8>(114u /* 882 & 0xFF */)) {
14384           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14385                input, mutable_eltwise_param()));
14386         } else {
14387           goto handle_unusual;
14388         }
14389         break;
14390       }
14391 
14392       // optional .opencv_caffe.ExpParameter exp_param = 111;
14393       case 111: {
14394         if (static_cast< ::google::protobuf::uint8>(tag) ==
14395             static_cast< ::google::protobuf::uint8>(122u /* 890 & 0xFF */)) {
14396           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14397                input, mutable_exp_param()));
14398         } else {
14399           goto handle_unusual;
14400         }
14401         break;
14402       }
14403 
14404       // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112;
14405       case 112: {
14406         if (static_cast< ::google::protobuf::uint8>(tag) ==
14407             static_cast< ::google::protobuf::uint8>(130u /* 898 & 0xFF */)) {
14408           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14409                input, mutable_hdf5_data_param()));
14410         } else {
14411           goto handle_unusual;
14412         }
14413         break;
14414       }
14415 
14416       // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113;
14417       case 113: {
14418         if (static_cast< ::google::protobuf::uint8>(tag) ==
14419             static_cast< ::google::protobuf::uint8>(138u /* 906 & 0xFF */)) {
14420           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14421                input, mutable_hdf5_output_param()));
14422         } else {
14423           goto handle_unusual;
14424         }
14425         break;
14426       }
14427 
14428       // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114;
14429       case 114: {
14430         if (static_cast< ::google::protobuf::uint8>(tag) ==
14431             static_cast< ::google::protobuf::uint8>(146u /* 914 & 0xFF */)) {
14432           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14433                input, mutable_hinge_loss_param()));
14434         } else {
14435           goto handle_unusual;
14436         }
14437         break;
14438       }
14439 
14440       // optional .opencv_caffe.ImageDataParameter image_data_param = 115;
14441       case 115: {
14442         if (static_cast< ::google::protobuf::uint8>(tag) ==
14443             static_cast< ::google::protobuf::uint8>(154u /* 922 & 0xFF */)) {
14444           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14445                input, mutable_image_data_param()));
14446         } else {
14447           goto handle_unusual;
14448         }
14449         break;
14450       }
14451 
14452       // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116;
14453       case 116: {
14454         if (static_cast< ::google::protobuf::uint8>(tag) ==
14455             static_cast< ::google::protobuf::uint8>(162u /* 930 & 0xFF */)) {
14456           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14457                input, mutable_infogain_loss_param()));
14458         } else {
14459           goto handle_unusual;
14460         }
14461         break;
14462       }
14463 
14464       // optional .opencv_caffe.InnerProductParameter inner_product_param = 117;
14465       case 117: {
14466         if (static_cast< ::google::protobuf::uint8>(tag) ==
14467             static_cast< ::google::protobuf::uint8>(170u /* 938 & 0xFF */)) {
14468           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14469                input, mutable_inner_product_param()));
14470         } else {
14471           goto handle_unusual;
14472         }
14473         break;
14474       }
14475 
14476       // optional .opencv_caffe.LRNParameter lrn_param = 118;
14477       case 118: {
14478         if (static_cast< ::google::protobuf::uint8>(tag) ==
14479             static_cast< ::google::protobuf::uint8>(178u /* 946 & 0xFF */)) {
14480           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14481                input, mutable_lrn_param()));
14482         } else {
14483           goto handle_unusual;
14484         }
14485         break;
14486       }
14487 
14488       // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119;
14489       case 119: {
14490         if (static_cast< ::google::protobuf::uint8>(tag) ==
14491             static_cast< ::google::protobuf::uint8>(186u /* 954 & 0xFF */)) {
14492           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14493                input, mutable_memory_data_param()));
14494         } else {
14495           goto handle_unusual;
14496         }
14497         break;
14498       }
14499 
14500       // optional .opencv_caffe.MVNParameter mvn_param = 120;
14501       case 120: {
14502         if (static_cast< ::google::protobuf::uint8>(tag) ==
14503             static_cast< ::google::protobuf::uint8>(194u /* 962 & 0xFF */)) {
14504           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14505                input, mutable_mvn_param()));
14506         } else {
14507           goto handle_unusual;
14508         }
14509         break;
14510       }
14511 
14512       // optional .opencv_caffe.PoolingParameter pooling_param = 121;
14513       case 121: {
14514         if (static_cast< ::google::protobuf::uint8>(tag) ==
14515             static_cast< ::google::protobuf::uint8>(202u /* 970 & 0xFF */)) {
14516           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14517                input, mutable_pooling_param()));
14518         } else {
14519           goto handle_unusual;
14520         }
14521         break;
14522       }
14523 
14524       // optional .opencv_caffe.PowerParameter power_param = 122;
14525       case 122: {
14526         if (static_cast< ::google::protobuf::uint8>(tag) ==
14527             static_cast< ::google::protobuf::uint8>(210u /* 978 & 0xFF */)) {
14528           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14529                input, mutable_power_param()));
14530         } else {
14531           goto handle_unusual;
14532         }
14533         break;
14534       }
14535 
14536       // optional .opencv_caffe.ReLUParameter relu_param = 123;
14537       case 123: {
14538         if (static_cast< ::google::protobuf::uint8>(tag) ==
14539             static_cast< ::google::protobuf::uint8>(218u /* 986 & 0xFF */)) {
14540           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14541                input, mutable_relu_param()));
14542         } else {
14543           goto handle_unusual;
14544         }
14545         break;
14546       }
14547 
14548       // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124;
14549       case 124: {
14550         if (static_cast< ::google::protobuf::uint8>(tag) ==
14551             static_cast< ::google::protobuf::uint8>(226u /* 994 & 0xFF */)) {
14552           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14553                input, mutable_sigmoid_param()));
14554         } else {
14555           goto handle_unusual;
14556         }
14557         break;
14558       }
14559 
14560       // optional .opencv_caffe.SoftmaxParameter softmax_param = 125;
14561       case 125: {
14562         if (static_cast< ::google::protobuf::uint8>(tag) ==
14563             static_cast< ::google::protobuf::uint8>(234u /* 1002 & 0xFF */)) {
14564           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14565                input, mutable_softmax_param()));
14566         } else {
14567           goto handle_unusual;
14568         }
14569         break;
14570       }
14571 
14572       // optional .opencv_caffe.SliceParameter slice_param = 126;
14573       case 126: {
14574         if (static_cast< ::google::protobuf::uint8>(tag) ==
14575             static_cast< ::google::protobuf::uint8>(242u /* 1010 & 0xFF */)) {
14576           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14577                input, mutable_slice_param()));
14578         } else {
14579           goto handle_unusual;
14580         }
14581         break;
14582       }
14583 
14584       // optional .opencv_caffe.TanHParameter tanh_param = 127;
14585       case 127: {
14586         if (static_cast< ::google::protobuf::uint8>(tag) ==
14587             static_cast< ::google::protobuf::uint8>(250u /* 1018 & 0xFF */)) {
14588           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14589                input, mutable_tanh_param()));
14590         } else {
14591           goto handle_unusual;
14592         }
14593         break;
14594       }
14595 
14596       // optional .opencv_caffe.ThresholdParameter threshold_param = 128;
14597       case 128: {
14598         if (static_cast< ::google::protobuf::uint8>(tag) ==
14599             static_cast< ::google::protobuf::uint8>(2u /* 1026 & 0xFF */)) {
14600           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14601                input, mutable_threshold_param()));
14602         } else {
14603           goto handle_unusual;
14604         }
14605         break;
14606       }
14607 
14608       // optional .opencv_caffe.WindowDataParameter window_data_param = 129;
14609       case 129: {
14610         if (static_cast< ::google::protobuf::uint8>(tag) ==
14611             static_cast< ::google::protobuf::uint8>(10u /* 1034 & 0xFF */)) {
14612           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14613                input, mutable_window_data_param()));
14614         } else {
14615           goto handle_unusual;
14616         }
14617         break;
14618       }
14619 
14620       // optional .opencv_caffe.PythonParameter python_param = 130;
14621       case 130: {
14622         if (static_cast< ::google::protobuf::uint8>(tag) ==
14623             static_cast< ::google::protobuf::uint8>(18u /* 1042 & 0xFF */)) {
14624           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14625                input, mutable_python_param()));
14626         } else {
14627           goto handle_unusual;
14628         }
14629         break;
14630       }
14631 
14632       // optional .opencv_caffe.PReLUParameter prelu_param = 131;
14633       case 131: {
14634         if (static_cast< ::google::protobuf::uint8>(tag) ==
14635             static_cast< ::google::protobuf::uint8>(26u /* 1050 & 0xFF */)) {
14636           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14637                input, mutable_prelu_param()));
14638         } else {
14639           goto handle_unusual;
14640         }
14641         break;
14642       }
14643 
14644       // optional .opencv_caffe.SPPParameter spp_param = 132;
14645       case 132: {
14646         if (static_cast< ::google::protobuf::uint8>(tag) ==
14647             static_cast< ::google::protobuf::uint8>(34u /* 1058 & 0xFF */)) {
14648           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14649                input, mutable_spp_param()));
14650         } else {
14651           goto handle_unusual;
14652         }
14653         break;
14654       }
14655 
14656       // optional .opencv_caffe.ReshapeParameter reshape_param = 133;
14657       case 133: {
14658         if (static_cast< ::google::protobuf::uint8>(tag) ==
14659             static_cast< ::google::protobuf::uint8>(42u /* 1066 & 0xFF */)) {
14660           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14661                input, mutable_reshape_param()));
14662         } else {
14663           goto handle_unusual;
14664         }
14665         break;
14666       }
14667 
14668       // optional .opencv_caffe.LogParameter log_param = 134;
14669       case 134: {
14670         if (static_cast< ::google::protobuf::uint8>(tag) ==
14671             static_cast< ::google::protobuf::uint8>(50u /* 1074 & 0xFF */)) {
14672           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14673                input, mutable_log_param()));
14674         } else {
14675           goto handle_unusual;
14676         }
14677         break;
14678       }
14679 
14680       // optional .opencv_caffe.FlattenParameter flatten_param = 135;
14681       case 135: {
14682         if (static_cast< ::google::protobuf::uint8>(tag) ==
14683             static_cast< ::google::protobuf::uint8>(58u /* 1082 & 0xFF */)) {
14684           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14685                input, mutable_flatten_param()));
14686         } else {
14687           goto handle_unusual;
14688         }
14689         break;
14690       }
14691 
14692       // optional .opencv_caffe.ReductionParameter reduction_param = 136;
14693       case 136: {
14694         if (static_cast< ::google::protobuf::uint8>(tag) ==
14695             static_cast< ::google::protobuf::uint8>(66u /* 1090 & 0xFF */)) {
14696           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14697                input, mutable_reduction_param()));
14698         } else {
14699           goto handle_unusual;
14700         }
14701         break;
14702       }
14703 
14704       // optional .opencv_caffe.EmbedParameter embed_param = 137;
14705       case 137: {
14706         if (static_cast< ::google::protobuf::uint8>(tag) ==
14707             static_cast< ::google::protobuf::uint8>(74u /* 1098 & 0xFF */)) {
14708           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14709                input, mutable_embed_param()));
14710         } else {
14711           goto handle_unusual;
14712         }
14713         break;
14714       }
14715 
14716       // optional .opencv_caffe.TileParameter tile_param = 138;
14717       case 138: {
14718         if (static_cast< ::google::protobuf::uint8>(tag) ==
14719             static_cast< ::google::protobuf::uint8>(82u /* 1106 & 0xFF */)) {
14720           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14721                input, mutable_tile_param()));
14722         } else {
14723           goto handle_unusual;
14724         }
14725         break;
14726       }
14727 
14728       // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139;
14729       case 139: {
14730         if (static_cast< ::google::protobuf::uint8>(tag) ==
14731             static_cast< ::google::protobuf::uint8>(90u /* 1114 & 0xFF */)) {
14732           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14733                input, mutable_batch_norm_param()));
14734         } else {
14735           goto handle_unusual;
14736         }
14737         break;
14738       }
14739 
14740       // optional .opencv_caffe.ELUParameter elu_param = 140;
14741       case 140: {
14742         if (static_cast< ::google::protobuf::uint8>(tag) ==
14743             static_cast< ::google::protobuf::uint8>(98u /* 1122 & 0xFF */)) {
14744           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14745                input, mutable_elu_param()));
14746         } else {
14747           goto handle_unusual;
14748         }
14749         break;
14750       }
14751 
14752       // optional .opencv_caffe.BiasParameter bias_param = 141;
14753       case 141: {
14754         if (static_cast< ::google::protobuf::uint8>(tag) ==
14755             static_cast< ::google::protobuf::uint8>(106u /* 1130 & 0xFF */)) {
14756           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14757                input, mutable_bias_param()));
14758         } else {
14759           goto handle_unusual;
14760         }
14761         break;
14762       }
14763 
14764       // optional .opencv_caffe.ScaleParameter scale_param = 142;
14765       case 142: {
14766         if (static_cast< ::google::protobuf::uint8>(tag) ==
14767             static_cast< ::google::protobuf::uint8>(114u /* 1138 & 0xFF */)) {
14768           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14769                input, mutable_scale_param()));
14770         } else {
14771           goto handle_unusual;
14772         }
14773         break;
14774       }
14775 
14776       // optional .opencv_caffe.InputParameter input_param = 143;
14777       case 143: {
14778         if (static_cast< ::google::protobuf::uint8>(tag) ==
14779             static_cast< ::google::protobuf::uint8>(122u /* 1146 & 0xFF */)) {
14780           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14781                input, mutable_input_param()));
14782         } else {
14783           goto handle_unusual;
14784         }
14785         break;
14786       }
14787 
14788       // optional .opencv_caffe.CropParameter crop_param = 144;
14789       case 144: {
14790         if (static_cast< ::google::protobuf::uint8>(tag) ==
14791             static_cast< ::google::protobuf::uint8>(130u /* 1154 & 0xFF */)) {
14792           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14793                input, mutable_crop_param()));
14794         } else {
14795           goto handle_unusual;
14796         }
14797         break;
14798       }
14799 
14800       // optional .opencv_caffe.ParameterParameter parameter_param = 145;
14801       case 145: {
14802         if (static_cast< ::google::protobuf::uint8>(tag) ==
14803             static_cast< ::google::protobuf::uint8>(138u /* 1162 & 0xFF */)) {
14804           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14805                input, mutable_parameter_param()));
14806         } else {
14807           goto handle_unusual;
14808         }
14809         break;
14810       }
14811 
14812       // optional .opencv_caffe.RecurrentParameter recurrent_param = 146;
14813       case 146: {
14814         if (static_cast< ::google::protobuf::uint8>(tag) ==
14815             static_cast< ::google::protobuf::uint8>(146u /* 1170 & 0xFF */)) {
14816           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14817                input, mutable_recurrent_param()));
14818         } else {
14819           goto handle_unusual;
14820         }
14821         break;
14822       }
14823 
14824       // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147;
14825       case 147: {
14826         if (static_cast< ::google::protobuf::uint8>(tag) ==
14827             static_cast< ::google::protobuf::uint8>(154u /* 1178 & 0xFF */)) {
14828           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14829                input, mutable_detection_output_param()));
14830         } else {
14831           goto handle_unusual;
14832         }
14833         break;
14834       }
14835 
14836       // optional .opencv_caffe.PermuteParameter permute_param = 148;
14837       case 148: {
14838         if (static_cast< ::google::protobuf::uint8>(tag) ==
14839             static_cast< ::google::protobuf::uint8>(162u /* 1186 & 0xFF */)) {
14840           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14841                input, mutable_permute_param()));
14842         } else {
14843           goto handle_unusual;
14844         }
14845         break;
14846       }
14847 
14848       // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149;
14849       case 149: {
14850         if (static_cast< ::google::protobuf::uint8>(tag) ==
14851             static_cast< ::google::protobuf::uint8>(170u /* 1194 & 0xFF */)) {
14852           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14853                input, mutable_norm_param()));
14854         } else {
14855           goto handle_unusual;
14856         }
14857         break;
14858       }
14859 
14860       // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150;
14861       case 150: {
14862         if (static_cast< ::google::protobuf::uint8>(tag) ==
14863             static_cast< ::google::protobuf::uint8>(178u /* 1202 & 0xFF */)) {
14864           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14865                input, mutable_prior_box_param()));
14866         } else {
14867           goto handle_unusual;
14868         }
14869         break;
14870       }
14871 
14872       // optional .opencv_caffe.ProposalParameter proposal_param = 201;
14873       case 201: {
14874         if (static_cast< ::google::protobuf::uint8>(tag) ==
14875             static_cast< ::google::protobuf::uint8>(74u /* 1610 & 0xFF */)) {
14876           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14877                input, mutable_proposal_param()));
14878         } else {
14879           goto handle_unusual;
14880         }
14881         break;
14882       }
14883 
14884       // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002;
14885       case 10002: {
14886         if (static_cast< ::google::protobuf::uint8>(tag) ==
14887             static_cast< ::google::protobuf::uint8>(146u /* 80018 & 0xFF */)) {
14888           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14889                input, mutable_psroi_pooling_param()));
14890         } else {
14891           goto handle_unusual;
14892         }
14893         break;
14894       }
14895 
14896       // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711;
14897       case 8266711: {
14898         if (static_cast< ::google::protobuf::uint8>(tag) ==
14899             static_cast< ::google::protobuf::uint8>(186u /* 66133690 & 0xFF */)) {
14900           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14901                input, mutable_roi_pooling_param()));
14902         } else {
14903           goto handle_unusual;
14904         }
14905         break;
14906       }
14907 
14908       default: {
14909       handle_unusual:
14910         if (tag == 0) {
14911           goto success;
14912         }
14913         DO_(::google::protobuf::internal::WireFormat::SkipField(
14914               input, tag, _internal_metadata_.mutable_unknown_fields()));
14915         break;
14916       }
14917     }
14918   }
14919 success:
14920   // @@protoc_insertion_point(parse_success:opencv_caffe.LayerParameter)
14921   return true;
14922 failure:
14923   // @@protoc_insertion_point(parse_failure:opencv_caffe.LayerParameter)
14924   return false;
14925 #undef DO_
14926 }
14927 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const14928 void LayerParameter::SerializeWithCachedSizes(
14929     ::google::protobuf::io::CodedOutputStream* output) const {
14930   // @@protoc_insertion_point(serialize_start:opencv_caffe.LayerParameter)
14931   ::google::protobuf::uint32 cached_has_bits = 0;
14932   (void) cached_has_bits;
14933 
14934   cached_has_bits = _has_bits_[0];
14935   // optional string name = 1;
14936   if (cached_has_bits & 0x00000001u) {
14937     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14938       this->name().data(), static_cast<int>(this->name().length()),
14939       ::google::protobuf::internal::WireFormat::SERIALIZE,
14940       "opencv_caffe.LayerParameter.name");
14941     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14942       1, this->name(), output);
14943   }
14944 
14945   // optional string type = 2;
14946   if (cached_has_bits & 0x00000002u) {
14947     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14948       this->type().data(), static_cast<int>(this->type().length()),
14949       ::google::protobuf::internal::WireFormat::SERIALIZE,
14950       "opencv_caffe.LayerParameter.type");
14951     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14952       2, this->type(), output);
14953   }
14954 
14955   // repeated string bottom = 3;
14956   for (int i = 0, n = this->bottom_size(); i < n; i++) {
14957     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14958       this->bottom(i).data(), static_cast<int>(this->bottom(i).length()),
14959       ::google::protobuf::internal::WireFormat::SERIALIZE,
14960       "opencv_caffe.LayerParameter.bottom");
14961     ::google::protobuf::internal::WireFormatLite::WriteString(
14962       3, this->bottom(i), output);
14963   }
14964 
14965   // repeated string top = 4;
14966   for (int i = 0, n = this->top_size(); i < n; i++) {
14967     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14968       this->top(i).data(), static_cast<int>(this->top(i).length()),
14969       ::google::protobuf::internal::WireFormat::SERIALIZE,
14970       "opencv_caffe.LayerParameter.top");
14971     ::google::protobuf::internal::WireFormatLite::WriteString(
14972       4, this->top(i), output);
14973   }
14974 
14975   // repeated float loss_weight = 5;
14976   for (int i = 0, n = this->loss_weight_size(); i < n; i++) {
14977     ::google::protobuf::internal::WireFormatLite::WriteFloat(
14978       5, this->loss_weight(i), output);
14979   }
14980 
14981   // repeated .opencv_caffe.ParamSpec param = 6;
14982   for (unsigned int i = 0,
14983       n = static_cast<unsigned int>(this->param_size()); i < n; i++) {
14984     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14985       6, this->param(static_cast<int>(i)), output);
14986   }
14987 
14988   // repeated .opencv_caffe.BlobProto blobs = 7;
14989   for (unsigned int i = 0,
14990       n = static_cast<unsigned int>(this->blobs_size()); i < n; i++) {
14991     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14992       7, this->blobs(static_cast<int>(i)), output);
14993   }
14994 
14995   // repeated .opencv_caffe.NetStateRule include = 8;
14996   for (unsigned int i = 0,
14997       n = static_cast<unsigned int>(this->include_size()); i < n; i++) {
14998     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14999       8, this->include(static_cast<int>(i)), output);
15000   }
15001 
15002   // repeated .opencv_caffe.NetStateRule exclude = 9;
15003   for (unsigned int i = 0,
15004       n = static_cast<unsigned int>(this->exclude_size()); i < n; i++) {
15005     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15006       9, this->exclude(static_cast<int>(i)), output);
15007   }
15008 
15009   cached_has_bits = _has_bits_[1];
15010   // optional .opencv_caffe.Phase phase = 10;
15011   if (cached_has_bits & 0x01000000u) {
15012     ::google::protobuf::internal::WireFormatLite::WriteEnum(
15013       10, this->phase(), output);
15014   }
15015 
15016   // repeated bool propagate_down = 11;
15017   for (int i = 0, n = this->propagate_down_size(); i < n; i++) {
15018     ::google::protobuf::internal::WireFormatLite::WriteBool(
15019       11, this->propagate_down(i), output);
15020   }
15021 
15022   cached_has_bits = _has_bits_[0];
15023   // optional .opencv_caffe.TransformationParameter transform_param = 100;
15024   if (cached_has_bits & 0x00000004u) {
15025     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15026       100, *this->transform_param_, output);
15027   }
15028 
15029   // optional .opencv_caffe.LossParameter loss_param = 101;
15030   if (cached_has_bits & 0x00000008u) {
15031     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15032       101, *this->loss_param_, output);
15033   }
15034 
15035   // optional .opencv_caffe.AccuracyParameter accuracy_param = 102;
15036   if (cached_has_bits & 0x00000010u) {
15037     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15038       102, *this->accuracy_param_, output);
15039   }
15040 
15041   // optional .opencv_caffe.ArgMaxParameter argmax_param = 103;
15042   if (cached_has_bits & 0x00000020u) {
15043     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15044       103, *this->argmax_param_, output);
15045   }
15046 
15047   // optional .opencv_caffe.ConcatParameter concat_param = 104;
15048   if (cached_has_bits & 0x00000040u) {
15049     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15050       104, *this->concat_param_, output);
15051   }
15052 
15053   // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105;
15054   if (cached_has_bits & 0x00000080u) {
15055     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15056       105, *this->contrastive_loss_param_, output);
15057   }
15058 
15059   // optional .opencv_caffe.ConvolutionParameter convolution_param = 106;
15060   if (cached_has_bits & 0x00000100u) {
15061     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15062       106, *this->convolution_param_, output);
15063   }
15064 
15065   // optional .opencv_caffe.DataParameter data_param = 107;
15066   if (cached_has_bits & 0x00000200u) {
15067     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15068       107, *this->data_param_, output);
15069   }
15070 
15071   // optional .opencv_caffe.DropoutParameter dropout_param = 108;
15072   if (cached_has_bits & 0x00000400u) {
15073     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15074       108, *this->dropout_param_, output);
15075   }
15076 
15077   // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109;
15078   if (cached_has_bits & 0x00000800u) {
15079     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15080       109, *this->dummy_data_param_, output);
15081   }
15082 
15083   // optional .opencv_caffe.EltwiseParameter eltwise_param = 110;
15084   if (cached_has_bits & 0x00001000u) {
15085     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15086       110, *this->eltwise_param_, output);
15087   }
15088 
15089   // optional .opencv_caffe.ExpParameter exp_param = 111;
15090   if (cached_has_bits & 0x00002000u) {
15091     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15092       111, *this->exp_param_, output);
15093   }
15094 
15095   // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112;
15096   if (cached_has_bits & 0x00004000u) {
15097     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15098       112, *this->hdf5_data_param_, output);
15099   }
15100 
15101   // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113;
15102   if (cached_has_bits & 0x00008000u) {
15103     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15104       113, *this->hdf5_output_param_, output);
15105   }
15106 
15107   // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114;
15108   if (cached_has_bits & 0x00010000u) {
15109     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15110       114, *this->hinge_loss_param_, output);
15111   }
15112 
15113   // optional .opencv_caffe.ImageDataParameter image_data_param = 115;
15114   if (cached_has_bits & 0x00020000u) {
15115     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15116       115, *this->image_data_param_, output);
15117   }
15118 
15119   // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116;
15120   if (cached_has_bits & 0x00040000u) {
15121     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15122       116, *this->infogain_loss_param_, output);
15123   }
15124 
15125   // optional .opencv_caffe.InnerProductParameter inner_product_param = 117;
15126   if (cached_has_bits & 0x00080000u) {
15127     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15128       117, *this->inner_product_param_, output);
15129   }
15130 
15131   // optional .opencv_caffe.LRNParameter lrn_param = 118;
15132   if (cached_has_bits & 0x00100000u) {
15133     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15134       118, *this->lrn_param_, output);
15135   }
15136 
15137   // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119;
15138   if (cached_has_bits & 0x00200000u) {
15139     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15140       119, *this->memory_data_param_, output);
15141   }
15142 
15143   // optional .opencv_caffe.MVNParameter mvn_param = 120;
15144   if (cached_has_bits & 0x00400000u) {
15145     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15146       120, *this->mvn_param_, output);
15147   }
15148 
15149   // optional .opencv_caffe.PoolingParameter pooling_param = 121;
15150   if (cached_has_bits & 0x00800000u) {
15151     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15152       121, *this->pooling_param_, output);
15153   }
15154 
15155   // optional .opencv_caffe.PowerParameter power_param = 122;
15156   if (cached_has_bits & 0x01000000u) {
15157     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15158       122, *this->power_param_, output);
15159   }
15160 
15161   // optional .opencv_caffe.ReLUParameter relu_param = 123;
15162   if (cached_has_bits & 0x02000000u) {
15163     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15164       123, *this->relu_param_, output);
15165   }
15166 
15167   // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124;
15168   if (cached_has_bits & 0x04000000u) {
15169     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15170       124, *this->sigmoid_param_, output);
15171   }
15172 
15173   // optional .opencv_caffe.SoftmaxParameter softmax_param = 125;
15174   if (cached_has_bits & 0x08000000u) {
15175     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15176       125, *this->softmax_param_, output);
15177   }
15178 
15179   // optional .opencv_caffe.SliceParameter slice_param = 126;
15180   if (cached_has_bits & 0x10000000u) {
15181     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15182       126, *this->slice_param_, output);
15183   }
15184 
15185   // optional .opencv_caffe.TanHParameter tanh_param = 127;
15186   if (cached_has_bits & 0x20000000u) {
15187     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15188       127, *this->tanh_param_, output);
15189   }
15190 
15191   // optional .opencv_caffe.ThresholdParameter threshold_param = 128;
15192   if (cached_has_bits & 0x40000000u) {
15193     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15194       128, *this->threshold_param_, output);
15195   }
15196 
15197   // optional .opencv_caffe.WindowDataParameter window_data_param = 129;
15198   if (cached_has_bits & 0x80000000u) {
15199     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15200       129, *this->window_data_param_, output);
15201   }
15202 
15203   cached_has_bits = _has_bits_[1];
15204   // optional .opencv_caffe.PythonParameter python_param = 130;
15205   if (cached_has_bits & 0x00000001u) {
15206     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15207       130, *this->python_param_, output);
15208   }
15209 
15210   // optional .opencv_caffe.PReLUParameter prelu_param = 131;
15211   if (cached_has_bits & 0x00000002u) {
15212     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15213       131, *this->prelu_param_, output);
15214   }
15215 
15216   // optional .opencv_caffe.SPPParameter spp_param = 132;
15217   if (cached_has_bits & 0x00000004u) {
15218     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15219       132, *this->spp_param_, output);
15220   }
15221 
15222   // optional .opencv_caffe.ReshapeParameter reshape_param = 133;
15223   if (cached_has_bits & 0x00000008u) {
15224     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15225       133, *this->reshape_param_, output);
15226   }
15227 
15228   // optional .opencv_caffe.LogParameter log_param = 134;
15229   if (cached_has_bits & 0x00000010u) {
15230     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15231       134, *this->log_param_, output);
15232   }
15233 
15234   // optional .opencv_caffe.FlattenParameter flatten_param = 135;
15235   if (cached_has_bits & 0x00000020u) {
15236     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15237       135, *this->flatten_param_, output);
15238   }
15239 
15240   // optional .opencv_caffe.ReductionParameter reduction_param = 136;
15241   if (cached_has_bits & 0x00000040u) {
15242     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15243       136, *this->reduction_param_, output);
15244   }
15245 
15246   // optional .opencv_caffe.EmbedParameter embed_param = 137;
15247   if (cached_has_bits & 0x00000080u) {
15248     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15249       137, *this->embed_param_, output);
15250   }
15251 
15252   // optional .opencv_caffe.TileParameter tile_param = 138;
15253   if (cached_has_bits & 0x00000100u) {
15254     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15255       138, *this->tile_param_, output);
15256   }
15257 
15258   // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139;
15259   if (cached_has_bits & 0x00000200u) {
15260     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15261       139, *this->batch_norm_param_, output);
15262   }
15263 
15264   // optional .opencv_caffe.ELUParameter elu_param = 140;
15265   if (cached_has_bits & 0x00000400u) {
15266     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15267       140, *this->elu_param_, output);
15268   }
15269 
15270   // optional .opencv_caffe.BiasParameter bias_param = 141;
15271   if (cached_has_bits & 0x00000800u) {
15272     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15273       141, *this->bias_param_, output);
15274   }
15275 
15276   // optional .opencv_caffe.ScaleParameter scale_param = 142;
15277   if (cached_has_bits & 0x00001000u) {
15278     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15279       142, *this->scale_param_, output);
15280   }
15281 
15282   // optional .opencv_caffe.InputParameter input_param = 143;
15283   if (cached_has_bits & 0x00002000u) {
15284     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15285       143, *this->input_param_, output);
15286   }
15287 
15288   // optional .opencv_caffe.CropParameter crop_param = 144;
15289   if (cached_has_bits & 0x00004000u) {
15290     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15291       144, *this->crop_param_, output);
15292   }
15293 
15294   // optional .opencv_caffe.ParameterParameter parameter_param = 145;
15295   if (cached_has_bits & 0x00008000u) {
15296     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15297       145, *this->parameter_param_, output);
15298   }
15299 
15300   // optional .opencv_caffe.RecurrentParameter recurrent_param = 146;
15301   if (cached_has_bits & 0x00010000u) {
15302     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15303       146, *this->recurrent_param_, output);
15304   }
15305 
15306   // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147;
15307   if (cached_has_bits & 0x00020000u) {
15308     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15309       147, *this->detection_output_param_, output);
15310   }
15311 
15312   // optional .opencv_caffe.PermuteParameter permute_param = 148;
15313   if (cached_has_bits & 0x00040000u) {
15314     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15315       148, *this->permute_param_, output);
15316   }
15317 
15318   // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149;
15319   if (cached_has_bits & 0x00080000u) {
15320     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15321       149, *this->norm_param_, output);
15322   }
15323 
15324   // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150;
15325   if (cached_has_bits & 0x00100000u) {
15326     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15327       150, *this->prior_box_param_, output);
15328   }
15329 
15330   // optional .opencv_caffe.ProposalParameter proposal_param = 201;
15331   if (cached_has_bits & 0x00200000u) {
15332     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15333       201, *this->proposal_param_, output);
15334   }
15335 
15336   // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002;
15337   if (cached_has_bits & 0x00400000u) {
15338     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15339       10002, *this->psroi_pooling_param_, output);
15340   }
15341 
15342   // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711;
15343   if (cached_has_bits & 0x00800000u) {
15344     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15345       8266711, *this->roi_pooling_param_, output);
15346   }
15347 
15348   if (_internal_metadata_.have_unknown_fields()) {
15349     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
15350         _internal_metadata_.unknown_fields(), output);
15351   }
15352   // @@protoc_insertion_point(serialize_end:opencv_caffe.LayerParameter)
15353 }
15354 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const15355 ::google::protobuf::uint8* LayerParameter::InternalSerializeWithCachedSizesToArray(
15356     bool deterministic, ::google::protobuf::uint8* target) const {
15357   (void)deterministic; // Unused
15358   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LayerParameter)
15359   ::google::protobuf::uint32 cached_has_bits = 0;
15360   (void) cached_has_bits;
15361 
15362   cached_has_bits = _has_bits_[0];
15363   // optional string name = 1;
15364   if (cached_has_bits & 0x00000001u) {
15365     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
15366       this->name().data(), static_cast<int>(this->name().length()),
15367       ::google::protobuf::internal::WireFormat::SERIALIZE,
15368       "opencv_caffe.LayerParameter.name");
15369     target =
15370       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
15371         1, this->name(), target);
15372   }
15373 
15374   // optional string type = 2;
15375   if (cached_has_bits & 0x00000002u) {
15376     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
15377       this->type().data(), static_cast<int>(this->type().length()),
15378       ::google::protobuf::internal::WireFormat::SERIALIZE,
15379       "opencv_caffe.LayerParameter.type");
15380     target =
15381       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
15382         2, this->type(), target);
15383   }
15384 
15385   // repeated string bottom = 3;
15386   for (int i = 0, n = this->bottom_size(); i < n; i++) {
15387     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
15388       this->bottom(i).data(), static_cast<int>(this->bottom(i).length()),
15389       ::google::protobuf::internal::WireFormat::SERIALIZE,
15390       "opencv_caffe.LayerParameter.bottom");
15391     target = ::google::protobuf::internal::WireFormatLite::
15392       WriteStringToArray(3, this->bottom(i), target);
15393   }
15394 
15395   // repeated string top = 4;
15396   for (int i = 0, n = this->top_size(); i < n; i++) {
15397     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
15398       this->top(i).data(), static_cast<int>(this->top(i).length()),
15399       ::google::protobuf::internal::WireFormat::SERIALIZE,
15400       "opencv_caffe.LayerParameter.top");
15401     target = ::google::protobuf::internal::WireFormatLite::
15402       WriteStringToArray(4, this->top(i), target);
15403   }
15404 
15405   // repeated float loss_weight = 5;
15406   target = ::google::protobuf::internal::WireFormatLite::
15407     WriteFloatToArray(5, this->loss_weight_, target);
15408 
15409   // repeated .opencv_caffe.ParamSpec param = 6;
15410   for (unsigned int i = 0,
15411       n = static_cast<unsigned int>(this->param_size()); i < n; i++) {
15412     target = ::google::protobuf::internal::WireFormatLite::
15413       InternalWriteMessageToArray(
15414         6, this->param(static_cast<int>(i)), deterministic, target);
15415   }
15416 
15417   // repeated .opencv_caffe.BlobProto blobs = 7;
15418   for (unsigned int i = 0,
15419       n = static_cast<unsigned int>(this->blobs_size()); i < n; i++) {
15420     target = ::google::protobuf::internal::WireFormatLite::
15421       InternalWriteMessageToArray(
15422         7, this->blobs(static_cast<int>(i)), deterministic, target);
15423   }
15424 
15425   // repeated .opencv_caffe.NetStateRule include = 8;
15426   for (unsigned int i = 0,
15427       n = static_cast<unsigned int>(this->include_size()); i < n; i++) {
15428     target = ::google::protobuf::internal::WireFormatLite::
15429       InternalWriteMessageToArray(
15430         8, this->include(static_cast<int>(i)), deterministic, target);
15431   }
15432 
15433   // repeated .opencv_caffe.NetStateRule exclude = 9;
15434   for (unsigned int i = 0,
15435       n = static_cast<unsigned int>(this->exclude_size()); i < n; i++) {
15436     target = ::google::protobuf::internal::WireFormatLite::
15437       InternalWriteMessageToArray(
15438         9, this->exclude(static_cast<int>(i)), deterministic, target);
15439   }
15440 
15441   cached_has_bits = _has_bits_[1];
15442   // optional .opencv_caffe.Phase phase = 10;
15443   if (cached_has_bits & 0x01000000u) {
15444     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
15445       10, this->phase(), target);
15446   }
15447 
15448   // repeated bool propagate_down = 11;
15449   target = ::google::protobuf::internal::WireFormatLite::
15450     WriteBoolToArray(11, this->propagate_down_, target);
15451 
15452   cached_has_bits = _has_bits_[0];
15453   // optional .opencv_caffe.TransformationParameter transform_param = 100;
15454   if (cached_has_bits & 0x00000004u) {
15455     target = ::google::protobuf::internal::WireFormatLite::
15456       InternalWriteMessageToArray(
15457         100, *this->transform_param_, deterministic, target);
15458   }
15459 
15460   // optional .opencv_caffe.LossParameter loss_param = 101;
15461   if (cached_has_bits & 0x00000008u) {
15462     target = ::google::protobuf::internal::WireFormatLite::
15463       InternalWriteMessageToArray(
15464         101, *this->loss_param_, deterministic, target);
15465   }
15466 
15467   // optional .opencv_caffe.AccuracyParameter accuracy_param = 102;
15468   if (cached_has_bits & 0x00000010u) {
15469     target = ::google::protobuf::internal::WireFormatLite::
15470       InternalWriteMessageToArray(
15471         102, *this->accuracy_param_, deterministic, target);
15472   }
15473 
15474   // optional .opencv_caffe.ArgMaxParameter argmax_param = 103;
15475   if (cached_has_bits & 0x00000020u) {
15476     target = ::google::protobuf::internal::WireFormatLite::
15477       InternalWriteMessageToArray(
15478         103, *this->argmax_param_, deterministic, target);
15479   }
15480 
15481   // optional .opencv_caffe.ConcatParameter concat_param = 104;
15482   if (cached_has_bits & 0x00000040u) {
15483     target = ::google::protobuf::internal::WireFormatLite::
15484       InternalWriteMessageToArray(
15485         104, *this->concat_param_, deterministic, target);
15486   }
15487 
15488   // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105;
15489   if (cached_has_bits & 0x00000080u) {
15490     target = ::google::protobuf::internal::WireFormatLite::
15491       InternalWriteMessageToArray(
15492         105, *this->contrastive_loss_param_, deterministic, target);
15493   }
15494 
15495   // optional .opencv_caffe.ConvolutionParameter convolution_param = 106;
15496   if (cached_has_bits & 0x00000100u) {
15497     target = ::google::protobuf::internal::WireFormatLite::
15498       InternalWriteMessageToArray(
15499         106, *this->convolution_param_, deterministic, target);
15500   }
15501 
15502   // optional .opencv_caffe.DataParameter data_param = 107;
15503   if (cached_has_bits & 0x00000200u) {
15504     target = ::google::protobuf::internal::WireFormatLite::
15505       InternalWriteMessageToArray(
15506         107, *this->data_param_, deterministic, target);
15507   }
15508 
15509   // optional .opencv_caffe.DropoutParameter dropout_param = 108;
15510   if (cached_has_bits & 0x00000400u) {
15511     target = ::google::protobuf::internal::WireFormatLite::
15512       InternalWriteMessageToArray(
15513         108, *this->dropout_param_, deterministic, target);
15514   }
15515 
15516   // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109;
15517   if (cached_has_bits & 0x00000800u) {
15518     target = ::google::protobuf::internal::WireFormatLite::
15519       InternalWriteMessageToArray(
15520         109, *this->dummy_data_param_, deterministic, target);
15521   }
15522 
15523   // optional .opencv_caffe.EltwiseParameter eltwise_param = 110;
15524   if (cached_has_bits & 0x00001000u) {
15525     target = ::google::protobuf::internal::WireFormatLite::
15526       InternalWriteMessageToArray(
15527         110, *this->eltwise_param_, deterministic, target);
15528   }
15529 
15530   // optional .opencv_caffe.ExpParameter exp_param = 111;
15531   if (cached_has_bits & 0x00002000u) {
15532     target = ::google::protobuf::internal::WireFormatLite::
15533       InternalWriteMessageToArray(
15534         111, *this->exp_param_, deterministic, target);
15535   }
15536 
15537   // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112;
15538   if (cached_has_bits & 0x00004000u) {
15539     target = ::google::protobuf::internal::WireFormatLite::
15540       InternalWriteMessageToArray(
15541         112, *this->hdf5_data_param_, deterministic, target);
15542   }
15543 
15544   // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113;
15545   if (cached_has_bits & 0x00008000u) {
15546     target = ::google::protobuf::internal::WireFormatLite::
15547       InternalWriteMessageToArray(
15548         113, *this->hdf5_output_param_, deterministic, target);
15549   }
15550 
15551   // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114;
15552   if (cached_has_bits & 0x00010000u) {
15553     target = ::google::protobuf::internal::WireFormatLite::
15554       InternalWriteMessageToArray(
15555         114, *this->hinge_loss_param_, deterministic, target);
15556   }
15557 
15558   // optional .opencv_caffe.ImageDataParameter image_data_param = 115;
15559   if (cached_has_bits & 0x00020000u) {
15560     target = ::google::protobuf::internal::WireFormatLite::
15561       InternalWriteMessageToArray(
15562         115, *this->image_data_param_, deterministic, target);
15563   }
15564 
15565   // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116;
15566   if (cached_has_bits & 0x00040000u) {
15567     target = ::google::protobuf::internal::WireFormatLite::
15568       InternalWriteMessageToArray(
15569         116, *this->infogain_loss_param_, deterministic, target);
15570   }
15571 
15572   // optional .opencv_caffe.InnerProductParameter inner_product_param = 117;
15573   if (cached_has_bits & 0x00080000u) {
15574     target = ::google::protobuf::internal::WireFormatLite::
15575       InternalWriteMessageToArray(
15576         117, *this->inner_product_param_, deterministic, target);
15577   }
15578 
15579   // optional .opencv_caffe.LRNParameter lrn_param = 118;
15580   if (cached_has_bits & 0x00100000u) {
15581     target = ::google::protobuf::internal::WireFormatLite::
15582       InternalWriteMessageToArray(
15583         118, *this->lrn_param_, deterministic, target);
15584   }
15585 
15586   // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119;
15587   if (cached_has_bits & 0x00200000u) {
15588     target = ::google::protobuf::internal::WireFormatLite::
15589       InternalWriteMessageToArray(
15590         119, *this->memory_data_param_, deterministic, target);
15591   }
15592 
15593   // optional .opencv_caffe.MVNParameter mvn_param = 120;
15594   if (cached_has_bits & 0x00400000u) {
15595     target = ::google::protobuf::internal::WireFormatLite::
15596       InternalWriteMessageToArray(
15597         120, *this->mvn_param_, deterministic, target);
15598   }
15599 
15600   // optional .opencv_caffe.PoolingParameter pooling_param = 121;
15601   if (cached_has_bits & 0x00800000u) {
15602     target = ::google::protobuf::internal::WireFormatLite::
15603       InternalWriteMessageToArray(
15604         121, *this->pooling_param_, deterministic, target);
15605   }
15606 
15607   // optional .opencv_caffe.PowerParameter power_param = 122;
15608   if (cached_has_bits & 0x01000000u) {
15609     target = ::google::protobuf::internal::WireFormatLite::
15610       InternalWriteMessageToArray(
15611         122, *this->power_param_, deterministic, target);
15612   }
15613 
15614   // optional .opencv_caffe.ReLUParameter relu_param = 123;
15615   if (cached_has_bits & 0x02000000u) {
15616     target = ::google::protobuf::internal::WireFormatLite::
15617       InternalWriteMessageToArray(
15618         123, *this->relu_param_, deterministic, target);
15619   }
15620 
15621   // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124;
15622   if (cached_has_bits & 0x04000000u) {
15623     target = ::google::protobuf::internal::WireFormatLite::
15624       InternalWriteMessageToArray(
15625         124, *this->sigmoid_param_, deterministic, target);
15626   }
15627 
15628   // optional .opencv_caffe.SoftmaxParameter softmax_param = 125;
15629   if (cached_has_bits & 0x08000000u) {
15630     target = ::google::protobuf::internal::WireFormatLite::
15631       InternalWriteMessageToArray(
15632         125, *this->softmax_param_, deterministic, target);
15633   }
15634 
15635   // optional .opencv_caffe.SliceParameter slice_param = 126;
15636   if (cached_has_bits & 0x10000000u) {
15637     target = ::google::protobuf::internal::WireFormatLite::
15638       InternalWriteMessageToArray(
15639         126, *this->slice_param_, deterministic, target);
15640   }
15641 
15642   // optional .opencv_caffe.TanHParameter tanh_param = 127;
15643   if (cached_has_bits & 0x20000000u) {
15644     target = ::google::protobuf::internal::WireFormatLite::
15645       InternalWriteMessageToArray(
15646         127, *this->tanh_param_, deterministic, target);
15647   }
15648 
15649   // optional .opencv_caffe.ThresholdParameter threshold_param = 128;
15650   if (cached_has_bits & 0x40000000u) {
15651     target = ::google::protobuf::internal::WireFormatLite::
15652       InternalWriteMessageToArray(
15653         128, *this->threshold_param_, deterministic, target);
15654   }
15655 
15656   // optional .opencv_caffe.WindowDataParameter window_data_param = 129;
15657   if (cached_has_bits & 0x80000000u) {
15658     target = ::google::protobuf::internal::WireFormatLite::
15659       InternalWriteMessageToArray(
15660         129, *this->window_data_param_, deterministic, target);
15661   }
15662 
15663   cached_has_bits = _has_bits_[1];
15664   // optional .opencv_caffe.PythonParameter python_param = 130;
15665   if (cached_has_bits & 0x00000001u) {
15666     target = ::google::protobuf::internal::WireFormatLite::
15667       InternalWriteMessageToArray(
15668         130, *this->python_param_, deterministic, target);
15669   }
15670 
15671   // optional .opencv_caffe.PReLUParameter prelu_param = 131;
15672   if (cached_has_bits & 0x00000002u) {
15673     target = ::google::protobuf::internal::WireFormatLite::
15674       InternalWriteMessageToArray(
15675         131, *this->prelu_param_, deterministic, target);
15676   }
15677 
15678   // optional .opencv_caffe.SPPParameter spp_param = 132;
15679   if (cached_has_bits & 0x00000004u) {
15680     target = ::google::protobuf::internal::WireFormatLite::
15681       InternalWriteMessageToArray(
15682         132, *this->spp_param_, deterministic, target);
15683   }
15684 
15685   // optional .opencv_caffe.ReshapeParameter reshape_param = 133;
15686   if (cached_has_bits & 0x00000008u) {
15687     target = ::google::protobuf::internal::WireFormatLite::
15688       InternalWriteMessageToArray(
15689         133, *this->reshape_param_, deterministic, target);
15690   }
15691 
15692   // optional .opencv_caffe.LogParameter log_param = 134;
15693   if (cached_has_bits & 0x00000010u) {
15694     target = ::google::protobuf::internal::WireFormatLite::
15695       InternalWriteMessageToArray(
15696         134, *this->log_param_, deterministic, target);
15697   }
15698 
15699   // optional .opencv_caffe.FlattenParameter flatten_param = 135;
15700   if (cached_has_bits & 0x00000020u) {
15701     target = ::google::protobuf::internal::WireFormatLite::
15702       InternalWriteMessageToArray(
15703         135, *this->flatten_param_, deterministic, target);
15704   }
15705 
15706   // optional .opencv_caffe.ReductionParameter reduction_param = 136;
15707   if (cached_has_bits & 0x00000040u) {
15708     target = ::google::protobuf::internal::WireFormatLite::
15709       InternalWriteMessageToArray(
15710         136, *this->reduction_param_, deterministic, target);
15711   }
15712 
15713   // optional .opencv_caffe.EmbedParameter embed_param = 137;
15714   if (cached_has_bits & 0x00000080u) {
15715     target = ::google::protobuf::internal::WireFormatLite::
15716       InternalWriteMessageToArray(
15717         137, *this->embed_param_, deterministic, target);
15718   }
15719 
15720   // optional .opencv_caffe.TileParameter tile_param = 138;
15721   if (cached_has_bits & 0x00000100u) {
15722     target = ::google::protobuf::internal::WireFormatLite::
15723       InternalWriteMessageToArray(
15724         138, *this->tile_param_, deterministic, target);
15725   }
15726 
15727   // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139;
15728   if (cached_has_bits & 0x00000200u) {
15729     target = ::google::protobuf::internal::WireFormatLite::
15730       InternalWriteMessageToArray(
15731         139, *this->batch_norm_param_, deterministic, target);
15732   }
15733 
15734   // optional .opencv_caffe.ELUParameter elu_param = 140;
15735   if (cached_has_bits & 0x00000400u) {
15736     target = ::google::protobuf::internal::WireFormatLite::
15737       InternalWriteMessageToArray(
15738         140, *this->elu_param_, deterministic, target);
15739   }
15740 
15741   // optional .opencv_caffe.BiasParameter bias_param = 141;
15742   if (cached_has_bits & 0x00000800u) {
15743     target = ::google::protobuf::internal::WireFormatLite::
15744       InternalWriteMessageToArray(
15745         141, *this->bias_param_, deterministic, target);
15746   }
15747 
15748   // optional .opencv_caffe.ScaleParameter scale_param = 142;
15749   if (cached_has_bits & 0x00001000u) {
15750     target = ::google::protobuf::internal::WireFormatLite::
15751       InternalWriteMessageToArray(
15752         142, *this->scale_param_, deterministic, target);
15753   }
15754 
15755   // optional .opencv_caffe.InputParameter input_param = 143;
15756   if (cached_has_bits & 0x00002000u) {
15757     target = ::google::protobuf::internal::WireFormatLite::
15758       InternalWriteMessageToArray(
15759         143, *this->input_param_, deterministic, target);
15760   }
15761 
15762   // optional .opencv_caffe.CropParameter crop_param = 144;
15763   if (cached_has_bits & 0x00004000u) {
15764     target = ::google::protobuf::internal::WireFormatLite::
15765       InternalWriteMessageToArray(
15766         144, *this->crop_param_, deterministic, target);
15767   }
15768 
15769   // optional .opencv_caffe.ParameterParameter parameter_param = 145;
15770   if (cached_has_bits & 0x00008000u) {
15771     target = ::google::protobuf::internal::WireFormatLite::
15772       InternalWriteMessageToArray(
15773         145, *this->parameter_param_, deterministic, target);
15774   }
15775 
15776   // optional .opencv_caffe.RecurrentParameter recurrent_param = 146;
15777   if (cached_has_bits & 0x00010000u) {
15778     target = ::google::protobuf::internal::WireFormatLite::
15779       InternalWriteMessageToArray(
15780         146, *this->recurrent_param_, deterministic, target);
15781   }
15782 
15783   // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147;
15784   if (cached_has_bits & 0x00020000u) {
15785     target = ::google::protobuf::internal::WireFormatLite::
15786       InternalWriteMessageToArray(
15787         147, *this->detection_output_param_, deterministic, target);
15788   }
15789 
15790   // optional .opencv_caffe.PermuteParameter permute_param = 148;
15791   if (cached_has_bits & 0x00040000u) {
15792     target = ::google::protobuf::internal::WireFormatLite::
15793       InternalWriteMessageToArray(
15794         148, *this->permute_param_, deterministic, target);
15795   }
15796 
15797   // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149;
15798   if (cached_has_bits & 0x00080000u) {
15799     target = ::google::protobuf::internal::WireFormatLite::
15800       InternalWriteMessageToArray(
15801         149, *this->norm_param_, deterministic, target);
15802   }
15803 
15804   // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150;
15805   if (cached_has_bits & 0x00100000u) {
15806     target = ::google::protobuf::internal::WireFormatLite::
15807       InternalWriteMessageToArray(
15808         150, *this->prior_box_param_, deterministic, target);
15809   }
15810 
15811   // optional .opencv_caffe.ProposalParameter proposal_param = 201;
15812   if (cached_has_bits & 0x00200000u) {
15813     target = ::google::protobuf::internal::WireFormatLite::
15814       InternalWriteMessageToArray(
15815         201, *this->proposal_param_, deterministic, target);
15816   }
15817 
15818   // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002;
15819   if (cached_has_bits & 0x00400000u) {
15820     target = ::google::protobuf::internal::WireFormatLite::
15821       InternalWriteMessageToArray(
15822         10002, *this->psroi_pooling_param_, deterministic, target);
15823   }
15824 
15825   // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711;
15826   if (cached_has_bits & 0x00800000u) {
15827     target = ::google::protobuf::internal::WireFormatLite::
15828       InternalWriteMessageToArray(
15829         8266711, *this->roi_pooling_param_, deterministic, target);
15830   }
15831 
15832   if (_internal_metadata_.have_unknown_fields()) {
15833     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
15834         _internal_metadata_.unknown_fields(), target);
15835   }
15836   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LayerParameter)
15837   return target;
15838 }
15839 
ByteSizeLong() const15840 size_t LayerParameter::ByteSizeLong() const {
15841 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LayerParameter)
15842   size_t total_size = 0;
15843 
15844   if (_internal_metadata_.have_unknown_fields()) {
15845     total_size +=
15846       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
15847         _internal_metadata_.unknown_fields());
15848   }
15849   // repeated string bottom = 3;
15850   total_size += 1 *
15851       ::google::protobuf::internal::FromIntSize(this->bottom_size());
15852   for (int i = 0, n = this->bottom_size(); i < n; i++) {
15853     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
15854       this->bottom(i));
15855   }
15856 
15857   // repeated string top = 4;
15858   total_size += 1 *
15859       ::google::protobuf::internal::FromIntSize(this->top_size());
15860   for (int i = 0, n = this->top_size(); i < n; i++) {
15861     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
15862       this->top(i));
15863   }
15864 
15865   // repeated float loss_weight = 5;
15866   {
15867     unsigned int count = static_cast<unsigned int>(this->loss_weight_size());
15868     size_t data_size = 4UL * count;
15869     total_size += 1 *
15870                   ::google::protobuf::internal::FromIntSize(this->loss_weight_size());
15871     total_size += data_size;
15872   }
15873 
15874   // repeated .opencv_caffe.ParamSpec param = 6;
15875   {
15876     unsigned int count = static_cast<unsigned int>(this->param_size());
15877     total_size += 1UL * count;
15878     for (unsigned int i = 0; i < count; i++) {
15879       total_size +=
15880         ::google::protobuf::internal::WireFormatLite::MessageSize(
15881           this->param(static_cast<int>(i)));
15882     }
15883   }
15884 
15885   // repeated .opencv_caffe.BlobProto blobs = 7;
15886   {
15887     unsigned int count = static_cast<unsigned int>(this->blobs_size());
15888     total_size += 1UL * count;
15889     for (unsigned int i = 0; i < count; i++) {
15890       total_size +=
15891         ::google::protobuf::internal::WireFormatLite::MessageSize(
15892           this->blobs(static_cast<int>(i)));
15893     }
15894   }
15895 
15896   // repeated .opencv_caffe.NetStateRule include = 8;
15897   {
15898     unsigned int count = static_cast<unsigned int>(this->include_size());
15899     total_size += 1UL * count;
15900     for (unsigned int i = 0; i < count; i++) {
15901       total_size +=
15902         ::google::protobuf::internal::WireFormatLite::MessageSize(
15903           this->include(static_cast<int>(i)));
15904     }
15905   }
15906 
15907   // repeated .opencv_caffe.NetStateRule exclude = 9;
15908   {
15909     unsigned int count = static_cast<unsigned int>(this->exclude_size());
15910     total_size += 1UL * count;
15911     for (unsigned int i = 0; i < count; i++) {
15912       total_size +=
15913         ::google::protobuf::internal::WireFormatLite::MessageSize(
15914           this->exclude(static_cast<int>(i)));
15915     }
15916   }
15917 
15918   // repeated bool propagate_down = 11;
15919   {
15920     unsigned int count = static_cast<unsigned int>(this->propagate_down_size());
15921     size_t data_size = 1UL * count;
15922     total_size += 1 *
15923                   ::google::protobuf::internal::FromIntSize(this->propagate_down_size());
15924     total_size += data_size;
15925   }
15926 
15927   if (_has_bits_[0 / 32] & 255u) {
15928     // optional string name = 1;
15929     if (has_name()) {
15930       total_size += 1 +
15931         ::google::protobuf::internal::WireFormatLite::StringSize(
15932           this->name());
15933     }
15934 
15935     // optional string type = 2;
15936     if (has_type()) {
15937       total_size += 1 +
15938         ::google::protobuf::internal::WireFormatLite::StringSize(
15939           this->type());
15940     }
15941 
15942     // optional .opencv_caffe.TransformationParameter transform_param = 100;
15943     if (has_transform_param()) {
15944       total_size += 2 +
15945         ::google::protobuf::internal::WireFormatLite::MessageSize(
15946           *this->transform_param_);
15947     }
15948 
15949     // optional .opencv_caffe.LossParameter loss_param = 101;
15950     if (has_loss_param()) {
15951       total_size += 2 +
15952         ::google::protobuf::internal::WireFormatLite::MessageSize(
15953           *this->loss_param_);
15954     }
15955 
15956     // optional .opencv_caffe.AccuracyParameter accuracy_param = 102;
15957     if (has_accuracy_param()) {
15958       total_size += 2 +
15959         ::google::protobuf::internal::WireFormatLite::MessageSize(
15960           *this->accuracy_param_);
15961     }
15962 
15963     // optional .opencv_caffe.ArgMaxParameter argmax_param = 103;
15964     if (has_argmax_param()) {
15965       total_size += 2 +
15966         ::google::protobuf::internal::WireFormatLite::MessageSize(
15967           *this->argmax_param_);
15968     }
15969 
15970     // optional .opencv_caffe.ConcatParameter concat_param = 104;
15971     if (has_concat_param()) {
15972       total_size += 2 +
15973         ::google::protobuf::internal::WireFormatLite::MessageSize(
15974           *this->concat_param_);
15975     }
15976 
15977     // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 105;
15978     if (has_contrastive_loss_param()) {
15979       total_size += 2 +
15980         ::google::protobuf::internal::WireFormatLite::MessageSize(
15981           *this->contrastive_loss_param_);
15982     }
15983 
15984   }
15985   if (_has_bits_[8 / 32] & 65280u) {
15986     // optional .opencv_caffe.ConvolutionParameter convolution_param = 106;
15987     if (has_convolution_param()) {
15988       total_size += 2 +
15989         ::google::protobuf::internal::WireFormatLite::MessageSize(
15990           *this->convolution_param_);
15991     }
15992 
15993     // optional .opencv_caffe.DataParameter data_param = 107;
15994     if (has_data_param()) {
15995       total_size += 2 +
15996         ::google::protobuf::internal::WireFormatLite::MessageSize(
15997           *this->data_param_);
15998     }
15999 
16000     // optional .opencv_caffe.DropoutParameter dropout_param = 108;
16001     if (has_dropout_param()) {
16002       total_size += 2 +
16003         ::google::protobuf::internal::WireFormatLite::MessageSize(
16004           *this->dropout_param_);
16005     }
16006 
16007     // optional .opencv_caffe.DummyDataParameter dummy_data_param = 109;
16008     if (has_dummy_data_param()) {
16009       total_size += 2 +
16010         ::google::protobuf::internal::WireFormatLite::MessageSize(
16011           *this->dummy_data_param_);
16012     }
16013 
16014     // optional .opencv_caffe.EltwiseParameter eltwise_param = 110;
16015     if (has_eltwise_param()) {
16016       total_size += 2 +
16017         ::google::protobuf::internal::WireFormatLite::MessageSize(
16018           *this->eltwise_param_);
16019     }
16020 
16021     // optional .opencv_caffe.ExpParameter exp_param = 111;
16022     if (has_exp_param()) {
16023       total_size += 2 +
16024         ::google::protobuf::internal::WireFormatLite::MessageSize(
16025           *this->exp_param_);
16026     }
16027 
16028     // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 112;
16029     if (has_hdf5_data_param()) {
16030       total_size += 2 +
16031         ::google::protobuf::internal::WireFormatLite::MessageSize(
16032           *this->hdf5_data_param_);
16033     }
16034 
16035     // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 113;
16036     if (has_hdf5_output_param()) {
16037       total_size += 2 +
16038         ::google::protobuf::internal::WireFormatLite::MessageSize(
16039           *this->hdf5_output_param_);
16040     }
16041 
16042   }
16043   if (_has_bits_[16 / 32] & 16711680u) {
16044     // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 114;
16045     if (has_hinge_loss_param()) {
16046       total_size += 2 +
16047         ::google::protobuf::internal::WireFormatLite::MessageSize(
16048           *this->hinge_loss_param_);
16049     }
16050 
16051     // optional .opencv_caffe.ImageDataParameter image_data_param = 115;
16052     if (has_image_data_param()) {
16053       total_size += 2 +
16054         ::google::protobuf::internal::WireFormatLite::MessageSize(
16055           *this->image_data_param_);
16056     }
16057 
16058     // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 116;
16059     if (has_infogain_loss_param()) {
16060       total_size += 2 +
16061         ::google::protobuf::internal::WireFormatLite::MessageSize(
16062           *this->infogain_loss_param_);
16063     }
16064 
16065     // optional .opencv_caffe.InnerProductParameter inner_product_param = 117;
16066     if (has_inner_product_param()) {
16067       total_size += 2 +
16068         ::google::protobuf::internal::WireFormatLite::MessageSize(
16069           *this->inner_product_param_);
16070     }
16071 
16072     // optional .opencv_caffe.LRNParameter lrn_param = 118;
16073     if (has_lrn_param()) {
16074       total_size += 2 +
16075         ::google::protobuf::internal::WireFormatLite::MessageSize(
16076           *this->lrn_param_);
16077     }
16078 
16079     // optional .opencv_caffe.MemoryDataParameter memory_data_param = 119;
16080     if (has_memory_data_param()) {
16081       total_size += 2 +
16082         ::google::protobuf::internal::WireFormatLite::MessageSize(
16083           *this->memory_data_param_);
16084     }
16085 
16086     // optional .opencv_caffe.MVNParameter mvn_param = 120;
16087     if (has_mvn_param()) {
16088       total_size += 2 +
16089         ::google::protobuf::internal::WireFormatLite::MessageSize(
16090           *this->mvn_param_);
16091     }
16092 
16093     // optional .opencv_caffe.PoolingParameter pooling_param = 121;
16094     if (has_pooling_param()) {
16095       total_size += 2 +
16096         ::google::protobuf::internal::WireFormatLite::MessageSize(
16097           *this->pooling_param_);
16098     }
16099 
16100   }
16101   if (_has_bits_[24 / 32] & 4278190080u) {
16102     // optional .opencv_caffe.PowerParameter power_param = 122;
16103     if (has_power_param()) {
16104       total_size += 2 +
16105         ::google::protobuf::internal::WireFormatLite::MessageSize(
16106           *this->power_param_);
16107     }
16108 
16109     // optional .opencv_caffe.ReLUParameter relu_param = 123;
16110     if (has_relu_param()) {
16111       total_size += 2 +
16112         ::google::protobuf::internal::WireFormatLite::MessageSize(
16113           *this->relu_param_);
16114     }
16115 
16116     // optional .opencv_caffe.SigmoidParameter sigmoid_param = 124;
16117     if (has_sigmoid_param()) {
16118       total_size += 2 +
16119         ::google::protobuf::internal::WireFormatLite::MessageSize(
16120           *this->sigmoid_param_);
16121     }
16122 
16123     // optional .opencv_caffe.SoftmaxParameter softmax_param = 125;
16124     if (has_softmax_param()) {
16125       total_size += 2 +
16126         ::google::protobuf::internal::WireFormatLite::MessageSize(
16127           *this->softmax_param_);
16128     }
16129 
16130     // optional .opencv_caffe.SliceParameter slice_param = 126;
16131     if (has_slice_param()) {
16132       total_size += 2 +
16133         ::google::protobuf::internal::WireFormatLite::MessageSize(
16134           *this->slice_param_);
16135     }
16136 
16137     // optional .opencv_caffe.TanHParameter tanh_param = 127;
16138     if (has_tanh_param()) {
16139       total_size += 2 +
16140         ::google::protobuf::internal::WireFormatLite::MessageSize(
16141           *this->tanh_param_);
16142     }
16143 
16144     // optional .opencv_caffe.ThresholdParameter threshold_param = 128;
16145     if (has_threshold_param()) {
16146       total_size += 2 +
16147         ::google::protobuf::internal::WireFormatLite::MessageSize(
16148           *this->threshold_param_);
16149     }
16150 
16151     // optional .opencv_caffe.WindowDataParameter window_data_param = 129;
16152     if (has_window_data_param()) {
16153       total_size += 2 +
16154         ::google::protobuf::internal::WireFormatLite::MessageSize(
16155           *this->window_data_param_);
16156     }
16157 
16158   }
16159   if (_has_bits_[32 / 32] & 255u) {
16160     // optional .opencv_caffe.PythonParameter python_param = 130;
16161     if (has_python_param()) {
16162       total_size += 2 +
16163         ::google::protobuf::internal::WireFormatLite::MessageSize(
16164           *this->python_param_);
16165     }
16166 
16167     // optional .opencv_caffe.PReLUParameter prelu_param = 131;
16168     if (has_prelu_param()) {
16169       total_size += 2 +
16170         ::google::protobuf::internal::WireFormatLite::MessageSize(
16171           *this->prelu_param_);
16172     }
16173 
16174     // optional .opencv_caffe.SPPParameter spp_param = 132;
16175     if (has_spp_param()) {
16176       total_size += 2 +
16177         ::google::protobuf::internal::WireFormatLite::MessageSize(
16178           *this->spp_param_);
16179     }
16180 
16181     // optional .opencv_caffe.ReshapeParameter reshape_param = 133;
16182     if (has_reshape_param()) {
16183       total_size += 2 +
16184         ::google::protobuf::internal::WireFormatLite::MessageSize(
16185           *this->reshape_param_);
16186     }
16187 
16188     // optional .opencv_caffe.LogParameter log_param = 134;
16189     if (has_log_param()) {
16190       total_size += 2 +
16191         ::google::protobuf::internal::WireFormatLite::MessageSize(
16192           *this->log_param_);
16193     }
16194 
16195     // optional .opencv_caffe.FlattenParameter flatten_param = 135;
16196     if (has_flatten_param()) {
16197       total_size += 2 +
16198         ::google::protobuf::internal::WireFormatLite::MessageSize(
16199           *this->flatten_param_);
16200     }
16201 
16202     // optional .opencv_caffe.ReductionParameter reduction_param = 136;
16203     if (has_reduction_param()) {
16204       total_size += 2 +
16205         ::google::protobuf::internal::WireFormatLite::MessageSize(
16206           *this->reduction_param_);
16207     }
16208 
16209     // optional .opencv_caffe.EmbedParameter embed_param = 137;
16210     if (has_embed_param()) {
16211       total_size += 2 +
16212         ::google::protobuf::internal::WireFormatLite::MessageSize(
16213           *this->embed_param_);
16214     }
16215 
16216   }
16217   if (_has_bits_[40 / 32] & 65280u) {
16218     // optional .opencv_caffe.TileParameter tile_param = 138;
16219     if (has_tile_param()) {
16220       total_size += 2 +
16221         ::google::protobuf::internal::WireFormatLite::MessageSize(
16222           *this->tile_param_);
16223     }
16224 
16225     // optional .opencv_caffe.BatchNormParameter batch_norm_param = 139;
16226     if (has_batch_norm_param()) {
16227       total_size += 2 +
16228         ::google::protobuf::internal::WireFormatLite::MessageSize(
16229           *this->batch_norm_param_);
16230     }
16231 
16232     // optional .opencv_caffe.ELUParameter elu_param = 140;
16233     if (has_elu_param()) {
16234       total_size += 2 +
16235         ::google::protobuf::internal::WireFormatLite::MessageSize(
16236           *this->elu_param_);
16237     }
16238 
16239     // optional .opencv_caffe.BiasParameter bias_param = 141;
16240     if (has_bias_param()) {
16241       total_size += 2 +
16242         ::google::protobuf::internal::WireFormatLite::MessageSize(
16243           *this->bias_param_);
16244     }
16245 
16246     // optional .opencv_caffe.ScaleParameter scale_param = 142;
16247     if (has_scale_param()) {
16248       total_size += 2 +
16249         ::google::protobuf::internal::WireFormatLite::MessageSize(
16250           *this->scale_param_);
16251     }
16252 
16253     // optional .opencv_caffe.InputParameter input_param = 143;
16254     if (has_input_param()) {
16255       total_size += 2 +
16256         ::google::protobuf::internal::WireFormatLite::MessageSize(
16257           *this->input_param_);
16258     }
16259 
16260     // optional .opencv_caffe.CropParameter crop_param = 144;
16261     if (has_crop_param()) {
16262       total_size += 2 +
16263         ::google::protobuf::internal::WireFormatLite::MessageSize(
16264           *this->crop_param_);
16265     }
16266 
16267     // optional .opencv_caffe.ParameterParameter parameter_param = 145;
16268     if (has_parameter_param()) {
16269       total_size += 2 +
16270         ::google::protobuf::internal::WireFormatLite::MessageSize(
16271           *this->parameter_param_);
16272     }
16273 
16274   }
16275   if (_has_bits_[48 / 32] & 16711680u) {
16276     // optional .opencv_caffe.RecurrentParameter recurrent_param = 146;
16277     if (has_recurrent_param()) {
16278       total_size += 2 +
16279         ::google::protobuf::internal::WireFormatLite::MessageSize(
16280           *this->recurrent_param_);
16281     }
16282 
16283     // optional .opencv_caffe.DetectionOutputParameter detection_output_param = 147;
16284     if (has_detection_output_param()) {
16285       total_size += 2 +
16286         ::google::protobuf::internal::WireFormatLite::MessageSize(
16287           *this->detection_output_param_);
16288     }
16289 
16290     // optional .opencv_caffe.PermuteParameter permute_param = 148;
16291     if (has_permute_param()) {
16292       total_size += 2 +
16293         ::google::protobuf::internal::WireFormatLite::MessageSize(
16294           *this->permute_param_);
16295     }
16296 
16297     // optional .opencv_caffe.NormalizeBBoxParameter norm_param = 149;
16298     if (has_norm_param()) {
16299       total_size += 2 +
16300         ::google::protobuf::internal::WireFormatLite::MessageSize(
16301           *this->norm_param_);
16302     }
16303 
16304     // optional .opencv_caffe.PriorBoxParameter prior_box_param = 150;
16305     if (has_prior_box_param()) {
16306       total_size += 2 +
16307         ::google::protobuf::internal::WireFormatLite::MessageSize(
16308           *this->prior_box_param_);
16309     }
16310 
16311     // optional .opencv_caffe.ProposalParameter proposal_param = 201;
16312     if (has_proposal_param()) {
16313       total_size += 2 +
16314         ::google::protobuf::internal::WireFormatLite::MessageSize(
16315           *this->proposal_param_);
16316     }
16317 
16318     // optional .opencv_caffe.PSROIPoolingParameter psroi_pooling_param = 10002;
16319     if (has_psroi_pooling_param()) {
16320       total_size += 3 +
16321         ::google::protobuf::internal::WireFormatLite::MessageSize(
16322           *this->psroi_pooling_param_);
16323     }
16324 
16325     // optional .opencv_caffe.ROIPoolingParameter roi_pooling_param = 8266711;
16326     if (has_roi_pooling_param()) {
16327       total_size += 4 +
16328         ::google::protobuf::internal::WireFormatLite::MessageSize(
16329           *this->roi_pooling_param_);
16330     }
16331 
16332   }
16333   // optional .opencv_caffe.Phase phase = 10;
16334   if (has_phase()) {
16335     total_size += 1 +
16336       ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase());
16337   }
16338 
16339   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
16340   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16341   _cached_size_ = cached_size;
16342   GOOGLE_SAFE_CONCURRENT_WRITES_END();
16343   return total_size;
16344 }
16345 
MergeFrom(const::google::protobuf::Message & from)16346 void LayerParameter::MergeFrom(const ::google::protobuf::Message& from) {
16347 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LayerParameter)
16348   GOOGLE_DCHECK_NE(&from, this);
16349   const LayerParameter* source =
16350       ::google::protobuf::internal::DynamicCastToGenerated<const LayerParameter>(
16351           &from);
16352   if (source == NULL) {
16353   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LayerParameter)
16354     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
16355   } else {
16356   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LayerParameter)
16357     MergeFrom(*source);
16358   }
16359 }
16360 
MergeFrom(const LayerParameter & from)16361 void LayerParameter::MergeFrom(const LayerParameter& from) {
16362 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LayerParameter)
16363   GOOGLE_DCHECK_NE(&from, this);
16364   _internal_metadata_.MergeFrom(from._internal_metadata_);
16365   ::google::protobuf::uint32 cached_has_bits = 0;
16366   (void) cached_has_bits;
16367 
16368   bottom_.MergeFrom(from.bottom_);
16369   top_.MergeFrom(from.top_);
16370   loss_weight_.MergeFrom(from.loss_weight_);
16371   param_.MergeFrom(from.param_);
16372   blobs_.MergeFrom(from.blobs_);
16373   include_.MergeFrom(from.include_);
16374   exclude_.MergeFrom(from.exclude_);
16375   propagate_down_.MergeFrom(from.propagate_down_);
16376   cached_has_bits = from._has_bits_[0];
16377   if (cached_has_bits & 255u) {
16378     if (cached_has_bits & 0x00000001u) {
16379       set_has_name();
16380       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
16381     }
16382     if (cached_has_bits & 0x00000002u) {
16383       set_has_type();
16384       type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
16385     }
16386     if (cached_has_bits & 0x00000004u) {
16387       mutable_transform_param()->::opencv_caffe::TransformationParameter::MergeFrom(from.transform_param());
16388     }
16389     if (cached_has_bits & 0x00000008u) {
16390       mutable_loss_param()->::opencv_caffe::LossParameter::MergeFrom(from.loss_param());
16391     }
16392     if (cached_has_bits & 0x00000010u) {
16393       mutable_accuracy_param()->::opencv_caffe::AccuracyParameter::MergeFrom(from.accuracy_param());
16394     }
16395     if (cached_has_bits & 0x00000020u) {
16396       mutable_argmax_param()->::opencv_caffe::ArgMaxParameter::MergeFrom(from.argmax_param());
16397     }
16398     if (cached_has_bits & 0x00000040u) {
16399       mutable_concat_param()->::opencv_caffe::ConcatParameter::MergeFrom(from.concat_param());
16400     }
16401     if (cached_has_bits & 0x00000080u) {
16402       mutable_contrastive_loss_param()->::opencv_caffe::ContrastiveLossParameter::MergeFrom(from.contrastive_loss_param());
16403     }
16404   }
16405   if (cached_has_bits & 65280u) {
16406     if (cached_has_bits & 0x00000100u) {
16407       mutable_convolution_param()->::opencv_caffe::ConvolutionParameter::MergeFrom(from.convolution_param());
16408     }
16409     if (cached_has_bits & 0x00000200u) {
16410       mutable_data_param()->::opencv_caffe::DataParameter::MergeFrom(from.data_param());
16411     }
16412     if (cached_has_bits & 0x00000400u) {
16413       mutable_dropout_param()->::opencv_caffe::DropoutParameter::MergeFrom(from.dropout_param());
16414     }
16415     if (cached_has_bits & 0x00000800u) {
16416       mutable_dummy_data_param()->::opencv_caffe::DummyDataParameter::MergeFrom(from.dummy_data_param());
16417     }
16418     if (cached_has_bits & 0x00001000u) {
16419       mutable_eltwise_param()->::opencv_caffe::EltwiseParameter::MergeFrom(from.eltwise_param());
16420     }
16421     if (cached_has_bits & 0x00002000u) {
16422       mutable_exp_param()->::opencv_caffe::ExpParameter::MergeFrom(from.exp_param());
16423     }
16424     if (cached_has_bits & 0x00004000u) {
16425       mutable_hdf5_data_param()->::opencv_caffe::HDF5DataParameter::MergeFrom(from.hdf5_data_param());
16426     }
16427     if (cached_has_bits & 0x00008000u) {
16428       mutable_hdf5_output_param()->::opencv_caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param());
16429     }
16430   }
16431   if (cached_has_bits & 16711680u) {
16432     if (cached_has_bits & 0x00010000u) {
16433       mutable_hinge_loss_param()->::opencv_caffe::HingeLossParameter::MergeFrom(from.hinge_loss_param());
16434     }
16435     if (cached_has_bits & 0x00020000u) {
16436       mutable_image_data_param()->::opencv_caffe::ImageDataParameter::MergeFrom(from.image_data_param());
16437     }
16438     if (cached_has_bits & 0x00040000u) {
16439       mutable_infogain_loss_param()->::opencv_caffe::InfogainLossParameter::MergeFrom(from.infogain_loss_param());
16440     }
16441     if (cached_has_bits & 0x00080000u) {
16442       mutable_inner_product_param()->::opencv_caffe::InnerProductParameter::MergeFrom(from.inner_product_param());
16443     }
16444     if (cached_has_bits & 0x00100000u) {
16445       mutable_lrn_param()->::opencv_caffe::LRNParameter::MergeFrom(from.lrn_param());
16446     }
16447     if (cached_has_bits & 0x00200000u) {
16448       mutable_memory_data_param()->::opencv_caffe::MemoryDataParameter::MergeFrom(from.memory_data_param());
16449     }
16450     if (cached_has_bits & 0x00400000u) {
16451       mutable_mvn_param()->::opencv_caffe::MVNParameter::MergeFrom(from.mvn_param());
16452     }
16453     if (cached_has_bits & 0x00800000u) {
16454       mutable_pooling_param()->::opencv_caffe::PoolingParameter::MergeFrom(from.pooling_param());
16455     }
16456   }
16457   if (cached_has_bits & 4278190080u) {
16458     if (cached_has_bits & 0x01000000u) {
16459       mutable_power_param()->::opencv_caffe::PowerParameter::MergeFrom(from.power_param());
16460     }
16461     if (cached_has_bits & 0x02000000u) {
16462       mutable_relu_param()->::opencv_caffe::ReLUParameter::MergeFrom(from.relu_param());
16463     }
16464     if (cached_has_bits & 0x04000000u) {
16465       mutable_sigmoid_param()->::opencv_caffe::SigmoidParameter::MergeFrom(from.sigmoid_param());
16466     }
16467     if (cached_has_bits & 0x08000000u) {
16468       mutable_softmax_param()->::opencv_caffe::SoftmaxParameter::MergeFrom(from.softmax_param());
16469     }
16470     if (cached_has_bits & 0x10000000u) {
16471       mutable_slice_param()->::opencv_caffe::SliceParameter::MergeFrom(from.slice_param());
16472     }
16473     if (cached_has_bits & 0x20000000u) {
16474       mutable_tanh_param()->::opencv_caffe::TanHParameter::MergeFrom(from.tanh_param());
16475     }
16476     if (cached_has_bits & 0x40000000u) {
16477       mutable_threshold_param()->::opencv_caffe::ThresholdParameter::MergeFrom(from.threshold_param());
16478     }
16479     if (cached_has_bits & 0x80000000u) {
16480       mutable_window_data_param()->::opencv_caffe::WindowDataParameter::MergeFrom(from.window_data_param());
16481     }
16482   }
16483   cached_has_bits = from._has_bits_[1];
16484   if (cached_has_bits & 255u) {
16485     if (cached_has_bits & 0x00000001u) {
16486       mutable_python_param()->::opencv_caffe::PythonParameter::MergeFrom(from.python_param());
16487     }
16488     if (cached_has_bits & 0x00000002u) {
16489       mutable_prelu_param()->::opencv_caffe::PReLUParameter::MergeFrom(from.prelu_param());
16490     }
16491     if (cached_has_bits & 0x00000004u) {
16492       mutable_spp_param()->::opencv_caffe::SPPParameter::MergeFrom(from.spp_param());
16493     }
16494     if (cached_has_bits & 0x00000008u) {
16495       mutable_reshape_param()->::opencv_caffe::ReshapeParameter::MergeFrom(from.reshape_param());
16496     }
16497     if (cached_has_bits & 0x00000010u) {
16498       mutable_log_param()->::opencv_caffe::LogParameter::MergeFrom(from.log_param());
16499     }
16500     if (cached_has_bits & 0x00000020u) {
16501       mutable_flatten_param()->::opencv_caffe::FlattenParameter::MergeFrom(from.flatten_param());
16502     }
16503     if (cached_has_bits & 0x00000040u) {
16504       mutable_reduction_param()->::opencv_caffe::ReductionParameter::MergeFrom(from.reduction_param());
16505     }
16506     if (cached_has_bits & 0x00000080u) {
16507       mutable_embed_param()->::opencv_caffe::EmbedParameter::MergeFrom(from.embed_param());
16508     }
16509   }
16510   if (cached_has_bits & 65280u) {
16511     if (cached_has_bits & 0x00000100u) {
16512       mutable_tile_param()->::opencv_caffe::TileParameter::MergeFrom(from.tile_param());
16513     }
16514     if (cached_has_bits & 0x00000200u) {
16515       mutable_batch_norm_param()->::opencv_caffe::BatchNormParameter::MergeFrom(from.batch_norm_param());
16516     }
16517     if (cached_has_bits & 0x00000400u) {
16518       mutable_elu_param()->::opencv_caffe::ELUParameter::MergeFrom(from.elu_param());
16519     }
16520     if (cached_has_bits & 0x00000800u) {
16521       mutable_bias_param()->::opencv_caffe::BiasParameter::MergeFrom(from.bias_param());
16522     }
16523     if (cached_has_bits & 0x00001000u) {
16524       mutable_scale_param()->::opencv_caffe::ScaleParameter::MergeFrom(from.scale_param());
16525     }
16526     if (cached_has_bits & 0x00002000u) {
16527       mutable_input_param()->::opencv_caffe::InputParameter::MergeFrom(from.input_param());
16528     }
16529     if (cached_has_bits & 0x00004000u) {
16530       mutable_crop_param()->::opencv_caffe::CropParameter::MergeFrom(from.crop_param());
16531     }
16532     if (cached_has_bits & 0x00008000u) {
16533       mutable_parameter_param()->::opencv_caffe::ParameterParameter::MergeFrom(from.parameter_param());
16534     }
16535   }
16536   if (cached_has_bits & 16711680u) {
16537     if (cached_has_bits & 0x00010000u) {
16538       mutable_recurrent_param()->::opencv_caffe::RecurrentParameter::MergeFrom(from.recurrent_param());
16539     }
16540     if (cached_has_bits & 0x00020000u) {
16541       mutable_detection_output_param()->::opencv_caffe::DetectionOutputParameter::MergeFrom(from.detection_output_param());
16542     }
16543     if (cached_has_bits & 0x00040000u) {
16544       mutable_permute_param()->::opencv_caffe::PermuteParameter::MergeFrom(from.permute_param());
16545     }
16546     if (cached_has_bits & 0x00080000u) {
16547       mutable_norm_param()->::opencv_caffe::NormalizeBBoxParameter::MergeFrom(from.norm_param());
16548     }
16549     if (cached_has_bits & 0x00100000u) {
16550       mutable_prior_box_param()->::opencv_caffe::PriorBoxParameter::MergeFrom(from.prior_box_param());
16551     }
16552     if (cached_has_bits & 0x00200000u) {
16553       mutable_proposal_param()->::opencv_caffe::ProposalParameter::MergeFrom(from.proposal_param());
16554     }
16555     if (cached_has_bits & 0x00400000u) {
16556       mutable_psroi_pooling_param()->::opencv_caffe::PSROIPoolingParameter::MergeFrom(from.psroi_pooling_param());
16557     }
16558     if (cached_has_bits & 0x00800000u) {
16559       mutable_roi_pooling_param()->::opencv_caffe::ROIPoolingParameter::MergeFrom(from.roi_pooling_param());
16560     }
16561   }
16562   if (cached_has_bits & 0x01000000u) {
16563     set_phase(from.phase());
16564   }
16565 }
16566 
CopyFrom(const::google::protobuf::Message & from)16567 void LayerParameter::CopyFrom(const ::google::protobuf::Message& from) {
16568 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LayerParameter)
16569   if (&from == this) return;
16570   Clear();
16571   MergeFrom(from);
16572 }
16573 
CopyFrom(const LayerParameter & from)16574 void LayerParameter::CopyFrom(const LayerParameter& from) {
16575 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LayerParameter)
16576   if (&from == this) return;
16577   Clear();
16578   MergeFrom(from);
16579 }
16580 
IsInitialized() const16581 bool LayerParameter::IsInitialized() const {
16582   if (has_psroi_pooling_param()) {
16583     if (!this->psroi_pooling_param_->IsInitialized()) return false;
16584   }
16585   return true;
16586 }
16587 
Swap(LayerParameter * other)16588 void LayerParameter::Swap(LayerParameter* other) {
16589   if (other == this) return;
16590   InternalSwap(other);
16591 }
InternalSwap(LayerParameter * other)16592 void LayerParameter::InternalSwap(LayerParameter* other) {
16593   using std::swap;
16594   bottom_.InternalSwap(&other->bottom_);
16595   top_.InternalSwap(&other->top_);
16596   loss_weight_.InternalSwap(&other->loss_weight_);
16597   param_.InternalSwap(&other->param_);
16598   blobs_.InternalSwap(&other->blobs_);
16599   include_.InternalSwap(&other->include_);
16600   exclude_.InternalSwap(&other->exclude_);
16601   propagate_down_.InternalSwap(&other->propagate_down_);
16602   name_.Swap(&other->name_);
16603   type_.Swap(&other->type_);
16604   swap(transform_param_, other->transform_param_);
16605   swap(loss_param_, other->loss_param_);
16606   swap(accuracy_param_, other->accuracy_param_);
16607   swap(argmax_param_, other->argmax_param_);
16608   swap(concat_param_, other->concat_param_);
16609   swap(contrastive_loss_param_, other->contrastive_loss_param_);
16610   swap(convolution_param_, other->convolution_param_);
16611   swap(data_param_, other->data_param_);
16612   swap(dropout_param_, other->dropout_param_);
16613   swap(dummy_data_param_, other->dummy_data_param_);
16614   swap(eltwise_param_, other->eltwise_param_);
16615   swap(exp_param_, other->exp_param_);
16616   swap(hdf5_data_param_, other->hdf5_data_param_);
16617   swap(hdf5_output_param_, other->hdf5_output_param_);
16618   swap(hinge_loss_param_, other->hinge_loss_param_);
16619   swap(image_data_param_, other->image_data_param_);
16620   swap(infogain_loss_param_, other->infogain_loss_param_);
16621   swap(inner_product_param_, other->inner_product_param_);
16622   swap(lrn_param_, other->lrn_param_);
16623   swap(memory_data_param_, other->memory_data_param_);
16624   swap(mvn_param_, other->mvn_param_);
16625   swap(pooling_param_, other->pooling_param_);
16626   swap(power_param_, other->power_param_);
16627   swap(relu_param_, other->relu_param_);
16628   swap(sigmoid_param_, other->sigmoid_param_);
16629   swap(softmax_param_, other->softmax_param_);
16630   swap(slice_param_, other->slice_param_);
16631   swap(tanh_param_, other->tanh_param_);
16632   swap(threshold_param_, other->threshold_param_);
16633   swap(window_data_param_, other->window_data_param_);
16634   swap(python_param_, other->python_param_);
16635   swap(prelu_param_, other->prelu_param_);
16636   swap(spp_param_, other->spp_param_);
16637   swap(reshape_param_, other->reshape_param_);
16638   swap(log_param_, other->log_param_);
16639   swap(flatten_param_, other->flatten_param_);
16640   swap(reduction_param_, other->reduction_param_);
16641   swap(embed_param_, other->embed_param_);
16642   swap(tile_param_, other->tile_param_);
16643   swap(batch_norm_param_, other->batch_norm_param_);
16644   swap(elu_param_, other->elu_param_);
16645   swap(bias_param_, other->bias_param_);
16646   swap(scale_param_, other->scale_param_);
16647   swap(input_param_, other->input_param_);
16648   swap(crop_param_, other->crop_param_);
16649   swap(parameter_param_, other->parameter_param_);
16650   swap(recurrent_param_, other->recurrent_param_);
16651   swap(detection_output_param_, other->detection_output_param_);
16652   swap(permute_param_, other->permute_param_);
16653   swap(norm_param_, other->norm_param_);
16654   swap(prior_box_param_, other->prior_box_param_);
16655   swap(proposal_param_, other->proposal_param_);
16656   swap(psroi_pooling_param_, other->psroi_pooling_param_);
16657   swap(roi_pooling_param_, other->roi_pooling_param_);
16658   swap(phase_, other->phase_);
16659   swap(_has_bits_[0], other->_has_bits_[0]);
16660   swap(_has_bits_[1], other->_has_bits_[1]);
16661   _internal_metadata_.Swap(&other->_internal_metadata_);
16662   swap(_cached_size_, other->_cached_size_);
16663 }
16664 
GetMetadata() const16665 ::google::protobuf::Metadata LayerParameter::GetMetadata() const {
16666   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
16667   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
16668 }
16669 
16670 
16671 // ===================================================================
16672 
InitAsDefaultInstance()16673 void TransformationParameter::InitAsDefaultInstance() {
16674 }
16675 #if !defined(_MSC_VER) || _MSC_VER >= 1900
16676 const int TransformationParameter::kScaleFieldNumber;
16677 const int TransformationParameter::kMirrorFieldNumber;
16678 const int TransformationParameter::kCropSizeFieldNumber;
16679 const int TransformationParameter::kMeanFileFieldNumber;
16680 const int TransformationParameter::kMeanValueFieldNumber;
16681 const int TransformationParameter::kForceColorFieldNumber;
16682 const int TransformationParameter::kForceGrayFieldNumber;
16683 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
16684 
TransformationParameter()16685 TransformationParameter::TransformationParameter()
16686   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
16687   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
16688     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameter();
16689   }
16690   SharedCtor();
16691   // @@protoc_insertion_point(constructor:opencv_caffe.TransformationParameter)
16692 }
TransformationParameter(const TransformationParameter & from)16693 TransformationParameter::TransformationParameter(const TransformationParameter& from)
16694   : ::google::protobuf::Message(),
16695       _internal_metadata_(NULL),
16696       _has_bits_(from._has_bits_),
16697       _cached_size_(0),
16698       mean_value_(from.mean_value_) {
16699   _internal_metadata_.MergeFrom(from._internal_metadata_);
16700   mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
16701   if (from.has_mean_file()) {
16702     mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_);
16703   }
16704   ::memcpy(&crop_size_, &from.crop_size_,
16705     static_cast<size_t>(reinterpret_cast<char*>(&scale_) -
16706     reinterpret_cast<char*>(&crop_size_)) + sizeof(scale_));
16707   // @@protoc_insertion_point(copy_constructor:opencv_caffe.TransformationParameter)
16708 }
16709 
SharedCtor()16710 void TransformationParameter::SharedCtor() {
16711   _cached_size_ = 0;
16712   mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
16713   ::memset(&crop_size_, 0, static_cast<size_t>(
16714       reinterpret_cast<char*>(&force_gray_) -
16715       reinterpret_cast<char*>(&crop_size_)) + sizeof(force_gray_));
16716   scale_ = 1;
16717 }
16718 
~TransformationParameter()16719 TransformationParameter::~TransformationParameter() {
16720   // @@protoc_insertion_point(destructor:opencv_caffe.TransformationParameter)
16721   SharedDtor();
16722 }
16723 
SharedDtor()16724 void TransformationParameter::SharedDtor() {
16725   mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
16726 }
16727 
SetCachedSize(int size) const16728 void TransformationParameter::SetCachedSize(int size) const {
16729   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
16730   _cached_size_ = size;
16731   GOOGLE_SAFE_CONCURRENT_WRITES_END();
16732 }
descriptor()16733 const ::google::protobuf::Descriptor* TransformationParameter::descriptor() {
16734   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
16735   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
16736 }
16737 
default_instance()16738 const TransformationParameter& TransformationParameter::default_instance() {
16739   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTransformationParameter();
16740   return *internal_default_instance();
16741 }
16742 
New(::google::protobuf::Arena * arena) const16743 TransformationParameter* TransformationParameter::New(::google::protobuf::Arena* arena) const {
16744   TransformationParameter* n = new TransformationParameter;
16745   if (arena != NULL) {
16746     arena->Own(n);
16747   }
16748   return n;
16749 }
16750 
Clear()16751 void TransformationParameter::Clear() {
16752 // @@protoc_insertion_point(message_clear_start:opencv_caffe.TransformationParameter)
16753   ::google::protobuf::uint32 cached_has_bits = 0;
16754   // Prevent compiler warnings about cached_has_bits being unused
16755   (void) cached_has_bits;
16756 
16757   mean_value_.Clear();
16758   cached_has_bits = _has_bits_[0];
16759   if (cached_has_bits & 0x00000001u) {
16760     GOOGLE_DCHECK(!mean_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
16761     (*mean_file_.UnsafeRawStringPointer())->clear();
16762   }
16763   if (cached_has_bits & 62u) {
16764     ::memset(&crop_size_, 0, static_cast<size_t>(
16765         reinterpret_cast<char*>(&force_gray_) -
16766         reinterpret_cast<char*>(&crop_size_)) + sizeof(force_gray_));
16767     scale_ = 1;
16768   }
16769   _has_bits_.Clear();
16770   _internal_metadata_.Clear();
16771 }
16772 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)16773 bool TransformationParameter::MergePartialFromCodedStream(
16774     ::google::protobuf::io::CodedInputStream* input) {
16775 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
16776   ::google::protobuf::uint32 tag;
16777   // @@protoc_insertion_point(parse_start:opencv_caffe.TransformationParameter)
16778   for (;;) {
16779     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
16780     tag = p.first;
16781     if (!p.second) goto handle_unusual;
16782     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
16783       // optional float scale = 1 [default = 1];
16784       case 1: {
16785         if (static_cast< ::google::protobuf::uint8>(tag) ==
16786             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
16787           set_has_scale();
16788           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
16789                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
16790                  input, &scale_)));
16791         } else {
16792           goto handle_unusual;
16793         }
16794         break;
16795       }
16796 
16797       // optional bool mirror = 2 [default = false];
16798       case 2: {
16799         if (static_cast< ::google::protobuf::uint8>(tag) ==
16800             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
16801           set_has_mirror();
16802           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
16803                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
16804                  input, &mirror_)));
16805         } else {
16806           goto handle_unusual;
16807         }
16808         break;
16809       }
16810 
16811       // optional uint32 crop_size = 3 [default = 0];
16812       case 3: {
16813         if (static_cast< ::google::protobuf::uint8>(tag) ==
16814             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
16815           set_has_crop_size();
16816           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
16817                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
16818                  input, &crop_size_)));
16819         } else {
16820           goto handle_unusual;
16821         }
16822         break;
16823       }
16824 
16825       // optional string mean_file = 4;
16826       case 4: {
16827         if (static_cast< ::google::protobuf::uint8>(tag) ==
16828             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
16829           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
16830                 input, this->mutable_mean_file()));
16831           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
16832             this->mean_file().data(), static_cast<int>(this->mean_file().length()),
16833             ::google::protobuf::internal::WireFormat::PARSE,
16834             "opencv_caffe.TransformationParameter.mean_file");
16835         } else {
16836           goto handle_unusual;
16837         }
16838         break;
16839       }
16840 
16841       // repeated float mean_value = 5;
16842       case 5: {
16843         if (static_cast< ::google::protobuf::uint8>(tag) ==
16844             static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
16845           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
16846                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
16847                  1, 45u, input, this->mutable_mean_value())));
16848         } else if (
16849             static_cast< ::google::protobuf::uint8>(tag) ==
16850             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
16851           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
16852                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
16853                  input, this->mutable_mean_value())));
16854         } else {
16855           goto handle_unusual;
16856         }
16857         break;
16858       }
16859 
16860       // optional bool force_color = 6 [default = false];
16861       case 6: {
16862         if (static_cast< ::google::protobuf::uint8>(tag) ==
16863             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
16864           set_has_force_color();
16865           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
16866                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
16867                  input, &force_color_)));
16868         } else {
16869           goto handle_unusual;
16870         }
16871         break;
16872       }
16873 
16874       // optional bool force_gray = 7 [default = false];
16875       case 7: {
16876         if (static_cast< ::google::protobuf::uint8>(tag) ==
16877             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
16878           set_has_force_gray();
16879           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
16880                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
16881                  input, &force_gray_)));
16882         } else {
16883           goto handle_unusual;
16884         }
16885         break;
16886       }
16887 
16888       default: {
16889       handle_unusual:
16890         if (tag == 0) {
16891           goto success;
16892         }
16893         DO_(::google::protobuf::internal::WireFormat::SkipField(
16894               input, tag, _internal_metadata_.mutable_unknown_fields()));
16895         break;
16896       }
16897     }
16898   }
16899 success:
16900   // @@protoc_insertion_point(parse_success:opencv_caffe.TransformationParameter)
16901   return true;
16902 failure:
16903   // @@protoc_insertion_point(parse_failure:opencv_caffe.TransformationParameter)
16904   return false;
16905 #undef DO_
16906 }
16907 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const16908 void TransformationParameter::SerializeWithCachedSizes(
16909     ::google::protobuf::io::CodedOutputStream* output) const {
16910   // @@protoc_insertion_point(serialize_start:opencv_caffe.TransformationParameter)
16911   ::google::protobuf::uint32 cached_has_bits = 0;
16912   (void) cached_has_bits;
16913 
16914   cached_has_bits = _has_bits_[0];
16915   // optional float scale = 1 [default = 1];
16916   if (cached_has_bits & 0x00000020u) {
16917     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->scale(), output);
16918   }
16919 
16920   // optional bool mirror = 2 [default = false];
16921   if (cached_has_bits & 0x00000004u) {
16922     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->mirror(), output);
16923   }
16924 
16925   // optional uint32 crop_size = 3 [default = 0];
16926   if (cached_has_bits & 0x00000002u) {
16927     ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->crop_size(), output);
16928   }
16929 
16930   // optional string mean_file = 4;
16931   if (cached_has_bits & 0x00000001u) {
16932     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
16933       this->mean_file().data(), static_cast<int>(this->mean_file().length()),
16934       ::google::protobuf::internal::WireFormat::SERIALIZE,
16935       "opencv_caffe.TransformationParameter.mean_file");
16936     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
16937       4, this->mean_file(), output);
16938   }
16939 
16940   // repeated float mean_value = 5;
16941   for (int i = 0, n = this->mean_value_size(); i < n; i++) {
16942     ::google::protobuf::internal::WireFormatLite::WriteFloat(
16943       5, this->mean_value(i), output);
16944   }
16945 
16946   // optional bool force_color = 6 [default = false];
16947   if (cached_has_bits & 0x00000008u) {
16948     ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->force_color(), output);
16949   }
16950 
16951   // optional bool force_gray = 7 [default = false];
16952   if (cached_has_bits & 0x00000010u) {
16953     ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->force_gray(), output);
16954   }
16955 
16956   if (_internal_metadata_.have_unknown_fields()) {
16957     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
16958         _internal_metadata_.unknown_fields(), output);
16959   }
16960   // @@protoc_insertion_point(serialize_end:opencv_caffe.TransformationParameter)
16961 }
16962 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const16963 ::google::protobuf::uint8* TransformationParameter::InternalSerializeWithCachedSizesToArray(
16964     bool deterministic, ::google::protobuf::uint8* target) const {
16965   (void)deterministic; // Unused
16966   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TransformationParameter)
16967   ::google::protobuf::uint32 cached_has_bits = 0;
16968   (void) cached_has_bits;
16969 
16970   cached_has_bits = _has_bits_[0];
16971   // optional float scale = 1 [default = 1];
16972   if (cached_has_bits & 0x00000020u) {
16973     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->scale(), target);
16974   }
16975 
16976   // optional bool mirror = 2 [default = false];
16977   if (cached_has_bits & 0x00000004u) {
16978     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->mirror(), target);
16979   }
16980 
16981   // optional uint32 crop_size = 3 [default = 0];
16982   if (cached_has_bits & 0x00000002u) {
16983     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->crop_size(), target);
16984   }
16985 
16986   // optional string mean_file = 4;
16987   if (cached_has_bits & 0x00000001u) {
16988     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
16989       this->mean_file().data(), static_cast<int>(this->mean_file().length()),
16990       ::google::protobuf::internal::WireFormat::SERIALIZE,
16991       "opencv_caffe.TransformationParameter.mean_file");
16992     target =
16993       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
16994         4, this->mean_file(), target);
16995   }
16996 
16997   // repeated float mean_value = 5;
16998   target = ::google::protobuf::internal::WireFormatLite::
16999     WriteFloatToArray(5, this->mean_value_, target);
17000 
17001   // optional bool force_color = 6 [default = false];
17002   if (cached_has_bits & 0x00000008u) {
17003     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->force_color(), target);
17004   }
17005 
17006   // optional bool force_gray = 7 [default = false];
17007   if (cached_has_bits & 0x00000010u) {
17008     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->force_gray(), target);
17009   }
17010 
17011   if (_internal_metadata_.have_unknown_fields()) {
17012     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
17013         _internal_metadata_.unknown_fields(), target);
17014   }
17015   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TransformationParameter)
17016   return target;
17017 }
17018 
ByteSizeLong() const17019 size_t TransformationParameter::ByteSizeLong() const {
17020 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TransformationParameter)
17021   size_t total_size = 0;
17022 
17023   if (_internal_metadata_.have_unknown_fields()) {
17024     total_size +=
17025       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
17026         _internal_metadata_.unknown_fields());
17027   }
17028   // repeated float mean_value = 5;
17029   {
17030     unsigned int count = static_cast<unsigned int>(this->mean_value_size());
17031     size_t data_size = 4UL * count;
17032     total_size += 1 *
17033                   ::google::protobuf::internal::FromIntSize(this->mean_value_size());
17034     total_size += data_size;
17035   }
17036 
17037   if (_has_bits_[0 / 32] & 63u) {
17038     // optional string mean_file = 4;
17039     if (has_mean_file()) {
17040       total_size += 1 +
17041         ::google::protobuf::internal::WireFormatLite::StringSize(
17042           this->mean_file());
17043     }
17044 
17045     // optional uint32 crop_size = 3 [default = 0];
17046     if (has_crop_size()) {
17047       total_size += 1 +
17048         ::google::protobuf::internal::WireFormatLite::UInt32Size(
17049           this->crop_size());
17050     }
17051 
17052     // optional bool mirror = 2 [default = false];
17053     if (has_mirror()) {
17054       total_size += 1 + 1;
17055     }
17056 
17057     // optional bool force_color = 6 [default = false];
17058     if (has_force_color()) {
17059       total_size += 1 + 1;
17060     }
17061 
17062     // optional bool force_gray = 7 [default = false];
17063     if (has_force_gray()) {
17064       total_size += 1 + 1;
17065     }
17066 
17067     // optional float scale = 1 [default = 1];
17068     if (has_scale()) {
17069       total_size += 1 + 4;
17070     }
17071 
17072   }
17073   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
17074   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17075   _cached_size_ = cached_size;
17076   GOOGLE_SAFE_CONCURRENT_WRITES_END();
17077   return total_size;
17078 }
17079 
MergeFrom(const::google::protobuf::Message & from)17080 void TransformationParameter::MergeFrom(const ::google::protobuf::Message& from) {
17081 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TransformationParameter)
17082   GOOGLE_DCHECK_NE(&from, this);
17083   const TransformationParameter* source =
17084       ::google::protobuf::internal::DynamicCastToGenerated<const TransformationParameter>(
17085           &from);
17086   if (source == NULL) {
17087   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TransformationParameter)
17088     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
17089   } else {
17090   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TransformationParameter)
17091     MergeFrom(*source);
17092   }
17093 }
17094 
MergeFrom(const TransformationParameter & from)17095 void TransformationParameter::MergeFrom(const TransformationParameter& from) {
17096 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TransformationParameter)
17097   GOOGLE_DCHECK_NE(&from, this);
17098   _internal_metadata_.MergeFrom(from._internal_metadata_);
17099   ::google::protobuf::uint32 cached_has_bits = 0;
17100   (void) cached_has_bits;
17101 
17102   mean_value_.MergeFrom(from.mean_value_);
17103   cached_has_bits = from._has_bits_[0];
17104   if (cached_has_bits & 63u) {
17105     if (cached_has_bits & 0x00000001u) {
17106       set_has_mean_file();
17107       mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_);
17108     }
17109     if (cached_has_bits & 0x00000002u) {
17110       crop_size_ = from.crop_size_;
17111     }
17112     if (cached_has_bits & 0x00000004u) {
17113       mirror_ = from.mirror_;
17114     }
17115     if (cached_has_bits & 0x00000008u) {
17116       force_color_ = from.force_color_;
17117     }
17118     if (cached_has_bits & 0x00000010u) {
17119       force_gray_ = from.force_gray_;
17120     }
17121     if (cached_has_bits & 0x00000020u) {
17122       scale_ = from.scale_;
17123     }
17124     _has_bits_[0] |= cached_has_bits;
17125   }
17126 }
17127 
CopyFrom(const::google::protobuf::Message & from)17128 void TransformationParameter::CopyFrom(const ::google::protobuf::Message& from) {
17129 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TransformationParameter)
17130   if (&from == this) return;
17131   Clear();
17132   MergeFrom(from);
17133 }
17134 
CopyFrom(const TransformationParameter & from)17135 void TransformationParameter::CopyFrom(const TransformationParameter& from) {
17136 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TransformationParameter)
17137   if (&from == this) return;
17138   Clear();
17139   MergeFrom(from);
17140 }
17141 
IsInitialized() const17142 bool TransformationParameter::IsInitialized() const {
17143   return true;
17144 }
17145 
Swap(TransformationParameter * other)17146 void TransformationParameter::Swap(TransformationParameter* other) {
17147   if (other == this) return;
17148   InternalSwap(other);
17149 }
InternalSwap(TransformationParameter * other)17150 void TransformationParameter::InternalSwap(TransformationParameter* other) {
17151   using std::swap;
17152   mean_value_.InternalSwap(&other->mean_value_);
17153   mean_file_.Swap(&other->mean_file_);
17154   swap(crop_size_, other->crop_size_);
17155   swap(mirror_, other->mirror_);
17156   swap(force_color_, other->force_color_);
17157   swap(force_gray_, other->force_gray_);
17158   swap(scale_, other->scale_);
17159   swap(_has_bits_[0], other->_has_bits_[0]);
17160   _internal_metadata_.Swap(&other->_internal_metadata_);
17161   swap(_cached_size_, other->_cached_size_);
17162 }
17163 
GetMetadata() const17164 ::google::protobuf::Metadata TransformationParameter::GetMetadata() const {
17165   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
17166   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
17167 }
17168 
17169 
17170 // ===================================================================
17171 
InitAsDefaultInstance()17172 void LossParameter::InitAsDefaultInstance() {
17173 }
17174 #if !defined(_MSC_VER) || _MSC_VER >= 1900
17175 const int LossParameter::kIgnoreLabelFieldNumber;
17176 const int LossParameter::kNormalizationFieldNumber;
17177 const int LossParameter::kNormalizeFieldNumber;
17178 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
17179 
LossParameter()17180 LossParameter::LossParameter()
17181   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
17182   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
17183     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameter();
17184   }
17185   SharedCtor();
17186   // @@protoc_insertion_point(constructor:opencv_caffe.LossParameter)
17187 }
LossParameter(const LossParameter & from)17188 LossParameter::LossParameter(const LossParameter& from)
17189   : ::google::protobuf::Message(),
17190       _internal_metadata_(NULL),
17191       _has_bits_(from._has_bits_),
17192       _cached_size_(0) {
17193   _internal_metadata_.MergeFrom(from._internal_metadata_);
17194   ::memcpy(&ignore_label_, &from.ignore_label_,
17195     static_cast<size_t>(reinterpret_cast<char*>(&normalization_) -
17196     reinterpret_cast<char*>(&ignore_label_)) + sizeof(normalization_));
17197   // @@protoc_insertion_point(copy_constructor:opencv_caffe.LossParameter)
17198 }
17199 
SharedCtor()17200 void LossParameter::SharedCtor() {
17201   _cached_size_ = 0;
17202   ::memset(&ignore_label_, 0, static_cast<size_t>(
17203       reinterpret_cast<char*>(&normalize_) -
17204       reinterpret_cast<char*>(&ignore_label_)) + sizeof(normalize_));
17205   normalization_ = 1;
17206 }
17207 
~LossParameter()17208 LossParameter::~LossParameter() {
17209   // @@protoc_insertion_point(destructor:opencv_caffe.LossParameter)
17210   SharedDtor();
17211 }
17212 
SharedDtor()17213 void LossParameter::SharedDtor() {
17214 }
17215 
SetCachedSize(int size) const17216 void LossParameter::SetCachedSize(int size) const {
17217   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17218   _cached_size_ = size;
17219   GOOGLE_SAFE_CONCURRENT_WRITES_END();
17220 }
descriptor()17221 const ::google::protobuf::Descriptor* LossParameter::descriptor() {
17222   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
17223   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
17224 }
17225 
default_instance()17226 const LossParameter& LossParameter::default_instance() {
17227   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLossParameter();
17228   return *internal_default_instance();
17229 }
17230 
New(::google::protobuf::Arena * arena) const17231 LossParameter* LossParameter::New(::google::protobuf::Arena* arena) const {
17232   LossParameter* n = new LossParameter;
17233   if (arena != NULL) {
17234     arena->Own(n);
17235   }
17236   return n;
17237 }
17238 
Clear()17239 void LossParameter::Clear() {
17240 // @@protoc_insertion_point(message_clear_start:opencv_caffe.LossParameter)
17241   ::google::protobuf::uint32 cached_has_bits = 0;
17242   // Prevent compiler warnings about cached_has_bits being unused
17243   (void) cached_has_bits;
17244 
17245   cached_has_bits = _has_bits_[0];
17246   if (cached_has_bits & 7u) {
17247     ::memset(&ignore_label_, 0, static_cast<size_t>(
17248         reinterpret_cast<char*>(&normalize_) -
17249         reinterpret_cast<char*>(&ignore_label_)) + sizeof(normalize_));
17250     normalization_ = 1;
17251   }
17252   _has_bits_.Clear();
17253   _internal_metadata_.Clear();
17254 }
17255 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)17256 bool LossParameter::MergePartialFromCodedStream(
17257     ::google::protobuf::io::CodedInputStream* input) {
17258 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
17259   ::google::protobuf::uint32 tag;
17260   // @@protoc_insertion_point(parse_start:opencv_caffe.LossParameter)
17261   for (;;) {
17262     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
17263     tag = p.first;
17264     if (!p.second) goto handle_unusual;
17265     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
17266       // optional int32 ignore_label = 1;
17267       case 1: {
17268         if (static_cast< ::google::protobuf::uint8>(tag) ==
17269             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
17270           set_has_ignore_label();
17271           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17272                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
17273                  input, &ignore_label_)));
17274         } else {
17275           goto handle_unusual;
17276         }
17277         break;
17278       }
17279 
17280       // optional bool normalize = 2;
17281       case 2: {
17282         if (static_cast< ::google::protobuf::uint8>(tag) ==
17283             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
17284           set_has_normalize();
17285           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17286                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
17287                  input, &normalize_)));
17288         } else {
17289           goto handle_unusual;
17290         }
17291         break;
17292       }
17293 
17294       // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID];
17295       case 3: {
17296         if (static_cast< ::google::protobuf::uint8>(tag) ==
17297             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
17298           int value;
17299           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17300                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
17301                  input, &value)));
17302           if (::opencv_caffe::LossParameter_NormalizationMode_IsValid(value)) {
17303             set_normalization(static_cast< ::opencv_caffe::LossParameter_NormalizationMode >(value));
17304           } else {
17305             mutable_unknown_fields()->AddVarint(
17306                 3, static_cast< ::google::protobuf::uint64>(value));
17307           }
17308         } else {
17309           goto handle_unusual;
17310         }
17311         break;
17312       }
17313 
17314       default: {
17315       handle_unusual:
17316         if (tag == 0) {
17317           goto success;
17318         }
17319         DO_(::google::protobuf::internal::WireFormat::SkipField(
17320               input, tag, _internal_metadata_.mutable_unknown_fields()));
17321         break;
17322       }
17323     }
17324   }
17325 success:
17326   // @@protoc_insertion_point(parse_success:opencv_caffe.LossParameter)
17327   return true;
17328 failure:
17329   // @@protoc_insertion_point(parse_failure:opencv_caffe.LossParameter)
17330   return false;
17331 #undef DO_
17332 }
17333 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const17334 void LossParameter::SerializeWithCachedSizes(
17335     ::google::protobuf::io::CodedOutputStream* output) const {
17336   // @@protoc_insertion_point(serialize_start:opencv_caffe.LossParameter)
17337   ::google::protobuf::uint32 cached_has_bits = 0;
17338   (void) cached_has_bits;
17339 
17340   cached_has_bits = _has_bits_[0];
17341   // optional int32 ignore_label = 1;
17342   if (cached_has_bits & 0x00000001u) {
17343     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->ignore_label(), output);
17344   }
17345 
17346   // optional bool normalize = 2;
17347   if (cached_has_bits & 0x00000002u) {
17348     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->normalize(), output);
17349   }
17350 
17351   // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID];
17352   if (cached_has_bits & 0x00000004u) {
17353     ::google::protobuf::internal::WireFormatLite::WriteEnum(
17354       3, this->normalization(), output);
17355   }
17356 
17357   if (_internal_metadata_.have_unknown_fields()) {
17358     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
17359         _internal_metadata_.unknown_fields(), output);
17360   }
17361   // @@protoc_insertion_point(serialize_end:opencv_caffe.LossParameter)
17362 }
17363 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const17364 ::google::protobuf::uint8* LossParameter::InternalSerializeWithCachedSizesToArray(
17365     bool deterministic, ::google::protobuf::uint8* target) const {
17366   (void)deterministic; // Unused
17367   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LossParameter)
17368   ::google::protobuf::uint32 cached_has_bits = 0;
17369   (void) cached_has_bits;
17370 
17371   cached_has_bits = _has_bits_[0];
17372   // optional int32 ignore_label = 1;
17373   if (cached_has_bits & 0x00000001u) {
17374     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->ignore_label(), target);
17375   }
17376 
17377   // optional bool normalize = 2;
17378   if (cached_has_bits & 0x00000002u) {
17379     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->normalize(), target);
17380   }
17381 
17382   // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID];
17383   if (cached_has_bits & 0x00000004u) {
17384     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
17385       3, this->normalization(), target);
17386   }
17387 
17388   if (_internal_metadata_.have_unknown_fields()) {
17389     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
17390         _internal_metadata_.unknown_fields(), target);
17391   }
17392   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LossParameter)
17393   return target;
17394 }
17395 
ByteSizeLong() const17396 size_t LossParameter::ByteSizeLong() const {
17397 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LossParameter)
17398   size_t total_size = 0;
17399 
17400   if (_internal_metadata_.have_unknown_fields()) {
17401     total_size +=
17402       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
17403         _internal_metadata_.unknown_fields());
17404   }
17405   if (_has_bits_[0 / 32] & 7u) {
17406     // optional int32 ignore_label = 1;
17407     if (has_ignore_label()) {
17408       total_size += 1 +
17409         ::google::protobuf::internal::WireFormatLite::Int32Size(
17410           this->ignore_label());
17411     }
17412 
17413     // optional bool normalize = 2;
17414     if (has_normalize()) {
17415       total_size += 1 + 1;
17416     }
17417 
17418     // optional .opencv_caffe.LossParameter.NormalizationMode normalization = 3 [default = VALID];
17419     if (has_normalization()) {
17420       total_size += 1 +
17421         ::google::protobuf::internal::WireFormatLite::EnumSize(this->normalization());
17422     }
17423 
17424   }
17425   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
17426   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17427   _cached_size_ = cached_size;
17428   GOOGLE_SAFE_CONCURRENT_WRITES_END();
17429   return total_size;
17430 }
17431 
MergeFrom(const::google::protobuf::Message & from)17432 void LossParameter::MergeFrom(const ::google::protobuf::Message& from) {
17433 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LossParameter)
17434   GOOGLE_DCHECK_NE(&from, this);
17435   const LossParameter* source =
17436       ::google::protobuf::internal::DynamicCastToGenerated<const LossParameter>(
17437           &from);
17438   if (source == NULL) {
17439   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LossParameter)
17440     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
17441   } else {
17442   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LossParameter)
17443     MergeFrom(*source);
17444   }
17445 }
17446 
MergeFrom(const LossParameter & from)17447 void LossParameter::MergeFrom(const LossParameter& from) {
17448 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LossParameter)
17449   GOOGLE_DCHECK_NE(&from, this);
17450   _internal_metadata_.MergeFrom(from._internal_metadata_);
17451   ::google::protobuf::uint32 cached_has_bits = 0;
17452   (void) cached_has_bits;
17453 
17454   cached_has_bits = from._has_bits_[0];
17455   if (cached_has_bits & 7u) {
17456     if (cached_has_bits & 0x00000001u) {
17457       ignore_label_ = from.ignore_label_;
17458     }
17459     if (cached_has_bits & 0x00000002u) {
17460       normalize_ = from.normalize_;
17461     }
17462     if (cached_has_bits & 0x00000004u) {
17463       normalization_ = from.normalization_;
17464     }
17465     _has_bits_[0] |= cached_has_bits;
17466   }
17467 }
17468 
CopyFrom(const::google::protobuf::Message & from)17469 void LossParameter::CopyFrom(const ::google::protobuf::Message& from) {
17470 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LossParameter)
17471   if (&from == this) return;
17472   Clear();
17473   MergeFrom(from);
17474 }
17475 
CopyFrom(const LossParameter & from)17476 void LossParameter::CopyFrom(const LossParameter& from) {
17477 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LossParameter)
17478   if (&from == this) return;
17479   Clear();
17480   MergeFrom(from);
17481 }
17482 
IsInitialized() const17483 bool LossParameter::IsInitialized() const {
17484   return true;
17485 }
17486 
Swap(LossParameter * other)17487 void LossParameter::Swap(LossParameter* other) {
17488   if (other == this) return;
17489   InternalSwap(other);
17490 }
InternalSwap(LossParameter * other)17491 void LossParameter::InternalSwap(LossParameter* other) {
17492   using std::swap;
17493   swap(ignore_label_, other->ignore_label_);
17494   swap(normalize_, other->normalize_);
17495   swap(normalization_, other->normalization_);
17496   swap(_has_bits_[0], other->_has_bits_[0]);
17497   _internal_metadata_.Swap(&other->_internal_metadata_);
17498   swap(_cached_size_, other->_cached_size_);
17499 }
17500 
GetMetadata() const17501 ::google::protobuf::Metadata LossParameter::GetMetadata() const {
17502   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
17503   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
17504 }
17505 
17506 
17507 // ===================================================================
17508 
InitAsDefaultInstance()17509 void AccuracyParameter::InitAsDefaultInstance() {
17510 }
17511 #if !defined(_MSC_VER) || _MSC_VER >= 1900
17512 const int AccuracyParameter::kTopKFieldNumber;
17513 const int AccuracyParameter::kAxisFieldNumber;
17514 const int AccuracyParameter::kIgnoreLabelFieldNumber;
17515 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
17516 
AccuracyParameter()17517 AccuracyParameter::AccuracyParameter()
17518   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
17519   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
17520     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameter();
17521   }
17522   SharedCtor();
17523   // @@protoc_insertion_point(constructor:opencv_caffe.AccuracyParameter)
17524 }
AccuracyParameter(const AccuracyParameter & from)17525 AccuracyParameter::AccuracyParameter(const AccuracyParameter& from)
17526   : ::google::protobuf::Message(),
17527       _internal_metadata_(NULL),
17528       _has_bits_(from._has_bits_),
17529       _cached_size_(0) {
17530   _internal_metadata_.MergeFrom(from._internal_metadata_);
17531   ::memcpy(&ignore_label_, &from.ignore_label_,
17532     static_cast<size_t>(reinterpret_cast<char*>(&axis_) -
17533     reinterpret_cast<char*>(&ignore_label_)) + sizeof(axis_));
17534   // @@protoc_insertion_point(copy_constructor:opencv_caffe.AccuracyParameter)
17535 }
17536 
SharedCtor()17537 void AccuracyParameter::SharedCtor() {
17538   _cached_size_ = 0;
17539   ignore_label_ = 0;
17540   top_k_ = 1u;
17541   axis_ = 1;
17542 }
17543 
~AccuracyParameter()17544 AccuracyParameter::~AccuracyParameter() {
17545   // @@protoc_insertion_point(destructor:opencv_caffe.AccuracyParameter)
17546   SharedDtor();
17547 }
17548 
SharedDtor()17549 void AccuracyParameter::SharedDtor() {
17550 }
17551 
SetCachedSize(int size) const17552 void AccuracyParameter::SetCachedSize(int size) const {
17553   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17554   _cached_size_ = size;
17555   GOOGLE_SAFE_CONCURRENT_WRITES_END();
17556 }
descriptor()17557 const ::google::protobuf::Descriptor* AccuracyParameter::descriptor() {
17558   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
17559   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
17560 }
17561 
default_instance()17562 const AccuracyParameter& AccuracyParameter::default_instance() {
17563   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsAccuracyParameter();
17564   return *internal_default_instance();
17565 }
17566 
New(::google::protobuf::Arena * arena) const17567 AccuracyParameter* AccuracyParameter::New(::google::protobuf::Arena* arena) const {
17568   AccuracyParameter* n = new AccuracyParameter;
17569   if (arena != NULL) {
17570     arena->Own(n);
17571   }
17572   return n;
17573 }
17574 
Clear()17575 void AccuracyParameter::Clear() {
17576 // @@protoc_insertion_point(message_clear_start:opencv_caffe.AccuracyParameter)
17577   ::google::protobuf::uint32 cached_has_bits = 0;
17578   // Prevent compiler warnings about cached_has_bits being unused
17579   (void) cached_has_bits;
17580 
17581   cached_has_bits = _has_bits_[0];
17582   if (cached_has_bits & 7u) {
17583     ignore_label_ = 0;
17584     top_k_ = 1u;
17585     axis_ = 1;
17586   }
17587   _has_bits_.Clear();
17588   _internal_metadata_.Clear();
17589 }
17590 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)17591 bool AccuracyParameter::MergePartialFromCodedStream(
17592     ::google::protobuf::io::CodedInputStream* input) {
17593 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
17594   ::google::protobuf::uint32 tag;
17595   // @@protoc_insertion_point(parse_start:opencv_caffe.AccuracyParameter)
17596   for (;;) {
17597     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
17598     tag = p.first;
17599     if (!p.second) goto handle_unusual;
17600     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
17601       // optional uint32 top_k = 1 [default = 1];
17602       case 1: {
17603         if (static_cast< ::google::protobuf::uint8>(tag) ==
17604             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
17605           set_has_top_k();
17606           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17607                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
17608                  input, &top_k_)));
17609         } else {
17610           goto handle_unusual;
17611         }
17612         break;
17613       }
17614 
17615       // optional int32 axis = 2 [default = 1];
17616       case 2: {
17617         if (static_cast< ::google::protobuf::uint8>(tag) ==
17618             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
17619           set_has_axis();
17620           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17621                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
17622                  input, &axis_)));
17623         } else {
17624           goto handle_unusual;
17625         }
17626         break;
17627       }
17628 
17629       // optional int32 ignore_label = 3;
17630       case 3: {
17631         if (static_cast< ::google::protobuf::uint8>(tag) ==
17632             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
17633           set_has_ignore_label();
17634           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17635                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
17636                  input, &ignore_label_)));
17637         } else {
17638           goto handle_unusual;
17639         }
17640         break;
17641       }
17642 
17643       default: {
17644       handle_unusual:
17645         if (tag == 0) {
17646           goto success;
17647         }
17648         DO_(::google::protobuf::internal::WireFormat::SkipField(
17649               input, tag, _internal_metadata_.mutable_unknown_fields()));
17650         break;
17651       }
17652     }
17653   }
17654 success:
17655   // @@protoc_insertion_point(parse_success:opencv_caffe.AccuracyParameter)
17656   return true;
17657 failure:
17658   // @@protoc_insertion_point(parse_failure:opencv_caffe.AccuracyParameter)
17659   return false;
17660 #undef DO_
17661 }
17662 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const17663 void AccuracyParameter::SerializeWithCachedSizes(
17664     ::google::protobuf::io::CodedOutputStream* output) const {
17665   // @@protoc_insertion_point(serialize_start:opencv_caffe.AccuracyParameter)
17666   ::google::protobuf::uint32 cached_has_bits = 0;
17667   (void) cached_has_bits;
17668 
17669   cached_has_bits = _has_bits_[0];
17670   // optional uint32 top_k = 1 [default = 1];
17671   if (cached_has_bits & 0x00000002u) {
17672     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->top_k(), output);
17673   }
17674 
17675   // optional int32 axis = 2 [default = 1];
17676   if (cached_has_bits & 0x00000004u) {
17677     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output);
17678   }
17679 
17680   // optional int32 ignore_label = 3;
17681   if (cached_has_bits & 0x00000001u) {
17682     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->ignore_label(), output);
17683   }
17684 
17685   if (_internal_metadata_.have_unknown_fields()) {
17686     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
17687         _internal_metadata_.unknown_fields(), output);
17688   }
17689   // @@protoc_insertion_point(serialize_end:opencv_caffe.AccuracyParameter)
17690 }
17691 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const17692 ::google::protobuf::uint8* AccuracyParameter::InternalSerializeWithCachedSizesToArray(
17693     bool deterministic, ::google::protobuf::uint8* target) const {
17694   (void)deterministic; // Unused
17695   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.AccuracyParameter)
17696   ::google::protobuf::uint32 cached_has_bits = 0;
17697   (void) cached_has_bits;
17698 
17699   cached_has_bits = _has_bits_[0];
17700   // optional uint32 top_k = 1 [default = 1];
17701   if (cached_has_bits & 0x00000002u) {
17702     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->top_k(), target);
17703   }
17704 
17705   // optional int32 axis = 2 [default = 1];
17706   if (cached_has_bits & 0x00000004u) {
17707     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target);
17708   }
17709 
17710   // optional int32 ignore_label = 3;
17711   if (cached_has_bits & 0x00000001u) {
17712     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->ignore_label(), target);
17713   }
17714 
17715   if (_internal_metadata_.have_unknown_fields()) {
17716     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
17717         _internal_metadata_.unknown_fields(), target);
17718   }
17719   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.AccuracyParameter)
17720   return target;
17721 }
17722 
ByteSizeLong() const17723 size_t AccuracyParameter::ByteSizeLong() const {
17724 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.AccuracyParameter)
17725   size_t total_size = 0;
17726 
17727   if (_internal_metadata_.have_unknown_fields()) {
17728     total_size +=
17729       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
17730         _internal_metadata_.unknown_fields());
17731   }
17732   if (_has_bits_[0 / 32] & 7u) {
17733     // optional int32 ignore_label = 3;
17734     if (has_ignore_label()) {
17735       total_size += 1 +
17736         ::google::protobuf::internal::WireFormatLite::Int32Size(
17737           this->ignore_label());
17738     }
17739 
17740     // optional uint32 top_k = 1 [default = 1];
17741     if (has_top_k()) {
17742       total_size += 1 +
17743         ::google::protobuf::internal::WireFormatLite::UInt32Size(
17744           this->top_k());
17745     }
17746 
17747     // optional int32 axis = 2 [default = 1];
17748     if (has_axis()) {
17749       total_size += 1 +
17750         ::google::protobuf::internal::WireFormatLite::Int32Size(
17751           this->axis());
17752     }
17753 
17754   }
17755   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
17756   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17757   _cached_size_ = cached_size;
17758   GOOGLE_SAFE_CONCURRENT_WRITES_END();
17759   return total_size;
17760 }
17761 
MergeFrom(const::google::protobuf::Message & from)17762 void AccuracyParameter::MergeFrom(const ::google::protobuf::Message& from) {
17763 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.AccuracyParameter)
17764   GOOGLE_DCHECK_NE(&from, this);
17765   const AccuracyParameter* source =
17766       ::google::protobuf::internal::DynamicCastToGenerated<const AccuracyParameter>(
17767           &from);
17768   if (source == NULL) {
17769   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.AccuracyParameter)
17770     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
17771   } else {
17772   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.AccuracyParameter)
17773     MergeFrom(*source);
17774   }
17775 }
17776 
MergeFrom(const AccuracyParameter & from)17777 void AccuracyParameter::MergeFrom(const AccuracyParameter& from) {
17778 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.AccuracyParameter)
17779   GOOGLE_DCHECK_NE(&from, this);
17780   _internal_metadata_.MergeFrom(from._internal_metadata_);
17781   ::google::protobuf::uint32 cached_has_bits = 0;
17782   (void) cached_has_bits;
17783 
17784   cached_has_bits = from._has_bits_[0];
17785   if (cached_has_bits & 7u) {
17786     if (cached_has_bits & 0x00000001u) {
17787       ignore_label_ = from.ignore_label_;
17788     }
17789     if (cached_has_bits & 0x00000002u) {
17790       top_k_ = from.top_k_;
17791     }
17792     if (cached_has_bits & 0x00000004u) {
17793       axis_ = from.axis_;
17794     }
17795     _has_bits_[0] |= cached_has_bits;
17796   }
17797 }
17798 
CopyFrom(const::google::protobuf::Message & from)17799 void AccuracyParameter::CopyFrom(const ::google::protobuf::Message& from) {
17800 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.AccuracyParameter)
17801   if (&from == this) return;
17802   Clear();
17803   MergeFrom(from);
17804 }
17805 
CopyFrom(const AccuracyParameter & from)17806 void AccuracyParameter::CopyFrom(const AccuracyParameter& from) {
17807 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.AccuracyParameter)
17808   if (&from == this) return;
17809   Clear();
17810   MergeFrom(from);
17811 }
17812 
IsInitialized() const17813 bool AccuracyParameter::IsInitialized() const {
17814   return true;
17815 }
17816 
Swap(AccuracyParameter * other)17817 void AccuracyParameter::Swap(AccuracyParameter* other) {
17818   if (other == this) return;
17819   InternalSwap(other);
17820 }
InternalSwap(AccuracyParameter * other)17821 void AccuracyParameter::InternalSwap(AccuracyParameter* other) {
17822   using std::swap;
17823   swap(ignore_label_, other->ignore_label_);
17824   swap(top_k_, other->top_k_);
17825   swap(axis_, other->axis_);
17826   swap(_has_bits_[0], other->_has_bits_[0]);
17827   _internal_metadata_.Swap(&other->_internal_metadata_);
17828   swap(_cached_size_, other->_cached_size_);
17829 }
17830 
GetMetadata() const17831 ::google::protobuf::Metadata AccuracyParameter::GetMetadata() const {
17832   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
17833   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
17834 }
17835 
17836 
17837 // ===================================================================
17838 
InitAsDefaultInstance()17839 void ArgMaxParameter::InitAsDefaultInstance() {
17840 }
17841 #if !defined(_MSC_VER) || _MSC_VER >= 1900
17842 const int ArgMaxParameter::kOutMaxValFieldNumber;
17843 const int ArgMaxParameter::kTopKFieldNumber;
17844 const int ArgMaxParameter::kAxisFieldNumber;
17845 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
17846 
ArgMaxParameter()17847 ArgMaxParameter::ArgMaxParameter()
17848   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
17849   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
17850     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameter();
17851   }
17852   SharedCtor();
17853   // @@protoc_insertion_point(constructor:opencv_caffe.ArgMaxParameter)
17854 }
ArgMaxParameter(const ArgMaxParameter & from)17855 ArgMaxParameter::ArgMaxParameter(const ArgMaxParameter& from)
17856   : ::google::protobuf::Message(),
17857       _internal_metadata_(NULL),
17858       _has_bits_(from._has_bits_),
17859       _cached_size_(0) {
17860   _internal_metadata_.MergeFrom(from._internal_metadata_);
17861   ::memcpy(&out_max_val_, &from.out_max_val_,
17862     static_cast<size_t>(reinterpret_cast<char*>(&top_k_) -
17863     reinterpret_cast<char*>(&out_max_val_)) + sizeof(top_k_));
17864   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ArgMaxParameter)
17865 }
17866 
SharedCtor()17867 void ArgMaxParameter::SharedCtor() {
17868   _cached_size_ = 0;
17869   ::memset(&out_max_val_, 0, static_cast<size_t>(
17870       reinterpret_cast<char*>(&axis_) -
17871       reinterpret_cast<char*>(&out_max_val_)) + sizeof(axis_));
17872   top_k_ = 1u;
17873 }
17874 
~ArgMaxParameter()17875 ArgMaxParameter::~ArgMaxParameter() {
17876   // @@protoc_insertion_point(destructor:opencv_caffe.ArgMaxParameter)
17877   SharedDtor();
17878 }
17879 
SharedDtor()17880 void ArgMaxParameter::SharedDtor() {
17881 }
17882 
SetCachedSize(int size) const17883 void ArgMaxParameter::SetCachedSize(int size) const {
17884   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
17885   _cached_size_ = size;
17886   GOOGLE_SAFE_CONCURRENT_WRITES_END();
17887 }
descriptor()17888 const ::google::protobuf::Descriptor* ArgMaxParameter::descriptor() {
17889   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
17890   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
17891 }
17892 
default_instance()17893 const ArgMaxParameter& ArgMaxParameter::default_instance() {
17894   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsArgMaxParameter();
17895   return *internal_default_instance();
17896 }
17897 
New(::google::protobuf::Arena * arena) const17898 ArgMaxParameter* ArgMaxParameter::New(::google::protobuf::Arena* arena) const {
17899   ArgMaxParameter* n = new ArgMaxParameter;
17900   if (arena != NULL) {
17901     arena->Own(n);
17902   }
17903   return n;
17904 }
17905 
Clear()17906 void ArgMaxParameter::Clear() {
17907 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ArgMaxParameter)
17908   ::google::protobuf::uint32 cached_has_bits = 0;
17909   // Prevent compiler warnings about cached_has_bits being unused
17910   (void) cached_has_bits;
17911 
17912   cached_has_bits = _has_bits_[0];
17913   if (cached_has_bits & 7u) {
17914     ::memset(&out_max_val_, 0, static_cast<size_t>(
17915         reinterpret_cast<char*>(&axis_) -
17916         reinterpret_cast<char*>(&out_max_val_)) + sizeof(axis_));
17917     top_k_ = 1u;
17918   }
17919   _has_bits_.Clear();
17920   _internal_metadata_.Clear();
17921 }
17922 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)17923 bool ArgMaxParameter::MergePartialFromCodedStream(
17924     ::google::protobuf::io::CodedInputStream* input) {
17925 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
17926   ::google::protobuf::uint32 tag;
17927   // @@protoc_insertion_point(parse_start:opencv_caffe.ArgMaxParameter)
17928   for (;;) {
17929     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
17930     tag = p.first;
17931     if (!p.second) goto handle_unusual;
17932     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
17933       // optional bool out_max_val = 1 [default = false];
17934       case 1: {
17935         if (static_cast< ::google::protobuf::uint8>(tag) ==
17936             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
17937           set_has_out_max_val();
17938           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17939                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
17940                  input, &out_max_val_)));
17941         } else {
17942           goto handle_unusual;
17943         }
17944         break;
17945       }
17946 
17947       // optional uint32 top_k = 2 [default = 1];
17948       case 2: {
17949         if (static_cast< ::google::protobuf::uint8>(tag) ==
17950             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
17951           set_has_top_k();
17952           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17953                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
17954                  input, &top_k_)));
17955         } else {
17956           goto handle_unusual;
17957         }
17958         break;
17959       }
17960 
17961       // optional int32 axis = 3;
17962       case 3: {
17963         if (static_cast< ::google::protobuf::uint8>(tag) ==
17964             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
17965           set_has_axis();
17966           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
17967                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
17968                  input, &axis_)));
17969         } else {
17970           goto handle_unusual;
17971         }
17972         break;
17973       }
17974 
17975       default: {
17976       handle_unusual:
17977         if (tag == 0) {
17978           goto success;
17979         }
17980         DO_(::google::protobuf::internal::WireFormat::SkipField(
17981               input, tag, _internal_metadata_.mutable_unknown_fields()));
17982         break;
17983       }
17984     }
17985   }
17986 success:
17987   // @@protoc_insertion_point(parse_success:opencv_caffe.ArgMaxParameter)
17988   return true;
17989 failure:
17990   // @@protoc_insertion_point(parse_failure:opencv_caffe.ArgMaxParameter)
17991   return false;
17992 #undef DO_
17993 }
17994 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const17995 void ArgMaxParameter::SerializeWithCachedSizes(
17996     ::google::protobuf::io::CodedOutputStream* output) const {
17997   // @@protoc_insertion_point(serialize_start:opencv_caffe.ArgMaxParameter)
17998   ::google::protobuf::uint32 cached_has_bits = 0;
17999   (void) cached_has_bits;
18000 
18001   cached_has_bits = _has_bits_[0];
18002   // optional bool out_max_val = 1 [default = false];
18003   if (cached_has_bits & 0x00000001u) {
18004     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->out_max_val(), output);
18005   }
18006 
18007   // optional uint32 top_k = 2 [default = 1];
18008   if (cached_has_bits & 0x00000004u) {
18009     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->top_k(), output);
18010   }
18011 
18012   // optional int32 axis = 3;
18013   if (cached_has_bits & 0x00000002u) {
18014     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->axis(), output);
18015   }
18016 
18017   if (_internal_metadata_.have_unknown_fields()) {
18018     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
18019         _internal_metadata_.unknown_fields(), output);
18020   }
18021   // @@protoc_insertion_point(serialize_end:opencv_caffe.ArgMaxParameter)
18022 }
18023 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const18024 ::google::protobuf::uint8* ArgMaxParameter::InternalSerializeWithCachedSizesToArray(
18025     bool deterministic, ::google::protobuf::uint8* target) const {
18026   (void)deterministic; // Unused
18027   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ArgMaxParameter)
18028   ::google::protobuf::uint32 cached_has_bits = 0;
18029   (void) cached_has_bits;
18030 
18031   cached_has_bits = _has_bits_[0];
18032   // optional bool out_max_val = 1 [default = false];
18033   if (cached_has_bits & 0x00000001u) {
18034     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->out_max_val(), target);
18035   }
18036 
18037   // optional uint32 top_k = 2 [default = 1];
18038   if (cached_has_bits & 0x00000004u) {
18039     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->top_k(), target);
18040   }
18041 
18042   // optional int32 axis = 3;
18043   if (cached_has_bits & 0x00000002u) {
18044     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->axis(), target);
18045   }
18046 
18047   if (_internal_metadata_.have_unknown_fields()) {
18048     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
18049         _internal_metadata_.unknown_fields(), target);
18050   }
18051   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ArgMaxParameter)
18052   return target;
18053 }
18054 
ByteSizeLong() const18055 size_t ArgMaxParameter::ByteSizeLong() const {
18056 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ArgMaxParameter)
18057   size_t total_size = 0;
18058 
18059   if (_internal_metadata_.have_unknown_fields()) {
18060     total_size +=
18061       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
18062         _internal_metadata_.unknown_fields());
18063   }
18064   if (_has_bits_[0 / 32] & 7u) {
18065     // optional bool out_max_val = 1 [default = false];
18066     if (has_out_max_val()) {
18067       total_size += 1 + 1;
18068     }
18069 
18070     // optional int32 axis = 3;
18071     if (has_axis()) {
18072       total_size += 1 +
18073         ::google::protobuf::internal::WireFormatLite::Int32Size(
18074           this->axis());
18075     }
18076 
18077     // optional uint32 top_k = 2 [default = 1];
18078     if (has_top_k()) {
18079       total_size += 1 +
18080         ::google::protobuf::internal::WireFormatLite::UInt32Size(
18081           this->top_k());
18082     }
18083 
18084   }
18085   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
18086   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18087   _cached_size_ = cached_size;
18088   GOOGLE_SAFE_CONCURRENT_WRITES_END();
18089   return total_size;
18090 }
18091 
MergeFrom(const::google::protobuf::Message & from)18092 void ArgMaxParameter::MergeFrom(const ::google::protobuf::Message& from) {
18093 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ArgMaxParameter)
18094   GOOGLE_DCHECK_NE(&from, this);
18095   const ArgMaxParameter* source =
18096       ::google::protobuf::internal::DynamicCastToGenerated<const ArgMaxParameter>(
18097           &from);
18098   if (source == NULL) {
18099   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ArgMaxParameter)
18100     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
18101   } else {
18102   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ArgMaxParameter)
18103     MergeFrom(*source);
18104   }
18105 }
18106 
MergeFrom(const ArgMaxParameter & from)18107 void ArgMaxParameter::MergeFrom(const ArgMaxParameter& from) {
18108 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ArgMaxParameter)
18109   GOOGLE_DCHECK_NE(&from, this);
18110   _internal_metadata_.MergeFrom(from._internal_metadata_);
18111   ::google::protobuf::uint32 cached_has_bits = 0;
18112   (void) cached_has_bits;
18113 
18114   cached_has_bits = from._has_bits_[0];
18115   if (cached_has_bits & 7u) {
18116     if (cached_has_bits & 0x00000001u) {
18117       out_max_val_ = from.out_max_val_;
18118     }
18119     if (cached_has_bits & 0x00000002u) {
18120       axis_ = from.axis_;
18121     }
18122     if (cached_has_bits & 0x00000004u) {
18123       top_k_ = from.top_k_;
18124     }
18125     _has_bits_[0] |= cached_has_bits;
18126   }
18127 }
18128 
CopyFrom(const::google::protobuf::Message & from)18129 void ArgMaxParameter::CopyFrom(const ::google::protobuf::Message& from) {
18130 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ArgMaxParameter)
18131   if (&from == this) return;
18132   Clear();
18133   MergeFrom(from);
18134 }
18135 
CopyFrom(const ArgMaxParameter & from)18136 void ArgMaxParameter::CopyFrom(const ArgMaxParameter& from) {
18137 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ArgMaxParameter)
18138   if (&from == this) return;
18139   Clear();
18140   MergeFrom(from);
18141 }
18142 
IsInitialized() const18143 bool ArgMaxParameter::IsInitialized() const {
18144   return true;
18145 }
18146 
Swap(ArgMaxParameter * other)18147 void ArgMaxParameter::Swap(ArgMaxParameter* other) {
18148   if (other == this) return;
18149   InternalSwap(other);
18150 }
InternalSwap(ArgMaxParameter * other)18151 void ArgMaxParameter::InternalSwap(ArgMaxParameter* other) {
18152   using std::swap;
18153   swap(out_max_val_, other->out_max_val_);
18154   swap(axis_, other->axis_);
18155   swap(top_k_, other->top_k_);
18156   swap(_has_bits_[0], other->_has_bits_[0]);
18157   _internal_metadata_.Swap(&other->_internal_metadata_);
18158   swap(_cached_size_, other->_cached_size_);
18159 }
18160 
GetMetadata() const18161 ::google::protobuf::Metadata ArgMaxParameter::GetMetadata() const {
18162   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
18163   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
18164 }
18165 
18166 
18167 // ===================================================================
18168 
InitAsDefaultInstance()18169 void ConcatParameter::InitAsDefaultInstance() {
18170 }
18171 #if !defined(_MSC_VER) || _MSC_VER >= 1900
18172 const int ConcatParameter::kAxisFieldNumber;
18173 const int ConcatParameter::kConcatDimFieldNumber;
18174 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
18175 
ConcatParameter()18176 ConcatParameter::ConcatParameter()
18177   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
18178   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
18179     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameter();
18180   }
18181   SharedCtor();
18182   // @@protoc_insertion_point(constructor:opencv_caffe.ConcatParameter)
18183 }
ConcatParameter(const ConcatParameter & from)18184 ConcatParameter::ConcatParameter(const ConcatParameter& from)
18185   : ::google::protobuf::Message(),
18186       _internal_metadata_(NULL),
18187       _has_bits_(from._has_bits_),
18188       _cached_size_(0) {
18189   _internal_metadata_.MergeFrom(from._internal_metadata_);
18190   ::memcpy(&concat_dim_, &from.concat_dim_,
18191     static_cast<size_t>(reinterpret_cast<char*>(&axis_) -
18192     reinterpret_cast<char*>(&concat_dim_)) + sizeof(axis_));
18193   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ConcatParameter)
18194 }
18195 
SharedCtor()18196 void ConcatParameter::SharedCtor() {
18197   _cached_size_ = 0;
18198   concat_dim_ = 1u;
18199   axis_ = 1;
18200 }
18201 
~ConcatParameter()18202 ConcatParameter::~ConcatParameter() {
18203   // @@protoc_insertion_point(destructor:opencv_caffe.ConcatParameter)
18204   SharedDtor();
18205 }
18206 
SharedDtor()18207 void ConcatParameter::SharedDtor() {
18208 }
18209 
SetCachedSize(int size) const18210 void ConcatParameter::SetCachedSize(int size) const {
18211   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18212   _cached_size_ = size;
18213   GOOGLE_SAFE_CONCURRENT_WRITES_END();
18214 }
descriptor()18215 const ::google::protobuf::Descriptor* ConcatParameter::descriptor() {
18216   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
18217   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
18218 }
18219 
default_instance()18220 const ConcatParameter& ConcatParameter::default_instance() {
18221   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConcatParameter();
18222   return *internal_default_instance();
18223 }
18224 
New(::google::protobuf::Arena * arena) const18225 ConcatParameter* ConcatParameter::New(::google::protobuf::Arena* arena) const {
18226   ConcatParameter* n = new ConcatParameter;
18227   if (arena != NULL) {
18228     arena->Own(n);
18229   }
18230   return n;
18231 }
18232 
Clear()18233 void ConcatParameter::Clear() {
18234 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ConcatParameter)
18235   ::google::protobuf::uint32 cached_has_bits = 0;
18236   // Prevent compiler warnings about cached_has_bits being unused
18237   (void) cached_has_bits;
18238 
18239   cached_has_bits = _has_bits_[0];
18240   if (cached_has_bits & 3u) {
18241     concat_dim_ = 1u;
18242     axis_ = 1;
18243   }
18244   _has_bits_.Clear();
18245   _internal_metadata_.Clear();
18246 }
18247 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)18248 bool ConcatParameter::MergePartialFromCodedStream(
18249     ::google::protobuf::io::CodedInputStream* input) {
18250 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
18251   ::google::protobuf::uint32 tag;
18252   // @@protoc_insertion_point(parse_start:opencv_caffe.ConcatParameter)
18253   for (;;) {
18254     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
18255     tag = p.first;
18256     if (!p.second) goto handle_unusual;
18257     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
18258       // optional uint32 concat_dim = 1 [default = 1];
18259       case 1: {
18260         if (static_cast< ::google::protobuf::uint8>(tag) ==
18261             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
18262           set_has_concat_dim();
18263           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18264                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
18265                  input, &concat_dim_)));
18266         } else {
18267           goto handle_unusual;
18268         }
18269         break;
18270       }
18271 
18272       // optional int32 axis = 2 [default = 1];
18273       case 2: {
18274         if (static_cast< ::google::protobuf::uint8>(tag) ==
18275             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
18276           set_has_axis();
18277           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18278                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
18279                  input, &axis_)));
18280         } else {
18281           goto handle_unusual;
18282         }
18283         break;
18284       }
18285 
18286       default: {
18287       handle_unusual:
18288         if (tag == 0) {
18289           goto success;
18290         }
18291         DO_(::google::protobuf::internal::WireFormat::SkipField(
18292               input, tag, _internal_metadata_.mutable_unknown_fields()));
18293         break;
18294       }
18295     }
18296   }
18297 success:
18298   // @@protoc_insertion_point(parse_success:opencv_caffe.ConcatParameter)
18299   return true;
18300 failure:
18301   // @@protoc_insertion_point(parse_failure:opencv_caffe.ConcatParameter)
18302   return false;
18303 #undef DO_
18304 }
18305 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const18306 void ConcatParameter::SerializeWithCachedSizes(
18307     ::google::protobuf::io::CodedOutputStream* output) const {
18308   // @@protoc_insertion_point(serialize_start:opencv_caffe.ConcatParameter)
18309   ::google::protobuf::uint32 cached_has_bits = 0;
18310   (void) cached_has_bits;
18311 
18312   cached_has_bits = _has_bits_[0];
18313   // optional uint32 concat_dim = 1 [default = 1];
18314   if (cached_has_bits & 0x00000001u) {
18315     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->concat_dim(), output);
18316   }
18317 
18318   // optional int32 axis = 2 [default = 1];
18319   if (cached_has_bits & 0x00000002u) {
18320     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output);
18321   }
18322 
18323   if (_internal_metadata_.have_unknown_fields()) {
18324     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
18325         _internal_metadata_.unknown_fields(), output);
18326   }
18327   // @@protoc_insertion_point(serialize_end:opencv_caffe.ConcatParameter)
18328 }
18329 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const18330 ::google::protobuf::uint8* ConcatParameter::InternalSerializeWithCachedSizesToArray(
18331     bool deterministic, ::google::protobuf::uint8* target) const {
18332   (void)deterministic; // Unused
18333   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ConcatParameter)
18334   ::google::protobuf::uint32 cached_has_bits = 0;
18335   (void) cached_has_bits;
18336 
18337   cached_has_bits = _has_bits_[0];
18338   // optional uint32 concat_dim = 1 [default = 1];
18339   if (cached_has_bits & 0x00000001u) {
18340     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->concat_dim(), target);
18341   }
18342 
18343   // optional int32 axis = 2 [default = 1];
18344   if (cached_has_bits & 0x00000002u) {
18345     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target);
18346   }
18347 
18348   if (_internal_metadata_.have_unknown_fields()) {
18349     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
18350         _internal_metadata_.unknown_fields(), target);
18351   }
18352   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ConcatParameter)
18353   return target;
18354 }
18355 
ByteSizeLong() const18356 size_t ConcatParameter::ByteSizeLong() const {
18357 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ConcatParameter)
18358   size_t total_size = 0;
18359 
18360   if (_internal_metadata_.have_unknown_fields()) {
18361     total_size +=
18362       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
18363         _internal_metadata_.unknown_fields());
18364   }
18365   if (_has_bits_[0 / 32] & 3u) {
18366     // optional uint32 concat_dim = 1 [default = 1];
18367     if (has_concat_dim()) {
18368       total_size += 1 +
18369         ::google::protobuf::internal::WireFormatLite::UInt32Size(
18370           this->concat_dim());
18371     }
18372 
18373     // optional int32 axis = 2 [default = 1];
18374     if (has_axis()) {
18375       total_size += 1 +
18376         ::google::protobuf::internal::WireFormatLite::Int32Size(
18377           this->axis());
18378     }
18379 
18380   }
18381   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
18382   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18383   _cached_size_ = cached_size;
18384   GOOGLE_SAFE_CONCURRENT_WRITES_END();
18385   return total_size;
18386 }
18387 
MergeFrom(const::google::protobuf::Message & from)18388 void ConcatParameter::MergeFrom(const ::google::protobuf::Message& from) {
18389 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ConcatParameter)
18390   GOOGLE_DCHECK_NE(&from, this);
18391   const ConcatParameter* source =
18392       ::google::protobuf::internal::DynamicCastToGenerated<const ConcatParameter>(
18393           &from);
18394   if (source == NULL) {
18395   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ConcatParameter)
18396     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
18397   } else {
18398   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ConcatParameter)
18399     MergeFrom(*source);
18400   }
18401 }
18402 
MergeFrom(const ConcatParameter & from)18403 void ConcatParameter::MergeFrom(const ConcatParameter& from) {
18404 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ConcatParameter)
18405   GOOGLE_DCHECK_NE(&from, this);
18406   _internal_metadata_.MergeFrom(from._internal_metadata_);
18407   ::google::protobuf::uint32 cached_has_bits = 0;
18408   (void) cached_has_bits;
18409 
18410   cached_has_bits = from._has_bits_[0];
18411   if (cached_has_bits & 3u) {
18412     if (cached_has_bits & 0x00000001u) {
18413       concat_dim_ = from.concat_dim_;
18414     }
18415     if (cached_has_bits & 0x00000002u) {
18416       axis_ = from.axis_;
18417     }
18418     _has_bits_[0] |= cached_has_bits;
18419   }
18420 }
18421 
CopyFrom(const::google::protobuf::Message & from)18422 void ConcatParameter::CopyFrom(const ::google::protobuf::Message& from) {
18423 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ConcatParameter)
18424   if (&from == this) return;
18425   Clear();
18426   MergeFrom(from);
18427 }
18428 
CopyFrom(const ConcatParameter & from)18429 void ConcatParameter::CopyFrom(const ConcatParameter& from) {
18430 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ConcatParameter)
18431   if (&from == this) return;
18432   Clear();
18433   MergeFrom(from);
18434 }
18435 
IsInitialized() const18436 bool ConcatParameter::IsInitialized() const {
18437   return true;
18438 }
18439 
Swap(ConcatParameter * other)18440 void ConcatParameter::Swap(ConcatParameter* other) {
18441   if (other == this) return;
18442   InternalSwap(other);
18443 }
InternalSwap(ConcatParameter * other)18444 void ConcatParameter::InternalSwap(ConcatParameter* other) {
18445   using std::swap;
18446   swap(concat_dim_, other->concat_dim_);
18447   swap(axis_, other->axis_);
18448   swap(_has_bits_[0], other->_has_bits_[0]);
18449   _internal_metadata_.Swap(&other->_internal_metadata_);
18450   swap(_cached_size_, other->_cached_size_);
18451 }
18452 
GetMetadata() const18453 ::google::protobuf::Metadata ConcatParameter::GetMetadata() const {
18454   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
18455   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
18456 }
18457 
18458 
18459 // ===================================================================
18460 
InitAsDefaultInstance()18461 void BatchNormParameter::InitAsDefaultInstance() {
18462 }
18463 #if !defined(_MSC_VER) || _MSC_VER >= 1900
18464 const int BatchNormParameter::kUseGlobalStatsFieldNumber;
18465 const int BatchNormParameter::kMovingAverageFractionFieldNumber;
18466 const int BatchNormParameter::kEpsFieldNumber;
18467 const int BatchNormParameter::kScaleBiasFieldNumber;
18468 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
18469 
BatchNormParameter()18470 BatchNormParameter::BatchNormParameter()
18471   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
18472   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
18473     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBatchNormParameter();
18474   }
18475   SharedCtor();
18476   // @@protoc_insertion_point(constructor:opencv_caffe.BatchNormParameter)
18477 }
BatchNormParameter(const BatchNormParameter & from)18478 BatchNormParameter::BatchNormParameter(const BatchNormParameter& from)
18479   : ::google::protobuf::Message(),
18480       _internal_metadata_(NULL),
18481       _has_bits_(from._has_bits_),
18482       _cached_size_(0) {
18483   _internal_metadata_.MergeFrom(from._internal_metadata_);
18484   ::memcpy(&use_global_stats_, &from.use_global_stats_,
18485     static_cast<size_t>(reinterpret_cast<char*>(&eps_) -
18486     reinterpret_cast<char*>(&use_global_stats_)) + sizeof(eps_));
18487   // @@protoc_insertion_point(copy_constructor:opencv_caffe.BatchNormParameter)
18488 }
18489 
SharedCtor()18490 void BatchNormParameter::SharedCtor() {
18491   _cached_size_ = 0;
18492   ::memset(&use_global_stats_, 0, static_cast<size_t>(
18493       reinterpret_cast<char*>(&scale_bias_) -
18494       reinterpret_cast<char*>(&use_global_stats_)) + sizeof(scale_bias_));
18495   moving_average_fraction_ = 0.999f;
18496   eps_ = 1e-05f;
18497 }
18498 
~BatchNormParameter()18499 BatchNormParameter::~BatchNormParameter() {
18500   // @@protoc_insertion_point(destructor:opencv_caffe.BatchNormParameter)
18501   SharedDtor();
18502 }
18503 
SharedDtor()18504 void BatchNormParameter::SharedDtor() {
18505 }
18506 
SetCachedSize(int size) const18507 void BatchNormParameter::SetCachedSize(int size) const {
18508   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18509   _cached_size_ = size;
18510   GOOGLE_SAFE_CONCURRENT_WRITES_END();
18511 }
descriptor()18512 const ::google::protobuf::Descriptor* BatchNormParameter::descriptor() {
18513   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
18514   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
18515 }
18516 
default_instance()18517 const BatchNormParameter& BatchNormParameter::default_instance() {
18518   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBatchNormParameter();
18519   return *internal_default_instance();
18520 }
18521 
New(::google::protobuf::Arena * arena) const18522 BatchNormParameter* BatchNormParameter::New(::google::protobuf::Arena* arena) const {
18523   BatchNormParameter* n = new BatchNormParameter;
18524   if (arena != NULL) {
18525     arena->Own(n);
18526   }
18527   return n;
18528 }
18529 
Clear()18530 void BatchNormParameter::Clear() {
18531 // @@protoc_insertion_point(message_clear_start:opencv_caffe.BatchNormParameter)
18532   ::google::protobuf::uint32 cached_has_bits = 0;
18533   // Prevent compiler warnings about cached_has_bits being unused
18534   (void) cached_has_bits;
18535 
18536   ::memset(&use_global_stats_, 0, static_cast<size_t>(
18537       reinterpret_cast<char*>(&scale_bias_) -
18538       reinterpret_cast<char*>(&use_global_stats_)) + sizeof(scale_bias_));
18539   cached_has_bits = _has_bits_[0];
18540   if (cached_has_bits & 12u) {
18541     moving_average_fraction_ = 0.999f;
18542     eps_ = 1e-05f;
18543   }
18544   _has_bits_.Clear();
18545   _internal_metadata_.Clear();
18546 }
18547 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)18548 bool BatchNormParameter::MergePartialFromCodedStream(
18549     ::google::protobuf::io::CodedInputStream* input) {
18550 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
18551   ::google::protobuf::uint32 tag;
18552   // @@protoc_insertion_point(parse_start:opencv_caffe.BatchNormParameter)
18553   for (;;) {
18554     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
18555     tag = p.first;
18556     if (!p.second) goto handle_unusual;
18557     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
18558       // optional bool use_global_stats = 1;
18559       case 1: {
18560         if (static_cast< ::google::protobuf::uint8>(tag) ==
18561             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
18562           set_has_use_global_stats();
18563           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18564                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
18565                  input, &use_global_stats_)));
18566         } else {
18567           goto handle_unusual;
18568         }
18569         break;
18570       }
18571 
18572       // optional float moving_average_fraction = 2 [default = 0.999];
18573       case 2: {
18574         if (static_cast< ::google::protobuf::uint8>(tag) ==
18575             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
18576           set_has_moving_average_fraction();
18577           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18578                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
18579                  input, &moving_average_fraction_)));
18580         } else {
18581           goto handle_unusual;
18582         }
18583         break;
18584       }
18585 
18586       // optional float eps = 3 [default = 1e-05];
18587       case 3: {
18588         if (static_cast< ::google::protobuf::uint8>(tag) ==
18589             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
18590           set_has_eps();
18591           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18592                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
18593                  input, &eps_)));
18594         } else {
18595           goto handle_unusual;
18596         }
18597         break;
18598       }
18599 
18600       // optional bool scale_bias = 7 [default = false];
18601       case 7: {
18602         if (static_cast< ::google::protobuf::uint8>(tag) ==
18603             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
18604           set_has_scale_bias();
18605           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18606                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
18607                  input, &scale_bias_)));
18608         } else {
18609           goto handle_unusual;
18610         }
18611         break;
18612       }
18613 
18614       default: {
18615       handle_unusual:
18616         if (tag == 0) {
18617           goto success;
18618         }
18619         DO_(::google::protobuf::internal::WireFormat::SkipField(
18620               input, tag, _internal_metadata_.mutable_unknown_fields()));
18621         break;
18622       }
18623     }
18624   }
18625 success:
18626   // @@protoc_insertion_point(parse_success:opencv_caffe.BatchNormParameter)
18627   return true;
18628 failure:
18629   // @@protoc_insertion_point(parse_failure:opencv_caffe.BatchNormParameter)
18630   return false;
18631 #undef DO_
18632 }
18633 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const18634 void BatchNormParameter::SerializeWithCachedSizes(
18635     ::google::protobuf::io::CodedOutputStream* output) const {
18636   // @@protoc_insertion_point(serialize_start:opencv_caffe.BatchNormParameter)
18637   ::google::protobuf::uint32 cached_has_bits = 0;
18638   (void) cached_has_bits;
18639 
18640   cached_has_bits = _has_bits_[0];
18641   // optional bool use_global_stats = 1;
18642   if (cached_has_bits & 0x00000001u) {
18643     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->use_global_stats(), output);
18644   }
18645 
18646   // optional float moving_average_fraction = 2 [default = 0.999];
18647   if (cached_has_bits & 0x00000004u) {
18648     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->moving_average_fraction(), output);
18649   }
18650 
18651   // optional float eps = 3 [default = 1e-05];
18652   if (cached_has_bits & 0x00000008u) {
18653     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eps(), output);
18654   }
18655 
18656   // optional bool scale_bias = 7 [default = false];
18657   if (cached_has_bits & 0x00000002u) {
18658     ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->scale_bias(), output);
18659   }
18660 
18661   if (_internal_metadata_.have_unknown_fields()) {
18662     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
18663         _internal_metadata_.unknown_fields(), output);
18664   }
18665   // @@protoc_insertion_point(serialize_end:opencv_caffe.BatchNormParameter)
18666 }
18667 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const18668 ::google::protobuf::uint8* BatchNormParameter::InternalSerializeWithCachedSizesToArray(
18669     bool deterministic, ::google::protobuf::uint8* target) const {
18670   (void)deterministic; // Unused
18671   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BatchNormParameter)
18672   ::google::protobuf::uint32 cached_has_bits = 0;
18673   (void) cached_has_bits;
18674 
18675   cached_has_bits = _has_bits_[0];
18676   // optional bool use_global_stats = 1;
18677   if (cached_has_bits & 0x00000001u) {
18678     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->use_global_stats(), target);
18679   }
18680 
18681   // optional float moving_average_fraction = 2 [default = 0.999];
18682   if (cached_has_bits & 0x00000004u) {
18683     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->moving_average_fraction(), target);
18684   }
18685 
18686   // optional float eps = 3 [default = 1e-05];
18687   if (cached_has_bits & 0x00000008u) {
18688     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eps(), target);
18689   }
18690 
18691   // optional bool scale_bias = 7 [default = false];
18692   if (cached_has_bits & 0x00000002u) {
18693     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->scale_bias(), target);
18694   }
18695 
18696   if (_internal_metadata_.have_unknown_fields()) {
18697     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
18698         _internal_metadata_.unknown_fields(), target);
18699   }
18700   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BatchNormParameter)
18701   return target;
18702 }
18703 
ByteSizeLong() const18704 size_t BatchNormParameter::ByteSizeLong() const {
18705 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BatchNormParameter)
18706   size_t total_size = 0;
18707 
18708   if (_internal_metadata_.have_unknown_fields()) {
18709     total_size +=
18710       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
18711         _internal_metadata_.unknown_fields());
18712   }
18713   if (_has_bits_[0 / 32] & 15u) {
18714     // optional bool use_global_stats = 1;
18715     if (has_use_global_stats()) {
18716       total_size += 1 + 1;
18717     }
18718 
18719     // optional bool scale_bias = 7 [default = false];
18720     if (has_scale_bias()) {
18721       total_size += 1 + 1;
18722     }
18723 
18724     // optional float moving_average_fraction = 2 [default = 0.999];
18725     if (has_moving_average_fraction()) {
18726       total_size += 1 + 4;
18727     }
18728 
18729     // optional float eps = 3 [default = 1e-05];
18730     if (has_eps()) {
18731       total_size += 1 + 4;
18732     }
18733 
18734   }
18735   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
18736   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18737   _cached_size_ = cached_size;
18738   GOOGLE_SAFE_CONCURRENT_WRITES_END();
18739   return total_size;
18740 }
18741 
MergeFrom(const::google::protobuf::Message & from)18742 void BatchNormParameter::MergeFrom(const ::google::protobuf::Message& from) {
18743 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BatchNormParameter)
18744   GOOGLE_DCHECK_NE(&from, this);
18745   const BatchNormParameter* source =
18746       ::google::protobuf::internal::DynamicCastToGenerated<const BatchNormParameter>(
18747           &from);
18748   if (source == NULL) {
18749   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BatchNormParameter)
18750     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
18751   } else {
18752   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BatchNormParameter)
18753     MergeFrom(*source);
18754   }
18755 }
18756 
MergeFrom(const BatchNormParameter & from)18757 void BatchNormParameter::MergeFrom(const BatchNormParameter& from) {
18758 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BatchNormParameter)
18759   GOOGLE_DCHECK_NE(&from, this);
18760   _internal_metadata_.MergeFrom(from._internal_metadata_);
18761   ::google::protobuf::uint32 cached_has_bits = 0;
18762   (void) cached_has_bits;
18763 
18764   cached_has_bits = from._has_bits_[0];
18765   if (cached_has_bits & 15u) {
18766     if (cached_has_bits & 0x00000001u) {
18767       use_global_stats_ = from.use_global_stats_;
18768     }
18769     if (cached_has_bits & 0x00000002u) {
18770       scale_bias_ = from.scale_bias_;
18771     }
18772     if (cached_has_bits & 0x00000004u) {
18773       moving_average_fraction_ = from.moving_average_fraction_;
18774     }
18775     if (cached_has_bits & 0x00000008u) {
18776       eps_ = from.eps_;
18777     }
18778     _has_bits_[0] |= cached_has_bits;
18779   }
18780 }
18781 
CopyFrom(const::google::protobuf::Message & from)18782 void BatchNormParameter::CopyFrom(const ::google::protobuf::Message& from) {
18783 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BatchNormParameter)
18784   if (&from == this) return;
18785   Clear();
18786   MergeFrom(from);
18787 }
18788 
CopyFrom(const BatchNormParameter & from)18789 void BatchNormParameter::CopyFrom(const BatchNormParameter& from) {
18790 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BatchNormParameter)
18791   if (&from == this) return;
18792   Clear();
18793   MergeFrom(from);
18794 }
18795 
IsInitialized() const18796 bool BatchNormParameter::IsInitialized() const {
18797   return true;
18798 }
18799 
Swap(BatchNormParameter * other)18800 void BatchNormParameter::Swap(BatchNormParameter* other) {
18801   if (other == this) return;
18802   InternalSwap(other);
18803 }
InternalSwap(BatchNormParameter * other)18804 void BatchNormParameter::InternalSwap(BatchNormParameter* other) {
18805   using std::swap;
18806   swap(use_global_stats_, other->use_global_stats_);
18807   swap(scale_bias_, other->scale_bias_);
18808   swap(moving_average_fraction_, other->moving_average_fraction_);
18809   swap(eps_, other->eps_);
18810   swap(_has_bits_[0], other->_has_bits_[0]);
18811   _internal_metadata_.Swap(&other->_internal_metadata_);
18812   swap(_cached_size_, other->_cached_size_);
18813 }
18814 
GetMetadata() const18815 ::google::protobuf::Metadata BatchNormParameter::GetMetadata() const {
18816   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
18817   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
18818 }
18819 
18820 
18821 // ===================================================================
18822 
InitAsDefaultInstance()18823 void BiasParameter::InitAsDefaultInstance() {
18824   ::opencv_caffe::_BiasParameter_default_instance_._instance.get_mutable()->filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
18825       ::opencv_caffe::FillerParameter::internal_default_instance());
18826 }
18827 #if !defined(_MSC_VER) || _MSC_VER >= 1900
18828 const int BiasParameter::kAxisFieldNumber;
18829 const int BiasParameter::kNumAxesFieldNumber;
18830 const int BiasParameter::kFillerFieldNumber;
18831 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
18832 
BiasParameter()18833 BiasParameter::BiasParameter()
18834   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
18835   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
18836     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBiasParameter();
18837   }
18838   SharedCtor();
18839   // @@protoc_insertion_point(constructor:opencv_caffe.BiasParameter)
18840 }
BiasParameter(const BiasParameter & from)18841 BiasParameter::BiasParameter(const BiasParameter& from)
18842   : ::google::protobuf::Message(),
18843       _internal_metadata_(NULL),
18844       _has_bits_(from._has_bits_),
18845       _cached_size_(0) {
18846   _internal_metadata_.MergeFrom(from._internal_metadata_);
18847   if (from.has_filler()) {
18848     filler_ = new ::opencv_caffe::FillerParameter(*from.filler_);
18849   } else {
18850     filler_ = NULL;
18851   }
18852   ::memcpy(&axis_, &from.axis_,
18853     static_cast<size_t>(reinterpret_cast<char*>(&num_axes_) -
18854     reinterpret_cast<char*>(&axis_)) + sizeof(num_axes_));
18855   // @@protoc_insertion_point(copy_constructor:opencv_caffe.BiasParameter)
18856 }
18857 
SharedCtor()18858 void BiasParameter::SharedCtor() {
18859   _cached_size_ = 0;
18860   filler_ = NULL;
18861   axis_ = 1;
18862   num_axes_ = 1;
18863 }
18864 
~BiasParameter()18865 BiasParameter::~BiasParameter() {
18866   // @@protoc_insertion_point(destructor:opencv_caffe.BiasParameter)
18867   SharedDtor();
18868 }
18869 
SharedDtor()18870 void BiasParameter::SharedDtor() {
18871   if (this != internal_default_instance()) delete filler_;
18872 }
18873 
SetCachedSize(int size) const18874 void BiasParameter::SetCachedSize(int size) const {
18875   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
18876   _cached_size_ = size;
18877   GOOGLE_SAFE_CONCURRENT_WRITES_END();
18878 }
descriptor()18879 const ::google::protobuf::Descriptor* BiasParameter::descriptor() {
18880   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
18881   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
18882 }
18883 
default_instance()18884 const BiasParameter& BiasParameter::default_instance() {
18885   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsBiasParameter();
18886   return *internal_default_instance();
18887 }
18888 
New(::google::protobuf::Arena * arena) const18889 BiasParameter* BiasParameter::New(::google::protobuf::Arena* arena) const {
18890   BiasParameter* n = new BiasParameter;
18891   if (arena != NULL) {
18892     arena->Own(n);
18893   }
18894   return n;
18895 }
18896 
Clear()18897 void BiasParameter::Clear() {
18898 // @@protoc_insertion_point(message_clear_start:opencv_caffe.BiasParameter)
18899   ::google::protobuf::uint32 cached_has_bits = 0;
18900   // Prevent compiler warnings about cached_has_bits being unused
18901   (void) cached_has_bits;
18902 
18903   cached_has_bits = _has_bits_[0];
18904   if (cached_has_bits & 7u) {
18905     if (cached_has_bits & 0x00000001u) {
18906       GOOGLE_DCHECK(filler_ != NULL);
18907       filler_->Clear();
18908     }
18909     axis_ = 1;
18910     num_axes_ = 1;
18911   }
18912   _has_bits_.Clear();
18913   _internal_metadata_.Clear();
18914 }
18915 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)18916 bool BiasParameter::MergePartialFromCodedStream(
18917     ::google::protobuf::io::CodedInputStream* input) {
18918 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
18919   ::google::protobuf::uint32 tag;
18920   // @@protoc_insertion_point(parse_start:opencv_caffe.BiasParameter)
18921   for (;;) {
18922     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
18923     tag = p.first;
18924     if (!p.second) goto handle_unusual;
18925     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
18926       // optional int32 axis = 1 [default = 1];
18927       case 1: {
18928         if (static_cast< ::google::protobuf::uint8>(tag) ==
18929             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
18930           set_has_axis();
18931           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18932                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
18933                  input, &axis_)));
18934         } else {
18935           goto handle_unusual;
18936         }
18937         break;
18938       }
18939 
18940       // optional int32 num_axes = 2 [default = 1];
18941       case 2: {
18942         if (static_cast< ::google::protobuf::uint8>(tag) ==
18943             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
18944           set_has_num_axes();
18945           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
18946                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
18947                  input, &num_axes_)));
18948         } else {
18949           goto handle_unusual;
18950         }
18951         break;
18952       }
18953 
18954       // optional .opencv_caffe.FillerParameter filler = 3;
18955       case 3: {
18956         if (static_cast< ::google::protobuf::uint8>(tag) ==
18957             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
18958           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
18959                input, mutable_filler()));
18960         } else {
18961           goto handle_unusual;
18962         }
18963         break;
18964       }
18965 
18966       default: {
18967       handle_unusual:
18968         if (tag == 0) {
18969           goto success;
18970         }
18971         DO_(::google::protobuf::internal::WireFormat::SkipField(
18972               input, tag, _internal_metadata_.mutable_unknown_fields()));
18973         break;
18974       }
18975     }
18976   }
18977 success:
18978   // @@protoc_insertion_point(parse_success:opencv_caffe.BiasParameter)
18979   return true;
18980 failure:
18981   // @@protoc_insertion_point(parse_failure:opencv_caffe.BiasParameter)
18982   return false;
18983 #undef DO_
18984 }
18985 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const18986 void BiasParameter::SerializeWithCachedSizes(
18987     ::google::protobuf::io::CodedOutputStream* output) const {
18988   // @@protoc_insertion_point(serialize_start:opencv_caffe.BiasParameter)
18989   ::google::protobuf::uint32 cached_has_bits = 0;
18990   (void) cached_has_bits;
18991 
18992   cached_has_bits = _has_bits_[0];
18993   // optional int32 axis = 1 [default = 1];
18994   if (cached_has_bits & 0x00000002u) {
18995     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output);
18996   }
18997 
18998   // optional int32 num_axes = 2 [default = 1];
18999   if (cached_has_bits & 0x00000004u) {
19000     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_axes(), output);
19001   }
19002 
19003   // optional .opencv_caffe.FillerParameter filler = 3;
19004   if (cached_has_bits & 0x00000001u) {
19005     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
19006       3, *this->filler_, output);
19007   }
19008 
19009   if (_internal_metadata_.have_unknown_fields()) {
19010     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
19011         _internal_metadata_.unknown_fields(), output);
19012   }
19013   // @@protoc_insertion_point(serialize_end:opencv_caffe.BiasParameter)
19014 }
19015 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const19016 ::google::protobuf::uint8* BiasParameter::InternalSerializeWithCachedSizesToArray(
19017     bool deterministic, ::google::protobuf::uint8* target) const {
19018   (void)deterministic; // Unused
19019   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.BiasParameter)
19020   ::google::protobuf::uint32 cached_has_bits = 0;
19021   (void) cached_has_bits;
19022 
19023   cached_has_bits = _has_bits_[0];
19024   // optional int32 axis = 1 [default = 1];
19025   if (cached_has_bits & 0x00000002u) {
19026     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target);
19027   }
19028 
19029   // optional int32 num_axes = 2 [default = 1];
19030   if (cached_has_bits & 0x00000004u) {
19031     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_axes(), target);
19032   }
19033 
19034   // optional .opencv_caffe.FillerParameter filler = 3;
19035   if (cached_has_bits & 0x00000001u) {
19036     target = ::google::protobuf::internal::WireFormatLite::
19037       InternalWriteMessageToArray(
19038         3, *this->filler_, deterministic, target);
19039   }
19040 
19041   if (_internal_metadata_.have_unknown_fields()) {
19042     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
19043         _internal_metadata_.unknown_fields(), target);
19044   }
19045   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.BiasParameter)
19046   return target;
19047 }
19048 
ByteSizeLong() const19049 size_t BiasParameter::ByteSizeLong() const {
19050 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.BiasParameter)
19051   size_t total_size = 0;
19052 
19053   if (_internal_metadata_.have_unknown_fields()) {
19054     total_size +=
19055       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
19056         _internal_metadata_.unknown_fields());
19057   }
19058   if (_has_bits_[0 / 32] & 7u) {
19059     // optional .opencv_caffe.FillerParameter filler = 3;
19060     if (has_filler()) {
19061       total_size += 1 +
19062         ::google::protobuf::internal::WireFormatLite::MessageSize(
19063           *this->filler_);
19064     }
19065 
19066     // optional int32 axis = 1 [default = 1];
19067     if (has_axis()) {
19068       total_size += 1 +
19069         ::google::protobuf::internal::WireFormatLite::Int32Size(
19070           this->axis());
19071     }
19072 
19073     // optional int32 num_axes = 2 [default = 1];
19074     if (has_num_axes()) {
19075       total_size += 1 +
19076         ::google::protobuf::internal::WireFormatLite::Int32Size(
19077           this->num_axes());
19078     }
19079 
19080   }
19081   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
19082   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
19083   _cached_size_ = cached_size;
19084   GOOGLE_SAFE_CONCURRENT_WRITES_END();
19085   return total_size;
19086 }
19087 
MergeFrom(const::google::protobuf::Message & from)19088 void BiasParameter::MergeFrom(const ::google::protobuf::Message& from) {
19089 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.BiasParameter)
19090   GOOGLE_DCHECK_NE(&from, this);
19091   const BiasParameter* source =
19092       ::google::protobuf::internal::DynamicCastToGenerated<const BiasParameter>(
19093           &from);
19094   if (source == NULL) {
19095   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.BiasParameter)
19096     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
19097   } else {
19098   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.BiasParameter)
19099     MergeFrom(*source);
19100   }
19101 }
19102 
MergeFrom(const BiasParameter & from)19103 void BiasParameter::MergeFrom(const BiasParameter& from) {
19104 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.BiasParameter)
19105   GOOGLE_DCHECK_NE(&from, this);
19106   _internal_metadata_.MergeFrom(from._internal_metadata_);
19107   ::google::protobuf::uint32 cached_has_bits = 0;
19108   (void) cached_has_bits;
19109 
19110   cached_has_bits = from._has_bits_[0];
19111   if (cached_has_bits & 7u) {
19112     if (cached_has_bits & 0x00000001u) {
19113       mutable_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.filler());
19114     }
19115     if (cached_has_bits & 0x00000002u) {
19116       axis_ = from.axis_;
19117     }
19118     if (cached_has_bits & 0x00000004u) {
19119       num_axes_ = from.num_axes_;
19120     }
19121     _has_bits_[0] |= cached_has_bits;
19122   }
19123 }
19124 
CopyFrom(const::google::protobuf::Message & from)19125 void BiasParameter::CopyFrom(const ::google::protobuf::Message& from) {
19126 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.BiasParameter)
19127   if (&from == this) return;
19128   Clear();
19129   MergeFrom(from);
19130 }
19131 
CopyFrom(const BiasParameter & from)19132 void BiasParameter::CopyFrom(const BiasParameter& from) {
19133 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.BiasParameter)
19134   if (&from == this) return;
19135   Clear();
19136   MergeFrom(from);
19137 }
19138 
IsInitialized() const19139 bool BiasParameter::IsInitialized() const {
19140   return true;
19141 }
19142 
Swap(BiasParameter * other)19143 void BiasParameter::Swap(BiasParameter* other) {
19144   if (other == this) return;
19145   InternalSwap(other);
19146 }
InternalSwap(BiasParameter * other)19147 void BiasParameter::InternalSwap(BiasParameter* other) {
19148   using std::swap;
19149   swap(filler_, other->filler_);
19150   swap(axis_, other->axis_);
19151   swap(num_axes_, other->num_axes_);
19152   swap(_has_bits_[0], other->_has_bits_[0]);
19153   _internal_metadata_.Swap(&other->_internal_metadata_);
19154   swap(_cached_size_, other->_cached_size_);
19155 }
19156 
GetMetadata() const19157 ::google::protobuf::Metadata BiasParameter::GetMetadata() const {
19158   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
19159   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
19160 }
19161 
19162 
19163 // ===================================================================
19164 
InitAsDefaultInstance()19165 void ContrastiveLossParameter::InitAsDefaultInstance() {
19166 }
19167 #if !defined(_MSC_VER) || _MSC_VER >= 1900
19168 const int ContrastiveLossParameter::kMarginFieldNumber;
19169 const int ContrastiveLossParameter::kLegacyVersionFieldNumber;
19170 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
19171 
ContrastiveLossParameter()19172 ContrastiveLossParameter::ContrastiveLossParameter()
19173   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
19174   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
19175     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameter();
19176   }
19177   SharedCtor();
19178   // @@protoc_insertion_point(constructor:opencv_caffe.ContrastiveLossParameter)
19179 }
ContrastiveLossParameter(const ContrastiveLossParameter & from)19180 ContrastiveLossParameter::ContrastiveLossParameter(const ContrastiveLossParameter& from)
19181   : ::google::protobuf::Message(),
19182       _internal_metadata_(NULL),
19183       _has_bits_(from._has_bits_),
19184       _cached_size_(0) {
19185   _internal_metadata_.MergeFrom(from._internal_metadata_);
19186   ::memcpy(&legacy_version_, &from.legacy_version_,
19187     static_cast<size_t>(reinterpret_cast<char*>(&margin_) -
19188     reinterpret_cast<char*>(&legacy_version_)) + sizeof(margin_));
19189   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ContrastiveLossParameter)
19190 }
19191 
SharedCtor()19192 void ContrastiveLossParameter::SharedCtor() {
19193   _cached_size_ = 0;
19194   legacy_version_ = false;
19195   margin_ = 1;
19196 }
19197 
~ContrastiveLossParameter()19198 ContrastiveLossParameter::~ContrastiveLossParameter() {
19199   // @@protoc_insertion_point(destructor:opencv_caffe.ContrastiveLossParameter)
19200   SharedDtor();
19201 }
19202 
SharedDtor()19203 void ContrastiveLossParameter::SharedDtor() {
19204 }
19205 
SetCachedSize(int size) const19206 void ContrastiveLossParameter::SetCachedSize(int size) const {
19207   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
19208   _cached_size_ = size;
19209   GOOGLE_SAFE_CONCURRENT_WRITES_END();
19210 }
descriptor()19211 const ::google::protobuf::Descriptor* ContrastiveLossParameter::descriptor() {
19212   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
19213   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
19214 }
19215 
default_instance()19216 const ContrastiveLossParameter& ContrastiveLossParameter::default_instance() {
19217   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsContrastiveLossParameter();
19218   return *internal_default_instance();
19219 }
19220 
New(::google::protobuf::Arena * arena) const19221 ContrastiveLossParameter* ContrastiveLossParameter::New(::google::protobuf::Arena* arena) const {
19222   ContrastiveLossParameter* n = new ContrastiveLossParameter;
19223   if (arena != NULL) {
19224     arena->Own(n);
19225   }
19226   return n;
19227 }
19228 
Clear()19229 void ContrastiveLossParameter::Clear() {
19230 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ContrastiveLossParameter)
19231   ::google::protobuf::uint32 cached_has_bits = 0;
19232   // Prevent compiler warnings about cached_has_bits being unused
19233   (void) cached_has_bits;
19234 
19235   cached_has_bits = _has_bits_[0];
19236   if (cached_has_bits & 3u) {
19237     legacy_version_ = false;
19238     margin_ = 1;
19239   }
19240   _has_bits_.Clear();
19241   _internal_metadata_.Clear();
19242 }
19243 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)19244 bool ContrastiveLossParameter::MergePartialFromCodedStream(
19245     ::google::protobuf::io::CodedInputStream* input) {
19246 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
19247   ::google::protobuf::uint32 tag;
19248   // @@protoc_insertion_point(parse_start:opencv_caffe.ContrastiveLossParameter)
19249   for (;;) {
19250     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
19251     tag = p.first;
19252     if (!p.second) goto handle_unusual;
19253     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
19254       // optional float margin = 1 [default = 1];
19255       case 1: {
19256         if (static_cast< ::google::protobuf::uint8>(tag) ==
19257             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
19258           set_has_margin();
19259           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19260                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
19261                  input, &margin_)));
19262         } else {
19263           goto handle_unusual;
19264         }
19265         break;
19266       }
19267 
19268       // optional bool legacy_version = 2 [default = false];
19269       case 2: {
19270         if (static_cast< ::google::protobuf::uint8>(tag) ==
19271             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
19272           set_has_legacy_version();
19273           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19274                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
19275                  input, &legacy_version_)));
19276         } else {
19277           goto handle_unusual;
19278         }
19279         break;
19280       }
19281 
19282       default: {
19283       handle_unusual:
19284         if (tag == 0) {
19285           goto success;
19286         }
19287         DO_(::google::protobuf::internal::WireFormat::SkipField(
19288               input, tag, _internal_metadata_.mutable_unknown_fields()));
19289         break;
19290       }
19291     }
19292   }
19293 success:
19294   // @@protoc_insertion_point(parse_success:opencv_caffe.ContrastiveLossParameter)
19295   return true;
19296 failure:
19297   // @@protoc_insertion_point(parse_failure:opencv_caffe.ContrastiveLossParameter)
19298   return false;
19299 #undef DO_
19300 }
19301 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const19302 void ContrastiveLossParameter::SerializeWithCachedSizes(
19303     ::google::protobuf::io::CodedOutputStream* output) const {
19304   // @@protoc_insertion_point(serialize_start:opencv_caffe.ContrastiveLossParameter)
19305   ::google::protobuf::uint32 cached_has_bits = 0;
19306   (void) cached_has_bits;
19307 
19308   cached_has_bits = _has_bits_[0];
19309   // optional float margin = 1 [default = 1];
19310   if (cached_has_bits & 0x00000002u) {
19311     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->margin(), output);
19312   }
19313 
19314   // optional bool legacy_version = 2 [default = false];
19315   if (cached_has_bits & 0x00000001u) {
19316     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->legacy_version(), output);
19317   }
19318 
19319   if (_internal_metadata_.have_unknown_fields()) {
19320     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
19321         _internal_metadata_.unknown_fields(), output);
19322   }
19323   // @@protoc_insertion_point(serialize_end:opencv_caffe.ContrastiveLossParameter)
19324 }
19325 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const19326 ::google::protobuf::uint8* ContrastiveLossParameter::InternalSerializeWithCachedSizesToArray(
19327     bool deterministic, ::google::protobuf::uint8* target) const {
19328   (void)deterministic; // Unused
19329   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ContrastiveLossParameter)
19330   ::google::protobuf::uint32 cached_has_bits = 0;
19331   (void) cached_has_bits;
19332 
19333   cached_has_bits = _has_bits_[0];
19334   // optional float margin = 1 [default = 1];
19335   if (cached_has_bits & 0x00000002u) {
19336     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->margin(), target);
19337   }
19338 
19339   // optional bool legacy_version = 2 [default = false];
19340   if (cached_has_bits & 0x00000001u) {
19341     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->legacy_version(), target);
19342   }
19343 
19344   if (_internal_metadata_.have_unknown_fields()) {
19345     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
19346         _internal_metadata_.unknown_fields(), target);
19347   }
19348   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ContrastiveLossParameter)
19349   return target;
19350 }
19351 
ByteSizeLong() const19352 size_t ContrastiveLossParameter::ByteSizeLong() const {
19353 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ContrastiveLossParameter)
19354   size_t total_size = 0;
19355 
19356   if (_internal_metadata_.have_unknown_fields()) {
19357     total_size +=
19358       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
19359         _internal_metadata_.unknown_fields());
19360   }
19361   if (_has_bits_[0 / 32] & 3u) {
19362     // optional bool legacy_version = 2 [default = false];
19363     if (has_legacy_version()) {
19364       total_size += 1 + 1;
19365     }
19366 
19367     // optional float margin = 1 [default = 1];
19368     if (has_margin()) {
19369       total_size += 1 + 4;
19370     }
19371 
19372   }
19373   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
19374   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
19375   _cached_size_ = cached_size;
19376   GOOGLE_SAFE_CONCURRENT_WRITES_END();
19377   return total_size;
19378 }
19379 
MergeFrom(const::google::protobuf::Message & from)19380 void ContrastiveLossParameter::MergeFrom(const ::google::protobuf::Message& from) {
19381 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ContrastiveLossParameter)
19382   GOOGLE_DCHECK_NE(&from, this);
19383   const ContrastiveLossParameter* source =
19384       ::google::protobuf::internal::DynamicCastToGenerated<const ContrastiveLossParameter>(
19385           &from);
19386   if (source == NULL) {
19387   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ContrastiveLossParameter)
19388     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
19389   } else {
19390   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ContrastiveLossParameter)
19391     MergeFrom(*source);
19392   }
19393 }
19394 
MergeFrom(const ContrastiveLossParameter & from)19395 void ContrastiveLossParameter::MergeFrom(const ContrastiveLossParameter& from) {
19396 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ContrastiveLossParameter)
19397   GOOGLE_DCHECK_NE(&from, this);
19398   _internal_metadata_.MergeFrom(from._internal_metadata_);
19399   ::google::protobuf::uint32 cached_has_bits = 0;
19400   (void) cached_has_bits;
19401 
19402   cached_has_bits = from._has_bits_[0];
19403   if (cached_has_bits & 3u) {
19404     if (cached_has_bits & 0x00000001u) {
19405       legacy_version_ = from.legacy_version_;
19406     }
19407     if (cached_has_bits & 0x00000002u) {
19408       margin_ = from.margin_;
19409     }
19410     _has_bits_[0] |= cached_has_bits;
19411   }
19412 }
19413 
CopyFrom(const::google::protobuf::Message & from)19414 void ContrastiveLossParameter::CopyFrom(const ::google::protobuf::Message& from) {
19415 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ContrastiveLossParameter)
19416   if (&from == this) return;
19417   Clear();
19418   MergeFrom(from);
19419 }
19420 
CopyFrom(const ContrastiveLossParameter & from)19421 void ContrastiveLossParameter::CopyFrom(const ContrastiveLossParameter& from) {
19422 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ContrastiveLossParameter)
19423   if (&from == this) return;
19424   Clear();
19425   MergeFrom(from);
19426 }
19427 
IsInitialized() const19428 bool ContrastiveLossParameter::IsInitialized() const {
19429   return true;
19430 }
19431 
Swap(ContrastiveLossParameter * other)19432 void ContrastiveLossParameter::Swap(ContrastiveLossParameter* other) {
19433   if (other == this) return;
19434   InternalSwap(other);
19435 }
InternalSwap(ContrastiveLossParameter * other)19436 void ContrastiveLossParameter::InternalSwap(ContrastiveLossParameter* other) {
19437   using std::swap;
19438   swap(legacy_version_, other->legacy_version_);
19439   swap(margin_, other->margin_);
19440   swap(_has_bits_[0], other->_has_bits_[0]);
19441   _internal_metadata_.Swap(&other->_internal_metadata_);
19442   swap(_cached_size_, other->_cached_size_);
19443 }
19444 
GetMetadata() const19445 ::google::protobuf::Metadata ContrastiveLossParameter::GetMetadata() const {
19446   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
19447   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
19448 }
19449 
19450 
19451 // ===================================================================
19452 
InitAsDefaultInstance()19453 void ConvolutionParameter::InitAsDefaultInstance() {
19454   ::opencv_caffe::_ConvolutionParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
19455       ::opencv_caffe::FillerParameter::internal_default_instance());
19456   ::opencv_caffe::_ConvolutionParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
19457       ::opencv_caffe::FillerParameter::internal_default_instance());
19458 }
19459 #if !defined(_MSC_VER) || _MSC_VER >= 1900
19460 const int ConvolutionParameter::kNumOutputFieldNumber;
19461 const int ConvolutionParameter::kBiasTermFieldNumber;
19462 const int ConvolutionParameter::kPadFieldNumber;
19463 const int ConvolutionParameter::kKernelSizeFieldNumber;
19464 const int ConvolutionParameter::kStrideFieldNumber;
19465 const int ConvolutionParameter::kDilationFieldNumber;
19466 const int ConvolutionParameter::kPadHFieldNumber;
19467 const int ConvolutionParameter::kPadWFieldNumber;
19468 const int ConvolutionParameter::kKernelHFieldNumber;
19469 const int ConvolutionParameter::kKernelWFieldNumber;
19470 const int ConvolutionParameter::kStrideHFieldNumber;
19471 const int ConvolutionParameter::kStrideWFieldNumber;
19472 const int ConvolutionParameter::kGroupFieldNumber;
19473 const int ConvolutionParameter::kWeightFillerFieldNumber;
19474 const int ConvolutionParameter::kBiasFillerFieldNumber;
19475 const int ConvolutionParameter::kEngineFieldNumber;
19476 const int ConvolutionParameter::kAxisFieldNumber;
19477 const int ConvolutionParameter::kForceNdIm2ColFieldNumber;
19478 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
19479 
ConvolutionParameter()19480 ConvolutionParameter::ConvolutionParameter()
19481   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
19482   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
19483     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameter();
19484   }
19485   SharedCtor();
19486   // @@protoc_insertion_point(constructor:opencv_caffe.ConvolutionParameter)
19487 }
ConvolutionParameter(const ConvolutionParameter & from)19488 ConvolutionParameter::ConvolutionParameter(const ConvolutionParameter& from)
19489   : ::google::protobuf::Message(),
19490       _internal_metadata_(NULL),
19491       _has_bits_(from._has_bits_),
19492       _cached_size_(0),
19493       pad_(from.pad_),
19494       kernel_size_(from.kernel_size_),
19495       stride_(from.stride_),
19496       dilation_(from.dilation_) {
19497   _internal_metadata_.MergeFrom(from._internal_metadata_);
19498   if (from.has_weight_filler()) {
19499     weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_);
19500   } else {
19501     weight_filler_ = NULL;
19502   }
19503   if (from.has_bias_filler()) {
19504     bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_);
19505   } else {
19506     bias_filler_ = NULL;
19507   }
19508   ::memcpy(&num_output_, &from.num_output_,
19509     static_cast<size_t>(reinterpret_cast<char*>(&group_) -
19510     reinterpret_cast<char*>(&num_output_)) + sizeof(group_));
19511   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ConvolutionParameter)
19512 }
19513 
SharedCtor()19514 void ConvolutionParameter::SharedCtor() {
19515   _cached_size_ = 0;
19516   ::memset(&weight_filler_, 0, static_cast<size_t>(
19517       reinterpret_cast<char*>(&force_nd_im2col_) -
19518       reinterpret_cast<char*>(&weight_filler_)) + sizeof(force_nd_im2col_));
19519   axis_ = 1;
19520   bias_term_ = true;
19521   group_ = 1u;
19522 }
19523 
~ConvolutionParameter()19524 ConvolutionParameter::~ConvolutionParameter() {
19525   // @@protoc_insertion_point(destructor:opencv_caffe.ConvolutionParameter)
19526   SharedDtor();
19527 }
19528 
SharedDtor()19529 void ConvolutionParameter::SharedDtor() {
19530   if (this != internal_default_instance()) delete weight_filler_;
19531   if (this != internal_default_instance()) delete bias_filler_;
19532 }
19533 
SetCachedSize(int size) const19534 void ConvolutionParameter::SetCachedSize(int size) const {
19535   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
19536   _cached_size_ = size;
19537   GOOGLE_SAFE_CONCURRENT_WRITES_END();
19538 }
descriptor()19539 const ::google::protobuf::Descriptor* ConvolutionParameter::descriptor() {
19540   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
19541   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
19542 }
19543 
default_instance()19544 const ConvolutionParameter& ConvolutionParameter::default_instance() {
19545   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsConvolutionParameter();
19546   return *internal_default_instance();
19547 }
19548 
New(::google::protobuf::Arena * arena) const19549 ConvolutionParameter* ConvolutionParameter::New(::google::protobuf::Arena* arena) const {
19550   ConvolutionParameter* n = new ConvolutionParameter;
19551   if (arena != NULL) {
19552     arena->Own(n);
19553   }
19554   return n;
19555 }
19556 
Clear()19557 void ConvolutionParameter::Clear() {
19558 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ConvolutionParameter)
19559   ::google::protobuf::uint32 cached_has_bits = 0;
19560   // Prevent compiler warnings about cached_has_bits being unused
19561   (void) cached_has_bits;
19562 
19563   pad_.Clear();
19564   kernel_size_.Clear();
19565   stride_.Clear();
19566   dilation_.Clear();
19567   cached_has_bits = _has_bits_[0];
19568   if (cached_has_bits & 3u) {
19569     if (cached_has_bits & 0x00000001u) {
19570       GOOGLE_DCHECK(weight_filler_ != NULL);
19571       weight_filler_->Clear();
19572     }
19573     if (cached_has_bits & 0x00000002u) {
19574       GOOGLE_DCHECK(bias_filler_ != NULL);
19575       bias_filler_->Clear();
19576     }
19577   }
19578   if (cached_has_bits & 252u) {
19579     ::memset(&num_output_, 0, static_cast<size_t>(
19580         reinterpret_cast<char*>(&stride_h_) -
19581         reinterpret_cast<char*>(&num_output_)) + sizeof(stride_h_));
19582   }
19583   if (cached_has_bits & 16128u) {
19584     ::memset(&stride_w_, 0, static_cast<size_t>(
19585         reinterpret_cast<char*>(&force_nd_im2col_) -
19586         reinterpret_cast<char*>(&stride_w_)) + sizeof(force_nd_im2col_));
19587     axis_ = 1;
19588     bias_term_ = true;
19589     group_ = 1u;
19590   }
19591   _has_bits_.Clear();
19592   _internal_metadata_.Clear();
19593 }
19594 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)19595 bool ConvolutionParameter::MergePartialFromCodedStream(
19596     ::google::protobuf::io::CodedInputStream* input) {
19597 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
19598   ::google::protobuf::uint32 tag;
19599   // @@protoc_insertion_point(parse_start:opencv_caffe.ConvolutionParameter)
19600   for (;;) {
19601     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
19602     tag = p.first;
19603     if (!p.second) goto handle_unusual;
19604     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
19605       // optional uint32 num_output = 1;
19606       case 1: {
19607         if (static_cast< ::google::protobuf::uint8>(tag) ==
19608             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
19609           set_has_num_output();
19610           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19611                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19612                  input, &num_output_)));
19613         } else {
19614           goto handle_unusual;
19615         }
19616         break;
19617       }
19618 
19619       // optional bool bias_term = 2 [default = true];
19620       case 2: {
19621         if (static_cast< ::google::protobuf::uint8>(tag) ==
19622             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
19623           set_has_bias_term();
19624           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19625                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
19626                  input, &bias_term_)));
19627         } else {
19628           goto handle_unusual;
19629         }
19630         break;
19631       }
19632 
19633       // repeated uint32 pad = 3;
19634       case 3: {
19635         if (static_cast< ::google::protobuf::uint8>(tag) ==
19636             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
19637           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
19638                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19639                  1, 24u, input, this->mutable_pad())));
19640         } else if (
19641             static_cast< ::google::protobuf::uint8>(tag) ==
19642             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
19643           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
19644                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19645                  input, this->mutable_pad())));
19646         } else {
19647           goto handle_unusual;
19648         }
19649         break;
19650       }
19651 
19652       // repeated uint32 kernel_size = 4;
19653       case 4: {
19654         if (static_cast< ::google::protobuf::uint8>(tag) ==
19655             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
19656           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
19657                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19658                  1, 32u, input, this->mutable_kernel_size())));
19659         } else if (
19660             static_cast< ::google::protobuf::uint8>(tag) ==
19661             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
19662           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
19663                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19664                  input, this->mutable_kernel_size())));
19665         } else {
19666           goto handle_unusual;
19667         }
19668         break;
19669       }
19670 
19671       // optional uint32 group = 5 [default = 1];
19672       case 5: {
19673         if (static_cast< ::google::protobuf::uint8>(tag) ==
19674             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
19675           set_has_group();
19676           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19677                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19678                  input, &group_)));
19679         } else {
19680           goto handle_unusual;
19681         }
19682         break;
19683       }
19684 
19685       // repeated uint32 stride = 6;
19686       case 6: {
19687         if (static_cast< ::google::protobuf::uint8>(tag) ==
19688             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
19689           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
19690                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19691                  1, 48u, input, this->mutable_stride())));
19692         } else if (
19693             static_cast< ::google::protobuf::uint8>(tag) ==
19694             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
19695           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
19696                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19697                  input, this->mutable_stride())));
19698         } else {
19699           goto handle_unusual;
19700         }
19701         break;
19702       }
19703 
19704       // optional .opencv_caffe.FillerParameter weight_filler = 7;
19705       case 7: {
19706         if (static_cast< ::google::protobuf::uint8>(tag) ==
19707             static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
19708           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
19709                input, mutable_weight_filler()));
19710         } else {
19711           goto handle_unusual;
19712         }
19713         break;
19714       }
19715 
19716       // optional .opencv_caffe.FillerParameter bias_filler = 8;
19717       case 8: {
19718         if (static_cast< ::google::protobuf::uint8>(tag) ==
19719             static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
19720           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
19721                input, mutable_bias_filler()));
19722         } else {
19723           goto handle_unusual;
19724         }
19725         break;
19726       }
19727 
19728       // optional uint32 pad_h = 9 [default = 0];
19729       case 9: {
19730         if (static_cast< ::google::protobuf::uint8>(tag) ==
19731             static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
19732           set_has_pad_h();
19733           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19734                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19735                  input, &pad_h_)));
19736         } else {
19737           goto handle_unusual;
19738         }
19739         break;
19740       }
19741 
19742       // optional uint32 pad_w = 10 [default = 0];
19743       case 10: {
19744         if (static_cast< ::google::protobuf::uint8>(tag) ==
19745             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
19746           set_has_pad_w();
19747           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19748                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19749                  input, &pad_w_)));
19750         } else {
19751           goto handle_unusual;
19752         }
19753         break;
19754       }
19755 
19756       // optional uint32 kernel_h = 11;
19757       case 11: {
19758         if (static_cast< ::google::protobuf::uint8>(tag) ==
19759             static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
19760           set_has_kernel_h();
19761           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19762                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19763                  input, &kernel_h_)));
19764         } else {
19765           goto handle_unusual;
19766         }
19767         break;
19768       }
19769 
19770       // optional uint32 kernel_w = 12;
19771       case 12: {
19772         if (static_cast< ::google::protobuf::uint8>(tag) ==
19773             static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
19774           set_has_kernel_w();
19775           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19776                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19777                  input, &kernel_w_)));
19778         } else {
19779           goto handle_unusual;
19780         }
19781         break;
19782       }
19783 
19784       // optional uint32 stride_h = 13;
19785       case 13: {
19786         if (static_cast< ::google::protobuf::uint8>(tag) ==
19787             static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
19788           set_has_stride_h();
19789           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19790                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19791                  input, &stride_h_)));
19792         } else {
19793           goto handle_unusual;
19794         }
19795         break;
19796       }
19797 
19798       // optional uint32 stride_w = 14;
19799       case 14: {
19800         if (static_cast< ::google::protobuf::uint8>(tag) ==
19801             static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
19802           set_has_stride_w();
19803           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19804                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19805                  input, &stride_w_)));
19806         } else {
19807           goto handle_unusual;
19808         }
19809         break;
19810       }
19811 
19812       // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT];
19813       case 15: {
19814         if (static_cast< ::google::protobuf::uint8>(tag) ==
19815             static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
19816           int value;
19817           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19818                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
19819                  input, &value)));
19820           if (::opencv_caffe::ConvolutionParameter_Engine_IsValid(value)) {
19821             set_engine(static_cast< ::opencv_caffe::ConvolutionParameter_Engine >(value));
19822           } else {
19823             mutable_unknown_fields()->AddVarint(
19824                 15, static_cast< ::google::protobuf::uint64>(value));
19825           }
19826         } else {
19827           goto handle_unusual;
19828         }
19829         break;
19830       }
19831 
19832       // optional int32 axis = 16 [default = 1];
19833       case 16: {
19834         if (static_cast< ::google::protobuf::uint8>(tag) ==
19835             static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
19836           set_has_axis();
19837           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19838                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
19839                  input, &axis_)));
19840         } else {
19841           goto handle_unusual;
19842         }
19843         break;
19844       }
19845 
19846       // optional bool force_nd_im2col = 17 [default = false];
19847       case 17: {
19848         if (static_cast< ::google::protobuf::uint8>(tag) ==
19849             static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
19850           set_has_force_nd_im2col();
19851           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
19852                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
19853                  input, &force_nd_im2col_)));
19854         } else {
19855           goto handle_unusual;
19856         }
19857         break;
19858       }
19859 
19860       // repeated uint32 dilation = 18;
19861       case 18: {
19862         if (static_cast< ::google::protobuf::uint8>(tag) ==
19863             static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {
19864           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
19865                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19866                  2, 144u, input, this->mutable_dilation())));
19867         } else if (
19868             static_cast< ::google::protobuf::uint8>(tag) ==
19869             static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
19870           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
19871                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
19872                  input, this->mutable_dilation())));
19873         } else {
19874           goto handle_unusual;
19875         }
19876         break;
19877       }
19878 
19879       default: {
19880       handle_unusual:
19881         if (tag == 0) {
19882           goto success;
19883         }
19884         DO_(::google::protobuf::internal::WireFormat::SkipField(
19885               input, tag, _internal_metadata_.mutable_unknown_fields()));
19886         break;
19887       }
19888     }
19889   }
19890 success:
19891   // @@protoc_insertion_point(parse_success:opencv_caffe.ConvolutionParameter)
19892   return true;
19893 failure:
19894   // @@protoc_insertion_point(parse_failure:opencv_caffe.ConvolutionParameter)
19895   return false;
19896 #undef DO_
19897 }
19898 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const19899 void ConvolutionParameter::SerializeWithCachedSizes(
19900     ::google::protobuf::io::CodedOutputStream* output) const {
19901   // @@protoc_insertion_point(serialize_start:opencv_caffe.ConvolutionParameter)
19902   ::google::protobuf::uint32 cached_has_bits = 0;
19903   (void) cached_has_bits;
19904 
19905   cached_has_bits = _has_bits_[0];
19906   // optional uint32 num_output = 1;
19907   if (cached_has_bits & 0x00000004u) {
19908     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output);
19909   }
19910 
19911   // optional bool bias_term = 2 [default = true];
19912   if (cached_has_bits & 0x00001000u) {
19913     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bias_term(), output);
19914   }
19915 
19916   // repeated uint32 pad = 3;
19917   for (int i = 0, n = this->pad_size(); i < n; i++) {
19918     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
19919       3, this->pad(i), output);
19920   }
19921 
19922   // repeated uint32 kernel_size = 4;
19923   for (int i = 0, n = this->kernel_size_size(); i < n; i++) {
19924     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
19925       4, this->kernel_size(i), output);
19926   }
19927 
19928   // optional uint32 group = 5 [default = 1];
19929   if (cached_has_bits & 0x00002000u) {
19930     ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->group(), output);
19931   }
19932 
19933   // repeated uint32 stride = 6;
19934   for (int i = 0, n = this->stride_size(); i < n; i++) {
19935     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
19936       6, this->stride(i), output);
19937   }
19938 
19939   // optional .opencv_caffe.FillerParameter weight_filler = 7;
19940   if (cached_has_bits & 0x00000001u) {
19941     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
19942       7, *this->weight_filler_, output);
19943   }
19944 
19945   // optional .opencv_caffe.FillerParameter bias_filler = 8;
19946   if (cached_has_bits & 0x00000002u) {
19947     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
19948       8, *this->bias_filler_, output);
19949   }
19950 
19951   // optional uint32 pad_h = 9 [default = 0];
19952   if (cached_has_bits & 0x00000008u) {
19953     ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->pad_h(), output);
19954   }
19955 
19956   // optional uint32 pad_w = 10 [default = 0];
19957   if (cached_has_bits & 0x00000010u) {
19958     ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->pad_w(), output);
19959   }
19960 
19961   // optional uint32 kernel_h = 11;
19962   if (cached_has_bits & 0x00000020u) {
19963     ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->kernel_h(), output);
19964   }
19965 
19966   // optional uint32 kernel_w = 12;
19967   if (cached_has_bits & 0x00000040u) {
19968     ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->kernel_w(), output);
19969   }
19970 
19971   // optional uint32 stride_h = 13;
19972   if (cached_has_bits & 0x00000080u) {
19973     ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->stride_h(), output);
19974   }
19975 
19976   // optional uint32 stride_w = 14;
19977   if (cached_has_bits & 0x00000100u) {
19978     ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->stride_w(), output);
19979   }
19980 
19981   // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT];
19982   if (cached_has_bits & 0x00000200u) {
19983     ::google::protobuf::internal::WireFormatLite::WriteEnum(
19984       15, this->engine(), output);
19985   }
19986 
19987   // optional int32 axis = 16 [default = 1];
19988   if (cached_has_bits & 0x00000800u) {
19989     ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->axis(), output);
19990   }
19991 
19992   // optional bool force_nd_im2col = 17 [default = false];
19993   if (cached_has_bits & 0x00000400u) {
19994     ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->force_nd_im2col(), output);
19995   }
19996 
19997   // repeated uint32 dilation = 18;
19998   for (int i = 0, n = this->dilation_size(); i < n; i++) {
19999     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
20000       18, this->dilation(i), output);
20001   }
20002 
20003   if (_internal_metadata_.have_unknown_fields()) {
20004     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
20005         _internal_metadata_.unknown_fields(), output);
20006   }
20007   // @@protoc_insertion_point(serialize_end:opencv_caffe.ConvolutionParameter)
20008 }
20009 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const20010 ::google::protobuf::uint8* ConvolutionParameter::InternalSerializeWithCachedSizesToArray(
20011     bool deterministic, ::google::protobuf::uint8* target) const {
20012   (void)deterministic; // Unused
20013   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ConvolutionParameter)
20014   ::google::protobuf::uint32 cached_has_bits = 0;
20015   (void) cached_has_bits;
20016 
20017   cached_has_bits = _has_bits_[0];
20018   // optional uint32 num_output = 1;
20019   if (cached_has_bits & 0x00000004u) {
20020     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target);
20021   }
20022 
20023   // optional bool bias_term = 2 [default = true];
20024   if (cached_has_bits & 0x00001000u) {
20025     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bias_term(), target);
20026   }
20027 
20028   // repeated uint32 pad = 3;
20029   target = ::google::protobuf::internal::WireFormatLite::
20030     WriteUInt32ToArray(3, this->pad_, target);
20031 
20032   // repeated uint32 kernel_size = 4;
20033   target = ::google::protobuf::internal::WireFormatLite::
20034     WriteUInt32ToArray(4, this->kernel_size_, target);
20035 
20036   // optional uint32 group = 5 [default = 1];
20037   if (cached_has_bits & 0x00002000u) {
20038     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->group(), target);
20039   }
20040 
20041   // repeated uint32 stride = 6;
20042   target = ::google::protobuf::internal::WireFormatLite::
20043     WriteUInt32ToArray(6, this->stride_, target);
20044 
20045   // optional .opencv_caffe.FillerParameter weight_filler = 7;
20046   if (cached_has_bits & 0x00000001u) {
20047     target = ::google::protobuf::internal::WireFormatLite::
20048       InternalWriteMessageToArray(
20049         7, *this->weight_filler_, deterministic, target);
20050   }
20051 
20052   // optional .opencv_caffe.FillerParameter bias_filler = 8;
20053   if (cached_has_bits & 0x00000002u) {
20054     target = ::google::protobuf::internal::WireFormatLite::
20055       InternalWriteMessageToArray(
20056         8, *this->bias_filler_, deterministic, target);
20057   }
20058 
20059   // optional uint32 pad_h = 9 [default = 0];
20060   if (cached_has_bits & 0x00000008u) {
20061     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->pad_h(), target);
20062   }
20063 
20064   // optional uint32 pad_w = 10 [default = 0];
20065   if (cached_has_bits & 0x00000010u) {
20066     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->pad_w(), target);
20067   }
20068 
20069   // optional uint32 kernel_h = 11;
20070   if (cached_has_bits & 0x00000020u) {
20071     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->kernel_h(), target);
20072   }
20073 
20074   // optional uint32 kernel_w = 12;
20075   if (cached_has_bits & 0x00000040u) {
20076     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->kernel_w(), target);
20077   }
20078 
20079   // optional uint32 stride_h = 13;
20080   if (cached_has_bits & 0x00000080u) {
20081     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->stride_h(), target);
20082   }
20083 
20084   // optional uint32 stride_w = 14;
20085   if (cached_has_bits & 0x00000100u) {
20086     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->stride_w(), target);
20087   }
20088 
20089   // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT];
20090   if (cached_has_bits & 0x00000200u) {
20091     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
20092       15, this->engine(), target);
20093   }
20094 
20095   // optional int32 axis = 16 [default = 1];
20096   if (cached_has_bits & 0x00000800u) {
20097     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->axis(), target);
20098   }
20099 
20100   // optional bool force_nd_im2col = 17 [default = false];
20101   if (cached_has_bits & 0x00000400u) {
20102     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->force_nd_im2col(), target);
20103   }
20104 
20105   // repeated uint32 dilation = 18;
20106   target = ::google::protobuf::internal::WireFormatLite::
20107     WriteUInt32ToArray(18, this->dilation_, target);
20108 
20109   if (_internal_metadata_.have_unknown_fields()) {
20110     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
20111         _internal_metadata_.unknown_fields(), target);
20112   }
20113   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ConvolutionParameter)
20114   return target;
20115 }
20116 
ByteSizeLong() const20117 size_t ConvolutionParameter::ByteSizeLong() const {
20118 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ConvolutionParameter)
20119   size_t total_size = 0;
20120 
20121   if (_internal_metadata_.have_unknown_fields()) {
20122     total_size +=
20123       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
20124         _internal_metadata_.unknown_fields());
20125   }
20126   // repeated uint32 pad = 3;
20127   {
20128     size_t data_size = ::google::protobuf::internal::WireFormatLite::
20129       UInt32Size(this->pad_);
20130     total_size += 1 *
20131                   ::google::protobuf::internal::FromIntSize(this->pad_size());
20132     total_size += data_size;
20133   }
20134 
20135   // repeated uint32 kernel_size = 4;
20136   {
20137     size_t data_size = ::google::protobuf::internal::WireFormatLite::
20138       UInt32Size(this->kernel_size_);
20139     total_size += 1 *
20140                   ::google::protobuf::internal::FromIntSize(this->kernel_size_size());
20141     total_size += data_size;
20142   }
20143 
20144   // repeated uint32 stride = 6;
20145   {
20146     size_t data_size = ::google::protobuf::internal::WireFormatLite::
20147       UInt32Size(this->stride_);
20148     total_size += 1 *
20149                   ::google::protobuf::internal::FromIntSize(this->stride_size());
20150     total_size += data_size;
20151   }
20152 
20153   // repeated uint32 dilation = 18;
20154   {
20155     size_t data_size = ::google::protobuf::internal::WireFormatLite::
20156       UInt32Size(this->dilation_);
20157     total_size += 2 *
20158                   ::google::protobuf::internal::FromIntSize(this->dilation_size());
20159     total_size += data_size;
20160   }
20161 
20162   if (_has_bits_[0 / 32] & 255u) {
20163     // optional .opencv_caffe.FillerParameter weight_filler = 7;
20164     if (has_weight_filler()) {
20165       total_size += 1 +
20166         ::google::protobuf::internal::WireFormatLite::MessageSize(
20167           *this->weight_filler_);
20168     }
20169 
20170     // optional .opencv_caffe.FillerParameter bias_filler = 8;
20171     if (has_bias_filler()) {
20172       total_size += 1 +
20173         ::google::protobuf::internal::WireFormatLite::MessageSize(
20174           *this->bias_filler_);
20175     }
20176 
20177     // optional uint32 num_output = 1;
20178     if (has_num_output()) {
20179       total_size += 1 +
20180         ::google::protobuf::internal::WireFormatLite::UInt32Size(
20181           this->num_output());
20182     }
20183 
20184     // optional uint32 pad_h = 9 [default = 0];
20185     if (has_pad_h()) {
20186       total_size += 1 +
20187         ::google::protobuf::internal::WireFormatLite::UInt32Size(
20188           this->pad_h());
20189     }
20190 
20191     // optional uint32 pad_w = 10 [default = 0];
20192     if (has_pad_w()) {
20193       total_size += 1 +
20194         ::google::protobuf::internal::WireFormatLite::UInt32Size(
20195           this->pad_w());
20196     }
20197 
20198     // optional uint32 kernel_h = 11;
20199     if (has_kernel_h()) {
20200       total_size += 1 +
20201         ::google::protobuf::internal::WireFormatLite::UInt32Size(
20202           this->kernel_h());
20203     }
20204 
20205     // optional uint32 kernel_w = 12;
20206     if (has_kernel_w()) {
20207       total_size += 1 +
20208         ::google::protobuf::internal::WireFormatLite::UInt32Size(
20209           this->kernel_w());
20210     }
20211 
20212     // optional uint32 stride_h = 13;
20213     if (has_stride_h()) {
20214       total_size += 1 +
20215         ::google::protobuf::internal::WireFormatLite::UInt32Size(
20216           this->stride_h());
20217     }
20218 
20219   }
20220   if (_has_bits_[8 / 32] & 16128u) {
20221     // optional uint32 stride_w = 14;
20222     if (has_stride_w()) {
20223       total_size += 1 +
20224         ::google::protobuf::internal::WireFormatLite::UInt32Size(
20225           this->stride_w());
20226     }
20227 
20228     // optional .opencv_caffe.ConvolutionParameter.Engine engine = 15 [default = DEFAULT];
20229     if (has_engine()) {
20230       total_size += 1 +
20231         ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine());
20232     }
20233 
20234     // optional bool force_nd_im2col = 17 [default = false];
20235     if (has_force_nd_im2col()) {
20236       total_size += 2 + 1;
20237     }
20238 
20239     // optional int32 axis = 16 [default = 1];
20240     if (has_axis()) {
20241       total_size += 2 +
20242         ::google::protobuf::internal::WireFormatLite::Int32Size(
20243           this->axis());
20244     }
20245 
20246     // optional bool bias_term = 2 [default = true];
20247     if (has_bias_term()) {
20248       total_size += 1 + 1;
20249     }
20250 
20251     // optional uint32 group = 5 [default = 1];
20252     if (has_group()) {
20253       total_size += 1 +
20254         ::google::protobuf::internal::WireFormatLite::UInt32Size(
20255           this->group());
20256     }
20257 
20258   }
20259   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
20260   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
20261   _cached_size_ = cached_size;
20262   GOOGLE_SAFE_CONCURRENT_WRITES_END();
20263   return total_size;
20264 }
20265 
MergeFrom(const::google::protobuf::Message & from)20266 void ConvolutionParameter::MergeFrom(const ::google::protobuf::Message& from) {
20267 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ConvolutionParameter)
20268   GOOGLE_DCHECK_NE(&from, this);
20269   const ConvolutionParameter* source =
20270       ::google::protobuf::internal::DynamicCastToGenerated<const ConvolutionParameter>(
20271           &from);
20272   if (source == NULL) {
20273   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ConvolutionParameter)
20274     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
20275   } else {
20276   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ConvolutionParameter)
20277     MergeFrom(*source);
20278   }
20279 }
20280 
MergeFrom(const ConvolutionParameter & from)20281 void ConvolutionParameter::MergeFrom(const ConvolutionParameter& from) {
20282 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ConvolutionParameter)
20283   GOOGLE_DCHECK_NE(&from, this);
20284   _internal_metadata_.MergeFrom(from._internal_metadata_);
20285   ::google::protobuf::uint32 cached_has_bits = 0;
20286   (void) cached_has_bits;
20287 
20288   pad_.MergeFrom(from.pad_);
20289   kernel_size_.MergeFrom(from.kernel_size_);
20290   stride_.MergeFrom(from.stride_);
20291   dilation_.MergeFrom(from.dilation_);
20292   cached_has_bits = from._has_bits_[0];
20293   if (cached_has_bits & 255u) {
20294     if (cached_has_bits & 0x00000001u) {
20295       mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler());
20296     }
20297     if (cached_has_bits & 0x00000002u) {
20298       mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler());
20299     }
20300     if (cached_has_bits & 0x00000004u) {
20301       num_output_ = from.num_output_;
20302     }
20303     if (cached_has_bits & 0x00000008u) {
20304       pad_h_ = from.pad_h_;
20305     }
20306     if (cached_has_bits & 0x00000010u) {
20307       pad_w_ = from.pad_w_;
20308     }
20309     if (cached_has_bits & 0x00000020u) {
20310       kernel_h_ = from.kernel_h_;
20311     }
20312     if (cached_has_bits & 0x00000040u) {
20313       kernel_w_ = from.kernel_w_;
20314     }
20315     if (cached_has_bits & 0x00000080u) {
20316       stride_h_ = from.stride_h_;
20317     }
20318     _has_bits_[0] |= cached_has_bits;
20319   }
20320   if (cached_has_bits & 16128u) {
20321     if (cached_has_bits & 0x00000100u) {
20322       stride_w_ = from.stride_w_;
20323     }
20324     if (cached_has_bits & 0x00000200u) {
20325       engine_ = from.engine_;
20326     }
20327     if (cached_has_bits & 0x00000400u) {
20328       force_nd_im2col_ = from.force_nd_im2col_;
20329     }
20330     if (cached_has_bits & 0x00000800u) {
20331       axis_ = from.axis_;
20332     }
20333     if (cached_has_bits & 0x00001000u) {
20334       bias_term_ = from.bias_term_;
20335     }
20336     if (cached_has_bits & 0x00002000u) {
20337       group_ = from.group_;
20338     }
20339     _has_bits_[0] |= cached_has_bits;
20340   }
20341 }
20342 
CopyFrom(const::google::protobuf::Message & from)20343 void ConvolutionParameter::CopyFrom(const ::google::protobuf::Message& from) {
20344 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ConvolutionParameter)
20345   if (&from == this) return;
20346   Clear();
20347   MergeFrom(from);
20348 }
20349 
CopyFrom(const ConvolutionParameter & from)20350 void ConvolutionParameter::CopyFrom(const ConvolutionParameter& from) {
20351 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ConvolutionParameter)
20352   if (&from == this) return;
20353   Clear();
20354   MergeFrom(from);
20355 }
20356 
IsInitialized() const20357 bool ConvolutionParameter::IsInitialized() const {
20358   return true;
20359 }
20360 
Swap(ConvolutionParameter * other)20361 void ConvolutionParameter::Swap(ConvolutionParameter* other) {
20362   if (other == this) return;
20363   InternalSwap(other);
20364 }
InternalSwap(ConvolutionParameter * other)20365 void ConvolutionParameter::InternalSwap(ConvolutionParameter* other) {
20366   using std::swap;
20367   pad_.InternalSwap(&other->pad_);
20368   kernel_size_.InternalSwap(&other->kernel_size_);
20369   stride_.InternalSwap(&other->stride_);
20370   dilation_.InternalSwap(&other->dilation_);
20371   swap(weight_filler_, other->weight_filler_);
20372   swap(bias_filler_, other->bias_filler_);
20373   swap(num_output_, other->num_output_);
20374   swap(pad_h_, other->pad_h_);
20375   swap(pad_w_, other->pad_w_);
20376   swap(kernel_h_, other->kernel_h_);
20377   swap(kernel_w_, other->kernel_w_);
20378   swap(stride_h_, other->stride_h_);
20379   swap(stride_w_, other->stride_w_);
20380   swap(engine_, other->engine_);
20381   swap(force_nd_im2col_, other->force_nd_im2col_);
20382   swap(axis_, other->axis_);
20383   swap(bias_term_, other->bias_term_);
20384   swap(group_, other->group_);
20385   swap(_has_bits_[0], other->_has_bits_[0]);
20386   _internal_metadata_.Swap(&other->_internal_metadata_);
20387   swap(_cached_size_, other->_cached_size_);
20388 }
20389 
GetMetadata() const20390 ::google::protobuf::Metadata ConvolutionParameter::GetMetadata() const {
20391   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
20392   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
20393 }
20394 
20395 
20396 // ===================================================================
20397 
InitAsDefaultInstance()20398 void CropParameter::InitAsDefaultInstance() {
20399 }
20400 #if !defined(_MSC_VER) || _MSC_VER >= 1900
20401 const int CropParameter::kAxisFieldNumber;
20402 const int CropParameter::kOffsetFieldNumber;
20403 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
20404 
CropParameter()20405 CropParameter::CropParameter()
20406   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
20407   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
20408     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsCropParameter();
20409   }
20410   SharedCtor();
20411   // @@protoc_insertion_point(constructor:opencv_caffe.CropParameter)
20412 }
CropParameter(const CropParameter & from)20413 CropParameter::CropParameter(const CropParameter& from)
20414   : ::google::protobuf::Message(),
20415       _internal_metadata_(NULL),
20416       _has_bits_(from._has_bits_),
20417       _cached_size_(0),
20418       offset_(from.offset_) {
20419   _internal_metadata_.MergeFrom(from._internal_metadata_);
20420   axis_ = from.axis_;
20421   // @@protoc_insertion_point(copy_constructor:opencv_caffe.CropParameter)
20422 }
20423 
SharedCtor()20424 void CropParameter::SharedCtor() {
20425   _cached_size_ = 0;
20426   axis_ = 2;
20427 }
20428 
~CropParameter()20429 CropParameter::~CropParameter() {
20430   // @@protoc_insertion_point(destructor:opencv_caffe.CropParameter)
20431   SharedDtor();
20432 }
20433 
SharedDtor()20434 void CropParameter::SharedDtor() {
20435 }
20436 
SetCachedSize(int size) const20437 void CropParameter::SetCachedSize(int size) const {
20438   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
20439   _cached_size_ = size;
20440   GOOGLE_SAFE_CONCURRENT_WRITES_END();
20441 }
descriptor()20442 const ::google::protobuf::Descriptor* CropParameter::descriptor() {
20443   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
20444   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
20445 }
20446 
default_instance()20447 const CropParameter& CropParameter::default_instance() {
20448   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsCropParameter();
20449   return *internal_default_instance();
20450 }
20451 
New(::google::protobuf::Arena * arena) const20452 CropParameter* CropParameter::New(::google::protobuf::Arena* arena) const {
20453   CropParameter* n = new CropParameter;
20454   if (arena != NULL) {
20455     arena->Own(n);
20456   }
20457   return n;
20458 }
20459 
Clear()20460 void CropParameter::Clear() {
20461 // @@protoc_insertion_point(message_clear_start:opencv_caffe.CropParameter)
20462   ::google::protobuf::uint32 cached_has_bits = 0;
20463   // Prevent compiler warnings about cached_has_bits being unused
20464   (void) cached_has_bits;
20465 
20466   offset_.Clear();
20467   axis_ = 2;
20468   _has_bits_.Clear();
20469   _internal_metadata_.Clear();
20470 }
20471 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)20472 bool CropParameter::MergePartialFromCodedStream(
20473     ::google::protobuf::io::CodedInputStream* input) {
20474 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
20475   ::google::protobuf::uint32 tag;
20476   // @@protoc_insertion_point(parse_start:opencv_caffe.CropParameter)
20477   for (;;) {
20478     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
20479     tag = p.first;
20480     if (!p.second) goto handle_unusual;
20481     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
20482       // optional int32 axis = 1 [default = 2];
20483       case 1: {
20484         if (static_cast< ::google::protobuf::uint8>(tag) ==
20485             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
20486           set_has_axis();
20487           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20488                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
20489                  input, &axis_)));
20490         } else {
20491           goto handle_unusual;
20492         }
20493         break;
20494       }
20495 
20496       // repeated uint32 offset = 2;
20497       case 2: {
20498         if (static_cast< ::google::protobuf::uint8>(tag) ==
20499             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
20500           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
20501                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
20502                  1, 16u, input, this->mutable_offset())));
20503         } else if (
20504             static_cast< ::google::protobuf::uint8>(tag) ==
20505             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
20506           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
20507                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
20508                  input, this->mutable_offset())));
20509         } else {
20510           goto handle_unusual;
20511         }
20512         break;
20513       }
20514 
20515       default: {
20516       handle_unusual:
20517         if (tag == 0) {
20518           goto success;
20519         }
20520         DO_(::google::protobuf::internal::WireFormat::SkipField(
20521               input, tag, _internal_metadata_.mutable_unknown_fields()));
20522         break;
20523       }
20524     }
20525   }
20526 success:
20527   // @@protoc_insertion_point(parse_success:opencv_caffe.CropParameter)
20528   return true;
20529 failure:
20530   // @@protoc_insertion_point(parse_failure:opencv_caffe.CropParameter)
20531   return false;
20532 #undef DO_
20533 }
20534 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const20535 void CropParameter::SerializeWithCachedSizes(
20536     ::google::protobuf::io::CodedOutputStream* output) const {
20537   // @@protoc_insertion_point(serialize_start:opencv_caffe.CropParameter)
20538   ::google::protobuf::uint32 cached_has_bits = 0;
20539   (void) cached_has_bits;
20540 
20541   cached_has_bits = _has_bits_[0];
20542   // optional int32 axis = 1 [default = 2];
20543   if (cached_has_bits & 0x00000001u) {
20544     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output);
20545   }
20546 
20547   // repeated uint32 offset = 2;
20548   for (int i = 0, n = this->offset_size(); i < n; i++) {
20549     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
20550       2, this->offset(i), output);
20551   }
20552 
20553   if (_internal_metadata_.have_unknown_fields()) {
20554     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
20555         _internal_metadata_.unknown_fields(), output);
20556   }
20557   // @@protoc_insertion_point(serialize_end:opencv_caffe.CropParameter)
20558 }
20559 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const20560 ::google::protobuf::uint8* CropParameter::InternalSerializeWithCachedSizesToArray(
20561     bool deterministic, ::google::protobuf::uint8* target) const {
20562   (void)deterministic; // Unused
20563   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.CropParameter)
20564   ::google::protobuf::uint32 cached_has_bits = 0;
20565   (void) cached_has_bits;
20566 
20567   cached_has_bits = _has_bits_[0];
20568   // optional int32 axis = 1 [default = 2];
20569   if (cached_has_bits & 0x00000001u) {
20570     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target);
20571   }
20572 
20573   // repeated uint32 offset = 2;
20574   target = ::google::protobuf::internal::WireFormatLite::
20575     WriteUInt32ToArray(2, this->offset_, target);
20576 
20577   if (_internal_metadata_.have_unknown_fields()) {
20578     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
20579         _internal_metadata_.unknown_fields(), target);
20580   }
20581   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.CropParameter)
20582   return target;
20583 }
20584 
ByteSizeLong() const20585 size_t CropParameter::ByteSizeLong() const {
20586 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.CropParameter)
20587   size_t total_size = 0;
20588 
20589   if (_internal_metadata_.have_unknown_fields()) {
20590     total_size +=
20591       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
20592         _internal_metadata_.unknown_fields());
20593   }
20594   // repeated uint32 offset = 2;
20595   {
20596     size_t data_size = ::google::protobuf::internal::WireFormatLite::
20597       UInt32Size(this->offset_);
20598     total_size += 1 *
20599                   ::google::protobuf::internal::FromIntSize(this->offset_size());
20600     total_size += data_size;
20601   }
20602 
20603   // optional int32 axis = 1 [default = 2];
20604   if (has_axis()) {
20605     total_size += 1 +
20606       ::google::protobuf::internal::WireFormatLite::Int32Size(
20607         this->axis());
20608   }
20609 
20610   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
20611   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
20612   _cached_size_ = cached_size;
20613   GOOGLE_SAFE_CONCURRENT_WRITES_END();
20614   return total_size;
20615 }
20616 
MergeFrom(const::google::protobuf::Message & from)20617 void CropParameter::MergeFrom(const ::google::protobuf::Message& from) {
20618 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.CropParameter)
20619   GOOGLE_DCHECK_NE(&from, this);
20620   const CropParameter* source =
20621       ::google::protobuf::internal::DynamicCastToGenerated<const CropParameter>(
20622           &from);
20623   if (source == NULL) {
20624   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.CropParameter)
20625     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
20626   } else {
20627   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.CropParameter)
20628     MergeFrom(*source);
20629   }
20630 }
20631 
MergeFrom(const CropParameter & from)20632 void CropParameter::MergeFrom(const CropParameter& from) {
20633 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.CropParameter)
20634   GOOGLE_DCHECK_NE(&from, this);
20635   _internal_metadata_.MergeFrom(from._internal_metadata_);
20636   ::google::protobuf::uint32 cached_has_bits = 0;
20637   (void) cached_has_bits;
20638 
20639   offset_.MergeFrom(from.offset_);
20640   if (from.has_axis()) {
20641     set_axis(from.axis());
20642   }
20643 }
20644 
CopyFrom(const::google::protobuf::Message & from)20645 void CropParameter::CopyFrom(const ::google::protobuf::Message& from) {
20646 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.CropParameter)
20647   if (&from == this) return;
20648   Clear();
20649   MergeFrom(from);
20650 }
20651 
CopyFrom(const CropParameter & from)20652 void CropParameter::CopyFrom(const CropParameter& from) {
20653 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.CropParameter)
20654   if (&from == this) return;
20655   Clear();
20656   MergeFrom(from);
20657 }
20658 
IsInitialized() const20659 bool CropParameter::IsInitialized() const {
20660   return true;
20661 }
20662 
Swap(CropParameter * other)20663 void CropParameter::Swap(CropParameter* other) {
20664   if (other == this) return;
20665   InternalSwap(other);
20666 }
InternalSwap(CropParameter * other)20667 void CropParameter::InternalSwap(CropParameter* other) {
20668   using std::swap;
20669   offset_.InternalSwap(&other->offset_);
20670   swap(axis_, other->axis_);
20671   swap(_has_bits_[0], other->_has_bits_[0]);
20672   _internal_metadata_.Swap(&other->_internal_metadata_);
20673   swap(_cached_size_, other->_cached_size_);
20674 }
20675 
GetMetadata() const20676 ::google::protobuf::Metadata CropParameter::GetMetadata() const {
20677   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
20678   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
20679 }
20680 
20681 
20682 // ===================================================================
20683 
InitAsDefaultInstance()20684 void DataParameter::InitAsDefaultInstance() {
20685 }
20686 #if !defined(_MSC_VER) || _MSC_VER >= 1900
20687 const int DataParameter::kSourceFieldNumber;
20688 const int DataParameter::kBatchSizeFieldNumber;
20689 const int DataParameter::kRandSkipFieldNumber;
20690 const int DataParameter::kBackendFieldNumber;
20691 const int DataParameter::kScaleFieldNumber;
20692 const int DataParameter::kMeanFileFieldNumber;
20693 const int DataParameter::kCropSizeFieldNumber;
20694 const int DataParameter::kMirrorFieldNumber;
20695 const int DataParameter::kForceEncodedColorFieldNumber;
20696 const int DataParameter::kPrefetchFieldNumber;
20697 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
20698 
DataParameter()20699 DataParameter::DataParameter()
20700   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
20701   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
20702     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameter();
20703   }
20704   SharedCtor();
20705   // @@protoc_insertion_point(constructor:opencv_caffe.DataParameter)
20706 }
DataParameter(const DataParameter & from)20707 DataParameter::DataParameter(const DataParameter& from)
20708   : ::google::protobuf::Message(),
20709       _internal_metadata_(NULL),
20710       _has_bits_(from._has_bits_),
20711       _cached_size_(0) {
20712   _internal_metadata_.MergeFrom(from._internal_metadata_);
20713   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
20714   if (from.has_source()) {
20715     source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
20716   }
20717   mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
20718   if (from.has_mean_file()) {
20719     mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_);
20720   }
20721   ::memcpy(&batch_size_, &from.batch_size_,
20722     static_cast<size_t>(reinterpret_cast<char*>(&prefetch_) -
20723     reinterpret_cast<char*>(&batch_size_)) + sizeof(prefetch_));
20724   // @@protoc_insertion_point(copy_constructor:opencv_caffe.DataParameter)
20725 }
20726 
SharedCtor()20727 void DataParameter::SharedCtor() {
20728   _cached_size_ = 0;
20729   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
20730   mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
20731   ::memset(&batch_size_, 0, static_cast<size_t>(
20732       reinterpret_cast<char*>(&backend_) -
20733       reinterpret_cast<char*>(&batch_size_)) + sizeof(backend_));
20734   scale_ = 1;
20735   prefetch_ = 4u;
20736 }
20737 
~DataParameter()20738 DataParameter::~DataParameter() {
20739   // @@protoc_insertion_point(destructor:opencv_caffe.DataParameter)
20740   SharedDtor();
20741 }
20742 
SharedDtor()20743 void DataParameter::SharedDtor() {
20744   source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
20745   mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
20746 }
20747 
SetCachedSize(int size) const20748 void DataParameter::SetCachedSize(int size) const {
20749   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
20750   _cached_size_ = size;
20751   GOOGLE_SAFE_CONCURRENT_WRITES_END();
20752 }
descriptor()20753 const ::google::protobuf::Descriptor* DataParameter::descriptor() {
20754   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
20755   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
20756 }
20757 
default_instance()20758 const DataParameter& DataParameter::default_instance() {
20759   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDataParameter();
20760   return *internal_default_instance();
20761 }
20762 
New(::google::protobuf::Arena * arena) const20763 DataParameter* DataParameter::New(::google::protobuf::Arena* arena) const {
20764   DataParameter* n = new DataParameter;
20765   if (arena != NULL) {
20766     arena->Own(n);
20767   }
20768   return n;
20769 }
20770 
Clear()20771 void DataParameter::Clear() {
20772 // @@protoc_insertion_point(message_clear_start:opencv_caffe.DataParameter)
20773   ::google::protobuf::uint32 cached_has_bits = 0;
20774   // Prevent compiler warnings about cached_has_bits being unused
20775   (void) cached_has_bits;
20776 
20777   cached_has_bits = _has_bits_[0];
20778   if (cached_has_bits & 3u) {
20779     if (cached_has_bits & 0x00000001u) {
20780       GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
20781       (*source_.UnsafeRawStringPointer())->clear();
20782     }
20783     if (cached_has_bits & 0x00000002u) {
20784       GOOGLE_DCHECK(!mean_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
20785       (*mean_file_.UnsafeRawStringPointer())->clear();
20786     }
20787   }
20788   if (cached_has_bits & 252u) {
20789     ::memset(&batch_size_, 0, static_cast<size_t>(
20790         reinterpret_cast<char*>(&backend_) -
20791         reinterpret_cast<char*>(&batch_size_)) + sizeof(backend_));
20792   }
20793   if (cached_has_bits & 768u) {
20794     scale_ = 1;
20795     prefetch_ = 4u;
20796   }
20797   _has_bits_.Clear();
20798   _internal_metadata_.Clear();
20799 }
20800 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)20801 bool DataParameter::MergePartialFromCodedStream(
20802     ::google::protobuf::io::CodedInputStream* input) {
20803 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
20804   ::google::protobuf::uint32 tag;
20805   // @@protoc_insertion_point(parse_start:opencv_caffe.DataParameter)
20806   for (;;) {
20807     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
20808     tag = p.first;
20809     if (!p.second) goto handle_unusual;
20810     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
20811       // optional string source = 1;
20812       case 1: {
20813         if (static_cast< ::google::protobuf::uint8>(tag) ==
20814             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
20815           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
20816                 input, this->mutable_source()));
20817           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
20818             this->source().data(), static_cast<int>(this->source().length()),
20819             ::google::protobuf::internal::WireFormat::PARSE,
20820             "opencv_caffe.DataParameter.source");
20821         } else {
20822           goto handle_unusual;
20823         }
20824         break;
20825       }
20826 
20827       // optional float scale = 2 [default = 1];
20828       case 2: {
20829         if (static_cast< ::google::protobuf::uint8>(tag) ==
20830             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
20831           set_has_scale();
20832           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20833                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
20834                  input, &scale_)));
20835         } else {
20836           goto handle_unusual;
20837         }
20838         break;
20839       }
20840 
20841       // optional string mean_file = 3;
20842       case 3: {
20843         if (static_cast< ::google::protobuf::uint8>(tag) ==
20844             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
20845           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
20846                 input, this->mutable_mean_file()));
20847           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
20848             this->mean_file().data(), static_cast<int>(this->mean_file().length()),
20849             ::google::protobuf::internal::WireFormat::PARSE,
20850             "opencv_caffe.DataParameter.mean_file");
20851         } else {
20852           goto handle_unusual;
20853         }
20854         break;
20855       }
20856 
20857       // optional uint32 batch_size = 4;
20858       case 4: {
20859         if (static_cast< ::google::protobuf::uint8>(tag) ==
20860             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
20861           set_has_batch_size();
20862           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20863                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
20864                  input, &batch_size_)));
20865         } else {
20866           goto handle_unusual;
20867         }
20868         break;
20869       }
20870 
20871       // optional uint32 crop_size = 5 [default = 0];
20872       case 5: {
20873         if (static_cast< ::google::protobuf::uint8>(tag) ==
20874             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
20875           set_has_crop_size();
20876           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20877                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
20878                  input, &crop_size_)));
20879         } else {
20880           goto handle_unusual;
20881         }
20882         break;
20883       }
20884 
20885       // optional bool mirror = 6 [default = false];
20886       case 6: {
20887         if (static_cast< ::google::protobuf::uint8>(tag) ==
20888             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
20889           set_has_mirror();
20890           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20891                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
20892                  input, &mirror_)));
20893         } else {
20894           goto handle_unusual;
20895         }
20896         break;
20897       }
20898 
20899       // optional uint32 rand_skip = 7 [default = 0];
20900       case 7: {
20901         if (static_cast< ::google::protobuf::uint8>(tag) ==
20902             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
20903           set_has_rand_skip();
20904           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20905                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
20906                  input, &rand_skip_)));
20907         } else {
20908           goto handle_unusual;
20909         }
20910         break;
20911       }
20912 
20913       // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB];
20914       case 8: {
20915         if (static_cast< ::google::protobuf::uint8>(tag) ==
20916             static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
20917           int value;
20918           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20919                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
20920                  input, &value)));
20921           if (::opencv_caffe::DataParameter_DB_IsValid(value)) {
20922             set_backend(static_cast< ::opencv_caffe::DataParameter_DB >(value));
20923           } else {
20924             mutable_unknown_fields()->AddVarint(
20925                 8, static_cast< ::google::protobuf::uint64>(value));
20926           }
20927         } else {
20928           goto handle_unusual;
20929         }
20930         break;
20931       }
20932 
20933       // optional bool force_encoded_color = 9 [default = false];
20934       case 9: {
20935         if (static_cast< ::google::protobuf::uint8>(tag) ==
20936             static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
20937           set_has_force_encoded_color();
20938           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20939                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
20940                  input, &force_encoded_color_)));
20941         } else {
20942           goto handle_unusual;
20943         }
20944         break;
20945       }
20946 
20947       // optional uint32 prefetch = 10 [default = 4];
20948       case 10: {
20949         if (static_cast< ::google::protobuf::uint8>(tag) ==
20950             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
20951           set_has_prefetch();
20952           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
20953                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
20954                  input, &prefetch_)));
20955         } else {
20956           goto handle_unusual;
20957         }
20958         break;
20959       }
20960 
20961       default: {
20962       handle_unusual:
20963         if (tag == 0) {
20964           goto success;
20965         }
20966         DO_(::google::protobuf::internal::WireFormat::SkipField(
20967               input, tag, _internal_metadata_.mutable_unknown_fields()));
20968         break;
20969       }
20970     }
20971   }
20972 success:
20973   // @@protoc_insertion_point(parse_success:opencv_caffe.DataParameter)
20974   return true;
20975 failure:
20976   // @@protoc_insertion_point(parse_failure:opencv_caffe.DataParameter)
20977   return false;
20978 #undef DO_
20979 }
20980 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const20981 void DataParameter::SerializeWithCachedSizes(
20982     ::google::protobuf::io::CodedOutputStream* output) const {
20983   // @@protoc_insertion_point(serialize_start:opencv_caffe.DataParameter)
20984   ::google::protobuf::uint32 cached_has_bits = 0;
20985   (void) cached_has_bits;
20986 
20987   cached_has_bits = _has_bits_[0];
20988   // optional string source = 1;
20989   if (cached_has_bits & 0x00000001u) {
20990     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
20991       this->source().data(), static_cast<int>(this->source().length()),
20992       ::google::protobuf::internal::WireFormat::SERIALIZE,
20993       "opencv_caffe.DataParameter.source");
20994     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
20995       1, this->source(), output);
20996   }
20997 
20998   // optional float scale = 2 [default = 1];
20999   if (cached_has_bits & 0x00000100u) {
21000     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output);
21001   }
21002 
21003   // optional string mean_file = 3;
21004   if (cached_has_bits & 0x00000002u) {
21005     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21006       this->mean_file().data(), static_cast<int>(this->mean_file().length()),
21007       ::google::protobuf::internal::WireFormat::SERIALIZE,
21008       "opencv_caffe.DataParameter.mean_file");
21009     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
21010       3, this->mean_file(), output);
21011   }
21012 
21013   // optional uint32 batch_size = 4;
21014   if (cached_has_bits & 0x00000004u) {
21015     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output);
21016   }
21017 
21018   // optional uint32 crop_size = 5 [default = 0];
21019   if (cached_has_bits & 0x00000008u) {
21020     ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output);
21021   }
21022 
21023   // optional bool mirror = 6 [default = false];
21024   if (cached_has_bits & 0x00000020u) {
21025     ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output);
21026   }
21027 
21028   // optional uint32 rand_skip = 7 [default = 0];
21029   if (cached_has_bits & 0x00000010u) {
21030     ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->rand_skip(), output);
21031   }
21032 
21033   // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB];
21034   if (cached_has_bits & 0x00000080u) {
21035     ::google::protobuf::internal::WireFormatLite::WriteEnum(
21036       8, this->backend(), output);
21037   }
21038 
21039   // optional bool force_encoded_color = 9 [default = false];
21040   if (cached_has_bits & 0x00000040u) {
21041     ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->force_encoded_color(), output);
21042   }
21043 
21044   // optional uint32 prefetch = 10 [default = 4];
21045   if (cached_has_bits & 0x00000200u) {
21046     ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->prefetch(), output);
21047   }
21048 
21049   if (_internal_metadata_.have_unknown_fields()) {
21050     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
21051         _internal_metadata_.unknown_fields(), output);
21052   }
21053   // @@protoc_insertion_point(serialize_end:opencv_caffe.DataParameter)
21054 }
21055 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const21056 ::google::protobuf::uint8* DataParameter::InternalSerializeWithCachedSizesToArray(
21057     bool deterministic, ::google::protobuf::uint8* target) const {
21058   (void)deterministic; // Unused
21059   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DataParameter)
21060   ::google::protobuf::uint32 cached_has_bits = 0;
21061   (void) cached_has_bits;
21062 
21063   cached_has_bits = _has_bits_[0];
21064   // optional string source = 1;
21065   if (cached_has_bits & 0x00000001u) {
21066     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21067       this->source().data(), static_cast<int>(this->source().length()),
21068       ::google::protobuf::internal::WireFormat::SERIALIZE,
21069       "opencv_caffe.DataParameter.source");
21070     target =
21071       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
21072         1, this->source(), target);
21073   }
21074 
21075   // optional float scale = 2 [default = 1];
21076   if (cached_has_bits & 0x00000100u) {
21077     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target);
21078   }
21079 
21080   // optional string mean_file = 3;
21081   if (cached_has_bits & 0x00000002u) {
21082     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21083       this->mean_file().data(), static_cast<int>(this->mean_file().length()),
21084       ::google::protobuf::internal::WireFormat::SERIALIZE,
21085       "opencv_caffe.DataParameter.mean_file");
21086     target =
21087       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
21088         3, this->mean_file(), target);
21089   }
21090 
21091   // optional uint32 batch_size = 4;
21092   if (cached_has_bits & 0x00000004u) {
21093     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target);
21094   }
21095 
21096   // optional uint32 crop_size = 5 [default = 0];
21097   if (cached_has_bits & 0x00000008u) {
21098     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target);
21099   }
21100 
21101   // optional bool mirror = 6 [default = false];
21102   if (cached_has_bits & 0x00000020u) {
21103     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target);
21104   }
21105 
21106   // optional uint32 rand_skip = 7 [default = 0];
21107   if (cached_has_bits & 0x00000010u) {
21108     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->rand_skip(), target);
21109   }
21110 
21111   // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB];
21112   if (cached_has_bits & 0x00000080u) {
21113     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
21114       8, this->backend(), target);
21115   }
21116 
21117   // optional bool force_encoded_color = 9 [default = false];
21118   if (cached_has_bits & 0x00000040u) {
21119     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->force_encoded_color(), target);
21120   }
21121 
21122   // optional uint32 prefetch = 10 [default = 4];
21123   if (cached_has_bits & 0x00000200u) {
21124     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->prefetch(), target);
21125   }
21126 
21127   if (_internal_metadata_.have_unknown_fields()) {
21128     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
21129         _internal_metadata_.unknown_fields(), target);
21130   }
21131   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DataParameter)
21132   return target;
21133 }
21134 
ByteSizeLong() const21135 size_t DataParameter::ByteSizeLong() const {
21136 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DataParameter)
21137   size_t total_size = 0;
21138 
21139   if (_internal_metadata_.have_unknown_fields()) {
21140     total_size +=
21141       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
21142         _internal_metadata_.unknown_fields());
21143   }
21144   if (_has_bits_[0 / 32] & 255u) {
21145     // optional string source = 1;
21146     if (has_source()) {
21147       total_size += 1 +
21148         ::google::protobuf::internal::WireFormatLite::StringSize(
21149           this->source());
21150     }
21151 
21152     // optional string mean_file = 3;
21153     if (has_mean_file()) {
21154       total_size += 1 +
21155         ::google::protobuf::internal::WireFormatLite::StringSize(
21156           this->mean_file());
21157     }
21158 
21159     // optional uint32 batch_size = 4;
21160     if (has_batch_size()) {
21161       total_size += 1 +
21162         ::google::protobuf::internal::WireFormatLite::UInt32Size(
21163           this->batch_size());
21164     }
21165 
21166     // optional uint32 crop_size = 5 [default = 0];
21167     if (has_crop_size()) {
21168       total_size += 1 +
21169         ::google::protobuf::internal::WireFormatLite::UInt32Size(
21170           this->crop_size());
21171     }
21172 
21173     // optional uint32 rand_skip = 7 [default = 0];
21174     if (has_rand_skip()) {
21175       total_size += 1 +
21176         ::google::protobuf::internal::WireFormatLite::UInt32Size(
21177           this->rand_skip());
21178     }
21179 
21180     // optional bool mirror = 6 [default = false];
21181     if (has_mirror()) {
21182       total_size += 1 + 1;
21183     }
21184 
21185     // optional bool force_encoded_color = 9 [default = false];
21186     if (has_force_encoded_color()) {
21187       total_size += 1 + 1;
21188     }
21189 
21190     // optional .opencv_caffe.DataParameter.DB backend = 8 [default = LEVELDB];
21191     if (has_backend()) {
21192       total_size += 1 +
21193         ::google::protobuf::internal::WireFormatLite::EnumSize(this->backend());
21194     }
21195 
21196   }
21197   if (_has_bits_[8 / 32] & 768u) {
21198     // optional float scale = 2 [default = 1];
21199     if (has_scale()) {
21200       total_size += 1 + 4;
21201     }
21202 
21203     // optional uint32 prefetch = 10 [default = 4];
21204     if (has_prefetch()) {
21205       total_size += 1 +
21206         ::google::protobuf::internal::WireFormatLite::UInt32Size(
21207           this->prefetch());
21208     }
21209 
21210   }
21211   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
21212   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
21213   _cached_size_ = cached_size;
21214   GOOGLE_SAFE_CONCURRENT_WRITES_END();
21215   return total_size;
21216 }
21217 
MergeFrom(const::google::protobuf::Message & from)21218 void DataParameter::MergeFrom(const ::google::protobuf::Message& from) {
21219 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DataParameter)
21220   GOOGLE_DCHECK_NE(&from, this);
21221   const DataParameter* source =
21222       ::google::protobuf::internal::DynamicCastToGenerated<const DataParameter>(
21223           &from);
21224   if (source == NULL) {
21225   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DataParameter)
21226     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
21227   } else {
21228   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DataParameter)
21229     MergeFrom(*source);
21230   }
21231 }
21232 
MergeFrom(const DataParameter & from)21233 void DataParameter::MergeFrom(const DataParameter& from) {
21234 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DataParameter)
21235   GOOGLE_DCHECK_NE(&from, this);
21236   _internal_metadata_.MergeFrom(from._internal_metadata_);
21237   ::google::protobuf::uint32 cached_has_bits = 0;
21238   (void) cached_has_bits;
21239 
21240   cached_has_bits = from._has_bits_[0];
21241   if (cached_has_bits & 255u) {
21242     if (cached_has_bits & 0x00000001u) {
21243       set_has_source();
21244       source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
21245     }
21246     if (cached_has_bits & 0x00000002u) {
21247       set_has_mean_file();
21248       mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_);
21249     }
21250     if (cached_has_bits & 0x00000004u) {
21251       batch_size_ = from.batch_size_;
21252     }
21253     if (cached_has_bits & 0x00000008u) {
21254       crop_size_ = from.crop_size_;
21255     }
21256     if (cached_has_bits & 0x00000010u) {
21257       rand_skip_ = from.rand_skip_;
21258     }
21259     if (cached_has_bits & 0x00000020u) {
21260       mirror_ = from.mirror_;
21261     }
21262     if (cached_has_bits & 0x00000040u) {
21263       force_encoded_color_ = from.force_encoded_color_;
21264     }
21265     if (cached_has_bits & 0x00000080u) {
21266       backend_ = from.backend_;
21267     }
21268     _has_bits_[0] |= cached_has_bits;
21269   }
21270   if (cached_has_bits & 768u) {
21271     if (cached_has_bits & 0x00000100u) {
21272       scale_ = from.scale_;
21273     }
21274     if (cached_has_bits & 0x00000200u) {
21275       prefetch_ = from.prefetch_;
21276     }
21277     _has_bits_[0] |= cached_has_bits;
21278   }
21279 }
21280 
CopyFrom(const::google::protobuf::Message & from)21281 void DataParameter::CopyFrom(const ::google::protobuf::Message& from) {
21282 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DataParameter)
21283   if (&from == this) return;
21284   Clear();
21285   MergeFrom(from);
21286 }
21287 
CopyFrom(const DataParameter & from)21288 void DataParameter::CopyFrom(const DataParameter& from) {
21289 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DataParameter)
21290   if (&from == this) return;
21291   Clear();
21292   MergeFrom(from);
21293 }
21294 
IsInitialized() const21295 bool DataParameter::IsInitialized() const {
21296   return true;
21297 }
21298 
Swap(DataParameter * other)21299 void DataParameter::Swap(DataParameter* other) {
21300   if (other == this) return;
21301   InternalSwap(other);
21302 }
InternalSwap(DataParameter * other)21303 void DataParameter::InternalSwap(DataParameter* other) {
21304   using std::swap;
21305   source_.Swap(&other->source_);
21306   mean_file_.Swap(&other->mean_file_);
21307   swap(batch_size_, other->batch_size_);
21308   swap(crop_size_, other->crop_size_);
21309   swap(rand_skip_, other->rand_skip_);
21310   swap(mirror_, other->mirror_);
21311   swap(force_encoded_color_, other->force_encoded_color_);
21312   swap(backend_, other->backend_);
21313   swap(scale_, other->scale_);
21314   swap(prefetch_, other->prefetch_);
21315   swap(_has_bits_[0], other->_has_bits_[0]);
21316   _internal_metadata_.Swap(&other->_internal_metadata_);
21317   swap(_cached_size_, other->_cached_size_);
21318 }
21319 
GetMetadata() const21320 ::google::protobuf::Metadata DataParameter::GetMetadata() const {
21321   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
21322   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
21323 }
21324 
21325 
21326 // ===================================================================
21327 
InitAsDefaultInstance()21328 void NonMaximumSuppressionParameter::InitAsDefaultInstance() {
21329 }
21330 #if !defined(_MSC_VER) || _MSC_VER >= 1900
21331 const int NonMaximumSuppressionParameter::kNmsThresholdFieldNumber;
21332 const int NonMaximumSuppressionParameter::kTopKFieldNumber;
21333 const int NonMaximumSuppressionParameter::kEtaFieldNumber;
21334 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
21335 
NonMaximumSuppressionParameter()21336 NonMaximumSuppressionParameter::NonMaximumSuppressionParameter()
21337   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
21338   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
21339     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNonMaximumSuppressionParameter();
21340   }
21341   SharedCtor();
21342   // @@protoc_insertion_point(constructor:opencv_caffe.NonMaximumSuppressionParameter)
21343 }
NonMaximumSuppressionParameter(const NonMaximumSuppressionParameter & from)21344 NonMaximumSuppressionParameter::NonMaximumSuppressionParameter(const NonMaximumSuppressionParameter& from)
21345   : ::google::protobuf::Message(),
21346       _internal_metadata_(NULL),
21347       _has_bits_(from._has_bits_),
21348       _cached_size_(0) {
21349   _internal_metadata_.MergeFrom(from._internal_metadata_);
21350   ::memcpy(&top_k_, &from.top_k_,
21351     static_cast<size_t>(reinterpret_cast<char*>(&eta_) -
21352     reinterpret_cast<char*>(&top_k_)) + sizeof(eta_));
21353   // @@protoc_insertion_point(copy_constructor:opencv_caffe.NonMaximumSuppressionParameter)
21354 }
21355 
SharedCtor()21356 void NonMaximumSuppressionParameter::SharedCtor() {
21357   _cached_size_ = 0;
21358   top_k_ = 0;
21359   nms_threshold_ = 0.3f;
21360   eta_ = 1;
21361 }
21362 
~NonMaximumSuppressionParameter()21363 NonMaximumSuppressionParameter::~NonMaximumSuppressionParameter() {
21364   // @@protoc_insertion_point(destructor:opencv_caffe.NonMaximumSuppressionParameter)
21365   SharedDtor();
21366 }
21367 
SharedDtor()21368 void NonMaximumSuppressionParameter::SharedDtor() {
21369 }
21370 
SetCachedSize(int size) const21371 void NonMaximumSuppressionParameter::SetCachedSize(int size) const {
21372   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
21373   _cached_size_ = size;
21374   GOOGLE_SAFE_CONCURRENT_WRITES_END();
21375 }
descriptor()21376 const ::google::protobuf::Descriptor* NonMaximumSuppressionParameter::descriptor() {
21377   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
21378   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
21379 }
21380 
default_instance()21381 const NonMaximumSuppressionParameter& NonMaximumSuppressionParameter::default_instance() {
21382   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNonMaximumSuppressionParameter();
21383   return *internal_default_instance();
21384 }
21385 
New(::google::protobuf::Arena * arena) const21386 NonMaximumSuppressionParameter* NonMaximumSuppressionParameter::New(::google::protobuf::Arena* arena) const {
21387   NonMaximumSuppressionParameter* n = new NonMaximumSuppressionParameter;
21388   if (arena != NULL) {
21389     arena->Own(n);
21390   }
21391   return n;
21392 }
21393 
Clear()21394 void NonMaximumSuppressionParameter::Clear() {
21395 // @@protoc_insertion_point(message_clear_start:opencv_caffe.NonMaximumSuppressionParameter)
21396   ::google::protobuf::uint32 cached_has_bits = 0;
21397   // Prevent compiler warnings about cached_has_bits being unused
21398   (void) cached_has_bits;
21399 
21400   cached_has_bits = _has_bits_[0];
21401   if (cached_has_bits & 7u) {
21402     top_k_ = 0;
21403     nms_threshold_ = 0.3f;
21404     eta_ = 1;
21405   }
21406   _has_bits_.Clear();
21407   _internal_metadata_.Clear();
21408 }
21409 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)21410 bool NonMaximumSuppressionParameter::MergePartialFromCodedStream(
21411     ::google::protobuf::io::CodedInputStream* input) {
21412 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
21413   ::google::protobuf::uint32 tag;
21414   // @@protoc_insertion_point(parse_start:opencv_caffe.NonMaximumSuppressionParameter)
21415   for (;;) {
21416     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
21417     tag = p.first;
21418     if (!p.second) goto handle_unusual;
21419     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
21420       // optional float nms_threshold = 1 [default = 0.3];
21421       case 1: {
21422         if (static_cast< ::google::protobuf::uint8>(tag) ==
21423             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
21424           set_has_nms_threshold();
21425           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
21426                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
21427                  input, &nms_threshold_)));
21428         } else {
21429           goto handle_unusual;
21430         }
21431         break;
21432       }
21433 
21434       // optional int32 top_k = 2;
21435       case 2: {
21436         if (static_cast< ::google::protobuf::uint8>(tag) ==
21437             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
21438           set_has_top_k();
21439           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
21440                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
21441                  input, &top_k_)));
21442         } else {
21443           goto handle_unusual;
21444         }
21445         break;
21446       }
21447 
21448       // optional float eta = 3 [default = 1];
21449       case 3: {
21450         if (static_cast< ::google::protobuf::uint8>(tag) ==
21451             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
21452           set_has_eta();
21453           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
21454                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
21455                  input, &eta_)));
21456         } else {
21457           goto handle_unusual;
21458         }
21459         break;
21460       }
21461 
21462       default: {
21463       handle_unusual:
21464         if (tag == 0) {
21465           goto success;
21466         }
21467         DO_(::google::protobuf::internal::WireFormat::SkipField(
21468               input, tag, _internal_metadata_.mutable_unknown_fields()));
21469         break;
21470       }
21471     }
21472   }
21473 success:
21474   // @@protoc_insertion_point(parse_success:opencv_caffe.NonMaximumSuppressionParameter)
21475   return true;
21476 failure:
21477   // @@protoc_insertion_point(parse_failure:opencv_caffe.NonMaximumSuppressionParameter)
21478   return false;
21479 #undef DO_
21480 }
21481 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const21482 void NonMaximumSuppressionParameter::SerializeWithCachedSizes(
21483     ::google::protobuf::io::CodedOutputStream* output) const {
21484   // @@protoc_insertion_point(serialize_start:opencv_caffe.NonMaximumSuppressionParameter)
21485   ::google::protobuf::uint32 cached_has_bits = 0;
21486   (void) cached_has_bits;
21487 
21488   cached_has_bits = _has_bits_[0];
21489   // optional float nms_threshold = 1 [default = 0.3];
21490   if (cached_has_bits & 0x00000002u) {
21491     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->nms_threshold(), output);
21492   }
21493 
21494   // optional int32 top_k = 2;
21495   if (cached_has_bits & 0x00000001u) {
21496     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->top_k(), output);
21497   }
21498 
21499   // optional float eta = 3 [default = 1];
21500   if (cached_has_bits & 0x00000004u) {
21501     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eta(), output);
21502   }
21503 
21504   if (_internal_metadata_.have_unknown_fields()) {
21505     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
21506         _internal_metadata_.unknown_fields(), output);
21507   }
21508   // @@protoc_insertion_point(serialize_end:opencv_caffe.NonMaximumSuppressionParameter)
21509 }
21510 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const21511 ::google::protobuf::uint8* NonMaximumSuppressionParameter::InternalSerializeWithCachedSizesToArray(
21512     bool deterministic, ::google::protobuf::uint8* target) const {
21513   (void)deterministic; // Unused
21514   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NonMaximumSuppressionParameter)
21515   ::google::protobuf::uint32 cached_has_bits = 0;
21516   (void) cached_has_bits;
21517 
21518   cached_has_bits = _has_bits_[0];
21519   // optional float nms_threshold = 1 [default = 0.3];
21520   if (cached_has_bits & 0x00000002u) {
21521     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->nms_threshold(), target);
21522   }
21523 
21524   // optional int32 top_k = 2;
21525   if (cached_has_bits & 0x00000001u) {
21526     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->top_k(), target);
21527   }
21528 
21529   // optional float eta = 3 [default = 1];
21530   if (cached_has_bits & 0x00000004u) {
21531     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eta(), target);
21532   }
21533 
21534   if (_internal_metadata_.have_unknown_fields()) {
21535     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
21536         _internal_metadata_.unknown_fields(), target);
21537   }
21538   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NonMaximumSuppressionParameter)
21539   return target;
21540 }
21541 
ByteSizeLong() const21542 size_t NonMaximumSuppressionParameter::ByteSizeLong() const {
21543 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NonMaximumSuppressionParameter)
21544   size_t total_size = 0;
21545 
21546   if (_internal_metadata_.have_unknown_fields()) {
21547     total_size +=
21548       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
21549         _internal_metadata_.unknown_fields());
21550   }
21551   if (_has_bits_[0 / 32] & 7u) {
21552     // optional int32 top_k = 2;
21553     if (has_top_k()) {
21554       total_size += 1 +
21555         ::google::protobuf::internal::WireFormatLite::Int32Size(
21556           this->top_k());
21557     }
21558 
21559     // optional float nms_threshold = 1 [default = 0.3];
21560     if (has_nms_threshold()) {
21561       total_size += 1 + 4;
21562     }
21563 
21564     // optional float eta = 3 [default = 1];
21565     if (has_eta()) {
21566       total_size += 1 + 4;
21567     }
21568 
21569   }
21570   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
21571   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
21572   _cached_size_ = cached_size;
21573   GOOGLE_SAFE_CONCURRENT_WRITES_END();
21574   return total_size;
21575 }
21576 
MergeFrom(const::google::protobuf::Message & from)21577 void NonMaximumSuppressionParameter::MergeFrom(const ::google::protobuf::Message& from) {
21578 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NonMaximumSuppressionParameter)
21579   GOOGLE_DCHECK_NE(&from, this);
21580   const NonMaximumSuppressionParameter* source =
21581       ::google::protobuf::internal::DynamicCastToGenerated<const NonMaximumSuppressionParameter>(
21582           &from);
21583   if (source == NULL) {
21584   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NonMaximumSuppressionParameter)
21585     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
21586   } else {
21587   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NonMaximumSuppressionParameter)
21588     MergeFrom(*source);
21589   }
21590 }
21591 
MergeFrom(const NonMaximumSuppressionParameter & from)21592 void NonMaximumSuppressionParameter::MergeFrom(const NonMaximumSuppressionParameter& from) {
21593 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NonMaximumSuppressionParameter)
21594   GOOGLE_DCHECK_NE(&from, this);
21595   _internal_metadata_.MergeFrom(from._internal_metadata_);
21596   ::google::protobuf::uint32 cached_has_bits = 0;
21597   (void) cached_has_bits;
21598 
21599   cached_has_bits = from._has_bits_[0];
21600   if (cached_has_bits & 7u) {
21601     if (cached_has_bits & 0x00000001u) {
21602       top_k_ = from.top_k_;
21603     }
21604     if (cached_has_bits & 0x00000002u) {
21605       nms_threshold_ = from.nms_threshold_;
21606     }
21607     if (cached_has_bits & 0x00000004u) {
21608       eta_ = from.eta_;
21609     }
21610     _has_bits_[0] |= cached_has_bits;
21611   }
21612 }
21613 
CopyFrom(const::google::protobuf::Message & from)21614 void NonMaximumSuppressionParameter::CopyFrom(const ::google::protobuf::Message& from) {
21615 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NonMaximumSuppressionParameter)
21616   if (&from == this) return;
21617   Clear();
21618   MergeFrom(from);
21619 }
21620 
CopyFrom(const NonMaximumSuppressionParameter & from)21621 void NonMaximumSuppressionParameter::CopyFrom(const NonMaximumSuppressionParameter& from) {
21622 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NonMaximumSuppressionParameter)
21623   if (&from == this) return;
21624   Clear();
21625   MergeFrom(from);
21626 }
21627 
IsInitialized() const21628 bool NonMaximumSuppressionParameter::IsInitialized() const {
21629   return true;
21630 }
21631 
Swap(NonMaximumSuppressionParameter * other)21632 void NonMaximumSuppressionParameter::Swap(NonMaximumSuppressionParameter* other) {
21633   if (other == this) return;
21634   InternalSwap(other);
21635 }
InternalSwap(NonMaximumSuppressionParameter * other)21636 void NonMaximumSuppressionParameter::InternalSwap(NonMaximumSuppressionParameter* other) {
21637   using std::swap;
21638   swap(top_k_, other->top_k_);
21639   swap(nms_threshold_, other->nms_threshold_);
21640   swap(eta_, other->eta_);
21641   swap(_has_bits_[0], other->_has_bits_[0]);
21642   _internal_metadata_.Swap(&other->_internal_metadata_);
21643   swap(_cached_size_, other->_cached_size_);
21644 }
21645 
GetMetadata() const21646 ::google::protobuf::Metadata NonMaximumSuppressionParameter::GetMetadata() const {
21647   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
21648   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
21649 }
21650 
21651 
21652 // ===================================================================
21653 
InitAsDefaultInstance()21654 void SaveOutputParameter::InitAsDefaultInstance() {
21655 }
21656 #if !defined(_MSC_VER) || _MSC_VER >= 1900
21657 const int SaveOutputParameter::kOutputDirectoryFieldNumber;
21658 const int SaveOutputParameter::kOutputNamePrefixFieldNumber;
21659 const int SaveOutputParameter::kOutputFormatFieldNumber;
21660 const int SaveOutputParameter::kLabelMapFileFieldNumber;
21661 const int SaveOutputParameter::kNameSizeFileFieldNumber;
21662 const int SaveOutputParameter::kNumTestImageFieldNumber;
21663 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
21664 
SaveOutputParameter()21665 SaveOutputParameter::SaveOutputParameter()
21666   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
21667   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
21668     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSaveOutputParameter();
21669   }
21670   SharedCtor();
21671   // @@protoc_insertion_point(constructor:opencv_caffe.SaveOutputParameter)
21672 }
SaveOutputParameter(const SaveOutputParameter & from)21673 SaveOutputParameter::SaveOutputParameter(const SaveOutputParameter& from)
21674   : ::google::protobuf::Message(),
21675       _internal_metadata_(NULL),
21676       _has_bits_(from._has_bits_),
21677       _cached_size_(0) {
21678   _internal_metadata_.MergeFrom(from._internal_metadata_);
21679   output_directory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21680   if (from.has_output_directory()) {
21681     output_directory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_directory_);
21682   }
21683   output_name_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21684   if (from.has_output_name_prefix()) {
21685     output_name_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_name_prefix_);
21686   }
21687   output_format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21688   if (from.has_output_format()) {
21689     output_format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_format_);
21690   }
21691   label_map_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21692   if (from.has_label_map_file()) {
21693     label_map_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_map_file_);
21694   }
21695   name_size_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21696   if (from.has_name_size_file()) {
21697     name_size_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_size_file_);
21698   }
21699   num_test_image_ = from.num_test_image_;
21700   // @@protoc_insertion_point(copy_constructor:opencv_caffe.SaveOutputParameter)
21701 }
21702 
SharedCtor()21703 void SaveOutputParameter::SharedCtor() {
21704   _cached_size_ = 0;
21705   output_directory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21706   output_name_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21707   output_format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21708   label_map_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21709   name_size_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21710   num_test_image_ = 0u;
21711 }
21712 
~SaveOutputParameter()21713 SaveOutputParameter::~SaveOutputParameter() {
21714   // @@protoc_insertion_point(destructor:opencv_caffe.SaveOutputParameter)
21715   SharedDtor();
21716 }
21717 
SharedDtor()21718 void SaveOutputParameter::SharedDtor() {
21719   output_directory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21720   output_name_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21721   output_format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21722   label_map_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21723   name_size_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
21724 }
21725 
SetCachedSize(int size) const21726 void SaveOutputParameter::SetCachedSize(int size) const {
21727   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
21728   _cached_size_ = size;
21729   GOOGLE_SAFE_CONCURRENT_WRITES_END();
21730 }
descriptor()21731 const ::google::protobuf::Descriptor* SaveOutputParameter::descriptor() {
21732   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
21733   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
21734 }
21735 
default_instance()21736 const SaveOutputParameter& SaveOutputParameter::default_instance() {
21737   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSaveOutputParameter();
21738   return *internal_default_instance();
21739 }
21740 
New(::google::protobuf::Arena * arena) const21741 SaveOutputParameter* SaveOutputParameter::New(::google::protobuf::Arena* arena) const {
21742   SaveOutputParameter* n = new SaveOutputParameter;
21743   if (arena != NULL) {
21744     arena->Own(n);
21745   }
21746   return n;
21747 }
21748 
Clear()21749 void SaveOutputParameter::Clear() {
21750 // @@protoc_insertion_point(message_clear_start:opencv_caffe.SaveOutputParameter)
21751   ::google::protobuf::uint32 cached_has_bits = 0;
21752   // Prevent compiler warnings about cached_has_bits being unused
21753   (void) cached_has_bits;
21754 
21755   cached_has_bits = _has_bits_[0];
21756   if (cached_has_bits & 31u) {
21757     if (cached_has_bits & 0x00000001u) {
21758       GOOGLE_DCHECK(!output_directory_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
21759       (*output_directory_.UnsafeRawStringPointer())->clear();
21760     }
21761     if (cached_has_bits & 0x00000002u) {
21762       GOOGLE_DCHECK(!output_name_prefix_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
21763       (*output_name_prefix_.UnsafeRawStringPointer())->clear();
21764     }
21765     if (cached_has_bits & 0x00000004u) {
21766       GOOGLE_DCHECK(!output_format_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
21767       (*output_format_.UnsafeRawStringPointer())->clear();
21768     }
21769     if (cached_has_bits & 0x00000008u) {
21770       GOOGLE_DCHECK(!label_map_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
21771       (*label_map_file_.UnsafeRawStringPointer())->clear();
21772     }
21773     if (cached_has_bits & 0x00000010u) {
21774       GOOGLE_DCHECK(!name_size_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
21775       (*name_size_file_.UnsafeRawStringPointer())->clear();
21776     }
21777   }
21778   num_test_image_ = 0u;
21779   _has_bits_.Clear();
21780   _internal_metadata_.Clear();
21781 }
21782 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)21783 bool SaveOutputParameter::MergePartialFromCodedStream(
21784     ::google::protobuf::io::CodedInputStream* input) {
21785 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
21786   ::google::protobuf::uint32 tag;
21787   // @@protoc_insertion_point(parse_start:opencv_caffe.SaveOutputParameter)
21788   for (;;) {
21789     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
21790     tag = p.first;
21791     if (!p.second) goto handle_unusual;
21792     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
21793       // optional string output_directory = 1;
21794       case 1: {
21795         if (static_cast< ::google::protobuf::uint8>(tag) ==
21796             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
21797           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
21798                 input, this->mutable_output_directory()));
21799           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21800             this->output_directory().data(), static_cast<int>(this->output_directory().length()),
21801             ::google::protobuf::internal::WireFormat::PARSE,
21802             "opencv_caffe.SaveOutputParameter.output_directory");
21803         } else {
21804           goto handle_unusual;
21805         }
21806         break;
21807       }
21808 
21809       // optional string output_name_prefix = 2;
21810       case 2: {
21811         if (static_cast< ::google::protobuf::uint8>(tag) ==
21812             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
21813           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
21814                 input, this->mutable_output_name_prefix()));
21815           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21816             this->output_name_prefix().data(), static_cast<int>(this->output_name_prefix().length()),
21817             ::google::protobuf::internal::WireFormat::PARSE,
21818             "opencv_caffe.SaveOutputParameter.output_name_prefix");
21819         } else {
21820           goto handle_unusual;
21821         }
21822         break;
21823       }
21824 
21825       // optional string output_format = 3;
21826       case 3: {
21827         if (static_cast< ::google::protobuf::uint8>(tag) ==
21828             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
21829           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
21830                 input, this->mutable_output_format()));
21831           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21832             this->output_format().data(), static_cast<int>(this->output_format().length()),
21833             ::google::protobuf::internal::WireFormat::PARSE,
21834             "opencv_caffe.SaveOutputParameter.output_format");
21835         } else {
21836           goto handle_unusual;
21837         }
21838         break;
21839       }
21840 
21841       // optional string label_map_file = 4;
21842       case 4: {
21843         if (static_cast< ::google::protobuf::uint8>(tag) ==
21844             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
21845           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
21846                 input, this->mutable_label_map_file()));
21847           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21848             this->label_map_file().data(), static_cast<int>(this->label_map_file().length()),
21849             ::google::protobuf::internal::WireFormat::PARSE,
21850             "opencv_caffe.SaveOutputParameter.label_map_file");
21851         } else {
21852           goto handle_unusual;
21853         }
21854         break;
21855       }
21856 
21857       // optional string name_size_file = 5;
21858       case 5: {
21859         if (static_cast< ::google::protobuf::uint8>(tag) ==
21860             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
21861           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
21862                 input, this->mutable_name_size_file()));
21863           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21864             this->name_size_file().data(), static_cast<int>(this->name_size_file().length()),
21865             ::google::protobuf::internal::WireFormat::PARSE,
21866             "opencv_caffe.SaveOutputParameter.name_size_file");
21867         } else {
21868           goto handle_unusual;
21869         }
21870         break;
21871       }
21872 
21873       // optional uint32 num_test_image = 6;
21874       case 6: {
21875         if (static_cast< ::google::protobuf::uint8>(tag) ==
21876             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
21877           set_has_num_test_image();
21878           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
21879                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
21880                  input, &num_test_image_)));
21881         } else {
21882           goto handle_unusual;
21883         }
21884         break;
21885       }
21886 
21887       default: {
21888       handle_unusual:
21889         if (tag == 0) {
21890           goto success;
21891         }
21892         DO_(::google::protobuf::internal::WireFormat::SkipField(
21893               input, tag, _internal_metadata_.mutable_unknown_fields()));
21894         break;
21895       }
21896     }
21897   }
21898 success:
21899   // @@protoc_insertion_point(parse_success:opencv_caffe.SaveOutputParameter)
21900   return true;
21901 failure:
21902   // @@protoc_insertion_point(parse_failure:opencv_caffe.SaveOutputParameter)
21903   return false;
21904 #undef DO_
21905 }
21906 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const21907 void SaveOutputParameter::SerializeWithCachedSizes(
21908     ::google::protobuf::io::CodedOutputStream* output) const {
21909   // @@protoc_insertion_point(serialize_start:opencv_caffe.SaveOutputParameter)
21910   ::google::protobuf::uint32 cached_has_bits = 0;
21911   (void) cached_has_bits;
21912 
21913   cached_has_bits = _has_bits_[0];
21914   // optional string output_directory = 1;
21915   if (cached_has_bits & 0x00000001u) {
21916     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21917       this->output_directory().data(), static_cast<int>(this->output_directory().length()),
21918       ::google::protobuf::internal::WireFormat::SERIALIZE,
21919       "opencv_caffe.SaveOutputParameter.output_directory");
21920     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
21921       1, this->output_directory(), output);
21922   }
21923 
21924   // optional string output_name_prefix = 2;
21925   if (cached_has_bits & 0x00000002u) {
21926     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21927       this->output_name_prefix().data(), static_cast<int>(this->output_name_prefix().length()),
21928       ::google::protobuf::internal::WireFormat::SERIALIZE,
21929       "opencv_caffe.SaveOutputParameter.output_name_prefix");
21930     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
21931       2, this->output_name_prefix(), output);
21932   }
21933 
21934   // optional string output_format = 3;
21935   if (cached_has_bits & 0x00000004u) {
21936     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21937       this->output_format().data(), static_cast<int>(this->output_format().length()),
21938       ::google::protobuf::internal::WireFormat::SERIALIZE,
21939       "opencv_caffe.SaveOutputParameter.output_format");
21940     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
21941       3, this->output_format(), output);
21942   }
21943 
21944   // optional string label_map_file = 4;
21945   if (cached_has_bits & 0x00000008u) {
21946     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21947       this->label_map_file().data(), static_cast<int>(this->label_map_file().length()),
21948       ::google::protobuf::internal::WireFormat::SERIALIZE,
21949       "opencv_caffe.SaveOutputParameter.label_map_file");
21950     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
21951       4, this->label_map_file(), output);
21952   }
21953 
21954   // optional string name_size_file = 5;
21955   if (cached_has_bits & 0x00000010u) {
21956     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21957       this->name_size_file().data(), static_cast<int>(this->name_size_file().length()),
21958       ::google::protobuf::internal::WireFormat::SERIALIZE,
21959       "opencv_caffe.SaveOutputParameter.name_size_file");
21960     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
21961       5, this->name_size_file(), output);
21962   }
21963 
21964   // optional uint32 num_test_image = 6;
21965   if (cached_has_bits & 0x00000020u) {
21966     ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->num_test_image(), output);
21967   }
21968 
21969   if (_internal_metadata_.have_unknown_fields()) {
21970     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
21971         _internal_metadata_.unknown_fields(), output);
21972   }
21973   // @@protoc_insertion_point(serialize_end:opencv_caffe.SaveOutputParameter)
21974 }
21975 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const21976 ::google::protobuf::uint8* SaveOutputParameter::InternalSerializeWithCachedSizesToArray(
21977     bool deterministic, ::google::protobuf::uint8* target) const {
21978   (void)deterministic; // Unused
21979   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SaveOutputParameter)
21980   ::google::protobuf::uint32 cached_has_bits = 0;
21981   (void) cached_has_bits;
21982 
21983   cached_has_bits = _has_bits_[0];
21984   // optional string output_directory = 1;
21985   if (cached_has_bits & 0x00000001u) {
21986     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21987       this->output_directory().data(), static_cast<int>(this->output_directory().length()),
21988       ::google::protobuf::internal::WireFormat::SERIALIZE,
21989       "opencv_caffe.SaveOutputParameter.output_directory");
21990     target =
21991       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
21992         1, this->output_directory(), target);
21993   }
21994 
21995   // optional string output_name_prefix = 2;
21996   if (cached_has_bits & 0x00000002u) {
21997     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
21998       this->output_name_prefix().data(), static_cast<int>(this->output_name_prefix().length()),
21999       ::google::protobuf::internal::WireFormat::SERIALIZE,
22000       "opencv_caffe.SaveOutputParameter.output_name_prefix");
22001     target =
22002       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
22003         2, this->output_name_prefix(), target);
22004   }
22005 
22006   // optional string output_format = 3;
22007   if (cached_has_bits & 0x00000004u) {
22008     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
22009       this->output_format().data(), static_cast<int>(this->output_format().length()),
22010       ::google::protobuf::internal::WireFormat::SERIALIZE,
22011       "opencv_caffe.SaveOutputParameter.output_format");
22012     target =
22013       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
22014         3, this->output_format(), target);
22015   }
22016 
22017   // optional string label_map_file = 4;
22018   if (cached_has_bits & 0x00000008u) {
22019     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
22020       this->label_map_file().data(), static_cast<int>(this->label_map_file().length()),
22021       ::google::protobuf::internal::WireFormat::SERIALIZE,
22022       "opencv_caffe.SaveOutputParameter.label_map_file");
22023     target =
22024       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
22025         4, this->label_map_file(), target);
22026   }
22027 
22028   // optional string name_size_file = 5;
22029   if (cached_has_bits & 0x00000010u) {
22030     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
22031       this->name_size_file().data(), static_cast<int>(this->name_size_file().length()),
22032       ::google::protobuf::internal::WireFormat::SERIALIZE,
22033       "opencv_caffe.SaveOutputParameter.name_size_file");
22034     target =
22035       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
22036         5, this->name_size_file(), target);
22037   }
22038 
22039   // optional uint32 num_test_image = 6;
22040   if (cached_has_bits & 0x00000020u) {
22041     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->num_test_image(), target);
22042   }
22043 
22044   if (_internal_metadata_.have_unknown_fields()) {
22045     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
22046         _internal_metadata_.unknown_fields(), target);
22047   }
22048   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SaveOutputParameter)
22049   return target;
22050 }
22051 
ByteSizeLong() const22052 size_t SaveOutputParameter::ByteSizeLong() const {
22053 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SaveOutputParameter)
22054   size_t total_size = 0;
22055 
22056   if (_internal_metadata_.have_unknown_fields()) {
22057     total_size +=
22058       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
22059         _internal_metadata_.unknown_fields());
22060   }
22061   if (_has_bits_[0 / 32] & 63u) {
22062     // optional string output_directory = 1;
22063     if (has_output_directory()) {
22064       total_size += 1 +
22065         ::google::protobuf::internal::WireFormatLite::StringSize(
22066           this->output_directory());
22067     }
22068 
22069     // optional string output_name_prefix = 2;
22070     if (has_output_name_prefix()) {
22071       total_size += 1 +
22072         ::google::protobuf::internal::WireFormatLite::StringSize(
22073           this->output_name_prefix());
22074     }
22075 
22076     // optional string output_format = 3;
22077     if (has_output_format()) {
22078       total_size += 1 +
22079         ::google::protobuf::internal::WireFormatLite::StringSize(
22080           this->output_format());
22081     }
22082 
22083     // optional string label_map_file = 4;
22084     if (has_label_map_file()) {
22085       total_size += 1 +
22086         ::google::protobuf::internal::WireFormatLite::StringSize(
22087           this->label_map_file());
22088     }
22089 
22090     // optional string name_size_file = 5;
22091     if (has_name_size_file()) {
22092       total_size += 1 +
22093         ::google::protobuf::internal::WireFormatLite::StringSize(
22094           this->name_size_file());
22095     }
22096 
22097     // optional uint32 num_test_image = 6;
22098     if (has_num_test_image()) {
22099       total_size += 1 +
22100         ::google::protobuf::internal::WireFormatLite::UInt32Size(
22101           this->num_test_image());
22102     }
22103 
22104   }
22105   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
22106   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
22107   _cached_size_ = cached_size;
22108   GOOGLE_SAFE_CONCURRENT_WRITES_END();
22109   return total_size;
22110 }
22111 
MergeFrom(const::google::protobuf::Message & from)22112 void SaveOutputParameter::MergeFrom(const ::google::protobuf::Message& from) {
22113 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SaveOutputParameter)
22114   GOOGLE_DCHECK_NE(&from, this);
22115   const SaveOutputParameter* source =
22116       ::google::protobuf::internal::DynamicCastToGenerated<const SaveOutputParameter>(
22117           &from);
22118   if (source == NULL) {
22119   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SaveOutputParameter)
22120     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
22121   } else {
22122   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SaveOutputParameter)
22123     MergeFrom(*source);
22124   }
22125 }
22126 
MergeFrom(const SaveOutputParameter & from)22127 void SaveOutputParameter::MergeFrom(const SaveOutputParameter& from) {
22128 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SaveOutputParameter)
22129   GOOGLE_DCHECK_NE(&from, this);
22130   _internal_metadata_.MergeFrom(from._internal_metadata_);
22131   ::google::protobuf::uint32 cached_has_bits = 0;
22132   (void) cached_has_bits;
22133 
22134   cached_has_bits = from._has_bits_[0];
22135   if (cached_has_bits & 63u) {
22136     if (cached_has_bits & 0x00000001u) {
22137       set_has_output_directory();
22138       output_directory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_directory_);
22139     }
22140     if (cached_has_bits & 0x00000002u) {
22141       set_has_output_name_prefix();
22142       output_name_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_name_prefix_);
22143     }
22144     if (cached_has_bits & 0x00000004u) {
22145       set_has_output_format();
22146       output_format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_format_);
22147     }
22148     if (cached_has_bits & 0x00000008u) {
22149       set_has_label_map_file();
22150       label_map_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.label_map_file_);
22151     }
22152     if (cached_has_bits & 0x00000010u) {
22153       set_has_name_size_file();
22154       name_size_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_size_file_);
22155     }
22156     if (cached_has_bits & 0x00000020u) {
22157       num_test_image_ = from.num_test_image_;
22158     }
22159     _has_bits_[0] |= cached_has_bits;
22160   }
22161 }
22162 
CopyFrom(const::google::protobuf::Message & from)22163 void SaveOutputParameter::CopyFrom(const ::google::protobuf::Message& from) {
22164 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SaveOutputParameter)
22165   if (&from == this) return;
22166   Clear();
22167   MergeFrom(from);
22168 }
22169 
CopyFrom(const SaveOutputParameter & from)22170 void SaveOutputParameter::CopyFrom(const SaveOutputParameter& from) {
22171 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SaveOutputParameter)
22172   if (&from == this) return;
22173   Clear();
22174   MergeFrom(from);
22175 }
22176 
IsInitialized() const22177 bool SaveOutputParameter::IsInitialized() const {
22178   return true;
22179 }
22180 
Swap(SaveOutputParameter * other)22181 void SaveOutputParameter::Swap(SaveOutputParameter* other) {
22182   if (other == this) return;
22183   InternalSwap(other);
22184 }
InternalSwap(SaveOutputParameter * other)22185 void SaveOutputParameter::InternalSwap(SaveOutputParameter* other) {
22186   using std::swap;
22187   output_directory_.Swap(&other->output_directory_);
22188   output_name_prefix_.Swap(&other->output_name_prefix_);
22189   output_format_.Swap(&other->output_format_);
22190   label_map_file_.Swap(&other->label_map_file_);
22191   name_size_file_.Swap(&other->name_size_file_);
22192   swap(num_test_image_, other->num_test_image_);
22193   swap(_has_bits_[0], other->_has_bits_[0]);
22194   _internal_metadata_.Swap(&other->_internal_metadata_);
22195   swap(_cached_size_, other->_cached_size_);
22196 }
22197 
GetMetadata() const22198 ::google::protobuf::Metadata SaveOutputParameter::GetMetadata() const {
22199   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
22200   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
22201 }
22202 
22203 
22204 // ===================================================================
22205 
InitAsDefaultInstance()22206 void DropoutParameter::InitAsDefaultInstance() {
22207 }
22208 #if !defined(_MSC_VER) || _MSC_VER >= 1900
22209 const int DropoutParameter::kDropoutRatioFieldNumber;
22210 const int DropoutParameter::kScaleTrainFieldNumber;
22211 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
22212 
DropoutParameter()22213 DropoutParameter::DropoutParameter()
22214   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
22215   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
22216     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameter();
22217   }
22218   SharedCtor();
22219   // @@protoc_insertion_point(constructor:opencv_caffe.DropoutParameter)
22220 }
DropoutParameter(const DropoutParameter & from)22221 DropoutParameter::DropoutParameter(const DropoutParameter& from)
22222   : ::google::protobuf::Message(),
22223       _internal_metadata_(NULL),
22224       _has_bits_(from._has_bits_),
22225       _cached_size_(0) {
22226   _internal_metadata_.MergeFrom(from._internal_metadata_);
22227   ::memcpy(&dropout_ratio_, &from.dropout_ratio_,
22228     static_cast<size_t>(reinterpret_cast<char*>(&scale_train_) -
22229     reinterpret_cast<char*>(&dropout_ratio_)) + sizeof(scale_train_));
22230   // @@protoc_insertion_point(copy_constructor:opencv_caffe.DropoutParameter)
22231 }
22232 
SharedCtor()22233 void DropoutParameter::SharedCtor() {
22234   _cached_size_ = 0;
22235   dropout_ratio_ = 0.5f;
22236   scale_train_ = true;
22237 }
22238 
~DropoutParameter()22239 DropoutParameter::~DropoutParameter() {
22240   // @@protoc_insertion_point(destructor:opencv_caffe.DropoutParameter)
22241   SharedDtor();
22242 }
22243 
SharedDtor()22244 void DropoutParameter::SharedDtor() {
22245 }
22246 
SetCachedSize(int size) const22247 void DropoutParameter::SetCachedSize(int size) const {
22248   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
22249   _cached_size_ = size;
22250   GOOGLE_SAFE_CONCURRENT_WRITES_END();
22251 }
descriptor()22252 const ::google::protobuf::Descriptor* DropoutParameter::descriptor() {
22253   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
22254   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
22255 }
22256 
default_instance()22257 const DropoutParameter& DropoutParameter::default_instance() {
22258   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDropoutParameter();
22259   return *internal_default_instance();
22260 }
22261 
New(::google::protobuf::Arena * arena) const22262 DropoutParameter* DropoutParameter::New(::google::protobuf::Arena* arena) const {
22263   DropoutParameter* n = new DropoutParameter;
22264   if (arena != NULL) {
22265     arena->Own(n);
22266   }
22267   return n;
22268 }
22269 
Clear()22270 void DropoutParameter::Clear() {
22271 // @@protoc_insertion_point(message_clear_start:opencv_caffe.DropoutParameter)
22272   ::google::protobuf::uint32 cached_has_bits = 0;
22273   // Prevent compiler warnings about cached_has_bits being unused
22274   (void) cached_has_bits;
22275 
22276   cached_has_bits = _has_bits_[0];
22277   if (cached_has_bits & 3u) {
22278     dropout_ratio_ = 0.5f;
22279     scale_train_ = true;
22280   }
22281   _has_bits_.Clear();
22282   _internal_metadata_.Clear();
22283 }
22284 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)22285 bool DropoutParameter::MergePartialFromCodedStream(
22286     ::google::protobuf::io::CodedInputStream* input) {
22287 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
22288   ::google::protobuf::uint32 tag;
22289   // @@protoc_insertion_point(parse_start:opencv_caffe.DropoutParameter)
22290   for (;;) {
22291     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
22292     tag = p.first;
22293     if (!p.second) goto handle_unusual;
22294     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
22295       // optional float dropout_ratio = 1 [default = 0.5];
22296       case 1: {
22297         if (static_cast< ::google::protobuf::uint8>(tag) ==
22298             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
22299           set_has_dropout_ratio();
22300           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
22301                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
22302                  input, &dropout_ratio_)));
22303         } else {
22304           goto handle_unusual;
22305         }
22306         break;
22307       }
22308 
22309       // optional bool scale_train = 2 [default = true];
22310       case 2: {
22311         if (static_cast< ::google::protobuf::uint8>(tag) ==
22312             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
22313           set_has_scale_train();
22314           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
22315                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
22316                  input, &scale_train_)));
22317         } else {
22318           goto handle_unusual;
22319         }
22320         break;
22321       }
22322 
22323       default: {
22324       handle_unusual:
22325         if (tag == 0) {
22326           goto success;
22327         }
22328         DO_(::google::protobuf::internal::WireFormat::SkipField(
22329               input, tag, _internal_metadata_.mutable_unknown_fields()));
22330         break;
22331       }
22332     }
22333   }
22334 success:
22335   // @@protoc_insertion_point(parse_success:opencv_caffe.DropoutParameter)
22336   return true;
22337 failure:
22338   // @@protoc_insertion_point(parse_failure:opencv_caffe.DropoutParameter)
22339   return false;
22340 #undef DO_
22341 }
22342 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const22343 void DropoutParameter::SerializeWithCachedSizes(
22344     ::google::protobuf::io::CodedOutputStream* output) const {
22345   // @@protoc_insertion_point(serialize_start:opencv_caffe.DropoutParameter)
22346   ::google::protobuf::uint32 cached_has_bits = 0;
22347   (void) cached_has_bits;
22348 
22349   cached_has_bits = _has_bits_[0];
22350   // optional float dropout_ratio = 1 [default = 0.5];
22351   if (cached_has_bits & 0x00000001u) {
22352     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->dropout_ratio(), output);
22353   }
22354 
22355   // optional bool scale_train = 2 [default = true];
22356   if (cached_has_bits & 0x00000002u) {
22357     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->scale_train(), output);
22358   }
22359 
22360   if (_internal_metadata_.have_unknown_fields()) {
22361     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
22362         _internal_metadata_.unknown_fields(), output);
22363   }
22364   // @@protoc_insertion_point(serialize_end:opencv_caffe.DropoutParameter)
22365 }
22366 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const22367 ::google::protobuf::uint8* DropoutParameter::InternalSerializeWithCachedSizesToArray(
22368     bool deterministic, ::google::protobuf::uint8* target) const {
22369   (void)deterministic; // Unused
22370   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DropoutParameter)
22371   ::google::protobuf::uint32 cached_has_bits = 0;
22372   (void) cached_has_bits;
22373 
22374   cached_has_bits = _has_bits_[0];
22375   // optional float dropout_ratio = 1 [default = 0.5];
22376   if (cached_has_bits & 0x00000001u) {
22377     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->dropout_ratio(), target);
22378   }
22379 
22380   // optional bool scale_train = 2 [default = true];
22381   if (cached_has_bits & 0x00000002u) {
22382     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->scale_train(), target);
22383   }
22384 
22385   if (_internal_metadata_.have_unknown_fields()) {
22386     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
22387         _internal_metadata_.unknown_fields(), target);
22388   }
22389   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DropoutParameter)
22390   return target;
22391 }
22392 
ByteSizeLong() const22393 size_t DropoutParameter::ByteSizeLong() const {
22394 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DropoutParameter)
22395   size_t total_size = 0;
22396 
22397   if (_internal_metadata_.have_unknown_fields()) {
22398     total_size +=
22399       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
22400         _internal_metadata_.unknown_fields());
22401   }
22402   if (_has_bits_[0 / 32] & 3u) {
22403     // optional float dropout_ratio = 1 [default = 0.5];
22404     if (has_dropout_ratio()) {
22405       total_size += 1 + 4;
22406     }
22407 
22408     // optional bool scale_train = 2 [default = true];
22409     if (has_scale_train()) {
22410       total_size += 1 + 1;
22411     }
22412 
22413   }
22414   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
22415   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
22416   _cached_size_ = cached_size;
22417   GOOGLE_SAFE_CONCURRENT_WRITES_END();
22418   return total_size;
22419 }
22420 
MergeFrom(const::google::protobuf::Message & from)22421 void DropoutParameter::MergeFrom(const ::google::protobuf::Message& from) {
22422 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DropoutParameter)
22423   GOOGLE_DCHECK_NE(&from, this);
22424   const DropoutParameter* source =
22425       ::google::protobuf::internal::DynamicCastToGenerated<const DropoutParameter>(
22426           &from);
22427   if (source == NULL) {
22428   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DropoutParameter)
22429     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
22430   } else {
22431   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DropoutParameter)
22432     MergeFrom(*source);
22433   }
22434 }
22435 
MergeFrom(const DropoutParameter & from)22436 void DropoutParameter::MergeFrom(const DropoutParameter& from) {
22437 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DropoutParameter)
22438   GOOGLE_DCHECK_NE(&from, this);
22439   _internal_metadata_.MergeFrom(from._internal_metadata_);
22440   ::google::protobuf::uint32 cached_has_bits = 0;
22441   (void) cached_has_bits;
22442 
22443   cached_has_bits = from._has_bits_[0];
22444   if (cached_has_bits & 3u) {
22445     if (cached_has_bits & 0x00000001u) {
22446       dropout_ratio_ = from.dropout_ratio_;
22447     }
22448     if (cached_has_bits & 0x00000002u) {
22449       scale_train_ = from.scale_train_;
22450     }
22451     _has_bits_[0] |= cached_has_bits;
22452   }
22453 }
22454 
CopyFrom(const::google::protobuf::Message & from)22455 void DropoutParameter::CopyFrom(const ::google::protobuf::Message& from) {
22456 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DropoutParameter)
22457   if (&from == this) return;
22458   Clear();
22459   MergeFrom(from);
22460 }
22461 
CopyFrom(const DropoutParameter & from)22462 void DropoutParameter::CopyFrom(const DropoutParameter& from) {
22463 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DropoutParameter)
22464   if (&from == this) return;
22465   Clear();
22466   MergeFrom(from);
22467 }
22468 
IsInitialized() const22469 bool DropoutParameter::IsInitialized() const {
22470   return true;
22471 }
22472 
Swap(DropoutParameter * other)22473 void DropoutParameter::Swap(DropoutParameter* other) {
22474   if (other == this) return;
22475   InternalSwap(other);
22476 }
InternalSwap(DropoutParameter * other)22477 void DropoutParameter::InternalSwap(DropoutParameter* other) {
22478   using std::swap;
22479   swap(dropout_ratio_, other->dropout_ratio_);
22480   swap(scale_train_, other->scale_train_);
22481   swap(_has_bits_[0], other->_has_bits_[0]);
22482   _internal_metadata_.Swap(&other->_internal_metadata_);
22483   swap(_cached_size_, other->_cached_size_);
22484 }
22485 
GetMetadata() const22486 ::google::protobuf::Metadata DropoutParameter::GetMetadata() const {
22487   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
22488   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
22489 }
22490 
22491 
22492 // ===================================================================
22493 
InitAsDefaultInstance()22494 void DummyDataParameter::InitAsDefaultInstance() {
22495 }
22496 #if !defined(_MSC_VER) || _MSC_VER >= 1900
22497 const int DummyDataParameter::kDataFillerFieldNumber;
22498 const int DummyDataParameter::kShapeFieldNumber;
22499 const int DummyDataParameter::kNumFieldNumber;
22500 const int DummyDataParameter::kChannelsFieldNumber;
22501 const int DummyDataParameter::kHeightFieldNumber;
22502 const int DummyDataParameter::kWidthFieldNumber;
22503 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
22504 
DummyDataParameter()22505 DummyDataParameter::DummyDataParameter()
22506   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
22507   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
22508     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameter();
22509   }
22510   SharedCtor();
22511   // @@protoc_insertion_point(constructor:opencv_caffe.DummyDataParameter)
22512 }
DummyDataParameter(const DummyDataParameter & from)22513 DummyDataParameter::DummyDataParameter(const DummyDataParameter& from)
22514   : ::google::protobuf::Message(),
22515       _internal_metadata_(NULL),
22516       _has_bits_(from._has_bits_),
22517       _cached_size_(0),
22518       data_filler_(from.data_filler_),
22519       num_(from.num_),
22520       channels_(from.channels_),
22521       height_(from.height_),
22522       width_(from.width_),
22523       shape_(from.shape_) {
22524   _internal_metadata_.MergeFrom(from._internal_metadata_);
22525   // @@protoc_insertion_point(copy_constructor:opencv_caffe.DummyDataParameter)
22526 }
22527 
SharedCtor()22528 void DummyDataParameter::SharedCtor() {
22529   _cached_size_ = 0;
22530 }
22531 
~DummyDataParameter()22532 DummyDataParameter::~DummyDataParameter() {
22533   // @@protoc_insertion_point(destructor:opencv_caffe.DummyDataParameter)
22534   SharedDtor();
22535 }
22536 
SharedDtor()22537 void DummyDataParameter::SharedDtor() {
22538 }
22539 
SetCachedSize(int size) const22540 void DummyDataParameter::SetCachedSize(int size) const {
22541   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
22542   _cached_size_ = size;
22543   GOOGLE_SAFE_CONCURRENT_WRITES_END();
22544 }
descriptor()22545 const ::google::protobuf::Descriptor* DummyDataParameter::descriptor() {
22546   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
22547   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
22548 }
22549 
default_instance()22550 const DummyDataParameter& DummyDataParameter::default_instance() {
22551   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsDummyDataParameter();
22552   return *internal_default_instance();
22553 }
22554 
New(::google::protobuf::Arena * arena) const22555 DummyDataParameter* DummyDataParameter::New(::google::protobuf::Arena* arena) const {
22556   DummyDataParameter* n = new DummyDataParameter;
22557   if (arena != NULL) {
22558     arena->Own(n);
22559   }
22560   return n;
22561 }
22562 
Clear()22563 void DummyDataParameter::Clear() {
22564 // @@protoc_insertion_point(message_clear_start:opencv_caffe.DummyDataParameter)
22565   ::google::protobuf::uint32 cached_has_bits = 0;
22566   // Prevent compiler warnings about cached_has_bits being unused
22567   (void) cached_has_bits;
22568 
22569   data_filler_.Clear();
22570   num_.Clear();
22571   channels_.Clear();
22572   height_.Clear();
22573   width_.Clear();
22574   shape_.Clear();
22575   _has_bits_.Clear();
22576   _internal_metadata_.Clear();
22577 }
22578 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)22579 bool DummyDataParameter::MergePartialFromCodedStream(
22580     ::google::protobuf::io::CodedInputStream* input) {
22581 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
22582   ::google::protobuf::uint32 tag;
22583   // @@protoc_insertion_point(parse_start:opencv_caffe.DummyDataParameter)
22584   for (;;) {
22585     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
22586     tag = p.first;
22587     if (!p.second) goto handle_unusual;
22588     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
22589       // repeated .opencv_caffe.FillerParameter data_filler = 1;
22590       case 1: {
22591         if (static_cast< ::google::protobuf::uint8>(tag) ==
22592             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
22593           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_data_filler()));
22594         } else {
22595           goto handle_unusual;
22596         }
22597         break;
22598       }
22599 
22600       // repeated uint32 num = 2;
22601       case 2: {
22602         if (static_cast< ::google::protobuf::uint8>(tag) ==
22603             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
22604           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
22605                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
22606                  1, 16u, input, this->mutable_num())));
22607         } else if (
22608             static_cast< ::google::protobuf::uint8>(tag) ==
22609             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
22610           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
22611                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
22612                  input, this->mutable_num())));
22613         } else {
22614           goto handle_unusual;
22615         }
22616         break;
22617       }
22618 
22619       // repeated uint32 channels = 3;
22620       case 3: {
22621         if (static_cast< ::google::protobuf::uint8>(tag) ==
22622             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
22623           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
22624                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
22625                  1, 24u, input, this->mutable_channels())));
22626         } else if (
22627             static_cast< ::google::protobuf::uint8>(tag) ==
22628             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
22629           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
22630                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
22631                  input, this->mutable_channels())));
22632         } else {
22633           goto handle_unusual;
22634         }
22635         break;
22636       }
22637 
22638       // repeated uint32 height = 4;
22639       case 4: {
22640         if (static_cast< ::google::protobuf::uint8>(tag) ==
22641             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
22642           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
22643                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
22644                  1, 32u, input, this->mutable_height())));
22645         } else if (
22646             static_cast< ::google::protobuf::uint8>(tag) ==
22647             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
22648           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
22649                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
22650                  input, this->mutable_height())));
22651         } else {
22652           goto handle_unusual;
22653         }
22654         break;
22655       }
22656 
22657       // repeated uint32 width = 5;
22658       case 5: {
22659         if (static_cast< ::google::protobuf::uint8>(tag) ==
22660             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
22661           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
22662                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
22663                  1, 40u, input, this->mutable_width())));
22664         } else if (
22665             static_cast< ::google::protobuf::uint8>(tag) ==
22666             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
22667           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
22668                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
22669                  input, this->mutable_width())));
22670         } else {
22671           goto handle_unusual;
22672         }
22673         break;
22674       }
22675 
22676       // repeated .opencv_caffe.BlobShape shape = 6;
22677       case 6: {
22678         if (static_cast< ::google::protobuf::uint8>(tag) ==
22679             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
22680           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_shape()));
22681         } else {
22682           goto handle_unusual;
22683         }
22684         break;
22685       }
22686 
22687       default: {
22688       handle_unusual:
22689         if (tag == 0) {
22690           goto success;
22691         }
22692         DO_(::google::protobuf::internal::WireFormat::SkipField(
22693               input, tag, _internal_metadata_.mutable_unknown_fields()));
22694         break;
22695       }
22696     }
22697   }
22698 success:
22699   // @@protoc_insertion_point(parse_success:opencv_caffe.DummyDataParameter)
22700   return true;
22701 failure:
22702   // @@protoc_insertion_point(parse_failure:opencv_caffe.DummyDataParameter)
22703   return false;
22704 #undef DO_
22705 }
22706 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const22707 void DummyDataParameter::SerializeWithCachedSizes(
22708     ::google::protobuf::io::CodedOutputStream* output) const {
22709   // @@protoc_insertion_point(serialize_start:opencv_caffe.DummyDataParameter)
22710   ::google::protobuf::uint32 cached_has_bits = 0;
22711   (void) cached_has_bits;
22712 
22713   // repeated .opencv_caffe.FillerParameter data_filler = 1;
22714   for (unsigned int i = 0,
22715       n = static_cast<unsigned int>(this->data_filler_size()); i < n; i++) {
22716     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
22717       1, this->data_filler(static_cast<int>(i)), output);
22718   }
22719 
22720   // repeated uint32 num = 2;
22721   for (int i = 0, n = this->num_size(); i < n; i++) {
22722     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
22723       2, this->num(i), output);
22724   }
22725 
22726   // repeated uint32 channels = 3;
22727   for (int i = 0, n = this->channels_size(); i < n; i++) {
22728     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
22729       3, this->channels(i), output);
22730   }
22731 
22732   // repeated uint32 height = 4;
22733   for (int i = 0, n = this->height_size(); i < n; i++) {
22734     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
22735       4, this->height(i), output);
22736   }
22737 
22738   // repeated uint32 width = 5;
22739   for (int i = 0, n = this->width_size(); i < n; i++) {
22740     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
22741       5, this->width(i), output);
22742   }
22743 
22744   // repeated .opencv_caffe.BlobShape shape = 6;
22745   for (unsigned int i = 0,
22746       n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {
22747     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
22748       6, this->shape(static_cast<int>(i)), output);
22749   }
22750 
22751   if (_internal_metadata_.have_unknown_fields()) {
22752     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
22753         _internal_metadata_.unknown_fields(), output);
22754   }
22755   // @@protoc_insertion_point(serialize_end:opencv_caffe.DummyDataParameter)
22756 }
22757 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const22758 ::google::protobuf::uint8* DummyDataParameter::InternalSerializeWithCachedSizesToArray(
22759     bool deterministic, ::google::protobuf::uint8* target) const {
22760   (void)deterministic; // Unused
22761   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.DummyDataParameter)
22762   ::google::protobuf::uint32 cached_has_bits = 0;
22763   (void) cached_has_bits;
22764 
22765   // repeated .opencv_caffe.FillerParameter data_filler = 1;
22766   for (unsigned int i = 0,
22767       n = static_cast<unsigned int>(this->data_filler_size()); i < n; i++) {
22768     target = ::google::protobuf::internal::WireFormatLite::
22769       InternalWriteMessageToArray(
22770         1, this->data_filler(static_cast<int>(i)), deterministic, target);
22771   }
22772 
22773   // repeated uint32 num = 2;
22774   target = ::google::protobuf::internal::WireFormatLite::
22775     WriteUInt32ToArray(2, this->num_, target);
22776 
22777   // repeated uint32 channels = 3;
22778   target = ::google::protobuf::internal::WireFormatLite::
22779     WriteUInt32ToArray(3, this->channels_, target);
22780 
22781   // repeated uint32 height = 4;
22782   target = ::google::protobuf::internal::WireFormatLite::
22783     WriteUInt32ToArray(4, this->height_, target);
22784 
22785   // repeated uint32 width = 5;
22786   target = ::google::protobuf::internal::WireFormatLite::
22787     WriteUInt32ToArray(5, this->width_, target);
22788 
22789   // repeated .opencv_caffe.BlobShape shape = 6;
22790   for (unsigned int i = 0,
22791       n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {
22792     target = ::google::protobuf::internal::WireFormatLite::
22793       InternalWriteMessageToArray(
22794         6, this->shape(static_cast<int>(i)), deterministic, target);
22795   }
22796 
22797   if (_internal_metadata_.have_unknown_fields()) {
22798     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
22799         _internal_metadata_.unknown_fields(), target);
22800   }
22801   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.DummyDataParameter)
22802   return target;
22803 }
22804 
ByteSizeLong() const22805 size_t DummyDataParameter::ByteSizeLong() const {
22806 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.DummyDataParameter)
22807   size_t total_size = 0;
22808 
22809   if (_internal_metadata_.have_unknown_fields()) {
22810     total_size +=
22811       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
22812         _internal_metadata_.unknown_fields());
22813   }
22814   // repeated .opencv_caffe.FillerParameter data_filler = 1;
22815   {
22816     unsigned int count = static_cast<unsigned int>(this->data_filler_size());
22817     total_size += 1UL * count;
22818     for (unsigned int i = 0; i < count; i++) {
22819       total_size +=
22820         ::google::protobuf::internal::WireFormatLite::MessageSize(
22821           this->data_filler(static_cast<int>(i)));
22822     }
22823   }
22824 
22825   // repeated uint32 num = 2;
22826   {
22827     size_t data_size = ::google::protobuf::internal::WireFormatLite::
22828       UInt32Size(this->num_);
22829     total_size += 1 *
22830                   ::google::protobuf::internal::FromIntSize(this->num_size());
22831     total_size += data_size;
22832   }
22833 
22834   // repeated uint32 channels = 3;
22835   {
22836     size_t data_size = ::google::protobuf::internal::WireFormatLite::
22837       UInt32Size(this->channels_);
22838     total_size += 1 *
22839                   ::google::protobuf::internal::FromIntSize(this->channels_size());
22840     total_size += data_size;
22841   }
22842 
22843   // repeated uint32 height = 4;
22844   {
22845     size_t data_size = ::google::protobuf::internal::WireFormatLite::
22846       UInt32Size(this->height_);
22847     total_size += 1 *
22848                   ::google::protobuf::internal::FromIntSize(this->height_size());
22849     total_size += data_size;
22850   }
22851 
22852   // repeated uint32 width = 5;
22853   {
22854     size_t data_size = ::google::protobuf::internal::WireFormatLite::
22855       UInt32Size(this->width_);
22856     total_size += 1 *
22857                   ::google::protobuf::internal::FromIntSize(this->width_size());
22858     total_size += data_size;
22859   }
22860 
22861   // repeated .opencv_caffe.BlobShape shape = 6;
22862   {
22863     unsigned int count = static_cast<unsigned int>(this->shape_size());
22864     total_size += 1UL * count;
22865     for (unsigned int i = 0; i < count; i++) {
22866       total_size +=
22867         ::google::protobuf::internal::WireFormatLite::MessageSize(
22868           this->shape(static_cast<int>(i)));
22869     }
22870   }
22871 
22872   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
22873   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
22874   _cached_size_ = cached_size;
22875   GOOGLE_SAFE_CONCURRENT_WRITES_END();
22876   return total_size;
22877 }
22878 
MergeFrom(const::google::protobuf::Message & from)22879 void DummyDataParameter::MergeFrom(const ::google::protobuf::Message& from) {
22880 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.DummyDataParameter)
22881   GOOGLE_DCHECK_NE(&from, this);
22882   const DummyDataParameter* source =
22883       ::google::protobuf::internal::DynamicCastToGenerated<const DummyDataParameter>(
22884           &from);
22885   if (source == NULL) {
22886   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.DummyDataParameter)
22887     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
22888   } else {
22889   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.DummyDataParameter)
22890     MergeFrom(*source);
22891   }
22892 }
22893 
MergeFrom(const DummyDataParameter & from)22894 void DummyDataParameter::MergeFrom(const DummyDataParameter& from) {
22895 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.DummyDataParameter)
22896   GOOGLE_DCHECK_NE(&from, this);
22897   _internal_metadata_.MergeFrom(from._internal_metadata_);
22898   ::google::protobuf::uint32 cached_has_bits = 0;
22899   (void) cached_has_bits;
22900 
22901   data_filler_.MergeFrom(from.data_filler_);
22902   num_.MergeFrom(from.num_);
22903   channels_.MergeFrom(from.channels_);
22904   height_.MergeFrom(from.height_);
22905   width_.MergeFrom(from.width_);
22906   shape_.MergeFrom(from.shape_);
22907 }
22908 
CopyFrom(const::google::protobuf::Message & from)22909 void DummyDataParameter::CopyFrom(const ::google::protobuf::Message& from) {
22910 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.DummyDataParameter)
22911   if (&from == this) return;
22912   Clear();
22913   MergeFrom(from);
22914 }
22915 
CopyFrom(const DummyDataParameter & from)22916 void DummyDataParameter::CopyFrom(const DummyDataParameter& from) {
22917 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.DummyDataParameter)
22918   if (&from == this) return;
22919   Clear();
22920   MergeFrom(from);
22921 }
22922 
IsInitialized() const22923 bool DummyDataParameter::IsInitialized() const {
22924   return true;
22925 }
22926 
Swap(DummyDataParameter * other)22927 void DummyDataParameter::Swap(DummyDataParameter* other) {
22928   if (other == this) return;
22929   InternalSwap(other);
22930 }
InternalSwap(DummyDataParameter * other)22931 void DummyDataParameter::InternalSwap(DummyDataParameter* other) {
22932   using std::swap;
22933   data_filler_.InternalSwap(&other->data_filler_);
22934   num_.InternalSwap(&other->num_);
22935   channels_.InternalSwap(&other->channels_);
22936   height_.InternalSwap(&other->height_);
22937   width_.InternalSwap(&other->width_);
22938   shape_.InternalSwap(&other->shape_);
22939   swap(_has_bits_[0], other->_has_bits_[0]);
22940   _internal_metadata_.Swap(&other->_internal_metadata_);
22941   swap(_cached_size_, other->_cached_size_);
22942 }
22943 
GetMetadata() const22944 ::google::protobuf::Metadata DummyDataParameter::GetMetadata() const {
22945   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
22946   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
22947 }
22948 
22949 
22950 // ===================================================================
22951 
InitAsDefaultInstance()22952 void EltwiseParameter::InitAsDefaultInstance() {
22953 }
22954 #if !defined(_MSC_VER) || _MSC_VER >= 1900
22955 const int EltwiseParameter::kOperationFieldNumber;
22956 const int EltwiseParameter::kCoeffFieldNumber;
22957 const int EltwiseParameter::kStableProdGradFieldNumber;
22958 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
22959 
EltwiseParameter()22960 EltwiseParameter::EltwiseParameter()
22961   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
22962   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
22963     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameter();
22964   }
22965   SharedCtor();
22966   // @@protoc_insertion_point(constructor:opencv_caffe.EltwiseParameter)
22967 }
EltwiseParameter(const EltwiseParameter & from)22968 EltwiseParameter::EltwiseParameter(const EltwiseParameter& from)
22969   : ::google::protobuf::Message(),
22970       _internal_metadata_(NULL),
22971       _has_bits_(from._has_bits_),
22972       _cached_size_(0),
22973       coeff_(from.coeff_) {
22974   _internal_metadata_.MergeFrom(from._internal_metadata_);
22975   ::memcpy(&operation_, &from.operation_,
22976     static_cast<size_t>(reinterpret_cast<char*>(&stable_prod_grad_) -
22977     reinterpret_cast<char*>(&operation_)) + sizeof(stable_prod_grad_));
22978   // @@protoc_insertion_point(copy_constructor:opencv_caffe.EltwiseParameter)
22979 }
22980 
SharedCtor()22981 void EltwiseParameter::SharedCtor() {
22982   _cached_size_ = 0;
22983   operation_ = 1;
22984   stable_prod_grad_ = true;
22985 }
22986 
~EltwiseParameter()22987 EltwiseParameter::~EltwiseParameter() {
22988   // @@protoc_insertion_point(destructor:opencv_caffe.EltwiseParameter)
22989   SharedDtor();
22990 }
22991 
SharedDtor()22992 void EltwiseParameter::SharedDtor() {
22993 }
22994 
SetCachedSize(int size) const22995 void EltwiseParameter::SetCachedSize(int size) const {
22996   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
22997   _cached_size_ = size;
22998   GOOGLE_SAFE_CONCURRENT_WRITES_END();
22999 }
descriptor()23000 const ::google::protobuf::Descriptor* EltwiseParameter::descriptor() {
23001   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
23002   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
23003 }
23004 
default_instance()23005 const EltwiseParameter& EltwiseParameter::default_instance() {
23006   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEltwiseParameter();
23007   return *internal_default_instance();
23008 }
23009 
New(::google::protobuf::Arena * arena) const23010 EltwiseParameter* EltwiseParameter::New(::google::protobuf::Arena* arena) const {
23011   EltwiseParameter* n = new EltwiseParameter;
23012   if (arena != NULL) {
23013     arena->Own(n);
23014   }
23015   return n;
23016 }
23017 
Clear()23018 void EltwiseParameter::Clear() {
23019 // @@protoc_insertion_point(message_clear_start:opencv_caffe.EltwiseParameter)
23020   ::google::protobuf::uint32 cached_has_bits = 0;
23021   // Prevent compiler warnings about cached_has_bits being unused
23022   (void) cached_has_bits;
23023 
23024   coeff_.Clear();
23025   cached_has_bits = _has_bits_[0];
23026   if (cached_has_bits & 3u) {
23027     operation_ = 1;
23028     stable_prod_grad_ = true;
23029   }
23030   _has_bits_.Clear();
23031   _internal_metadata_.Clear();
23032 }
23033 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)23034 bool EltwiseParameter::MergePartialFromCodedStream(
23035     ::google::protobuf::io::CodedInputStream* input) {
23036 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
23037   ::google::protobuf::uint32 tag;
23038   // @@protoc_insertion_point(parse_start:opencv_caffe.EltwiseParameter)
23039   for (;;) {
23040     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
23041     tag = p.first;
23042     if (!p.second) goto handle_unusual;
23043     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
23044       // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM];
23045       case 1: {
23046         if (static_cast< ::google::protobuf::uint8>(tag) ==
23047             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
23048           int value;
23049           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
23050                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
23051                  input, &value)));
23052           if (::opencv_caffe::EltwiseParameter_EltwiseOp_IsValid(value)) {
23053             set_operation(static_cast< ::opencv_caffe::EltwiseParameter_EltwiseOp >(value));
23054           } else {
23055             mutable_unknown_fields()->AddVarint(
23056                 1, static_cast< ::google::protobuf::uint64>(value));
23057           }
23058         } else {
23059           goto handle_unusual;
23060         }
23061         break;
23062       }
23063 
23064       // repeated float coeff = 2;
23065       case 2: {
23066         if (static_cast< ::google::protobuf::uint8>(tag) ==
23067             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
23068           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
23069                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
23070                  1, 21u, input, this->mutable_coeff())));
23071         } else if (
23072             static_cast< ::google::protobuf::uint8>(tag) ==
23073             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
23074           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
23075                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
23076                  input, this->mutable_coeff())));
23077         } else {
23078           goto handle_unusual;
23079         }
23080         break;
23081       }
23082 
23083       // optional bool stable_prod_grad = 3 [default = true];
23084       case 3: {
23085         if (static_cast< ::google::protobuf::uint8>(tag) ==
23086             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
23087           set_has_stable_prod_grad();
23088           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
23089                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
23090                  input, &stable_prod_grad_)));
23091         } else {
23092           goto handle_unusual;
23093         }
23094         break;
23095       }
23096 
23097       default: {
23098       handle_unusual:
23099         if (tag == 0) {
23100           goto success;
23101         }
23102         DO_(::google::protobuf::internal::WireFormat::SkipField(
23103               input, tag, _internal_metadata_.mutable_unknown_fields()));
23104         break;
23105       }
23106     }
23107   }
23108 success:
23109   // @@protoc_insertion_point(parse_success:opencv_caffe.EltwiseParameter)
23110   return true;
23111 failure:
23112   // @@protoc_insertion_point(parse_failure:opencv_caffe.EltwiseParameter)
23113   return false;
23114 #undef DO_
23115 }
23116 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const23117 void EltwiseParameter::SerializeWithCachedSizes(
23118     ::google::protobuf::io::CodedOutputStream* output) const {
23119   // @@protoc_insertion_point(serialize_start:opencv_caffe.EltwiseParameter)
23120   ::google::protobuf::uint32 cached_has_bits = 0;
23121   (void) cached_has_bits;
23122 
23123   cached_has_bits = _has_bits_[0];
23124   // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM];
23125   if (cached_has_bits & 0x00000001u) {
23126     ::google::protobuf::internal::WireFormatLite::WriteEnum(
23127       1, this->operation(), output);
23128   }
23129 
23130   // repeated float coeff = 2;
23131   for (int i = 0, n = this->coeff_size(); i < n; i++) {
23132     ::google::protobuf::internal::WireFormatLite::WriteFloat(
23133       2, this->coeff(i), output);
23134   }
23135 
23136   // optional bool stable_prod_grad = 3 [default = true];
23137   if (cached_has_bits & 0x00000002u) {
23138     ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->stable_prod_grad(), output);
23139   }
23140 
23141   if (_internal_metadata_.have_unknown_fields()) {
23142     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
23143         _internal_metadata_.unknown_fields(), output);
23144   }
23145   // @@protoc_insertion_point(serialize_end:opencv_caffe.EltwiseParameter)
23146 }
23147 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const23148 ::google::protobuf::uint8* EltwiseParameter::InternalSerializeWithCachedSizesToArray(
23149     bool deterministic, ::google::protobuf::uint8* target) const {
23150   (void)deterministic; // Unused
23151   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.EltwiseParameter)
23152   ::google::protobuf::uint32 cached_has_bits = 0;
23153   (void) cached_has_bits;
23154 
23155   cached_has_bits = _has_bits_[0];
23156   // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM];
23157   if (cached_has_bits & 0x00000001u) {
23158     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
23159       1, this->operation(), target);
23160   }
23161 
23162   // repeated float coeff = 2;
23163   target = ::google::protobuf::internal::WireFormatLite::
23164     WriteFloatToArray(2, this->coeff_, target);
23165 
23166   // optional bool stable_prod_grad = 3 [default = true];
23167   if (cached_has_bits & 0x00000002u) {
23168     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->stable_prod_grad(), target);
23169   }
23170 
23171   if (_internal_metadata_.have_unknown_fields()) {
23172     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
23173         _internal_metadata_.unknown_fields(), target);
23174   }
23175   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.EltwiseParameter)
23176   return target;
23177 }
23178 
ByteSizeLong() const23179 size_t EltwiseParameter::ByteSizeLong() const {
23180 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.EltwiseParameter)
23181   size_t total_size = 0;
23182 
23183   if (_internal_metadata_.have_unknown_fields()) {
23184     total_size +=
23185       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
23186         _internal_metadata_.unknown_fields());
23187   }
23188   // repeated float coeff = 2;
23189   {
23190     unsigned int count = static_cast<unsigned int>(this->coeff_size());
23191     size_t data_size = 4UL * count;
23192     total_size += 1 *
23193                   ::google::protobuf::internal::FromIntSize(this->coeff_size());
23194     total_size += data_size;
23195   }
23196 
23197   if (_has_bits_[0 / 32] & 3u) {
23198     // optional .opencv_caffe.EltwiseParameter.EltwiseOp operation = 1 [default = SUM];
23199     if (has_operation()) {
23200       total_size += 1 +
23201         ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
23202     }
23203 
23204     // optional bool stable_prod_grad = 3 [default = true];
23205     if (has_stable_prod_grad()) {
23206       total_size += 1 + 1;
23207     }
23208 
23209   }
23210   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
23211   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
23212   _cached_size_ = cached_size;
23213   GOOGLE_SAFE_CONCURRENT_WRITES_END();
23214   return total_size;
23215 }
23216 
MergeFrom(const::google::protobuf::Message & from)23217 void EltwiseParameter::MergeFrom(const ::google::protobuf::Message& from) {
23218 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.EltwiseParameter)
23219   GOOGLE_DCHECK_NE(&from, this);
23220   const EltwiseParameter* source =
23221       ::google::protobuf::internal::DynamicCastToGenerated<const EltwiseParameter>(
23222           &from);
23223   if (source == NULL) {
23224   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.EltwiseParameter)
23225     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
23226   } else {
23227   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.EltwiseParameter)
23228     MergeFrom(*source);
23229   }
23230 }
23231 
MergeFrom(const EltwiseParameter & from)23232 void EltwiseParameter::MergeFrom(const EltwiseParameter& from) {
23233 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.EltwiseParameter)
23234   GOOGLE_DCHECK_NE(&from, this);
23235   _internal_metadata_.MergeFrom(from._internal_metadata_);
23236   ::google::protobuf::uint32 cached_has_bits = 0;
23237   (void) cached_has_bits;
23238 
23239   coeff_.MergeFrom(from.coeff_);
23240   cached_has_bits = from._has_bits_[0];
23241   if (cached_has_bits & 3u) {
23242     if (cached_has_bits & 0x00000001u) {
23243       operation_ = from.operation_;
23244     }
23245     if (cached_has_bits & 0x00000002u) {
23246       stable_prod_grad_ = from.stable_prod_grad_;
23247     }
23248     _has_bits_[0] |= cached_has_bits;
23249   }
23250 }
23251 
CopyFrom(const::google::protobuf::Message & from)23252 void EltwiseParameter::CopyFrom(const ::google::protobuf::Message& from) {
23253 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.EltwiseParameter)
23254   if (&from == this) return;
23255   Clear();
23256   MergeFrom(from);
23257 }
23258 
CopyFrom(const EltwiseParameter & from)23259 void EltwiseParameter::CopyFrom(const EltwiseParameter& from) {
23260 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.EltwiseParameter)
23261   if (&from == this) return;
23262   Clear();
23263   MergeFrom(from);
23264 }
23265 
IsInitialized() const23266 bool EltwiseParameter::IsInitialized() const {
23267   return true;
23268 }
23269 
Swap(EltwiseParameter * other)23270 void EltwiseParameter::Swap(EltwiseParameter* other) {
23271   if (other == this) return;
23272   InternalSwap(other);
23273 }
InternalSwap(EltwiseParameter * other)23274 void EltwiseParameter::InternalSwap(EltwiseParameter* other) {
23275   using std::swap;
23276   coeff_.InternalSwap(&other->coeff_);
23277   swap(operation_, other->operation_);
23278   swap(stable_prod_grad_, other->stable_prod_grad_);
23279   swap(_has_bits_[0], other->_has_bits_[0]);
23280   _internal_metadata_.Swap(&other->_internal_metadata_);
23281   swap(_cached_size_, other->_cached_size_);
23282 }
23283 
GetMetadata() const23284 ::google::protobuf::Metadata EltwiseParameter::GetMetadata() const {
23285   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
23286   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
23287 }
23288 
23289 
23290 // ===================================================================
23291 
InitAsDefaultInstance()23292 void ELUParameter::InitAsDefaultInstance() {
23293 }
23294 #if !defined(_MSC_VER) || _MSC_VER >= 1900
23295 const int ELUParameter::kAlphaFieldNumber;
23296 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
23297 
ELUParameter()23298 ELUParameter::ELUParameter()
23299   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
23300   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
23301     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsELUParameter();
23302   }
23303   SharedCtor();
23304   // @@protoc_insertion_point(constructor:opencv_caffe.ELUParameter)
23305 }
ELUParameter(const ELUParameter & from)23306 ELUParameter::ELUParameter(const ELUParameter& from)
23307   : ::google::protobuf::Message(),
23308       _internal_metadata_(NULL),
23309       _has_bits_(from._has_bits_),
23310       _cached_size_(0) {
23311   _internal_metadata_.MergeFrom(from._internal_metadata_);
23312   alpha_ = from.alpha_;
23313   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ELUParameter)
23314 }
23315 
SharedCtor()23316 void ELUParameter::SharedCtor() {
23317   _cached_size_ = 0;
23318   alpha_ = 1;
23319 }
23320 
~ELUParameter()23321 ELUParameter::~ELUParameter() {
23322   // @@protoc_insertion_point(destructor:opencv_caffe.ELUParameter)
23323   SharedDtor();
23324 }
23325 
SharedDtor()23326 void ELUParameter::SharedDtor() {
23327 }
23328 
SetCachedSize(int size) const23329 void ELUParameter::SetCachedSize(int size) const {
23330   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
23331   _cached_size_ = size;
23332   GOOGLE_SAFE_CONCURRENT_WRITES_END();
23333 }
descriptor()23334 const ::google::protobuf::Descriptor* ELUParameter::descriptor() {
23335   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
23336   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
23337 }
23338 
default_instance()23339 const ELUParameter& ELUParameter::default_instance() {
23340   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsELUParameter();
23341   return *internal_default_instance();
23342 }
23343 
New(::google::protobuf::Arena * arena) const23344 ELUParameter* ELUParameter::New(::google::protobuf::Arena* arena) const {
23345   ELUParameter* n = new ELUParameter;
23346   if (arena != NULL) {
23347     arena->Own(n);
23348   }
23349   return n;
23350 }
23351 
Clear()23352 void ELUParameter::Clear() {
23353 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ELUParameter)
23354   ::google::protobuf::uint32 cached_has_bits = 0;
23355   // Prevent compiler warnings about cached_has_bits being unused
23356   (void) cached_has_bits;
23357 
23358   alpha_ = 1;
23359   _has_bits_.Clear();
23360   _internal_metadata_.Clear();
23361 }
23362 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)23363 bool ELUParameter::MergePartialFromCodedStream(
23364     ::google::protobuf::io::CodedInputStream* input) {
23365 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
23366   ::google::protobuf::uint32 tag;
23367   // @@protoc_insertion_point(parse_start:opencv_caffe.ELUParameter)
23368   for (;;) {
23369     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
23370     tag = p.first;
23371     if (!p.second) goto handle_unusual;
23372     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
23373       // optional float alpha = 1 [default = 1];
23374       case 1: {
23375         if (static_cast< ::google::protobuf::uint8>(tag) ==
23376             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
23377           set_has_alpha();
23378           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
23379                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
23380                  input, &alpha_)));
23381         } else {
23382           goto handle_unusual;
23383         }
23384         break;
23385       }
23386 
23387       default: {
23388       handle_unusual:
23389         if (tag == 0) {
23390           goto success;
23391         }
23392         DO_(::google::protobuf::internal::WireFormat::SkipField(
23393               input, tag, _internal_metadata_.mutable_unknown_fields()));
23394         break;
23395       }
23396     }
23397   }
23398 success:
23399   // @@protoc_insertion_point(parse_success:opencv_caffe.ELUParameter)
23400   return true;
23401 failure:
23402   // @@protoc_insertion_point(parse_failure:opencv_caffe.ELUParameter)
23403   return false;
23404 #undef DO_
23405 }
23406 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const23407 void ELUParameter::SerializeWithCachedSizes(
23408     ::google::protobuf::io::CodedOutputStream* output) const {
23409   // @@protoc_insertion_point(serialize_start:opencv_caffe.ELUParameter)
23410   ::google::protobuf::uint32 cached_has_bits = 0;
23411   (void) cached_has_bits;
23412 
23413   cached_has_bits = _has_bits_[0];
23414   // optional float alpha = 1 [default = 1];
23415   if (cached_has_bits & 0x00000001u) {
23416     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->alpha(), output);
23417   }
23418 
23419   if (_internal_metadata_.have_unknown_fields()) {
23420     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
23421         _internal_metadata_.unknown_fields(), output);
23422   }
23423   // @@protoc_insertion_point(serialize_end:opencv_caffe.ELUParameter)
23424 }
23425 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const23426 ::google::protobuf::uint8* ELUParameter::InternalSerializeWithCachedSizesToArray(
23427     bool deterministic, ::google::protobuf::uint8* target) const {
23428   (void)deterministic; // Unused
23429   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ELUParameter)
23430   ::google::protobuf::uint32 cached_has_bits = 0;
23431   (void) cached_has_bits;
23432 
23433   cached_has_bits = _has_bits_[0];
23434   // optional float alpha = 1 [default = 1];
23435   if (cached_has_bits & 0x00000001u) {
23436     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->alpha(), target);
23437   }
23438 
23439   if (_internal_metadata_.have_unknown_fields()) {
23440     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
23441         _internal_metadata_.unknown_fields(), target);
23442   }
23443   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ELUParameter)
23444   return target;
23445 }
23446 
ByteSizeLong() const23447 size_t ELUParameter::ByteSizeLong() const {
23448 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ELUParameter)
23449   size_t total_size = 0;
23450 
23451   if (_internal_metadata_.have_unknown_fields()) {
23452     total_size +=
23453       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
23454         _internal_metadata_.unknown_fields());
23455   }
23456   // optional float alpha = 1 [default = 1];
23457   if (has_alpha()) {
23458     total_size += 1 + 4;
23459   }
23460 
23461   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
23462   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
23463   _cached_size_ = cached_size;
23464   GOOGLE_SAFE_CONCURRENT_WRITES_END();
23465   return total_size;
23466 }
23467 
MergeFrom(const::google::protobuf::Message & from)23468 void ELUParameter::MergeFrom(const ::google::protobuf::Message& from) {
23469 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ELUParameter)
23470   GOOGLE_DCHECK_NE(&from, this);
23471   const ELUParameter* source =
23472       ::google::protobuf::internal::DynamicCastToGenerated<const ELUParameter>(
23473           &from);
23474   if (source == NULL) {
23475   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ELUParameter)
23476     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
23477   } else {
23478   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ELUParameter)
23479     MergeFrom(*source);
23480   }
23481 }
23482 
MergeFrom(const ELUParameter & from)23483 void ELUParameter::MergeFrom(const ELUParameter& from) {
23484 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ELUParameter)
23485   GOOGLE_DCHECK_NE(&from, this);
23486   _internal_metadata_.MergeFrom(from._internal_metadata_);
23487   ::google::protobuf::uint32 cached_has_bits = 0;
23488   (void) cached_has_bits;
23489 
23490   if (from.has_alpha()) {
23491     set_alpha(from.alpha());
23492   }
23493 }
23494 
CopyFrom(const::google::protobuf::Message & from)23495 void ELUParameter::CopyFrom(const ::google::protobuf::Message& from) {
23496 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ELUParameter)
23497   if (&from == this) return;
23498   Clear();
23499   MergeFrom(from);
23500 }
23501 
CopyFrom(const ELUParameter & from)23502 void ELUParameter::CopyFrom(const ELUParameter& from) {
23503 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ELUParameter)
23504   if (&from == this) return;
23505   Clear();
23506   MergeFrom(from);
23507 }
23508 
IsInitialized() const23509 bool ELUParameter::IsInitialized() const {
23510   return true;
23511 }
23512 
Swap(ELUParameter * other)23513 void ELUParameter::Swap(ELUParameter* other) {
23514   if (other == this) return;
23515   InternalSwap(other);
23516 }
InternalSwap(ELUParameter * other)23517 void ELUParameter::InternalSwap(ELUParameter* other) {
23518   using std::swap;
23519   swap(alpha_, other->alpha_);
23520   swap(_has_bits_[0], other->_has_bits_[0]);
23521   _internal_metadata_.Swap(&other->_internal_metadata_);
23522   swap(_cached_size_, other->_cached_size_);
23523 }
23524 
GetMetadata() const23525 ::google::protobuf::Metadata ELUParameter::GetMetadata() const {
23526   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
23527   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
23528 }
23529 
23530 
23531 // ===================================================================
23532 
InitAsDefaultInstance()23533 void EmbedParameter::InitAsDefaultInstance() {
23534   ::opencv_caffe::_EmbedParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
23535       ::opencv_caffe::FillerParameter::internal_default_instance());
23536   ::opencv_caffe::_EmbedParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
23537       ::opencv_caffe::FillerParameter::internal_default_instance());
23538 }
23539 #if !defined(_MSC_VER) || _MSC_VER >= 1900
23540 const int EmbedParameter::kNumOutputFieldNumber;
23541 const int EmbedParameter::kInputDimFieldNumber;
23542 const int EmbedParameter::kBiasTermFieldNumber;
23543 const int EmbedParameter::kWeightFillerFieldNumber;
23544 const int EmbedParameter::kBiasFillerFieldNumber;
23545 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
23546 
EmbedParameter()23547 EmbedParameter::EmbedParameter()
23548   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
23549   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
23550     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEmbedParameter();
23551   }
23552   SharedCtor();
23553   // @@protoc_insertion_point(constructor:opencv_caffe.EmbedParameter)
23554 }
EmbedParameter(const EmbedParameter & from)23555 EmbedParameter::EmbedParameter(const EmbedParameter& from)
23556   : ::google::protobuf::Message(),
23557       _internal_metadata_(NULL),
23558       _has_bits_(from._has_bits_),
23559       _cached_size_(0) {
23560   _internal_metadata_.MergeFrom(from._internal_metadata_);
23561   if (from.has_weight_filler()) {
23562     weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_);
23563   } else {
23564     weight_filler_ = NULL;
23565   }
23566   if (from.has_bias_filler()) {
23567     bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_);
23568   } else {
23569     bias_filler_ = NULL;
23570   }
23571   ::memcpy(&num_output_, &from.num_output_,
23572     static_cast<size_t>(reinterpret_cast<char*>(&bias_term_) -
23573     reinterpret_cast<char*>(&num_output_)) + sizeof(bias_term_));
23574   // @@protoc_insertion_point(copy_constructor:opencv_caffe.EmbedParameter)
23575 }
23576 
SharedCtor()23577 void EmbedParameter::SharedCtor() {
23578   _cached_size_ = 0;
23579   ::memset(&weight_filler_, 0, static_cast<size_t>(
23580       reinterpret_cast<char*>(&input_dim_) -
23581       reinterpret_cast<char*>(&weight_filler_)) + sizeof(input_dim_));
23582   bias_term_ = true;
23583 }
23584 
~EmbedParameter()23585 EmbedParameter::~EmbedParameter() {
23586   // @@protoc_insertion_point(destructor:opencv_caffe.EmbedParameter)
23587   SharedDtor();
23588 }
23589 
SharedDtor()23590 void EmbedParameter::SharedDtor() {
23591   if (this != internal_default_instance()) delete weight_filler_;
23592   if (this != internal_default_instance()) delete bias_filler_;
23593 }
23594 
SetCachedSize(int size) const23595 void EmbedParameter::SetCachedSize(int size) const {
23596   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
23597   _cached_size_ = size;
23598   GOOGLE_SAFE_CONCURRENT_WRITES_END();
23599 }
descriptor()23600 const ::google::protobuf::Descriptor* EmbedParameter::descriptor() {
23601   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
23602   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
23603 }
23604 
default_instance()23605 const EmbedParameter& EmbedParameter::default_instance() {
23606   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsEmbedParameter();
23607   return *internal_default_instance();
23608 }
23609 
New(::google::protobuf::Arena * arena) const23610 EmbedParameter* EmbedParameter::New(::google::protobuf::Arena* arena) const {
23611   EmbedParameter* n = new EmbedParameter;
23612   if (arena != NULL) {
23613     arena->Own(n);
23614   }
23615   return n;
23616 }
23617 
Clear()23618 void EmbedParameter::Clear() {
23619 // @@protoc_insertion_point(message_clear_start:opencv_caffe.EmbedParameter)
23620   ::google::protobuf::uint32 cached_has_bits = 0;
23621   // Prevent compiler warnings about cached_has_bits being unused
23622   (void) cached_has_bits;
23623 
23624   cached_has_bits = _has_bits_[0];
23625   if (cached_has_bits & 3u) {
23626     if (cached_has_bits & 0x00000001u) {
23627       GOOGLE_DCHECK(weight_filler_ != NULL);
23628       weight_filler_->Clear();
23629     }
23630     if (cached_has_bits & 0x00000002u) {
23631       GOOGLE_DCHECK(bias_filler_ != NULL);
23632       bias_filler_->Clear();
23633     }
23634   }
23635   if (cached_has_bits & 28u) {
23636     ::memset(&num_output_, 0, static_cast<size_t>(
23637         reinterpret_cast<char*>(&input_dim_) -
23638         reinterpret_cast<char*>(&num_output_)) + sizeof(input_dim_));
23639     bias_term_ = true;
23640   }
23641   _has_bits_.Clear();
23642   _internal_metadata_.Clear();
23643 }
23644 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)23645 bool EmbedParameter::MergePartialFromCodedStream(
23646     ::google::protobuf::io::CodedInputStream* input) {
23647 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
23648   ::google::protobuf::uint32 tag;
23649   // @@protoc_insertion_point(parse_start:opencv_caffe.EmbedParameter)
23650   for (;;) {
23651     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
23652     tag = p.first;
23653     if (!p.second) goto handle_unusual;
23654     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
23655       // optional uint32 num_output = 1;
23656       case 1: {
23657         if (static_cast< ::google::protobuf::uint8>(tag) ==
23658             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
23659           set_has_num_output();
23660           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
23661                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
23662                  input, &num_output_)));
23663         } else {
23664           goto handle_unusual;
23665         }
23666         break;
23667       }
23668 
23669       // optional uint32 input_dim = 2;
23670       case 2: {
23671         if (static_cast< ::google::protobuf::uint8>(tag) ==
23672             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
23673           set_has_input_dim();
23674           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
23675                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
23676                  input, &input_dim_)));
23677         } else {
23678           goto handle_unusual;
23679         }
23680         break;
23681       }
23682 
23683       // optional bool bias_term = 3 [default = true];
23684       case 3: {
23685         if (static_cast< ::google::protobuf::uint8>(tag) ==
23686             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
23687           set_has_bias_term();
23688           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
23689                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
23690                  input, &bias_term_)));
23691         } else {
23692           goto handle_unusual;
23693         }
23694         break;
23695       }
23696 
23697       // optional .opencv_caffe.FillerParameter weight_filler = 4;
23698       case 4: {
23699         if (static_cast< ::google::protobuf::uint8>(tag) ==
23700             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
23701           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
23702                input, mutable_weight_filler()));
23703         } else {
23704           goto handle_unusual;
23705         }
23706         break;
23707       }
23708 
23709       // optional .opencv_caffe.FillerParameter bias_filler = 5;
23710       case 5: {
23711         if (static_cast< ::google::protobuf::uint8>(tag) ==
23712             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
23713           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
23714                input, mutable_bias_filler()));
23715         } else {
23716           goto handle_unusual;
23717         }
23718         break;
23719       }
23720 
23721       default: {
23722       handle_unusual:
23723         if (tag == 0) {
23724           goto success;
23725         }
23726         DO_(::google::protobuf::internal::WireFormat::SkipField(
23727               input, tag, _internal_metadata_.mutable_unknown_fields()));
23728         break;
23729       }
23730     }
23731   }
23732 success:
23733   // @@protoc_insertion_point(parse_success:opencv_caffe.EmbedParameter)
23734   return true;
23735 failure:
23736   // @@protoc_insertion_point(parse_failure:opencv_caffe.EmbedParameter)
23737   return false;
23738 #undef DO_
23739 }
23740 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const23741 void EmbedParameter::SerializeWithCachedSizes(
23742     ::google::protobuf::io::CodedOutputStream* output) const {
23743   // @@protoc_insertion_point(serialize_start:opencv_caffe.EmbedParameter)
23744   ::google::protobuf::uint32 cached_has_bits = 0;
23745   (void) cached_has_bits;
23746 
23747   cached_has_bits = _has_bits_[0];
23748   // optional uint32 num_output = 1;
23749   if (cached_has_bits & 0x00000004u) {
23750     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output);
23751   }
23752 
23753   // optional uint32 input_dim = 2;
23754   if (cached_has_bits & 0x00000008u) {
23755     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->input_dim(), output);
23756   }
23757 
23758   // optional bool bias_term = 3 [default = true];
23759   if (cached_has_bits & 0x00000010u) {
23760     ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->bias_term(), output);
23761   }
23762 
23763   // optional .opencv_caffe.FillerParameter weight_filler = 4;
23764   if (cached_has_bits & 0x00000001u) {
23765     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
23766       4, *this->weight_filler_, output);
23767   }
23768 
23769   // optional .opencv_caffe.FillerParameter bias_filler = 5;
23770   if (cached_has_bits & 0x00000002u) {
23771     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
23772       5, *this->bias_filler_, output);
23773   }
23774 
23775   if (_internal_metadata_.have_unknown_fields()) {
23776     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
23777         _internal_metadata_.unknown_fields(), output);
23778   }
23779   // @@protoc_insertion_point(serialize_end:opencv_caffe.EmbedParameter)
23780 }
23781 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const23782 ::google::protobuf::uint8* EmbedParameter::InternalSerializeWithCachedSizesToArray(
23783     bool deterministic, ::google::protobuf::uint8* target) const {
23784   (void)deterministic; // Unused
23785   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.EmbedParameter)
23786   ::google::protobuf::uint32 cached_has_bits = 0;
23787   (void) cached_has_bits;
23788 
23789   cached_has_bits = _has_bits_[0];
23790   // optional uint32 num_output = 1;
23791   if (cached_has_bits & 0x00000004u) {
23792     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target);
23793   }
23794 
23795   // optional uint32 input_dim = 2;
23796   if (cached_has_bits & 0x00000008u) {
23797     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->input_dim(), target);
23798   }
23799 
23800   // optional bool bias_term = 3 [default = true];
23801   if (cached_has_bits & 0x00000010u) {
23802     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->bias_term(), target);
23803   }
23804 
23805   // optional .opencv_caffe.FillerParameter weight_filler = 4;
23806   if (cached_has_bits & 0x00000001u) {
23807     target = ::google::protobuf::internal::WireFormatLite::
23808       InternalWriteMessageToArray(
23809         4, *this->weight_filler_, deterministic, target);
23810   }
23811 
23812   // optional .opencv_caffe.FillerParameter bias_filler = 5;
23813   if (cached_has_bits & 0x00000002u) {
23814     target = ::google::protobuf::internal::WireFormatLite::
23815       InternalWriteMessageToArray(
23816         5, *this->bias_filler_, deterministic, target);
23817   }
23818 
23819   if (_internal_metadata_.have_unknown_fields()) {
23820     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
23821         _internal_metadata_.unknown_fields(), target);
23822   }
23823   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.EmbedParameter)
23824   return target;
23825 }
23826 
ByteSizeLong() const23827 size_t EmbedParameter::ByteSizeLong() const {
23828 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.EmbedParameter)
23829   size_t total_size = 0;
23830 
23831   if (_internal_metadata_.have_unknown_fields()) {
23832     total_size +=
23833       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
23834         _internal_metadata_.unknown_fields());
23835   }
23836   if (_has_bits_[0 / 32] & 31u) {
23837     // optional .opencv_caffe.FillerParameter weight_filler = 4;
23838     if (has_weight_filler()) {
23839       total_size += 1 +
23840         ::google::protobuf::internal::WireFormatLite::MessageSize(
23841           *this->weight_filler_);
23842     }
23843 
23844     // optional .opencv_caffe.FillerParameter bias_filler = 5;
23845     if (has_bias_filler()) {
23846       total_size += 1 +
23847         ::google::protobuf::internal::WireFormatLite::MessageSize(
23848           *this->bias_filler_);
23849     }
23850 
23851     // optional uint32 num_output = 1;
23852     if (has_num_output()) {
23853       total_size += 1 +
23854         ::google::protobuf::internal::WireFormatLite::UInt32Size(
23855           this->num_output());
23856     }
23857 
23858     // optional uint32 input_dim = 2;
23859     if (has_input_dim()) {
23860       total_size += 1 +
23861         ::google::protobuf::internal::WireFormatLite::UInt32Size(
23862           this->input_dim());
23863     }
23864 
23865     // optional bool bias_term = 3 [default = true];
23866     if (has_bias_term()) {
23867       total_size += 1 + 1;
23868     }
23869 
23870   }
23871   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
23872   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
23873   _cached_size_ = cached_size;
23874   GOOGLE_SAFE_CONCURRENT_WRITES_END();
23875   return total_size;
23876 }
23877 
MergeFrom(const::google::protobuf::Message & from)23878 void EmbedParameter::MergeFrom(const ::google::protobuf::Message& from) {
23879 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.EmbedParameter)
23880   GOOGLE_DCHECK_NE(&from, this);
23881   const EmbedParameter* source =
23882       ::google::protobuf::internal::DynamicCastToGenerated<const EmbedParameter>(
23883           &from);
23884   if (source == NULL) {
23885   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.EmbedParameter)
23886     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
23887   } else {
23888   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.EmbedParameter)
23889     MergeFrom(*source);
23890   }
23891 }
23892 
MergeFrom(const EmbedParameter & from)23893 void EmbedParameter::MergeFrom(const EmbedParameter& from) {
23894 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.EmbedParameter)
23895   GOOGLE_DCHECK_NE(&from, this);
23896   _internal_metadata_.MergeFrom(from._internal_metadata_);
23897   ::google::protobuf::uint32 cached_has_bits = 0;
23898   (void) cached_has_bits;
23899 
23900   cached_has_bits = from._has_bits_[0];
23901   if (cached_has_bits & 31u) {
23902     if (cached_has_bits & 0x00000001u) {
23903       mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler());
23904     }
23905     if (cached_has_bits & 0x00000002u) {
23906       mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler());
23907     }
23908     if (cached_has_bits & 0x00000004u) {
23909       num_output_ = from.num_output_;
23910     }
23911     if (cached_has_bits & 0x00000008u) {
23912       input_dim_ = from.input_dim_;
23913     }
23914     if (cached_has_bits & 0x00000010u) {
23915       bias_term_ = from.bias_term_;
23916     }
23917     _has_bits_[0] |= cached_has_bits;
23918   }
23919 }
23920 
CopyFrom(const::google::protobuf::Message & from)23921 void EmbedParameter::CopyFrom(const ::google::protobuf::Message& from) {
23922 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.EmbedParameter)
23923   if (&from == this) return;
23924   Clear();
23925   MergeFrom(from);
23926 }
23927 
CopyFrom(const EmbedParameter & from)23928 void EmbedParameter::CopyFrom(const EmbedParameter& from) {
23929 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.EmbedParameter)
23930   if (&from == this) return;
23931   Clear();
23932   MergeFrom(from);
23933 }
23934 
IsInitialized() const23935 bool EmbedParameter::IsInitialized() const {
23936   return true;
23937 }
23938 
Swap(EmbedParameter * other)23939 void EmbedParameter::Swap(EmbedParameter* other) {
23940   if (other == this) return;
23941   InternalSwap(other);
23942 }
InternalSwap(EmbedParameter * other)23943 void EmbedParameter::InternalSwap(EmbedParameter* other) {
23944   using std::swap;
23945   swap(weight_filler_, other->weight_filler_);
23946   swap(bias_filler_, other->bias_filler_);
23947   swap(num_output_, other->num_output_);
23948   swap(input_dim_, other->input_dim_);
23949   swap(bias_term_, other->bias_term_);
23950   swap(_has_bits_[0], other->_has_bits_[0]);
23951   _internal_metadata_.Swap(&other->_internal_metadata_);
23952   swap(_cached_size_, other->_cached_size_);
23953 }
23954 
GetMetadata() const23955 ::google::protobuf::Metadata EmbedParameter::GetMetadata() const {
23956   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
23957   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
23958 }
23959 
23960 
23961 // ===================================================================
23962 
InitAsDefaultInstance()23963 void ExpParameter::InitAsDefaultInstance() {
23964 }
23965 #if !defined(_MSC_VER) || _MSC_VER >= 1900
23966 const int ExpParameter::kBaseFieldNumber;
23967 const int ExpParameter::kScaleFieldNumber;
23968 const int ExpParameter::kShiftFieldNumber;
23969 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
23970 
ExpParameter()23971 ExpParameter::ExpParameter()
23972   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
23973   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
23974     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameter();
23975   }
23976   SharedCtor();
23977   // @@protoc_insertion_point(constructor:opencv_caffe.ExpParameter)
23978 }
ExpParameter(const ExpParameter & from)23979 ExpParameter::ExpParameter(const ExpParameter& from)
23980   : ::google::protobuf::Message(),
23981       _internal_metadata_(NULL),
23982       _has_bits_(from._has_bits_),
23983       _cached_size_(0) {
23984   _internal_metadata_.MergeFrom(from._internal_metadata_);
23985   ::memcpy(&shift_, &from.shift_,
23986     static_cast<size_t>(reinterpret_cast<char*>(&scale_) -
23987     reinterpret_cast<char*>(&shift_)) + sizeof(scale_));
23988   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ExpParameter)
23989 }
23990 
SharedCtor()23991 void ExpParameter::SharedCtor() {
23992   _cached_size_ = 0;
23993   shift_ = 0;
23994   base_ = -1;
23995   scale_ = 1;
23996 }
23997 
~ExpParameter()23998 ExpParameter::~ExpParameter() {
23999   // @@protoc_insertion_point(destructor:opencv_caffe.ExpParameter)
24000   SharedDtor();
24001 }
24002 
SharedDtor()24003 void ExpParameter::SharedDtor() {
24004 }
24005 
SetCachedSize(int size) const24006 void ExpParameter::SetCachedSize(int size) const {
24007   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
24008   _cached_size_ = size;
24009   GOOGLE_SAFE_CONCURRENT_WRITES_END();
24010 }
descriptor()24011 const ::google::protobuf::Descriptor* ExpParameter::descriptor() {
24012   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
24013   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
24014 }
24015 
default_instance()24016 const ExpParameter& ExpParameter::default_instance() {
24017   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsExpParameter();
24018   return *internal_default_instance();
24019 }
24020 
New(::google::protobuf::Arena * arena) const24021 ExpParameter* ExpParameter::New(::google::protobuf::Arena* arena) const {
24022   ExpParameter* n = new ExpParameter;
24023   if (arena != NULL) {
24024     arena->Own(n);
24025   }
24026   return n;
24027 }
24028 
Clear()24029 void ExpParameter::Clear() {
24030 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ExpParameter)
24031   ::google::protobuf::uint32 cached_has_bits = 0;
24032   // Prevent compiler warnings about cached_has_bits being unused
24033   (void) cached_has_bits;
24034 
24035   cached_has_bits = _has_bits_[0];
24036   if (cached_has_bits & 7u) {
24037     shift_ = 0;
24038     base_ = -1;
24039     scale_ = 1;
24040   }
24041   _has_bits_.Clear();
24042   _internal_metadata_.Clear();
24043 }
24044 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)24045 bool ExpParameter::MergePartialFromCodedStream(
24046     ::google::protobuf::io::CodedInputStream* input) {
24047 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
24048   ::google::protobuf::uint32 tag;
24049   // @@protoc_insertion_point(parse_start:opencv_caffe.ExpParameter)
24050   for (;;) {
24051     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
24052     tag = p.first;
24053     if (!p.second) goto handle_unusual;
24054     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
24055       // optional float base = 1 [default = -1];
24056       case 1: {
24057         if (static_cast< ::google::protobuf::uint8>(tag) ==
24058             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
24059           set_has_base();
24060           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
24061                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
24062                  input, &base_)));
24063         } else {
24064           goto handle_unusual;
24065         }
24066         break;
24067       }
24068 
24069       // optional float scale = 2 [default = 1];
24070       case 2: {
24071         if (static_cast< ::google::protobuf::uint8>(tag) ==
24072             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
24073           set_has_scale();
24074           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
24075                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
24076                  input, &scale_)));
24077         } else {
24078           goto handle_unusual;
24079         }
24080         break;
24081       }
24082 
24083       // optional float shift = 3 [default = 0];
24084       case 3: {
24085         if (static_cast< ::google::protobuf::uint8>(tag) ==
24086             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
24087           set_has_shift();
24088           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
24089                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
24090                  input, &shift_)));
24091         } else {
24092           goto handle_unusual;
24093         }
24094         break;
24095       }
24096 
24097       default: {
24098       handle_unusual:
24099         if (tag == 0) {
24100           goto success;
24101         }
24102         DO_(::google::protobuf::internal::WireFormat::SkipField(
24103               input, tag, _internal_metadata_.mutable_unknown_fields()));
24104         break;
24105       }
24106     }
24107   }
24108 success:
24109   // @@protoc_insertion_point(parse_success:opencv_caffe.ExpParameter)
24110   return true;
24111 failure:
24112   // @@protoc_insertion_point(parse_failure:opencv_caffe.ExpParameter)
24113   return false;
24114 #undef DO_
24115 }
24116 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const24117 void ExpParameter::SerializeWithCachedSizes(
24118     ::google::protobuf::io::CodedOutputStream* output) const {
24119   // @@protoc_insertion_point(serialize_start:opencv_caffe.ExpParameter)
24120   ::google::protobuf::uint32 cached_has_bits = 0;
24121   (void) cached_has_bits;
24122 
24123   cached_has_bits = _has_bits_[0];
24124   // optional float base = 1 [default = -1];
24125   if (cached_has_bits & 0x00000002u) {
24126     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->base(), output);
24127   }
24128 
24129   // optional float scale = 2 [default = 1];
24130   if (cached_has_bits & 0x00000004u) {
24131     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output);
24132   }
24133 
24134   // optional float shift = 3 [default = 0];
24135   if (cached_has_bits & 0x00000001u) {
24136     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output);
24137   }
24138 
24139   if (_internal_metadata_.have_unknown_fields()) {
24140     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
24141         _internal_metadata_.unknown_fields(), output);
24142   }
24143   // @@protoc_insertion_point(serialize_end:opencv_caffe.ExpParameter)
24144 }
24145 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const24146 ::google::protobuf::uint8* ExpParameter::InternalSerializeWithCachedSizesToArray(
24147     bool deterministic, ::google::protobuf::uint8* target) const {
24148   (void)deterministic; // Unused
24149   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ExpParameter)
24150   ::google::protobuf::uint32 cached_has_bits = 0;
24151   (void) cached_has_bits;
24152 
24153   cached_has_bits = _has_bits_[0];
24154   // optional float base = 1 [default = -1];
24155   if (cached_has_bits & 0x00000002u) {
24156     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->base(), target);
24157   }
24158 
24159   // optional float scale = 2 [default = 1];
24160   if (cached_has_bits & 0x00000004u) {
24161     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target);
24162   }
24163 
24164   // optional float shift = 3 [default = 0];
24165   if (cached_has_bits & 0x00000001u) {
24166     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target);
24167   }
24168 
24169   if (_internal_metadata_.have_unknown_fields()) {
24170     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
24171         _internal_metadata_.unknown_fields(), target);
24172   }
24173   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ExpParameter)
24174   return target;
24175 }
24176 
ByteSizeLong() const24177 size_t ExpParameter::ByteSizeLong() const {
24178 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ExpParameter)
24179   size_t total_size = 0;
24180 
24181   if (_internal_metadata_.have_unknown_fields()) {
24182     total_size +=
24183       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
24184         _internal_metadata_.unknown_fields());
24185   }
24186   if (_has_bits_[0 / 32] & 7u) {
24187     // optional float shift = 3 [default = 0];
24188     if (has_shift()) {
24189       total_size += 1 + 4;
24190     }
24191 
24192     // optional float base = 1 [default = -1];
24193     if (has_base()) {
24194       total_size += 1 + 4;
24195     }
24196 
24197     // optional float scale = 2 [default = 1];
24198     if (has_scale()) {
24199       total_size += 1 + 4;
24200     }
24201 
24202   }
24203   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
24204   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
24205   _cached_size_ = cached_size;
24206   GOOGLE_SAFE_CONCURRENT_WRITES_END();
24207   return total_size;
24208 }
24209 
MergeFrom(const::google::protobuf::Message & from)24210 void ExpParameter::MergeFrom(const ::google::protobuf::Message& from) {
24211 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ExpParameter)
24212   GOOGLE_DCHECK_NE(&from, this);
24213   const ExpParameter* source =
24214       ::google::protobuf::internal::DynamicCastToGenerated<const ExpParameter>(
24215           &from);
24216   if (source == NULL) {
24217   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ExpParameter)
24218     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
24219   } else {
24220   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ExpParameter)
24221     MergeFrom(*source);
24222   }
24223 }
24224 
MergeFrom(const ExpParameter & from)24225 void ExpParameter::MergeFrom(const ExpParameter& from) {
24226 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ExpParameter)
24227   GOOGLE_DCHECK_NE(&from, this);
24228   _internal_metadata_.MergeFrom(from._internal_metadata_);
24229   ::google::protobuf::uint32 cached_has_bits = 0;
24230   (void) cached_has_bits;
24231 
24232   cached_has_bits = from._has_bits_[0];
24233   if (cached_has_bits & 7u) {
24234     if (cached_has_bits & 0x00000001u) {
24235       shift_ = from.shift_;
24236     }
24237     if (cached_has_bits & 0x00000002u) {
24238       base_ = from.base_;
24239     }
24240     if (cached_has_bits & 0x00000004u) {
24241       scale_ = from.scale_;
24242     }
24243     _has_bits_[0] |= cached_has_bits;
24244   }
24245 }
24246 
CopyFrom(const::google::protobuf::Message & from)24247 void ExpParameter::CopyFrom(const ::google::protobuf::Message& from) {
24248 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ExpParameter)
24249   if (&from == this) return;
24250   Clear();
24251   MergeFrom(from);
24252 }
24253 
CopyFrom(const ExpParameter & from)24254 void ExpParameter::CopyFrom(const ExpParameter& from) {
24255 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ExpParameter)
24256   if (&from == this) return;
24257   Clear();
24258   MergeFrom(from);
24259 }
24260 
IsInitialized() const24261 bool ExpParameter::IsInitialized() const {
24262   return true;
24263 }
24264 
Swap(ExpParameter * other)24265 void ExpParameter::Swap(ExpParameter* other) {
24266   if (other == this) return;
24267   InternalSwap(other);
24268 }
InternalSwap(ExpParameter * other)24269 void ExpParameter::InternalSwap(ExpParameter* other) {
24270   using std::swap;
24271   swap(shift_, other->shift_);
24272   swap(base_, other->base_);
24273   swap(scale_, other->scale_);
24274   swap(_has_bits_[0], other->_has_bits_[0]);
24275   _internal_metadata_.Swap(&other->_internal_metadata_);
24276   swap(_cached_size_, other->_cached_size_);
24277 }
24278 
GetMetadata() const24279 ::google::protobuf::Metadata ExpParameter::GetMetadata() const {
24280   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
24281   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
24282 }
24283 
24284 
24285 // ===================================================================
24286 
InitAsDefaultInstance()24287 void FlattenParameter::InitAsDefaultInstance() {
24288 }
24289 #if !defined(_MSC_VER) || _MSC_VER >= 1900
24290 const int FlattenParameter::kAxisFieldNumber;
24291 const int FlattenParameter::kEndAxisFieldNumber;
24292 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
24293 
FlattenParameter()24294 FlattenParameter::FlattenParameter()
24295   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
24296   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
24297     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFlattenParameter();
24298   }
24299   SharedCtor();
24300   // @@protoc_insertion_point(constructor:opencv_caffe.FlattenParameter)
24301 }
FlattenParameter(const FlattenParameter & from)24302 FlattenParameter::FlattenParameter(const FlattenParameter& from)
24303   : ::google::protobuf::Message(),
24304       _internal_metadata_(NULL),
24305       _has_bits_(from._has_bits_),
24306       _cached_size_(0) {
24307   _internal_metadata_.MergeFrom(from._internal_metadata_);
24308   ::memcpy(&axis_, &from.axis_,
24309     static_cast<size_t>(reinterpret_cast<char*>(&end_axis_) -
24310     reinterpret_cast<char*>(&axis_)) + sizeof(end_axis_));
24311   // @@protoc_insertion_point(copy_constructor:opencv_caffe.FlattenParameter)
24312 }
24313 
SharedCtor()24314 void FlattenParameter::SharedCtor() {
24315   _cached_size_ = 0;
24316   axis_ = 1;
24317   end_axis_ = -1;
24318 }
24319 
~FlattenParameter()24320 FlattenParameter::~FlattenParameter() {
24321   // @@protoc_insertion_point(destructor:opencv_caffe.FlattenParameter)
24322   SharedDtor();
24323 }
24324 
SharedDtor()24325 void FlattenParameter::SharedDtor() {
24326 }
24327 
SetCachedSize(int size) const24328 void FlattenParameter::SetCachedSize(int size) const {
24329   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
24330   _cached_size_ = size;
24331   GOOGLE_SAFE_CONCURRENT_WRITES_END();
24332 }
descriptor()24333 const ::google::protobuf::Descriptor* FlattenParameter::descriptor() {
24334   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
24335   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
24336 }
24337 
default_instance()24338 const FlattenParameter& FlattenParameter::default_instance() {
24339   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsFlattenParameter();
24340   return *internal_default_instance();
24341 }
24342 
New(::google::protobuf::Arena * arena) const24343 FlattenParameter* FlattenParameter::New(::google::protobuf::Arena* arena) const {
24344   FlattenParameter* n = new FlattenParameter;
24345   if (arena != NULL) {
24346     arena->Own(n);
24347   }
24348   return n;
24349 }
24350 
Clear()24351 void FlattenParameter::Clear() {
24352 // @@protoc_insertion_point(message_clear_start:opencv_caffe.FlattenParameter)
24353   ::google::protobuf::uint32 cached_has_bits = 0;
24354   // Prevent compiler warnings about cached_has_bits being unused
24355   (void) cached_has_bits;
24356 
24357   cached_has_bits = _has_bits_[0];
24358   if (cached_has_bits & 3u) {
24359     axis_ = 1;
24360     end_axis_ = -1;
24361   }
24362   _has_bits_.Clear();
24363   _internal_metadata_.Clear();
24364 }
24365 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)24366 bool FlattenParameter::MergePartialFromCodedStream(
24367     ::google::protobuf::io::CodedInputStream* input) {
24368 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
24369   ::google::protobuf::uint32 tag;
24370   // @@protoc_insertion_point(parse_start:opencv_caffe.FlattenParameter)
24371   for (;;) {
24372     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
24373     tag = p.first;
24374     if (!p.second) goto handle_unusual;
24375     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
24376       // optional int32 axis = 1 [default = 1];
24377       case 1: {
24378         if (static_cast< ::google::protobuf::uint8>(tag) ==
24379             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
24380           set_has_axis();
24381           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
24382                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
24383                  input, &axis_)));
24384         } else {
24385           goto handle_unusual;
24386         }
24387         break;
24388       }
24389 
24390       // optional int32 end_axis = 2 [default = -1];
24391       case 2: {
24392         if (static_cast< ::google::protobuf::uint8>(tag) ==
24393             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
24394           set_has_end_axis();
24395           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
24396                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
24397                  input, &end_axis_)));
24398         } else {
24399           goto handle_unusual;
24400         }
24401         break;
24402       }
24403 
24404       default: {
24405       handle_unusual:
24406         if (tag == 0) {
24407           goto success;
24408         }
24409         DO_(::google::protobuf::internal::WireFormat::SkipField(
24410               input, tag, _internal_metadata_.mutable_unknown_fields()));
24411         break;
24412       }
24413     }
24414   }
24415 success:
24416   // @@protoc_insertion_point(parse_success:opencv_caffe.FlattenParameter)
24417   return true;
24418 failure:
24419   // @@protoc_insertion_point(parse_failure:opencv_caffe.FlattenParameter)
24420   return false;
24421 #undef DO_
24422 }
24423 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const24424 void FlattenParameter::SerializeWithCachedSizes(
24425     ::google::protobuf::io::CodedOutputStream* output) const {
24426   // @@protoc_insertion_point(serialize_start:opencv_caffe.FlattenParameter)
24427   ::google::protobuf::uint32 cached_has_bits = 0;
24428   (void) cached_has_bits;
24429 
24430   cached_has_bits = _has_bits_[0];
24431   // optional int32 axis = 1 [default = 1];
24432   if (cached_has_bits & 0x00000001u) {
24433     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output);
24434   }
24435 
24436   // optional int32 end_axis = 2 [default = -1];
24437   if (cached_has_bits & 0x00000002u) {
24438     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end_axis(), output);
24439   }
24440 
24441   if (_internal_metadata_.have_unknown_fields()) {
24442     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
24443         _internal_metadata_.unknown_fields(), output);
24444   }
24445   // @@protoc_insertion_point(serialize_end:opencv_caffe.FlattenParameter)
24446 }
24447 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const24448 ::google::protobuf::uint8* FlattenParameter::InternalSerializeWithCachedSizesToArray(
24449     bool deterministic, ::google::protobuf::uint8* target) const {
24450   (void)deterministic; // Unused
24451   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.FlattenParameter)
24452   ::google::protobuf::uint32 cached_has_bits = 0;
24453   (void) cached_has_bits;
24454 
24455   cached_has_bits = _has_bits_[0];
24456   // optional int32 axis = 1 [default = 1];
24457   if (cached_has_bits & 0x00000001u) {
24458     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target);
24459   }
24460 
24461   // optional int32 end_axis = 2 [default = -1];
24462   if (cached_has_bits & 0x00000002u) {
24463     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end_axis(), target);
24464   }
24465 
24466   if (_internal_metadata_.have_unknown_fields()) {
24467     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
24468         _internal_metadata_.unknown_fields(), target);
24469   }
24470   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.FlattenParameter)
24471   return target;
24472 }
24473 
ByteSizeLong() const24474 size_t FlattenParameter::ByteSizeLong() const {
24475 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.FlattenParameter)
24476   size_t total_size = 0;
24477 
24478   if (_internal_metadata_.have_unknown_fields()) {
24479     total_size +=
24480       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
24481         _internal_metadata_.unknown_fields());
24482   }
24483   if (_has_bits_[0 / 32] & 3u) {
24484     // optional int32 axis = 1 [default = 1];
24485     if (has_axis()) {
24486       total_size += 1 +
24487         ::google::protobuf::internal::WireFormatLite::Int32Size(
24488           this->axis());
24489     }
24490 
24491     // optional int32 end_axis = 2 [default = -1];
24492     if (has_end_axis()) {
24493       total_size += 1 +
24494         ::google::protobuf::internal::WireFormatLite::Int32Size(
24495           this->end_axis());
24496     }
24497 
24498   }
24499   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
24500   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
24501   _cached_size_ = cached_size;
24502   GOOGLE_SAFE_CONCURRENT_WRITES_END();
24503   return total_size;
24504 }
24505 
MergeFrom(const::google::protobuf::Message & from)24506 void FlattenParameter::MergeFrom(const ::google::protobuf::Message& from) {
24507 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.FlattenParameter)
24508   GOOGLE_DCHECK_NE(&from, this);
24509   const FlattenParameter* source =
24510       ::google::protobuf::internal::DynamicCastToGenerated<const FlattenParameter>(
24511           &from);
24512   if (source == NULL) {
24513   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.FlattenParameter)
24514     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
24515   } else {
24516   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.FlattenParameter)
24517     MergeFrom(*source);
24518   }
24519 }
24520 
MergeFrom(const FlattenParameter & from)24521 void FlattenParameter::MergeFrom(const FlattenParameter& from) {
24522 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.FlattenParameter)
24523   GOOGLE_DCHECK_NE(&from, this);
24524   _internal_metadata_.MergeFrom(from._internal_metadata_);
24525   ::google::protobuf::uint32 cached_has_bits = 0;
24526   (void) cached_has_bits;
24527 
24528   cached_has_bits = from._has_bits_[0];
24529   if (cached_has_bits & 3u) {
24530     if (cached_has_bits & 0x00000001u) {
24531       axis_ = from.axis_;
24532     }
24533     if (cached_has_bits & 0x00000002u) {
24534       end_axis_ = from.end_axis_;
24535     }
24536     _has_bits_[0] |= cached_has_bits;
24537   }
24538 }
24539 
CopyFrom(const::google::protobuf::Message & from)24540 void FlattenParameter::CopyFrom(const ::google::protobuf::Message& from) {
24541 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.FlattenParameter)
24542   if (&from == this) return;
24543   Clear();
24544   MergeFrom(from);
24545 }
24546 
CopyFrom(const FlattenParameter & from)24547 void FlattenParameter::CopyFrom(const FlattenParameter& from) {
24548 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.FlattenParameter)
24549   if (&from == this) return;
24550   Clear();
24551   MergeFrom(from);
24552 }
24553 
IsInitialized() const24554 bool FlattenParameter::IsInitialized() const {
24555   return true;
24556 }
24557 
Swap(FlattenParameter * other)24558 void FlattenParameter::Swap(FlattenParameter* other) {
24559   if (other == this) return;
24560   InternalSwap(other);
24561 }
InternalSwap(FlattenParameter * other)24562 void FlattenParameter::InternalSwap(FlattenParameter* other) {
24563   using std::swap;
24564   swap(axis_, other->axis_);
24565   swap(end_axis_, other->end_axis_);
24566   swap(_has_bits_[0], other->_has_bits_[0]);
24567   _internal_metadata_.Swap(&other->_internal_metadata_);
24568   swap(_cached_size_, other->_cached_size_);
24569 }
24570 
GetMetadata() const24571 ::google::protobuf::Metadata FlattenParameter::GetMetadata() const {
24572   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
24573   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
24574 }
24575 
24576 
24577 // ===================================================================
24578 
InitAsDefaultInstance()24579 void HDF5DataParameter::InitAsDefaultInstance() {
24580 }
24581 #if !defined(_MSC_VER) || _MSC_VER >= 1900
24582 const int HDF5DataParameter::kSourceFieldNumber;
24583 const int HDF5DataParameter::kBatchSizeFieldNumber;
24584 const int HDF5DataParameter::kShuffleFieldNumber;
24585 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
24586 
HDF5DataParameter()24587 HDF5DataParameter::HDF5DataParameter()
24588   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
24589   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
24590     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameter();
24591   }
24592   SharedCtor();
24593   // @@protoc_insertion_point(constructor:opencv_caffe.HDF5DataParameter)
24594 }
HDF5DataParameter(const HDF5DataParameter & from)24595 HDF5DataParameter::HDF5DataParameter(const HDF5DataParameter& from)
24596   : ::google::protobuf::Message(),
24597       _internal_metadata_(NULL),
24598       _has_bits_(from._has_bits_),
24599       _cached_size_(0) {
24600   _internal_metadata_.MergeFrom(from._internal_metadata_);
24601   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
24602   if (from.has_source()) {
24603     source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
24604   }
24605   ::memcpy(&batch_size_, &from.batch_size_,
24606     static_cast<size_t>(reinterpret_cast<char*>(&shuffle_) -
24607     reinterpret_cast<char*>(&batch_size_)) + sizeof(shuffle_));
24608   // @@protoc_insertion_point(copy_constructor:opencv_caffe.HDF5DataParameter)
24609 }
24610 
SharedCtor()24611 void HDF5DataParameter::SharedCtor() {
24612   _cached_size_ = 0;
24613   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
24614   ::memset(&batch_size_, 0, static_cast<size_t>(
24615       reinterpret_cast<char*>(&shuffle_) -
24616       reinterpret_cast<char*>(&batch_size_)) + sizeof(shuffle_));
24617 }
24618 
~HDF5DataParameter()24619 HDF5DataParameter::~HDF5DataParameter() {
24620   // @@protoc_insertion_point(destructor:opencv_caffe.HDF5DataParameter)
24621   SharedDtor();
24622 }
24623 
SharedDtor()24624 void HDF5DataParameter::SharedDtor() {
24625   source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
24626 }
24627 
SetCachedSize(int size) const24628 void HDF5DataParameter::SetCachedSize(int size) const {
24629   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
24630   _cached_size_ = size;
24631   GOOGLE_SAFE_CONCURRENT_WRITES_END();
24632 }
descriptor()24633 const ::google::protobuf::Descriptor* HDF5DataParameter::descriptor() {
24634   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
24635   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
24636 }
24637 
default_instance()24638 const HDF5DataParameter& HDF5DataParameter::default_instance() {
24639   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5DataParameter();
24640   return *internal_default_instance();
24641 }
24642 
New(::google::protobuf::Arena * arena) const24643 HDF5DataParameter* HDF5DataParameter::New(::google::protobuf::Arena* arena) const {
24644   HDF5DataParameter* n = new HDF5DataParameter;
24645   if (arena != NULL) {
24646     arena->Own(n);
24647   }
24648   return n;
24649 }
24650 
Clear()24651 void HDF5DataParameter::Clear() {
24652 // @@protoc_insertion_point(message_clear_start:opencv_caffe.HDF5DataParameter)
24653   ::google::protobuf::uint32 cached_has_bits = 0;
24654   // Prevent compiler warnings about cached_has_bits being unused
24655   (void) cached_has_bits;
24656 
24657   cached_has_bits = _has_bits_[0];
24658   if (cached_has_bits & 0x00000001u) {
24659     GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
24660     (*source_.UnsafeRawStringPointer())->clear();
24661   }
24662   if (cached_has_bits & 6u) {
24663     ::memset(&batch_size_, 0, static_cast<size_t>(
24664         reinterpret_cast<char*>(&shuffle_) -
24665         reinterpret_cast<char*>(&batch_size_)) + sizeof(shuffle_));
24666   }
24667   _has_bits_.Clear();
24668   _internal_metadata_.Clear();
24669 }
24670 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)24671 bool HDF5DataParameter::MergePartialFromCodedStream(
24672     ::google::protobuf::io::CodedInputStream* input) {
24673 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
24674   ::google::protobuf::uint32 tag;
24675   // @@protoc_insertion_point(parse_start:opencv_caffe.HDF5DataParameter)
24676   for (;;) {
24677     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
24678     tag = p.first;
24679     if (!p.second) goto handle_unusual;
24680     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
24681       // optional string source = 1;
24682       case 1: {
24683         if (static_cast< ::google::protobuf::uint8>(tag) ==
24684             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
24685           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
24686                 input, this->mutable_source()));
24687           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
24688             this->source().data(), static_cast<int>(this->source().length()),
24689             ::google::protobuf::internal::WireFormat::PARSE,
24690             "opencv_caffe.HDF5DataParameter.source");
24691         } else {
24692           goto handle_unusual;
24693         }
24694         break;
24695       }
24696 
24697       // optional uint32 batch_size = 2;
24698       case 2: {
24699         if (static_cast< ::google::protobuf::uint8>(tag) ==
24700             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
24701           set_has_batch_size();
24702           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
24703                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
24704                  input, &batch_size_)));
24705         } else {
24706           goto handle_unusual;
24707         }
24708         break;
24709       }
24710 
24711       // optional bool shuffle = 3 [default = false];
24712       case 3: {
24713         if (static_cast< ::google::protobuf::uint8>(tag) ==
24714             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
24715           set_has_shuffle();
24716           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
24717                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
24718                  input, &shuffle_)));
24719         } else {
24720           goto handle_unusual;
24721         }
24722         break;
24723       }
24724 
24725       default: {
24726       handle_unusual:
24727         if (tag == 0) {
24728           goto success;
24729         }
24730         DO_(::google::protobuf::internal::WireFormat::SkipField(
24731               input, tag, _internal_metadata_.mutable_unknown_fields()));
24732         break;
24733       }
24734     }
24735   }
24736 success:
24737   // @@protoc_insertion_point(parse_success:opencv_caffe.HDF5DataParameter)
24738   return true;
24739 failure:
24740   // @@protoc_insertion_point(parse_failure:opencv_caffe.HDF5DataParameter)
24741   return false;
24742 #undef DO_
24743 }
24744 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const24745 void HDF5DataParameter::SerializeWithCachedSizes(
24746     ::google::protobuf::io::CodedOutputStream* output) const {
24747   // @@protoc_insertion_point(serialize_start:opencv_caffe.HDF5DataParameter)
24748   ::google::protobuf::uint32 cached_has_bits = 0;
24749   (void) cached_has_bits;
24750 
24751   cached_has_bits = _has_bits_[0];
24752   // optional string source = 1;
24753   if (cached_has_bits & 0x00000001u) {
24754     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
24755       this->source().data(), static_cast<int>(this->source().length()),
24756       ::google::protobuf::internal::WireFormat::SERIALIZE,
24757       "opencv_caffe.HDF5DataParameter.source");
24758     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
24759       1, this->source(), output);
24760   }
24761 
24762   // optional uint32 batch_size = 2;
24763   if (cached_has_bits & 0x00000002u) {
24764     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->batch_size(), output);
24765   }
24766 
24767   // optional bool shuffle = 3 [default = false];
24768   if (cached_has_bits & 0x00000004u) {
24769     ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->shuffle(), output);
24770   }
24771 
24772   if (_internal_metadata_.have_unknown_fields()) {
24773     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
24774         _internal_metadata_.unknown_fields(), output);
24775   }
24776   // @@protoc_insertion_point(serialize_end:opencv_caffe.HDF5DataParameter)
24777 }
24778 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const24779 ::google::protobuf::uint8* HDF5DataParameter::InternalSerializeWithCachedSizesToArray(
24780     bool deterministic, ::google::protobuf::uint8* target) const {
24781   (void)deterministic; // Unused
24782   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HDF5DataParameter)
24783   ::google::protobuf::uint32 cached_has_bits = 0;
24784   (void) cached_has_bits;
24785 
24786   cached_has_bits = _has_bits_[0];
24787   // optional string source = 1;
24788   if (cached_has_bits & 0x00000001u) {
24789     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
24790       this->source().data(), static_cast<int>(this->source().length()),
24791       ::google::protobuf::internal::WireFormat::SERIALIZE,
24792       "opencv_caffe.HDF5DataParameter.source");
24793     target =
24794       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
24795         1, this->source(), target);
24796   }
24797 
24798   // optional uint32 batch_size = 2;
24799   if (cached_has_bits & 0x00000002u) {
24800     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->batch_size(), target);
24801   }
24802 
24803   // optional bool shuffle = 3 [default = false];
24804   if (cached_has_bits & 0x00000004u) {
24805     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->shuffle(), target);
24806   }
24807 
24808   if (_internal_metadata_.have_unknown_fields()) {
24809     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
24810         _internal_metadata_.unknown_fields(), target);
24811   }
24812   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HDF5DataParameter)
24813   return target;
24814 }
24815 
ByteSizeLong() const24816 size_t HDF5DataParameter::ByteSizeLong() const {
24817 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HDF5DataParameter)
24818   size_t total_size = 0;
24819 
24820   if (_internal_metadata_.have_unknown_fields()) {
24821     total_size +=
24822       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
24823         _internal_metadata_.unknown_fields());
24824   }
24825   if (_has_bits_[0 / 32] & 7u) {
24826     // optional string source = 1;
24827     if (has_source()) {
24828       total_size += 1 +
24829         ::google::protobuf::internal::WireFormatLite::StringSize(
24830           this->source());
24831     }
24832 
24833     // optional uint32 batch_size = 2;
24834     if (has_batch_size()) {
24835       total_size += 1 +
24836         ::google::protobuf::internal::WireFormatLite::UInt32Size(
24837           this->batch_size());
24838     }
24839 
24840     // optional bool shuffle = 3 [default = false];
24841     if (has_shuffle()) {
24842       total_size += 1 + 1;
24843     }
24844 
24845   }
24846   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
24847   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
24848   _cached_size_ = cached_size;
24849   GOOGLE_SAFE_CONCURRENT_WRITES_END();
24850   return total_size;
24851 }
24852 
MergeFrom(const::google::protobuf::Message & from)24853 void HDF5DataParameter::MergeFrom(const ::google::protobuf::Message& from) {
24854 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HDF5DataParameter)
24855   GOOGLE_DCHECK_NE(&from, this);
24856   const HDF5DataParameter* source =
24857       ::google::protobuf::internal::DynamicCastToGenerated<const HDF5DataParameter>(
24858           &from);
24859   if (source == NULL) {
24860   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HDF5DataParameter)
24861     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
24862   } else {
24863   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HDF5DataParameter)
24864     MergeFrom(*source);
24865   }
24866 }
24867 
MergeFrom(const HDF5DataParameter & from)24868 void HDF5DataParameter::MergeFrom(const HDF5DataParameter& from) {
24869 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HDF5DataParameter)
24870   GOOGLE_DCHECK_NE(&from, this);
24871   _internal_metadata_.MergeFrom(from._internal_metadata_);
24872   ::google::protobuf::uint32 cached_has_bits = 0;
24873   (void) cached_has_bits;
24874 
24875   cached_has_bits = from._has_bits_[0];
24876   if (cached_has_bits & 7u) {
24877     if (cached_has_bits & 0x00000001u) {
24878       set_has_source();
24879       source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
24880     }
24881     if (cached_has_bits & 0x00000002u) {
24882       batch_size_ = from.batch_size_;
24883     }
24884     if (cached_has_bits & 0x00000004u) {
24885       shuffle_ = from.shuffle_;
24886     }
24887     _has_bits_[0] |= cached_has_bits;
24888   }
24889 }
24890 
CopyFrom(const::google::protobuf::Message & from)24891 void HDF5DataParameter::CopyFrom(const ::google::protobuf::Message& from) {
24892 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HDF5DataParameter)
24893   if (&from == this) return;
24894   Clear();
24895   MergeFrom(from);
24896 }
24897 
CopyFrom(const HDF5DataParameter & from)24898 void HDF5DataParameter::CopyFrom(const HDF5DataParameter& from) {
24899 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HDF5DataParameter)
24900   if (&from == this) return;
24901   Clear();
24902   MergeFrom(from);
24903 }
24904 
IsInitialized() const24905 bool HDF5DataParameter::IsInitialized() const {
24906   return true;
24907 }
24908 
Swap(HDF5DataParameter * other)24909 void HDF5DataParameter::Swap(HDF5DataParameter* other) {
24910   if (other == this) return;
24911   InternalSwap(other);
24912 }
InternalSwap(HDF5DataParameter * other)24913 void HDF5DataParameter::InternalSwap(HDF5DataParameter* other) {
24914   using std::swap;
24915   source_.Swap(&other->source_);
24916   swap(batch_size_, other->batch_size_);
24917   swap(shuffle_, other->shuffle_);
24918   swap(_has_bits_[0], other->_has_bits_[0]);
24919   _internal_metadata_.Swap(&other->_internal_metadata_);
24920   swap(_cached_size_, other->_cached_size_);
24921 }
24922 
GetMetadata() const24923 ::google::protobuf::Metadata HDF5DataParameter::GetMetadata() const {
24924   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
24925   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
24926 }
24927 
24928 
24929 // ===================================================================
24930 
InitAsDefaultInstance()24931 void HDF5OutputParameter::InitAsDefaultInstance() {
24932 }
24933 #if !defined(_MSC_VER) || _MSC_VER >= 1900
24934 const int HDF5OutputParameter::kFileNameFieldNumber;
24935 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
24936 
HDF5OutputParameter()24937 HDF5OutputParameter::HDF5OutputParameter()
24938   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
24939   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
24940     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter();
24941   }
24942   SharedCtor();
24943   // @@protoc_insertion_point(constructor:opencv_caffe.HDF5OutputParameter)
24944 }
HDF5OutputParameter(const HDF5OutputParameter & from)24945 HDF5OutputParameter::HDF5OutputParameter(const HDF5OutputParameter& from)
24946   : ::google::protobuf::Message(),
24947       _internal_metadata_(NULL),
24948       _has_bits_(from._has_bits_),
24949       _cached_size_(0) {
24950   _internal_metadata_.MergeFrom(from._internal_metadata_);
24951   file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
24952   if (from.has_file_name()) {
24953     file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_);
24954   }
24955   // @@protoc_insertion_point(copy_constructor:opencv_caffe.HDF5OutputParameter)
24956 }
24957 
SharedCtor()24958 void HDF5OutputParameter::SharedCtor() {
24959   _cached_size_ = 0;
24960   file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
24961 }
24962 
~HDF5OutputParameter()24963 HDF5OutputParameter::~HDF5OutputParameter() {
24964   // @@protoc_insertion_point(destructor:opencv_caffe.HDF5OutputParameter)
24965   SharedDtor();
24966 }
24967 
SharedDtor()24968 void HDF5OutputParameter::SharedDtor() {
24969   file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
24970 }
24971 
SetCachedSize(int size) const24972 void HDF5OutputParameter::SetCachedSize(int size) const {
24973   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
24974   _cached_size_ = size;
24975   GOOGLE_SAFE_CONCURRENT_WRITES_END();
24976 }
descriptor()24977 const ::google::protobuf::Descriptor* HDF5OutputParameter::descriptor() {
24978   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
24979   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
24980 }
24981 
default_instance()24982 const HDF5OutputParameter& HDF5OutputParameter::default_instance() {
24983   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHDF5OutputParameter();
24984   return *internal_default_instance();
24985 }
24986 
New(::google::protobuf::Arena * arena) const24987 HDF5OutputParameter* HDF5OutputParameter::New(::google::protobuf::Arena* arena) const {
24988   HDF5OutputParameter* n = new HDF5OutputParameter;
24989   if (arena != NULL) {
24990     arena->Own(n);
24991   }
24992   return n;
24993 }
24994 
Clear()24995 void HDF5OutputParameter::Clear() {
24996 // @@protoc_insertion_point(message_clear_start:opencv_caffe.HDF5OutputParameter)
24997   ::google::protobuf::uint32 cached_has_bits = 0;
24998   // Prevent compiler warnings about cached_has_bits being unused
24999   (void) cached_has_bits;
25000 
25001   cached_has_bits = _has_bits_[0];
25002   if (cached_has_bits & 0x00000001u) {
25003     GOOGLE_DCHECK(!file_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
25004     (*file_name_.UnsafeRawStringPointer())->clear();
25005   }
25006   _has_bits_.Clear();
25007   _internal_metadata_.Clear();
25008 }
25009 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)25010 bool HDF5OutputParameter::MergePartialFromCodedStream(
25011     ::google::protobuf::io::CodedInputStream* input) {
25012 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
25013   ::google::protobuf::uint32 tag;
25014   // @@protoc_insertion_point(parse_start:opencv_caffe.HDF5OutputParameter)
25015   for (;;) {
25016     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
25017     tag = p.first;
25018     if (!p.second) goto handle_unusual;
25019     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
25020       // optional string file_name = 1;
25021       case 1: {
25022         if (static_cast< ::google::protobuf::uint8>(tag) ==
25023             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
25024           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
25025                 input, this->mutable_file_name()));
25026           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25027             this->file_name().data(), static_cast<int>(this->file_name().length()),
25028             ::google::protobuf::internal::WireFormat::PARSE,
25029             "opencv_caffe.HDF5OutputParameter.file_name");
25030         } else {
25031           goto handle_unusual;
25032         }
25033         break;
25034       }
25035 
25036       default: {
25037       handle_unusual:
25038         if (tag == 0) {
25039           goto success;
25040         }
25041         DO_(::google::protobuf::internal::WireFormat::SkipField(
25042               input, tag, _internal_metadata_.mutable_unknown_fields()));
25043         break;
25044       }
25045     }
25046   }
25047 success:
25048   // @@protoc_insertion_point(parse_success:opencv_caffe.HDF5OutputParameter)
25049   return true;
25050 failure:
25051   // @@protoc_insertion_point(parse_failure:opencv_caffe.HDF5OutputParameter)
25052   return false;
25053 #undef DO_
25054 }
25055 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const25056 void HDF5OutputParameter::SerializeWithCachedSizes(
25057     ::google::protobuf::io::CodedOutputStream* output) const {
25058   // @@protoc_insertion_point(serialize_start:opencv_caffe.HDF5OutputParameter)
25059   ::google::protobuf::uint32 cached_has_bits = 0;
25060   (void) cached_has_bits;
25061 
25062   cached_has_bits = _has_bits_[0];
25063   // optional string file_name = 1;
25064   if (cached_has_bits & 0x00000001u) {
25065     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25066       this->file_name().data(), static_cast<int>(this->file_name().length()),
25067       ::google::protobuf::internal::WireFormat::SERIALIZE,
25068       "opencv_caffe.HDF5OutputParameter.file_name");
25069     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
25070       1, this->file_name(), output);
25071   }
25072 
25073   if (_internal_metadata_.have_unknown_fields()) {
25074     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
25075         _internal_metadata_.unknown_fields(), output);
25076   }
25077   // @@protoc_insertion_point(serialize_end:opencv_caffe.HDF5OutputParameter)
25078 }
25079 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const25080 ::google::protobuf::uint8* HDF5OutputParameter::InternalSerializeWithCachedSizesToArray(
25081     bool deterministic, ::google::protobuf::uint8* target) const {
25082   (void)deterministic; // Unused
25083   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HDF5OutputParameter)
25084   ::google::protobuf::uint32 cached_has_bits = 0;
25085   (void) cached_has_bits;
25086 
25087   cached_has_bits = _has_bits_[0];
25088   // optional string file_name = 1;
25089   if (cached_has_bits & 0x00000001u) {
25090     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25091       this->file_name().data(), static_cast<int>(this->file_name().length()),
25092       ::google::protobuf::internal::WireFormat::SERIALIZE,
25093       "opencv_caffe.HDF5OutputParameter.file_name");
25094     target =
25095       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
25096         1, this->file_name(), target);
25097   }
25098 
25099   if (_internal_metadata_.have_unknown_fields()) {
25100     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
25101         _internal_metadata_.unknown_fields(), target);
25102   }
25103   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HDF5OutputParameter)
25104   return target;
25105 }
25106 
ByteSizeLong() const25107 size_t HDF5OutputParameter::ByteSizeLong() const {
25108 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HDF5OutputParameter)
25109   size_t total_size = 0;
25110 
25111   if (_internal_metadata_.have_unknown_fields()) {
25112     total_size +=
25113       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
25114         _internal_metadata_.unknown_fields());
25115   }
25116   // optional string file_name = 1;
25117   if (has_file_name()) {
25118     total_size += 1 +
25119       ::google::protobuf::internal::WireFormatLite::StringSize(
25120         this->file_name());
25121   }
25122 
25123   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
25124   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
25125   _cached_size_ = cached_size;
25126   GOOGLE_SAFE_CONCURRENT_WRITES_END();
25127   return total_size;
25128 }
25129 
MergeFrom(const::google::protobuf::Message & from)25130 void HDF5OutputParameter::MergeFrom(const ::google::protobuf::Message& from) {
25131 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HDF5OutputParameter)
25132   GOOGLE_DCHECK_NE(&from, this);
25133   const HDF5OutputParameter* source =
25134       ::google::protobuf::internal::DynamicCastToGenerated<const HDF5OutputParameter>(
25135           &from);
25136   if (source == NULL) {
25137   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HDF5OutputParameter)
25138     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
25139   } else {
25140   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HDF5OutputParameter)
25141     MergeFrom(*source);
25142   }
25143 }
25144 
MergeFrom(const HDF5OutputParameter & from)25145 void HDF5OutputParameter::MergeFrom(const HDF5OutputParameter& from) {
25146 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HDF5OutputParameter)
25147   GOOGLE_DCHECK_NE(&from, this);
25148   _internal_metadata_.MergeFrom(from._internal_metadata_);
25149   ::google::protobuf::uint32 cached_has_bits = 0;
25150   (void) cached_has_bits;
25151 
25152   if (from.has_file_name()) {
25153     set_has_file_name();
25154     file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_);
25155   }
25156 }
25157 
CopyFrom(const::google::protobuf::Message & from)25158 void HDF5OutputParameter::CopyFrom(const ::google::protobuf::Message& from) {
25159 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HDF5OutputParameter)
25160   if (&from == this) return;
25161   Clear();
25162   MergeFrom(from);
25163 }
25164 
CopyFrom(const HDF5OutputParameter & from)25165 void HDF5OutputParameter::CopyFrom(const HDF5OutputParameter& from) {
25166 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HDF5OutputParameter)
25167   if (&from == this) return;
25168   Clear();
25169   MergeFrom(from);
25170 }
25171 
IsInitialized() const25172 bool HDF5OutputParameter::IsInitialized() const {
25173   return true;
25174 }
25175 
Swap(HDF5OutputParameter * other)25176 void HDF5OutputParameter::Swap(HDF5OutputParameter* other) {
25177   if (other == this) return;
25178   InternalSwap(other);
25179 }
InternalSwap(HDF5OutputParameter * other)25180 void HDF5OutputParameter::InternalSwap(HDF5OutputParameter* other) {
25181   using std::swap;
25182   file_name_.Swap(&other->file_name_);
25183   swap(_has_bits_[0], other->_has_bits_[0]);
25184   _internal_metadata_.Swap(&other->_internal_metadata_);
25185   swap(_cached_size_, other->_cached_size_);
25186 }
25187 
GetMetadata() const25188 ::google::protobuf::Metadata HDF5OutputParameter::GetMetadata() const {
25189   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
25190   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
25191 }
25192 
25193 
25194 // ===================================================================
25195 
InitAsDefaultInstance()25196 void HingeLossParameter::InitAsDefaultInstance() {
25197 }
25198 #if !defined(_MSC_VER) || _MSC_VER >= 1900
25199 const int HingeLossParameter::kNormFieldNumber;
25200 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
25201 
HingeLossParameter()25202 HingeLossParameter::HingeLossParameter()
25203   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
25204   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
25205     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameter();
25206   }
25207   SharedCtor();
25208   // @@protoc_insertion_point(constructor:opencv_caffe.HingeLossParameter)
25209 }
HingeLossParameter(const HingeLossParameter & from)25210 HingeLossParameter::HingeLossParameter(const HingeLossParameter& from)
25211   : ::google::protobuf::Message(),
25212       _internal_metadata_(NULL),
25213       _has_bits_(from._has_bits_),
25214       _cached_size_(0) {
25215   _internal_metadata_.MergeFrom(from._internal_metadata_);
25216   norm_ = from.norm_;
25217   // @@protoc_insertion_point(copy_constructor:opencv_caffe.HingeLossParameter)
25218 }
25219 
SharedCtor()25220 void HingeLossParameter::SharedCtor() {
25221   _cached_size_ = 0;
25222   norm_ = 1;
25223 }
25224 
~HingeLossParameter()25225 HingeLossParameter::~HingeLossParameter() {
25226   // @@protoc_insertion_point(destructor:opencv_caffe.HingeLossParameter)
25227   SharedDtor();
25228 }
25229 
SharedDtor()25230 void HingeLossParameter::SharedDtor() {
25231 }
25232 
SetCachedSize(int size) const25233 void HingeLossParameter::SetCachedSize(int size) const {
25234   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
25235   _cached_size_ = size;
25236   GOOGLE_SAFE_CONCURRENT_WRITES_END();
25237 }
descriptor()25238 const ::google::protobuf::Descriptor* HingeLossParameter::descriptor() {
25239   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
25240   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
25241 }
25242 
default_instance()25243 const HingeLossParameter& HingeLossParameter::default_instance() {
25244   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsHingeLossParameter();
25245   return *internal_default_instance();
25246 }
25247 
New(::google::protobuf::Arena * arena) const25248 HingeLossParameter* HingeLossParameter::New(::google::protobuf::Arena* arena) const {
25249   HingeLossParameter* n = new HingeLossParameter;
25250   if (arena != NULL) {
25251     arena->Own(n);
25252   }
25253   return n;
25254 }
25255 
Clear()25256 void HingeLossParameter::Clear() {
25257 // @@protoc_insertion_point(message_clear_start:opencv_caffe.HingeLossParameter)
25258   ::google::protobuf::uint32 cached_has_bits = 0;
25259   // Prevent compiler warnings about cached_has_bits being unused
25260   (void) cached_has_bits;
25261 
25262   norm_ = 1;
25263   _has_bits_.Clear();
25264   _internal_metadata_.Clear();
25265 }
25266 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)25267 bool HingeLossParameter::MergePartialFromCodedStream(
25268     ::google::protobuf::io::CodedInputStream* input) {
25269 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
25270   ::google::protobuf::uint32 tag;
25271   // @@protoc_insertion_point(parse_start:opencv_caffe.HingeLossParameter)
25272   for (;;) {
25273     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
25274     tag = p.first;
25275     if (!p.second) goto handle_unusual;
25276     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
25277       // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1];
25278       case 1: {
25279         if (static_cast< ::google::protobuf::uint8>(tag) ==
25280             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
25281           int value;
25282           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25283                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
25284                  input, &value)));
25285           if (::opencv_caffe::HingeLossParameter_Norm_IsValid(value)) {
25286             set_norm(static_cast< ::opencv_caffe::HingeLossParameter_Norm >(value));
25287           } else {
25288             mutable_unknown_fields()->AddVarint(
25289                 1, static_cast< ::google::protobuf::uint64>(value));
25290           }
25291         } else {
25292           goto handle_unusual;
25293         }
25294         break;
25295       }
25296 
25297       default: {
25298       handle_unusual:
25299         if (tag == 0) {
25300           goto success;
25301         }
25302         DO_(::google::protobuf::internal::WireFormat::SkipField(
25303               input, tag, _internal_metadata_.mutable_unknown_fields()));
25304         break;
25305       }
25306     }
25307   }
25308 success:
25309   // @@protoc_insertion_point(parse_success:opencv_caffe.HingeLossParameter)
25310   return true;
25311 failure:
25312   // @@protoc_insertion_point(parse_failure:opencv_caffe.HingeLossParameter)
25313   return false;
25314 #undef DO_
25315 }
25316 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const25317 void HingeLossParameter::SerializeWithCachedSizes(
25318     ::google::protobuf::io::CodedOutputStream* output) const {
25319   // @@protoc_insertion_point(serialize_start:opencv_caffe.HingeLossParameter)
25320   ::google::protobuf::uint32 cached_has_bits = 0;
25321   (void) cached_has_bits;
25322 
25323   cached_has_bits = _has_bits_[0];
25324   // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1];
25325   if (cached_has_bits & 0x00000001u) {
25326     ::google::protobuf::internal::WireFormatLite::WriteEnum(
25327       1, this->norm(), output);
25328   }
25329 
25330   if (_internal_metadata_.have_unknown_fields()) {
25331     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
25332         _internal_metadata_.unknown_fields(), output);
25333   }
25334   // @@protoc_insertion_point(serialize_end:opencv_caffe.HingeLossParameter)
25335 }
25336 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const25337 ::google::protobuf::uint8* HingeLossParameter::InternalSerializeWithCachedSizesToArray(
25338     bool deterministic, ::google::protobuf::uint8* target) const {
25339   (void)deterministic; // Unused
25340   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.HingeLossParameter)
25341   ::google::protobuf::uint32 cached_has_bits = 0;
25342   (void) cached_has_bits;
25343 
25344   cached_has_bits = _has_bits_[0];
25345   // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1];
25346   if (cached_has_bits & 0x00000001u) {
25347     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
25348       1, this->norm(), target);
25349   }
25350 
25351   if (_internal_metadata_.have_unknown_fields()) {
25352     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
25353         _internal_metadata_.unknown_fields(), target);
25354   }
25355   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.HingeLossParameter)
25356   return target;
25357 }
25358 
ByteSizeLong() const25359 size_t HingeLossParameter::ByteSizeLong() const {
25360 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.HingeLossParameter)
25361   size_t total_size = 0;
25362 
25363   if (_internal_metadata_.have_unknown_fields()) {
25364     total_size +=
25365       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
25366         _internal_metadata_.unknown_fields());
25367   }
25368   // optional .opencv_caffe.HingeLossParameter.Norm norm = 1 [default = L1];
25369   if (has_norm()) {
25370     total_size += 1 +
25371       ::google::protobuf::internal::WireFormatLite::EnumSize(this->norm());
25372   }
25373 
25374   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
25375   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
25376   _cached_size_ = cached_size;
25377   GOOGLE_SAFE_CONCURRENT_WRITES_END();
25378   return total_size;
25379 }
25380 
MergeFrom(const::google::protobuf::Message & from)25381 void HingeLossParameter::MergeFrom(const ::google::protobuf::Message& from) {
25382 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.HingeLossParameter)
25383   GOOGLE_DCHECK_NE(&from, this);
25384   const HingeLossParameter* source =
25385       ::google::protobuf::internal::DynamicCastToGenerated<const HingeLossParameter>(
25386           &from);
25387   if (source == NULL) {
25388   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.HingeLossParameter)
25389     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
25390   } else {
25391   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.HingeLossParameter)
25392     MergeFrom(*source);
25393   }
25394 }
25395 
MergeFrom(const HingeLossParameter & from)25396 void HingeLossParameter::MergeFrom(const HingeLossParameter& from) {
25397 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.HingeLossParameter)
25398   GOOGLE_DCHECK_NE(&from, this);
25399   _internal_metadata_.MergeFrom(from._internal_metadata_);
25400   ::google::protobuf::uint32 cached_has_bits = 0;
25401   (void) cached_has_bits;
25402 
25403   if (from.has_norm()) {
25404     set_norm(from.norm());
25405   }
25406 }
25407 
CopyFrom(const::google::protobuf::Message & from)25408 void HingeLossParameter::CopyFrom(const ::google::protobuf::Message& from) {
25409 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.HingeLossParameter)
25410   if (&from == this) return;
25411   Clear();
25412   MergeFrom(from);
25413 }
25414 
CopyFrom(const HingeLossParameter & from)25415 void HingeLossParameter::CopyFrom(const HingeLossParameter& from) {
25416 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.HingeLossParameter)
25417   if (&from == this) return;
25418   Clear();
25419   MergeFrom(from);
25420 }
25421 
IsInitialized() const25422 bool HingeLossParameter::IsInitialized() const {
25423   return true;
25424 }
25425 
Swap(HingeLossParameter * other)25426 void HingeLossParameter::Swap(HingeLossParameter* other) {
25427   if (other == this) return;
25428   InternalSwap(other);
25429 }
InternalSwap(HingeLossParameter * other)25430 void HingeLossParameter::InternalSwap(HingeLossParameter* other) {
25431   using std::swap;
25432   swap(norm_, other->norm_);
25433   swap(_has_bits_[0], other->_has_bits_[0]);
25434   _internal_metadata_.Swap(&other->_internal_metadata_);
25435   swap(_cached_size_, other->_cached_size_);
25436 }
25437 
GetMetadata() const25438 ::google::protobuf::Metadata HingeLossParameter::GetMetadata() const {
25439   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
25440   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
25441 }
25442 
25443 
25444 // ===================================================================
25445 
InitAsDefaultInstance()25446 void ImageDataParameter::InitAsDefaultInstance() {
25447 }
25448 #if !defined(_MSC_VER) || _MSC_VER >= 1900
25449 const int ImageDataParameter::kSourceFieldNumber;
25450 const int ImageDataParameter::kBatchSizeFieldNumber;
25451 const int ImageDataParameter::kRandSkipFieldNumber;
25452 const int ImageDataParameter::kShuffleFieldNumber;
25453 const int ImageDataParameter::kNewHeightFieldNumber;
25454 const int ImageDataParameter::kNewWidthFieldNumber;
25455 const int ImageDataParameter::kIsColorFieldNumber;
25456 const int ImageDataParameter::kScaleFieldNumber;
25457 const int ImageDataParameter::kMeanFileFieldNumber;
25458 const int ImageDataParameter::kCropSizeFieldNumber;
25459 const int ImageDataParameter::kMirrorFieldNumber;
25460 const int ImageDataParameter::kRootFolderFieldNumber;
25461 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
25462 
ImageDataParameter()25463 ImageDataParameter::ImageDataParameter()
25464   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
25465   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
25466     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameter();
25467   }
25468   SharedCtor();
25469   // @@protoc_insertion_point(constructor:opencv_caffe.ImageDataParameter)
25470 }
ImageDataParameter(const ImageDataParameter & from)25471 ImageDataParameter::ImageDataParameter(const ImageDataParameter& from)
25472   : ::google::protobuf::Message(),
25473       _internal_metadata_(NULL),
25474       _has_bits_(from._has_bits_),
25475       _cached_size_(0) {
25476   _internal_metadata_.MergeFrom(from._internal_metadata_);
25477   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25478   if (from.has_source()) {
25479     source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
25480   }
25481   mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25482   if (from.has_mean_file()) {
25483     mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_);
25484   }
25485   root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25486   if (from.has_root_folder()) {
25487     root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_);
25488   }
25489   ::memcpy(&crop_size_, &from.crop_size_,
25490     static_cast<size_t>(reinterpret_cast<char*>(&batch_size_) -
25491     reinterpret_cast<char*>(&crop_size_)) + sizeof(batch_size_));
25492   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ImageDataParameter)
25493 }
25494 
SharedCtor()25495 void ImageDataParameter::SharedCtor() {
25496   _cached_size_ = 0;
25497   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25498   mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25499   root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25500   ::memset(&crop_size_, 0, static_cast<size_t>(
25501       reinterpret_cast<char*>(&new_width_) -
25502       reinterpret_cast<char*>(&crop_size_)) + sizeof(new_width_));
25503   is_color_ = true;
25504   scale_ = 1;
25505   batch_size_ = 1u;
25506 }
25507 
~ImageDataParameter()25508 ImageDataParameter::~ImageDataParameter() {
25509   // @@protoc_insertion_point(destructor:opencv_caffe.ImageDataParameter)
25510   SharedDtor();
25511 }
25512 
SharedDtor()25513 void ImageDataParameter::SharedDtor() {
25514   source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25515   mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25516   root_folder_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
25517 }
25518 
SetCachedSize(int size) const25519 void ImageDataParameter::SetCachedSize(int size) const {
25520   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
25521   _cached_size_ = size;
25522   GOOGLE_SAFE_CONCURRENT_WRITES_END();
25523 }
descriptor()25524 const ::google::protobuf::Descriptor* ImageDataParameter::descriptor() {
25525   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
25526   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
25527 }
25528 
default_instance()25529 const ImageDataParameter& ImageDataParameter::default_instance() {
25530   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsImageDataParameter();
25531   return *internal_default_instance();
25532 }
25533 
New(::google::protobuf::Arena * arena) const25534 ImageDataParameter* ImageDataParameter::New(::google::protobuf::Arena* arena) const {
25535   ImageDataParameter* n = new ImageDataParameter;
25536   if (arena != NULL) {
25537     arena->Own(n);
25538   }
25539   return n;
25540 }
25541 
Clear()25542 void ImageDataParameter::Clear() {
25543 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ImageDataParameter)
25544   ::google::protobuf::uint32 cached_has_bits = 0;
25545   // Prevent compiler warnings about cached_has_bits being unused
25546   (void) cached_has_bits;
25547 
25548   cached_has_bits = _has_bits_[0];
25549   if (cached_has_bits & 7u) {
25550     if (cached_has_bits & 0x00000001u) {
25551       GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
25552       (*source_.UnsafeRawStringPointer())->clear();
25553     }
25554     if (cached_has_bits & 0x00000002u) {
25555       GOOGLE_DCHECK(!mean_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
25556       (*mean_file_.UnsafeRawStringPointer())->clear();
25557     }
25558     if (cached_has_bits & 0x00000004u) {
25559       GOOGLE_DCHECK(!root_folder_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
25560       (*root_folder_.UnsafeRawStringPointer())->clear();
25561     }
25562   }
25563   if (cached_has_bits & 248u) {
25564     ::memset(&crop_size_, 0, static_cast<size_t>(
25565         reinterpret_cast<char*>(&new_height_) -
25566         reinterpret_cast<char*>(&crop_size_)) + sizeof(new_height_));
25567   }
25568   if (cached_has_bits & 3840u) {
25569     new_width_ = 0u;
25570     is_color_ = true;
25571     scale_ = 1;
25572     batch_size_ = 1u;
25573   }
25574   _has_bits_.Clear();
25575   _internal_metadata_.Clear();
25576 }
25577 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)25578 bool ImageDataParameter::MergePartialFromCodedStream(
25579     ::google::protobuf::io::CodedInputStream* input) {
25580 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
25581   ::google::protobuf::uint32 tag;
25582   // @@protoc_insertion_point(parse_start:opencv_caffe.ImageDataParameter)
25583   for (;;) {
25584     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
25585     tag = p.first;
25586     if (!p.second) goto handle_unusual;
25587     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
25588       // optional string source = 1;
25589       case 1: {
25590         if (static_cast< ::google::protobuf::uint8>(tag) ==
25591             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
25592           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
25593                 input, this->mutable_source()));
25594           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25595             this->source().data(), static_cast<int>(this->source().length()),
25596             ::google::protobuf::internal::WireFormat::PARSE,
25597             "opencv_caffe.ImageDataParameter.source");
25598         } else {
25599           goto handle_unusual;
25600         }
25601         break;
25602       }
25603 
25604       // optional float scale = 2 [default = 1];
25605       case 2: {
25606         if (static_cast< ::google::protobuf::uint8>(tag) ==
25607             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
25608           set_has_scale();
25609           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25610                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
25611                  input, &scale_)));
25612         } else {
25613           goto handle_unusual;
25614         }
25615         break;
25616       }
25617 
25618       // optional string mean_file = 3;
25619       case 3: {
25620         if (static_cast< ::google::protobuf::uint8>(tag) ==
25621             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
25622           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
25623                 input, this->mutable_mean_file()));
25624           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25625             this->mean_file().data(), static_cast<int>(this->mean_file().length()),
25626             ::google::protobuf::internal::WireFormat::PARSE,
25627             "opencv_caffe.ImageDataParameter.mean_file");
25628         } else {
25629           goto handle_unusual;
25630         }
25631         break;
25632       }
25633 
25634       // optional uint32 batch_size = 4 [default = 1];
25635       case 4: {
25636         if (static_cast< ::google::protobuf::uint8>(tag) ==
25637             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
25638           set_has_batch_size();
25639           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25640                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
25641                  input, &batch_size_)));
25642         } else {
25643           goto handle_unusual;
25644         }
25645         break;
25646       }
25647 
25648       // optional uint32 crop_size = 5 [default = 0];
25649       case 5: {
25650         if (static_cast< ::google::protobuf::uint8>(tag) ==
25651             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
25652           set_has_crop_size();
25653           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25654                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
25655                  input, &crop_size_)));
25656         } else {
25657           goto handle_unusual;
25658         }
25659         break;
25660       }
25661 
25662       // optional bool mirror = 6 [default = false];
25663       case 6: {
25664         if (static_cast< ::google::protobuf::uint8>(tag) ==
25665             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
25666           set_has_mirror();
25667           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25668                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
25669                  input, &mirror_)));
25670         } else {
25671           goto handle_unusual;
25672         }
25673         break;
25674       }
25675 
25676       // optional uint32 rand_skip = 7 [default = 0];
25677       case 7: {
25678         if (static_cast< ::google::protobuf::uint8>(tag) ==
25679             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
25680           set_has_rand_skip();
25681           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25682                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
25683                  input, &rand_skip_)));
25684         } else {
25685           goto handle_unusual;
25686         }
25687         break;
25688       }
25689 
25690       // optional bool shuffle = 8 [default = false];
25691       case 8: {
25692         if (static_cast< ::google::protobuf::uint8>(tag) ==
25693             static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
25694           set_has_shuffle();
25695           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25696                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
25697                  input, &shuffle_)));
25698         } else {
25699           goto handle_unusual;
25700         }
25701         break;
25702       }
25703 
25704       // optional uint32 new_height = 9 [default = 0];
25705       case 9: {
25706         if (static_cast< ::google::protobuf::uint8>(tag) ==
25707             static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
25708           set_has_new_height();
25709           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25710                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
25711                  input, &new_height_)));
25712         } else {
25713           goto handle_unusual;
25714         }
25715         break;
25716       }
25717 
25718       // optional uint32 new_width = 10 [default = 0];
25719       case 10: {
25720         if (static_cast< ::google::protobuf::uint8>(tag) ==
25721             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
25722           set_has_new_width();
25723           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25724                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
25725                  input, &new_width_)));
25726         } else {
25727           goto handle_unusual;
25728         }
25729         break;
25730       }
25731 
25732       // optional bool is_color = 11 [default = true];
25733       case 11: {
25734         if (static_cast< ::google::protobuf::uint8>(tag) ==
25735             static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
25736           set_has_is_color();
25737           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
25738                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
25739                  input, &is_color_)));
25740         } else {
25741           goto handle_unusual;
25742         }
25743         break;
25744       }
25745 
25746       // optional string root_folder = 12 [default = ""];
25747       case 12: {
25748         if (static_cast< ::google::protobuf::uint8>(tag) ==
25749             static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
25750           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
25751                 input, this->mutable_root_folder()));
25752           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25753             this->root_folder().data(), static_cast<int>(this->root_folder().length()),
25754             ::google::protobuf::internal::WireFormat::PARSE,
25755             "opencv_caffe.ImageDataParameter.root_folder");
25756         } else {
25757           goto handle_unusual;
25758         }
25759         break;
25760       }
25761 
25762       default: {
25763       handle_unusual:
25764         if (tag == 0) {
25765           goto success;
25766         }
25767         DO_(::google::protobuf::internal::WireFormat::SkipField(
25768               input, tag, _internal_metadata_.mutable_unknown_fields()));
25769         break;
25770       }
25771     }
25772   }
25773 success:
25774   // @@protoc_insertion_point(parse_success:opencv_caffe.ImageDataParameter)
25775   return true;
25776 failure:
25777   // @@protoc_insertion_point(parse_failure:opencv_caffe.ImageDataParameter)
25778   return false;
25779 #undef DO_
25780 }
25781 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const25782 void ImageDataParameter::SerializeWithCachedSizes(
25783     ::google::protobuf::io::CodedOutputStream* output) const {
25784   // @@protoc_insertion_point(serialize_start:opencv_caffe.ImageDataParameter)
25785   ::google::protobuf::uint32 cached_has_bits = 0;
25786   (void) cached_has_bits;
25787 
25788   cached_has_bits = _has_bits_[0];
25789   // optional string source = 1;
25790   if (cached_has_bits & 0x00000001u) {
25791     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25792       this->source().data(), static_cast<int>(this->source().length()),
25793       ::google::protobuf::internal::WireFormat::SERIALIZE,
25794       "opencv_caffe.ImageDataParameter.source");
25795     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
25796       1, this->source(), output);
25797   }
25798 
25799   // optional float scale = 2 [default = 1];
25800   if (cached_has_bits & 0x00000400u) {
25801     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output);
25802   }
25803 
25804   // optional string mean_file = 3;
25805   if (cached_has_bits & 0x00000002u) {
25806     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25807       this->mean_file().data(), static_cast<int>(this->mean_file().length()),
25808       ::google::protobuf::internal::WireFormat::SERIALIZE,
25809       "opencv_caffe.ImageDataParameter.mean_file");
25810     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
25811       3, this->mean_file(), output);
25812   }
25813 
25814   // optional uint32 batch_size = 4 [default = 1];
25815   if (cached_has_bits & 0x00000800u) {
25816     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output);
25817   }
25818 
25819   // optional uint32 crop_size = 5 [default = 0];
25820   if (cached_has_bits & 0x00000008u) {
25821     ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output);
25822   }
25823 
25824   // optional bool mirror = 6 [default = false];
25825   if (cached_has_bits & 0x00000040u) {
25826     ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output);
25827   }
25828 
25829   // optional uint32 rand_skip = 7 [default = 0];
25830   if (cached_has_bits & 0x00000010u) {
25831     ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->rand_skip(), output);
25832   }
25833 
25834   // optional bool shuffle = 8 [default = false];
25835   if (cached_has_bits & 0x00000020u) {
25836     ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->shuffle(), output);
25837   }
25838 
25839   // optional uint32 new_height = 9 [default = 0];
25840   if (cached_has_bits & 0x00000080u) {
25841     ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->new_height(), output);
25842   }
25843 
25844   // optional uint32 new_width = 10 [default = 0];
25845   if (cached_has_bits & 0x00000100u) {
25846     ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->new_width(), output);
25847   }
25848 
25849   // optional bool is_color = 11 [default = true];
25850   if (cached_has_bits & 0x00000200u) {
25851     ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->is_color(), output);
25852   }
25853 
25854   // optional string root_folder = 12 [default = ""];
25855   if (cached_has_bits & 0x00000004u) {
25856     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25857       this->root_folder().data(), static_cast<int>(this->root_folder().length()),
25858       ::google::protobuf::internal::WireFormat::SERIALIZE,
25859       "opencv_caffe.ImageDataParameter.root_folder");
25860     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
25861       12, this->root_folder(), output);
25862   }
25863 
25864   if (_internal_metadata_.have_unknown_fields()) {
25865     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
25866         _internal_metadata_.unknown_fields(), output);
25867   }
25868   // @@protoc_insertion_point(serialize_end:opencv_caffe.ImageDataParameter)
25869 }
25870 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const25871 ::google::protobuf::uint8* ImageDataParameter::InternalSerializeWithCachedSizesToArray(
25872     bool deterministic, ::google::protobuf::uint8* target) const {
25873   (void)deterministic; // Unused
25874   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ImageDataParameter)
25875   ::google::protobuf::uint32 cached_has_bits = 0;
25876   (void) cached_has_bits;
25877 
25878   cached_has_bits = _has_bits_[0];
25879   // optional string source = 1;
25880   if (cached_has_bits & 0x00000001u) {
25881     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25882       this->source().data(), static_cast<int>(this->source().length()),
25883       ::google::protobuf::internal::WireFormat::SERIALIZE,
25884       "opencv_caffe.ImageDataParameter.source");
25885     target =
25886       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
25887         1, this->source(), target);
25888   }
25889 
25890   // optional float scale = 2 [default = 1];
25891   if (cached_has_bits & 0x00000400u) {
25892     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target);
25893   }
25894 
25895   // optional string mean_file = 3;
25896   if (cached_has_bits & 0x00000002u) {
25897     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25898       this->mean_file().data(), static_cast<int>(this->mean_file().length()),
25899       ::google::protobuf::internal::WireFormat::SERIALIZE,
25900       "opencv_caffe.ImageDataParameter.mean_file");
25901     target =
25902       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
25903         3, this->mean_file(), target);
25904   }
25905 
25906   // optional uint32 batch_size = 4 [default = 1];
25907   if (cached_has_bits & 0x00000800u) {
25908     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target);
25909   }
25910 
25911   // optional uint32 crop_size = 5 [default = 0];
25912   if (cached_has_bits & 0x00000008u) {
25913     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target);
25914   }
25915 
25916   // optional bool mirror = 6 [default = false];
25917   if (cached_has_bits & 0x00000040u) {
25918     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target);
25919   }
25920 
25921   // optional uint32 rand_skip = 7 [default = 0];
25922   if (cached_has_bits & 0x00000010u) {
25923     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->rand_skip(), target);
25924   }
25925 
25926   // optional bool shuffle = 8 [default = false];
25927   if (cached_has_bits & 0x00000020u) {
25928     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->shuffle(), target);
25929   }
25930 
25931   // optional uint32 new_height = 9 [default = 0];
25932   if (cached_has_bits & 0x00000080u) {
25933     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->new_height(), target);
25934   }
25935 
25936   // optional uint32 new_width = 10 [default = 0];
25937   if (cached_has_bits & 0x00000100u) {
25938     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->new_width(), target);
25939   }
25940 
25941   // optional bool is_color = 11 [default = true];
25942   if (cached_has_bits & 0x00000200u) {
25943     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->is_color(), target);
25944   }
25945 
25946   // optional string root_folder = 12 [default = ""];
25947   if (cached_has_bits & 0x00000004u) {
25948     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
25949       this->root_folder().data(), static_cast<int>(this->root_folder().length()),
25950       ::google::protobuf::internal::WireFormat::SERIALIZE,
25951       "opencv_caffe.ImageDataParameter.root_folder");
25952     target =
25953       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
25954         12, this->root_folder(), target);
25955   }
25956 
25957   if (_internal_metadata_.have_unknown_fields()) {
25958     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
25959         _internal_metadata_.unknown_fields(), target);
25960   }
25961   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ImageDataParameter)
25962   return target;
25963 }
25964 
ByteSizeLong() const25965 size_t ImageDataParameter::ByteSizeLong() const {
25966 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ImageDataParameter)
25967   size_t total_size = 0;
25968 
25969   if (_internal_metadata_.have_unknown_fields()) {
25970     total_size +=
25971       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
25972         _internal_metadata_.unknown_fields());
25973   }
25974   if (_has_bits_[0 / 32] & 255u) {
25975     // optional string source = 1;
25976     if (has_source()) {
25977       total_size += 1 +
25978         ::google::protobuf::internal::WireFormatLite::StringSize(
25979           this->source());
25980     }
25981 
25982     // optional string mean_file = 3;
25983     if (has_mean_file()) {
25984       total_size += 1 +
25985         ::google::protobuf::internal::WireFormatLite::StringSize(
25986           this->mean_file());
25987     }
25988 
25989     // optional string root_folder = 12 [default = ""];
25990     if (has_root_folder()) {
25991       total_size += 1 +
25992         ::google::protobuf::internal::WireFormatLite::StringSize(
25993           this->root_folder());
25994     }
25995 
25996     // optional uint32 crop_size = 5 [default = 0];
25997     if (has_crop_size()) {
25998       total_size += 1 +
25999         ::google::protobuf::internal::WireFormatLite::UInt32Size(
26000           this->crop_size());
26001     }
26002 
26003     // optional uint32 rand_skip = 7 [default = 0];
26004     if (has_rand_skip()) {
26005       total_size += 1 +
26006         ::google::protobuf::internal::WireFormatLite::UInt32Size(
26007           this->rand_skip());
26008     }
26009 
26010     // optional bool shuffle = 8 [default = false];
26011     if (has_shuffle()) {
26012       total_size += 1 + 1;
26013     }
26014 
26015     // optional bool mirror = 6 [default = false];
26016     if (has_mirror()) {
26017       total_size += 1 + 1;
26018     }
26019 
26020     // optional uint32 new_height = 9 [default = 0];
26021     if (has_new_height()) {
26022       total_size += 1 +
26023         ::google::protobuf::internal::WireFormatLite::UInt32Size(
26024           this->new_height());
26025     }
26026 
26027   }
26028   if (_has_bits_[8 / 32] & 3840u) {
26029     // optional uint32 new_width = 10 [default = 0];
26030     if (has_new_width()) {
26031       total_size += 1 +
26032         ::google::protobuf::internal::WireFormatLite::UInt32Size(
26033           this->new_width());
26034     }
26035 
26036     // optional bool is_color = 11 [default = true];
26037     if (has_is_color()) {
26038       total_size += 1 + 1;
26039     }
26040 
26041     // optional float scale = 2 [default = 1];
26042     if (has_scale()) {
26043       total_size += 1 + 4;
26044     }
26045 
26046     // optional uint32 batch_size = 4 [default = 1];
26047     if (has_batch_size()) {
26048       total_size += 1 +
26049         ::google::protobuf::internal::WireFormatLite::UInt32Size(
26050           this->batch_size());
26051     }
26052 
26053   }
26054   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
26055   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
26056   _cached_size_ = cached_size;
26057   GOOGLE_SAFE_CONCURRENT_WRITES_END();
26058   return total_size;
26059 }
26060 
MergeFrom(const::google::protobuf::Message & from)26061 void ImageDataParameter::MergeFrom(const ::google::protobuf::Message& from) {
26062 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ImageDataParameter)
26063   GOOGLE_DCHECK_NE(&from, this);
26064   const ImageDataParameter* source =
26065       ::google::protobuf::internal::DynamicCastToGenerated<const ImageDataParameter>(
26066           &from);
26067   if (source == NULL) {
26068   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ImageDataParameter)
26069     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
26070   } else {
26071   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ImageDataParameter)
26072     MergeFrom(*source);
26073   }
26074 }
26075 
MergeFrom(const ImageDataParameter & from)26076 void ImageDataParameter::MergeFrom(const ImageDataParameter& from) {
26077 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ImageDataParameter)
26078   GOOGLE_DCHECK_NE(&from, this);
26079   _internal_metadata_.MergeFrom(from._internal_metadata_);
26080   ::google::protobuf::uint32 cached_has_bits = 0;
26081   (void) cached_has_bits;
26082 
26083   cached_has_bits = from._has_bits_[0];
26084   if (cached_has_bits & 255u) {
26085     if (cached_has_bits & 0x00000001u) {
26086       set_has_source();
26087       source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
26088     }
26089     if (cached_has_bits & 0x00000002u) {
26090       set_has_mean_file();
26091       mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_);
26092     }
26093     if (cached_has_bits & 0x00000004u) {
26094       set_has_root_folder();
26095       root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_);
26096     }
26097     if (cached_has_bits & 0x00000008u) {
26098       crop_size_ = from.crop_size_;
26099     }
26100     if (cached_has_bits & 0x00000010u) {
26101       rand_skip_ = from.rand_skip_;
26102     }
26103     if (cached_has_bits & 0x00000020u) {
26104       shuffle_ = from.shuffle_;
26105     }
26106     if (cached_has_bits & 0x00000040u) {
26107       mirror_ = from.mirror_;
26108     }
26109     if (cached_has_bits & 0x00000080u) {
26110       new_height_ = from.new_height_;
26111     }
26112     _has_bits_[0] |= cached_has_bits;
26113   }
26114   if (cached_has_bits & 3840u) {
26115     if (cached_has_bits & 0x00000100u) {
26116       new_width_ = from.new_width_;
26117     }
26118     if (cached_has_bits & 0x00000200u) {
26119       is_color_ = from.is_color_;
26120     }
26121     if (cached_has_bits & 0x00000400u) {
26122       scale_ = from.scale_;
26123     }
26124     if (cached_has_bits & 0x00000800u) {
26125       batch_size_ = from.batch_size_;
26126     }
26127     _has_bits_[0] |= cached_has_bits;
26128   }
26129 }
26130 
CopyFrom(const::google::protobuf::Message & from)26131 void ImageDataParameter::CopyFrom(const ::google::protobuf::Message& from) {
26132 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ImageDataParameter)
26133   if (&from == this) return;
26134   Clear();
26135   MergeFrom(from);
26136 }
26137 
CopyFrom(const ImageDataParameter & from)26138 void ImageDataParameter::CopyFrom(const ImageDataParameter& from) {
26139 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ImageDataParameter)
26140   if (&from == this) return;
26141   Clear();
26142   MergeFrom(from);
26143 }
26144 
IsInitialized() const26145 bool ImageDataParameter::IsInitialized() const {
26146   return true;
26147 }
26148 
Swap(ImageDataParameter * other)26149 void ImageDataParameter::Swap(ImageDataParameter* other) {
26150   if (other == this) return;
26151   InternalSwap(other);
26152 }
InternalSwap(ImageDataParameter * other)26153 void ImageDataParameter::InternalSwap(ImageDataParameter* other) {
26154   using std::swap;
26155   source_.Swap(&other->source_);
26156   mean_file_.Swap(&other->mean_file_);
26157   root_folder_.Swap(&other->root_folder_);
26158   swap(crop_size_, other->crop_size_);
26159   swap(rand_skip_, other->rand_skip_);
26160   swap(shuffle_, other->shuffle_);
26161   swap(mirror_, other->mirror_);
26162   swap(new_height_, other->new_height_);
26163   swap(new_width_, other->new_width_);
26164   swap(is_color_, other->is_color_);
26165   swap(scale_, other->scale_);
26166   swap(batch_size_, other->batch_size_);
26167   swap(_has_bits_[0], other->_has_bits_[0]);
26168   _internal_metadata_.Swap(&other->_internal_metadata_);
26169   swap(_cached_size_, other->_cached_size_);
26170 }
26171 
GetMetadata() const26172 ::google::protobuf::Metadata ImageDataParameter::GetMetadata() const {
26173   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
26174   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
26175 }
26176 
26177 
26178 // ===================================================================
26179 
InitAsDefaultInstance()26180 void InfogainLossParameter::InitAsDefaultInstance() {
26181 }
26182 #if !defined(_MSC_VER) || _MSC_VER >= 1900
26183 const int InfogainLossParameter::kSourceFieldNumber;
26184 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
26185 
InfogainLossParameter()26186 InfogainLossParameter::InfogainLossParameter()
26187   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
26188   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
26189     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameter();
26190   }
26191   SharedCtor();
26192   // @@protoc_insertion_point(constructor:opencv_caffe.InfogainLossParameter)
26193 }
InfogainLossParameter(const InfogainLossParameter & from)26194 InfogainLossParameter::InfogainLossParameter(const InfogainLossParameter& from)
26195   : ::google::protobuf::Message(),
26196       _internal_metadata_(NULL),
26197       _has_bits_(from._has_bits_),
26198       _cached_size_(0) {
26199   _internal_metadata_.MergeFrom(from._internal_metadata_);
26200   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
26201   if (from.has_source()) {
26202     source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
26203   }
26204   // @@protoc_insertion_point(copy_constructor:opencv_caffe.InfogainLossParameter)
26205 }
26206 
SharedCtor()26207 void InfogainLossParameter::SharedCtor() {
26208   _cached_size_ = 0;
26209   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
26210 }
26211 
~InfogainLossParameter()26212 InfogainLossParameter::~InfogainLossParameter() {
26213   // @@protoc_insertion_point(destructor:opencv_caffe.InfogainLossParameter)
26214   SharedDtor();
26215 }
26216 
SharedDtor()26217 void InfogainLossParameter::SharedDtor() {
26218   source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
26219 }
26220 
SetCachedSize(int size) const26221 void InfogainLossParameter::SetCachedSize(int size) const {
26222   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
26223   _cached_size_ = size;
26224   GOOGLE_SAFE_CONCURRENT_WRITES_END();
26225 }
descriptor()26226 const ::google::protobuf::Descriptor* InfogainLossParameter::descriptor() {
26227   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
26228   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
26229 }
26230 
default_instance()26231 const InfogainLossParameter& InfogainLossParameter::default_instance() {
26232   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInfogainLossParameter();
26233   return *internal_default_instance();
26234 }
26235 
New(::google::protobuf::Arena * arena) const26236 InfogainLossParameter* InfogainLossParameter::New(::google::protobuf::Arena* arena) const {
26237   InfogainLossParameter* n = new InfogainLossParameter;
26238   if (arena != NULL) {
26239     arena->Own(n);
26240   }
26241   return n;
26242 }
26243 
Clear()26244 void InfogainLossParameter::Clear() {
26245 // @@protoc_insertion_point(message_clear_start:opencv_caffe.InfogainLossParameter)
26246   ::google::protobuf::uint32 cached_has_bits = 0;
26247   // Prevent compiler warnings about cached_has_bits being unused
26248   (void) cached_has_bits;
26249 
26250   cached_has_bits = _has_bits_[0];
26251   if (cached_has_bits & 0x00000001u) {
26252     GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
26253     (*source_.UnsafeRawStringPointer())->clear();
26254   }
26255   _has_bits_.Clear();
26256   _internal_metadata_.Clear();
26257 }
26258 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)26259 bool InfogainLossParameter::MergePartialFromCodedStream(
26260     ::google::protobuf::io::CodedInputStream* input) {
26261 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
26262   ::google::protobuf::uint32 tag;
26263   // @@protoc_insertion_point(parse_start:opencv_caffe.InfogainLossParameter)
26264   for (;;) {
26265     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
26266     tag = p.first;
26267     if (!p.second) goto handle_unusual;
26268     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
26269       // optional string source = 1;
26270       case 1: {
26271         if (static_cast< ::google::protobuf::uint8>(tag) ==
26272             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
26273           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
26274                 input, this->mutable_source()));
26275           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
26276             this->source().data(), static_cast<int>(this->source().length()),
26277             ::google::protobuf::internal::WireFormat::PARSE,
26278             "opencv_caffe.InfogainLossParameter.source");
26279         } else {
26280           goto handle_unusual;
26281         }
26282         break;
26283       }
26284 
26285       default: {
26286       handle_unusual:
26287         if (tag == 0) {
26288           goto success;
26289         }
26290         DO_(::google::protobuf::internal::WireFormat::SkipField(
26291               input, tag, _internal_metadata_.mutable_unknown_fields()));
26292         break;
26293       }
26294     }
26295   }
26296 success:
26297   // @@protoc_insertion_point(parse_success:opencv_caffe.InfogainLossParameter)
26298   return true;
26299 failure:
26300   // @@protoc_insertion_point(parse_failure:opencv_caffe.InfogainLossParameter)
26301   return false;
26302 #undef DO_
26303 }
26304 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const26305 void InfogainLossParameter::SerializeWithCachedSizes(
26306     ::google::protobuf::io::CodedOutputStream* output) const {
26307   // @@protoc_insertion_point(serialize_start:opencv_caffe.InfogainLossParameter)
26308   ::google::protobuf::uint32 cached_has_bits = 0;
26309   (void) cached_has_bits;
26310 
26311   cached_has_bits = _has_bits_[0];
26312   // optional string source = 1;
26313   if (cached_has_bits & 0x00000001u) {
26314     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
26315       this->source().data(), static_cast<int>(this->source().length()),
26316       ::google::protobuf::internal::WireFormat::SERIALIZE,
26317       "opencv_caffe.InfogainLossParameter.source");
26318     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
26319       1, this->source(), output);
26320   }
26321 
26322   if (_internal_metadata_.have_unknown_fields()) {
26323     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
26324         _internal_metadata_.unknown_fields(), output);
26325   }
26326   // @@protoc_insertion_point(serialize_end:opencv_caffe.InfogainLossParameter)
26327 }
26328 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const26329 ::google::protobuf::uint8* InfogainLossParameter::InternalSerializeWithCachedSizesToArray(
26330     bool deterministic, ::google::protobuf::uint8* target) const {
26331   (void)deterministic; // Unused
26332   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InfogainLossParameter)
26333   ::google::protobuf::uint32 cached_has_bits = 0;
26334   (void) cached_has_bits;
26335 
26336   cached_has_bits = _has_bits_[0];
26337   // optional string source = 1;
26338   if (cached_has_bits & 0x00000001u) {
26339     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
26340       this->source().data(), static_cast<int>(this->source().length()),
26341       ::google::protobuf::internal::WireFormat::SERIALIZE,
26342       "opencv_caffe.InfogainLossParameter.source");
26343     target =
26344       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
26345         1, this->source(), target);
26346   }
26347 
26348   if (_internal_metadata_.have_unknown_fields()) {
26349     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
26350         _internal_metadata_.unknown_fields(), target);
26351   }
26352   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InfogainLossParameter)
26353   return target;
26354 }
26355 
ByteSizeLong() const26356 size_t InfogainLossParameter::ByteSizeLong() const {
26357 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InfogainLossParameter)
26358   size_t total_size = 0;
26359 
26360   if (_internal_metadata_.have_unknown_fields()) {
26361     total_size +=
26362       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
26363         _internal_metadata_.unknown_fields());
26364   }
26365   // optional string source = 1;
26366   if (has_source()) {
26367     total_size += 1 +
26368       ::google::protobuf::internal::WireFormatLite::StringSize(
26369         this->source());
26370   }
26371 
26372   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
26373   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
26374   _cached_size_ = cached_size;
26375   GOOGLE_SAFE_CONCURRENT_WRITES_END();
26376   return total_size;
26377 }
26378 
MergeFrom(const::google::protobuf::Message & from)26379 void InfogainLossParameter::MergeFrom(const ::google::protobuf::Message& from) {
26380 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InfogainLossParameter)
26381   GOOGLE_DCHECK_NE(&from, this);
26382   const InfogainLossParameter* source =
26383       ::google::protobuf::internal::DynamicCastToGenerated<const InfogainLossParameter>(
26384           &from);
26385   if (source == NULL) {
26386   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InfogainLossParameter)
26387     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
26388   } else {
26389   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InfogainLossParameter)
26390     MergeFrom(*source);
26391   }
26392 }
26393 
MergeFrom(const InfogainLossParameter & from)26394 void InfogainLossParameter::MergeFrom(const InfogainLossParameter& from) {
26395 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InfogainLossParameter)
26396   GOOGLE_DCHECK_NE(&from, this);
26397   _internal_metadata_.MergeFrom(from._internal_metadata_);
26398   ::google::protobuf::uint32 cached_has_bits = 0;
26399   (void) cached_has_bits;
26400 
26401   if (from.has_source()) {
26402     set_has_source();
26403     source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
26404   }
26405 }
26406 
CopyFrom(const::google::protobuf::Message & from)26407 void InfogainLossParameter::CopyFrom(const ::google::protobuf::Message& from) {
26408 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InfogainLossParameter)
26409   if (&from == this) return;
26410   Clear();
26411   MergeFrom(from);
26412 }
26413 
CopyFrom(const InfogainLossParameter & from)26414 void InfogainLossParameter::CopyFrom(const InfogainLossParameter& from) {
26415 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InfogainLossParameter)
26416   if (&from == this) return;
26417   Clear();
26418   MergeFrom(from);
26419 }
26420 
IsInitialized() const26421 bool InfogainLossParameter::IsInitialized() const {
26422   return true;
26423 }
26424 
Swap(InfogainLossParameter * other)26425 void InfogainLossParameter::Swap(InfogainLossParameter* other) {
26426   if (other == this) return;
26427   InternalSwap(other);
26428 }
InternalSwap(InfogainLossParameter * other)26429 void InfogainLossParameter::InternalSwap(InfogainLossParameter* other) {
26430   using std::swap;
26431   source_.Swap(&other->source_);
26432   swap(_has_bits_[0], other->_has_bits_[0]);
26433   _internal_metadata_.Swap(&other->_internal_metadata_);
26434   swap(_cached_size_, other->_cached_size_);
26435 }
26436 
GetMetadata() const26437 ::google::protobuf::Metadata InfogainLossParameter::GetMetadata() const {
26438   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
26439   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
26440 }
26441 
26442 
26443 // ===================================================================
26444 
InitAsDefaultInstance()26445 void InnerProductParameter::InitAsDefaultInstance() {
26446   ::opencv_caffe::_InnerProductParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
26447       ::opencv_caffe::FillerParameter::internal_default_instance());
26448   ::opencv_caffe::_InnerProductParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
26449       ::opencv_caffe::FillerParameter::internal_default_instance());
26450 }
26451 #if !defined(_MSC_VER) || _MSC_VER >= 1900
26452 const int InnerProductParameter::kNumOutputFieldNumber;
26453 const int InnerProductParameter::kBiasTermFieldNumber;
26454 const int InnerProductParameter::kWeightFillerFieldNumber;
26455 const int InnerProductParameter::kBiasFillerFieldNumber;
26456 const int InnerProductParameter::kAxisFieldNumber;
26457 const int InnerProductParameter::kTransposeFieldNumber;
26458 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
26459 
InnerProductParameter()26460 InnerProductParameter::InnerProductParameter()
26461   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
26462   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
26463     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameter();
26464   }
26465   SharedCtor();
26466   // @@protoc_insertion_point(constructor:opencv_caffe.InnerProductParameter)
26467 }
InnerProductParameter(const InnerProductParameter & from)26468 InnerProductParameter::InnerProductParameter(const InnerProductParameter& from)
26469   : ::google::protobuf::Message(),
26470       _internal_metadata_(NULL),
26471       _has_bits_(from._has_bits_),
26472       _cached_size_(0) {
26473   _internal_metadata_.MergeFrom(from._internal_metadata_);
26474   if (from.has_weight_filler()) {
26475     weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_);
26476   } else {
26477     weight_filler_ = NULL;
26478   }
26479   if (from.has_bias_filler()) {
26480     bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_);
26481   } else {
26482     bias_filler_ = NULL;
26483   }
26484   ::memcpy(&num_output_, &from.num_output_,
26485     static_cast<size_t>(reinterpret_cast<char*>(&axis_) -
26486     reinterpret_cast<char*>(&num_output_)) + sizeof(axis_));
26487   // @@protoc_insertion_point(copy_constructor:opencv_caffe.InnerProductParameter)
26488 }
26489 
SharedCtor()26490 void InnerProductParameter::SharedCtor() {
26491   _cached_size_ = 0;
26492   ::memset(&weight_filler_, 0, static_cast<size_t>(
26493       reinterpret_cast<char*>(&transpose_) -
26494       reinterpret_cast<char*>(&weight_filler_)) + sizeof(transpose_));
26495   bias_term_ = true;
26496   axis_ = 1;
26497 }
26498 
~InnerProductParameter()26499 InnerProductParameter::~InnerProductParameter() {
26500   // @@protoc_insertion_point(destructor:opencv_caffe.InnerProductParameter)
26501   SharedDtor();
26502 }
26503 
SharedDtor()26504 void InnerProductParameter::SharedDtor() {
26505   if (this != internal_default_instance()) delete weight_filler_;
26506   if (this != internal_default_instance()) delete bias_filler_;
26507 }
26508 
SetCachedSize(int size) const26509 void InnerProductParameter::SetCachedSize(int size) const {
26510   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
26511   _cached_size_ = size;
26512   GOOGLE_SAFE_CONCURRENT_WRITES_END();
26513 }
descriptor()26514 const ::google::protobuf::Descriptor* InnerProductParameter::descriptor() {
26515   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
26516   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
26517 }
26518 
default_instance()26519 const InnerProductParameter& InnerProductParameter::default_instance() {
26520   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInnerProductParameter();
26521   return *internal_default_instance();
26522 }
26523 
New(::google::protobuf::Arena * arena) const26524 InnerProductParameter* InnerProductParameter::New(::google::protobuf::Arena* arena) const {
26525   InnerProductParameter* n = new InnerProductParameter;
26526   if (arena != NULL) {
26527     arena->Own(n);
26528   }
26529   return n;
26530 }
26531 
Clear()26532 void InnerProductParameter::Clear() {
26533 // @@protoc_insertion_point(message_clear_start:opencv_caffe.InnerProductParameter)
26534   ::google::protobuf::uint32 cached_has_bits = 0;
26535   // Prevent compiler warnings about cached_has_bits being unused
26536   (void) cached_has_bits;
26537 
26538   cached_has_bits = _has_bits_[0];
26539   if (cached_has_bits & 3u) {
26540     if (cached_has_bits & 0x00000001u) {
26541       GOOGLE_DCHECK(weight_filler_ != NULL);
26542       weight_filler_->Clear();
26543     }
26544     if (cached_has_bits & 0x00000002u) {
26545       GOOGLE_DCHECK(bias_filler_ != NULL);
26546       bias_filler_->Clear();
26547     }
26548   }
26549   if (cached_has_bits & 60u) {
26550     ::memset(&num_output_, 0, static_cast<size_t>(
26551         reinterpret_cast<char*>(&transpose_) -
26552         reinterpret_cast<char*>(&num_output_)) + sizeof(transpose_));
26553     bias_term_ = true;
26554     axis_ = 1;
26555   }
26556   _has_bits_.Clear();
26557   _internal_metadata_.Clear();
26558 }
26559 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)26560 bool InnerProductParameter::MergePartialFromCodedStream(
26561     ::google::protobuf::io::CodedInputStream* input) {
26562 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
26563   ::google::protobuf::uint32 tag;
26564   // @@protoc_insertion_point(parse_start:opencv_caffe.InnerProductParameter)
26565   for (;;) {
26566     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
26567     tag = p.first;
26568     if (!p.second) goto handle_unusual;
26569     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
26570       // optional uint32 num_output = 1;
26571       case 1: {
26572         if (static_cast< ::google::protobuf::uint8>(tag) ==
26573             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
26574           set_has_num_output();
26575           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
26576                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
26577                  input, &num_output_)));
26578         } else {
26579           goto handle_unusual;
26580         }
26581         break;
26582       }
26583 
26584       // optional bool bias_term = 2 [default = true];
26585       case 2: {
26586         if (static_cast< ::google::protobuf::uint8>(tag) ==
26587             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
26588           set_has_bias_term();
26589           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
26590                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
26591                  input, &bias_term_)));
26592         } else {
26593           goto handle_unusual;
26594         }
26595         break;
26596       }
26597 
26598       // optional .opencv_caffe.FillerParameter weight_filler = 3;
26599       case 3: {
26600         if (static_cast< ::google::protobuf::uint8>(tag) ==
26601             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
26602           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
26603                input, mutable_weight_filler()));
26604         } else {
26605           goto handle_unusual;
26606         }
26607         break;
26608       }
26609 
26610       // optional .opencv_caffe.FillerParameter bias_filler = 4;
26611       case 4: {
26612         if (static_cast< ::google::protobuf::uint8>(tag) ==
26613             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
26614           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
26615                input, mutable_bias_filler()));
26616         } else {
26617           goto handle_unusual;
26618         }
26619         break;
26620       }
26621 
26622       // optional int32 axis = 5 [default = 1];
26623       case 5: {
26624         if (static_cast< ::google::protobuf::uint8>(tag) ==
26625             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
26626           set_has_axis();
26627           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
26628                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
26629                  input, &axis_)));
26630         } else {
26631           goto handle_unusual;
26632         }
26633         break;
26634       }
26635 
26636       // optional bool transpose = 6 [default = false];
26637       case 6: {
26638         if (static_cast< ::google::protobuf::uint8>(tag) ==
26639             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
26640           set_has_transpose();
26641           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
26642                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
26643                  input, &transpose_)));
26644         } else {
26645           goto handle_unusual;
26646         }
26647         break;
26648       }
26649 
26650       default: {
26651       handle_unusual:
26652         if (tag == 0) {
26653           goto success;
26654         }
26655         DO_(::google::protobuf::internal::WireFormat::SkipField(
26656               input, tag, _internal_metadata_.mutable_unknown_fields()));
26657         break;
26658       }
26659     }
26660   }
26661 success:
26662   // @@protoc_insertion_point(parse_success:opencv_caffe.InnerProductParameter)
26663   return true;
26664 failure:
26665   // @@protoc_insertion_point(parse_failure:opencv_caffe.InnerProductParameter)
26666   return false;
26667 #undef DO_
26668 }
26669 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const26670 void InnerProductParameter::SerializeWithCachedSizes(
26671     ::google::protobuf::io::CodedOutputStream* output) const {
26672   // @@protoc_insertion_point(serialize_start:opencv_caffe.InnerProductParameter)
26673   ::google::protobuf::uint32 cached_has_bits = 0;
26674   (void) cached_has_bits;
26675 
26676   cached_has_bits = _has_bits_[0];
26677   // optional uint32 num_output = 1;
26678   if (cached_has_bits & 0x00000004u) {
26679     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output);
26680   }
26681 
26682   // optional bool bias_term = 2 [default = true];
26683   if (cached_has_bits & 0x00000010u) {
26684     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bias_term(), output);
26685   }
26686 
26687   // optional .opencv_caffe.FillerParameter weight_filler = 3;
26688   if (cached_has_bits & 0x00000001u) {
26689     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
26690       3, *this->weight_filler_, output);
26691   }
26692 
26693   // optional .opencv_caffe.FillerParameter bias_filler = 4;
26694   if (cached_has_bits & 0x00000002u) {
26695     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
26696       4, *this->bias_filler_, output);
26697   }
26698 
26699   // optional int32 axis = 5 [default = 1];
26700   if (cached_has_bits & 0x00000020u) {
26701     ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->axis(), output);
26702   }
26703 
26704   // optional bool transpose = 6 [default = false];
26705   if (cached_has_bits & 0x00000008u) {
26706     ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->transpose(), output);
26707   }
26708 
26709   if (_internal_metadata_.have_unknown_fields()) {
26710     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
26711         _internal_metadata_.unknown_fields(), output);
26712   }
26713   // @@protoc_insertion_point(serialize_end:opencv_caffe.InnerProductParameter)
26714 }
26715 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const26716 ::google::protobuf::uint8* InnerProductParameter::InternalSerializeWithCachedSizesToArray(
26717     bool deterministic, ::google::protobuf::uint8* target) const {
26718   (void)deterministic; // Unused
26719   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InnerProductParameter)
26720   ::google::protobuf::uint32 cached_has_bits = 0;
26721   (void) cached_has_bits;
26722 
26723   cached_has_bits = _has_bits_[0];
26724   // optional uint32 num_output = 1;
26725   if (cached_has_bits & 0x00000004u) {
26726     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target);
26727   }
26728 
26729   // optional bool bias_term = 2 [default = true];
26730   if (cached_has_bits & 0x00000010u) {
26731     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bias_term(), target);
26732   }
26733 
26734   // optional .opencv_caffe.FillerParameter weight_filler = 3;
26735   if (cached_has_bits & 0x00000001u) {
26736     target = ::google::protobuf::internal::WireFormatLite::
26737       InternalWriteMessageToArray(
26738         3, *this->weight_filler_, deterministic, target);
26739   }
26740 
26741   // optional .opencv_caffe.FillerParameter bias_filler = 4;
26742   if (cached_has_bits & 0x00000002u) {
26743     target = ::google::protobuf::internal::WireFormatLite::
26744       InternalWriteMessageToArray(
26745         4, *this->bias_filler_, deterministic, target);
26746   }
26747 
26748   // optional int32 axis = 5 [default = 1];
26749   if (cached_has_bits & 0x00000020u) {
26750     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->axis(), target);
26751   }
26752 
26753   // optional bool transpose = 6 [default = false];
26754   if (cached_has_bits & 0x00000008u) {
26755     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->transpose(), target);
26756   }
26757 
26758   if (_internal_metadata_.have_unknown_fields()) {
26759     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
26760         _internal_metadata_.unknown_fields(), target);
26761   }
26762   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InnerProductParameter)
26763   return target;
26764 }
26765 
ByteSizeLong() const26766 size_t InnerProductParameter::ByteSizeLong() const {
26767 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InnerProductParameter)
26768   size_t total_size = 0;
26769 
26770   if (_internal_metadata_.have_unknown_fields()) {
26771     total_size +=
26772       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
26773         _internal_metadata_.unknown_fields());
26774   }
26775   if (_has_bits_[0 / 32] & 63u) {
26776     // optional .opencv_caffe.FillerParameter weight_filler = 3;
26777     if (has_weight_filler()) {
26778       total_size += 1 +
26779         ::google::protobuf::internal::WireFormatLite::MessageSize(
26780           *this->weight_filler_);
26781     }
26782 
26783     // optional .opencv_caffe.FillerParameter bias_filler = 4;
26784     if (has_bias_filler()) {
26785       total_size += 1 +
26786         ::google::protobuf::internal::WireFormatLite::MessageSize(
26787           *this->bias_filler_);
26788     }
26789 
26790     // optional uint32 num_output = 1;
26791     if (has_num_output()) {
26792       total_size += 1 +
26793         ::google::protobuf::internal::WireFormatLite::UInt32Size(
26794           this->num_output());
26795     }
26796 
26797     // optional bool transpose = 6 [default = false];
26798     if (has_transpose()) {
26799       total_size += 1 + 1;
26800     }
26801 
26802     // optional bool bias_term = 2 [default = true];
26803     if (has_bias_term()) {
26804       total_size += 1 + 1;
26805     }
26806 
26807     // optional int32 axis = 5 [default = 1];
26808     if (has_axis()) {
26809       total_size += 1 +
26810         ::google::protobuf::internal::WireFormatLite::Int32Size(
26811           this->axis());
26812     }
26813 
26814   }
26815   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
26816   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
26817   _cached_size_ = cached_size;
26818   GOOGLE_SAFE_CONCURRENT_WRITES_END();
26819   return total_size;
26820 }
26821 
MergeFrom(const::google::protobuf::Message & from)26822 void InnerProductParameter::MergeFrom(const ::google::protobuf::Message& from) {
26823 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InnerProductParameter)
26824   GOOGLE_DCHECK_NE(&from, this);
26825   const InnerProductParameter* source =
26826       ::google::protobuf::internal::DynamicCastToGenerated<const InnerProductParameter>(
26827           &from);
26828   if (source == NULL) {
26829   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InnerProductParameter)
26830     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
26831   } else {
26832   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InnerProductParameter)
26833     MergeFrom(*source);
26834   }
26835 }
26836 
MergeFrom(const InnerProductParameter & from)26837 void InnerProductParameter::MergeFrom(const InnerProductParameter& from) {
26838 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InnerProductParameter)
26839   GOOGLE_DCHECK_NE(&from, this);
26840   _internal_metadata_.MergeFrom(from._internal_metadata_);
26841   ::google::protobuf::uint32 cached_has_bits = 0;
26842   (void) cached_has_bits;
26843 
26844   cached_has_bits = from._has_bits_[0];
26845   if (cached_has_bits & 63u) {
26846     if (cached_has_bits & 0x00000001u) {
26847       mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler());
26848     }
26849     if (cached_has_bits & 0x00000002u) {
26850       mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler());
26851     }
26852     if (cached_has_bits & 0x00000004u) {
26853       num_output_ = from.num_output_;
26854     }
26855     if (cached_has_bits & 0x00000008u) {
26856       transpose_ = from.transpose_;
26857     }
26858     if (cached_has_bits & 0x00000010u) {
26859       bias_term_ = from.bias_term_;
26860     }
26861     if (cached_has_bits & 0x00000020u) {
26862       axis_ = from.axis_;
26863     }
26864     _has_bits_[0] |= cached_has_bits;
26865   }
26866 }
26867 
CopyFrom(const::google::protobuf::Message & from)26868 void InnerProductParameter::CopyFrom(const ::google::protobuf::Message& from) {
26869 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InnerProductParameter)
26870   if (&from == this) return;
26871   Clear();
26872   MergeFrom(from);
26873 }
26874 
CopyFrom(const InnerProductParameter & from)26875 void InnerProductParameter::CopyFrom(const InnerProductParameter& from) {
26876 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InnerProductParameter)
26877   if (&from == this) return;
26878   Clear();
26879   MergeFrom(from);
26880 }
26881 
IsInitialized() const26882 bool InnerProductParameter::IsInitialized() const {
26883   return true;
26884 }
26885 
Swap(InnerProductParameter * other)26886 void InnerProductParameter::Swap(InnerProductParameter* other) {
26887   if (other == this) return;
26888   InternalSwap(other);
26889 }
InternalSwap(InnerProductParameter * other)26890 void InnerProductParameter::InternalSwap(InnerProductParameter* other) {
26891   using std::swap;
26892   swap(weight_filler_, other->weight_filler_);
26893   swap(bias_filler_, other->bias_filler_);
26894   swap(num_output_, other->num_output_);
26895   swap(transpose_, other->transpose_);
26896   swap(bias_term_, other->bias_term_);
26897   swap(axis_, other->axis_);
26898   swap(_has_bits_[0], other->_has_bits_[0]);
26899   _internal_metadata_.Swap(&other->_internal_metadata_);
26900   swap(_cached_size_, other->_cached_size_);
26901 }
26902 
GetMetadata() const26903 ::google::protobuf::Metadata InnerProductParameter::GetMetadata() const {
26904   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
26905   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
26906 }
26907 
26908 
26909 // ===================================================================
26910 
InitAsDefaultInstance()26911 void InputParameter::InitAsDefaultInstance() {
26912 }
26913 #if !defined(_MSC_VER) || _MSC_VER >= 1900
26914 const int InputParameter::kShapeFieldNumber;
26915 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
26916 
InputParameter()26917 InputParameter::InputParameter()
26918   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
26919   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
26920     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInputParameter();
26921   }
26922   SharedCtor();
26923   // @@protoc_insertion_point(constructor:opencv_caffe.InputParameter)
26924 }
InputParameter(const InputParameter & from)26925 InputParameter::InputParameter(const InputParameter& from)
26926   : ::google::protobuf::Message(),
26927       _internal_metadata_(NULL),
26928       _has_bits_(from._has_bits_),
26929       _cached_size_(0),
26930       shape_(from.shape_) {
26931   _internal_metadata_.MergeFrom(from._internal_metadata_);
26932   // @@protoc_insertion_point(copy_constructor:opencv_caffe.InputParameter)
26933 }
26934 
SharedCtor()26935 void InputParameter::SharedCtor() {
26936   _cached_size_ = 0;
26937 }
26938 
~InputParameter()26939 InputParameter::~InputParameter() {
26940   // @@protoc_insertion_point(destructor:opencv_caffe.InputParameter)
26941   SharedDtor();
26942 }
26943 
SharedDtor()26944 void InputParameter::SharedDtor() {
26945 }
26946 
SetCachedSize(int size) const26947 void InputParameter::SetCachedSize(int size) const {
26948   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
26949   _cached_size_ = size;
26950   GOOGLE_SAFE_CONCURRENT_WRITES_END();
26951 }
descriptor()26952 const ::google::protobuf::Descriptor* InputParameter::descriptor() {
26953   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
26954   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
26955 }
26956 
default_instance()26957 const InputParameter& InputParameter::default_instance() {
26958   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsInputParameter();
26959   return *internal_default_instance();
26960 }
26961 
New(::google::protobuf::Arena * arena) const26962 InputParameter* InputParameter::New(::google::protobuf::Arena* arena) const {
26963   InputParameter* n = new InputParameter;
26964   if (arena != NULL) {
26965     arena->Own(n);
26966   }
26967   return n;
26968 }
26969 
Clear()26970 void InputParameter::Clear() {
26971 // @@protoc_insertion_point(message_clear_start:opencv_caffe.InputParameter)
26972   ::google::protobuf::uint32 cached_has_bits = 0;
26973   // Prevent compiler warnings about cached_has_bits being unused
26974   (void) cached_has_bits;
26975 
26976   shape_.Clear();
26977   _has_bits_.Clear();
26978   _internal_metadata_.Clear();
26979 }
26980 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)26981 bool InputParameter::MergePartialFromCodedStream(
26982     ::google::protobuf::io::CodedInputStream* input) {
26983 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
26984   ::google::protobuf::uint32 tag;
26985   // @@protoc_insertion_point(parse_start:opencv_caffe.InputParameter)
26986   for (;;) {
26987     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
26988     tag = p.first;
26989     if (!p.second) goto handle_unusual;
26990     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
26991       // repeated .opencv_caffe.BlobShape shape = 1;
26992       case 1: {
26993         if (static_cast< ::google::protobuf::uint8>(tag) ==
26994             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
26995           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_shape()));
26996         } else {
26997           goto handle_unusual;
26998         }
26999         break;
27000       }
27001 
27002       default: {
27003       handle_unusual:
27004         if (tag == 0) {
27005           goto success;
27006         }
27007         DO_(::google::protobuf::internal::WireFormat::SkipField(
27008               input, tag, _internal_metadata_.mutable_unknown_fields()));
27009         break;
27010       }
27011     }
27012   }
27013 success:
27014   // @@protoc_insertion_point(parse_success:opencv_caffe.InputParameter)
27015   return true;
27016 failure:
27017   // @@protoc_insertion_point(parse_failure:opencv_caffe.InputParameter)
27018   return false;
27019 #undef DO_
27020 }
27021 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const27022 void InputParameter::SerializeWithCachedSizes(
27023     ::google::protobuf::io::CodedOutputStream* output) const {
27024   // @@protoc_insertion_point(serialize_start:opencv_caffe.InputParameter)
27025   ::google::protobuf::uint32 cached_has_bits = 0;
27026   (void) cached_has_bits;
27027 
27028   // repeated .opencv_caffe.BlobShape shape = 1;
27029   for (unsigned int i = 0,
27030       n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {
27031     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
27032       1, this->shape(static_cast<int>(i)), output);
27033   }
27034 
27035   if (_internal_metadata_.have_unknown_fields()) {
27036     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
27037         _internal_metadata_.unknown_fields(), output);
27038   }
27039   // @@protoc_insertion_point(serialize_end:opencv_caffe.InputParameter)
27040 }
27041 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const27042 ::google::protobuf::uint8* InputParameter::InternalSerializeWithCachedSizesToArray(
27043     bool deterministic, ::google::protobuf::uint8* target) const {
27044   (void)deterministic; // Unused
27045   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.InputParameter)
27046   ::google::protobuf::uint32 cached_has_bits = 0;
27047   (void) cached_has_bits;
27048 
27049   // repeated .opencv_caffe.BlobShape shape = 1;
27050   for (unsigned int i = 0,
27051       n = static_cast<unsigned int>(this->shape_size()); i < n; i++) {
27052     target = ::google::protobuf::internal::WireFormatLite::
27053       InternalWriteMessageToArray(
27054         1, this->shape(static_cast<int>(i)), deterministic, target);
27055   }
27056 
27057   if (_internal_metadata_.have_unknown_fields()) {
27058     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
27059         _internal_metadata_.unknown_fields(), target);
27060   }
27061   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.InputParameter)
27062   return target;
27063 }
27064 
ByteSizeLong() const27065 size_t InputParameter::ByteSizeLong() const {
27066 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.InputParameter)
27067   size_t total_size = 0;
27068 
27069   if (_internal_metadata_.have_unknown_fields()) {
27070     total_size +=
27071       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
27072         _internal_metadata_.unknown_fields());
27073   }
27074   // repeated .opencv_caffe.BlobShape shape = 1;
27075   {
27076     unsigned int count = static_cast<unsigned int>(this->shape_size());
27077     total_size += 1UL * count;
27078     for (unsigned int i = 0; i < count; i++) {
27079       total_size +=
27080         ::google::protobuf::internal::WireFormatLite::MessageSize(
27081           this->shape(static_cast<int>(i)));
27082     }
27083   }
27084 
27085   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
27086   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
27087   _cached_size_ = cached_size;
27088   GOOGLE_SAFE_CONCURRENT_WRITES_END();
27089   return total_size;
27090 }
27091 
MergeFrom(const::google::protobuf::Message & from)27092 void InputParameter::MergeFrom(const ::google::protobuf::Message& from) {
27093 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.InputParameter)
27094   GOOGLE_DCHECK_NE(&from, this);
27095   const InputParameter* source =
27096       ::google::protobuf::internal::DynamicCastToGenerated<const InputParameter>(
27097           &from);
27098   if (source == NULL) {
27099   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.InputParameter)
27100     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
27101   } else {
27102   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.InputParameter)
27103     MergeFrom(*source);
27104   }
27105 }
27106 
MergeFrom(const InputParameter & from)27107 void InputParameter::MergeFrom(const InputParameter& from) {
27108 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.InputParameter)
27109   GOOGLE_DCHECK_NE(&from, this);
27110   _internal_metadata_.MergeFrom(from._internal_metadata_);
27111   ::google::protobuf::uint32 cached_has_bits = 0;
27112   (void) cached_has_bits;
27113 
27114   shape_.MergeFrom(from.shape_);
27115 }
27116 
CopyFrom(const::google::protobuf::Message & from)27117 void InputParameter::CopyFrom(const ::google::protobuf::Message& from) {
27118 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.InputParameter)
27119   if (&from == this) return;
27120   Clear();
27121   MergeFrom(from);
27122 }
27123 
CopyFrom(const InputParameter & from)27124 void InputParameter::CopyFrom(const InputParameter& from) {
27125 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.InputParameter)
27126   if (&from == this) return;
27127   Clear();
27128   MergeFrom(from);
27129 }
27130 
IsInitialized() const27131 bool InputParameter::IsInitialized() const {
27132   return true;
27133 }
27134 
Swap(InputParameter * other)27135 void InputParameter::Swap(InputParameter* other) {
27136   if (other == this) return;
27137   InternalSwap(other);
27138 }
InternalSwap(InputParameter * other)27139 void InputParameter::InternalSwap(InputParameter* other) {
27140   using std::swap;
27141   shape_.InternalSwap(&other->shape_);
27142   swap(_has_bits_[0], other->_has_bits_[0]);
27143   _internal_metadata_.Swap(&other->_internal_metadata_);
27144   swap(_cached_size_, other->_cached_size_);
27145 }
27146 
GetMetadata() const27147 ::google::protobuf::Metadata InputParameter::GetMetadata() const {
27148   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
27149   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
27150 }
27151 
27152 
27153 // ===================================================================
27154 
InitAsDefaultInstance()27155 void LogParameter::InitAsDefaultInstance() {
27156 }
27157 #if !defined(_MSC_VER) || _MSC_VER >= 1900
27158 const int LogParameter::kBaseFieldNumber;
27159 const int LogParameter::kScaleFieldNumber;
27160 const int LogParameter::kShiftFieldNumber;
27161 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
27162 
LogParameter()27163 LogParameter::LogParameter()
27164   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
27165   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
27166     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLogParameter();
27167   }
27168   SharedCtor();
27169   // @@protoc_insertion_point(constructor:opencv_caffe.LogParameter)
27170 }
LogParameter(const LogParameter & from)27171 LogParameter::LogParameter(const LogParameter& from)
27172   : ::google::protobuf::Message(),
27173       _internal_metadata_(NULL),
27174       _has_bits_(from._has_bits_),
27175       _cached_size_(0) {
27176   _internal_metadata_.MergeFrom(from._internal_metadata_);
27177   ::memcpy(&shift_, &from.shift_,
27178     static_cast<size_t>(reinterpret_cast<char*>(&scale_) -
27179     reinterpret_cast<char*>(&shift_)) + sizeof(scale_));
27180   // @@protoc_insertion_point(copy_constructor:opencv_caffe.LogParameter)
27181 }
27182 
SharedCtor()27183 void LogParameter::SharedCtor() {
27184   _cached_size_ = 0;
27185   shift_ = 0;
27186   base_ = -1;
27187   scale_ = 1;
27188 }
27189 
~LogParameter()27190 LogParameter::~LogParameter() {
27191   // @@protoc_insertion_point(destructor:opencv_caffe.LogParameter)
27192   SharedDtor();
27193 }
27194 
SharedDtor()27195 void LogParameter::SharedDtor() {
27196 }
27197 
SetCachedSize(int size) const27198 void LogParameter::SetCachedSize(int size) const {
27199   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
27200   _cached_size_ = size;
27201   GOOGLE_SAFE_CONCURRENT_WRITES_END();
27202 }
descriptor()27203 const ::google::protobuf::Descriptor* LogParameter::descriptor() {
27204   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
27205   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
27206 }
27207 
default_instance()27208 const LogParameter& LogParameter::default_instance() {
27209   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLogParameter();
27210   return *internal_default_instance();
27211 }
27212 
New(::google::protobuf::Arena * arena) const27213 LogParameter* LogParameter::New(::google::protobuf::Arena* arena) const {
27214   LogParameter* n = new LogParameter;
27215   if (arena != NULL) {
27216     arena->Own(n);
27217   }
27218   return n;
27219 }
27220 
Clear()27221 void LogParameter::Clear() {
27222 // @@protoc_insertion_point(message_clear_start:opencv_caffe.LogParameter)
27223   ::google::protobuf::uint32 cached_has_bits = 0;
27224   // Prevent compiler warnings about cached_has_bits being unused
27225   (void) cached_has_bits;
27226 
27227   cached_has_bits = _has_bits_[0];
27228   if (cached_has_bits & 7u) {
27229     shift_ = 0;
27230     base_ = -1;
27231     scale_ = 1;
27232   }
27233   _has_bits_.Clear();
27234   _internal_metadata_.Clear();
27235 }
27236 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)27237 bool LogParameter::MergePartialFromCodedStream(
27238     ::google::protobuf::io::CodedInputStream* input) {
27239 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
27240   ::google::protobuf::uint32 tag;
27241   // @@protoc_insertion_point(parse_start:opencv_caffe.LogParameter)
27242   for (;;) {
27243     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
27244     tag = p.first;
27245     if (!p.second) goto handle_unusual;
27246     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
27247       // optional float base = 1 [default = -1];
27248       case 1: {
27249         if (static_cast< ::google::protobuf::uint8>(tag) ==
27250             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
27251           set_has_base();
27252           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27253                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
27254                  input, &base_)));
27255         } else {
27256           goto handle_unusual;
27257         }
27258         break;
27259       }
27260 
27261       // optional float scale = 2 [default = 1];
27262       case 2: {
27263         if (static_cast< ::google::protobuf::uint8>(tag) ==
27264             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
27265           set_has_scale();
27266           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27267                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
27268                  input, &scale_)));
27269         } else {
27270           goto handle_unusual;
27271         }
27272         break;
27273       }
27274 
27275       // optional float shift = 3 [default = 0];
27276       case 3: {
27277         if (static_cast< ::google::protobuf::uint8>(tag) ==
27278             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
27279           set_has_shift();
27280           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27281                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
27282                  input, &shift_)));
27283         } else {
27284           goto handle_unusual;
27285         }
27286         break;
27287       }
27288 
27289       default: {
27290       handle_unusual:
27291         if (tag == 0) {
27292           goto success;
27293         }
27294         DO_(::google::protobuf::internal::WireFormat::SkipField(
27295               input, tag, _internal_metadata_.mutable_unknown_fields()));
27296         break;
27297       }
27298     }
27299   }
27300 success:
27301   // @@protoc_insertion_point(parse_success:opencv_caffe.LogParameter)
27302   return true;
27303 failure:
27304   // @@protoc_insertion_point(parse_failure:opencv_caffe.LogParameter)
27305   return false;
27306 #undef DO_
27307 }
27308 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const27309 void LogParameter::SerializeWithCachedSizes(
27310     ::google::protobuf::io::CodedOutputStream* output) const {
27311   // @@protoc_insertion_point(serialize_start:opencv_caffe.LogParameter)
27312   ::google::protobuf::uint32 cached_has_bits = 0;
27313   (void) cached_has_bits;
27314 
27315   cached_has_bits = _has_bits_[0];
27316   // optional float base = 1 [default = -1];
27317   if (cached_has_bits & 0x00000002u) {
27318     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->base(), output);
27319   }
27320 
27321   // optional float scale = 2 [default = 1];
27322   if (cached_has_bits & 0x00000004u) {
27323     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output);
27324   }
27325 
27326   // optional float shift = 3 [default = 0];
27327   if (cached_has_bits & 0x00000001u) {
27328     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output);
27329   }
27330 
27331   if (_internal_metadata_.have_unknown_fields()) {
27332     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
27333         _internal_metadata_.unknown_fields(), output);
27334   }
27335   // @@protoc_insertion_point(serialize_end:opencv_caffe.LogParameter)
27336 }
27337 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const27338 ::google::protobuf::uint8* LogParameter::InternalSerializeWithCachedSizesToArray(
27339     bool deterministic, ::google::protobuf::uint8* target) const {
27340   (void)deterministic; // Unused
27341   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LogParameter)
27342   ::google::protobuf::uint32 cached_has_bits = 0;
27343   (void) cached_has_bits;
27344 
27345   cached_has_bits = _has_bits_[0];
27346   // optional float base = 1 [default = -1];
27347   if (cached_has_bits & 0x00000002u) {
27348     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->base(), target);
27349   }
27350 
27351   // optional float scale = 2 [default = 1];
27352   if (cached_has_bits & 0x00000004u) {
27353     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target);
27354   }
27355 
27356   // optional float shift = 3 [default = 0];
27357   if (cached_has_bits & 0x00000001u) {
27358     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target);
27359   }
27360 
27361   if (_internal_metadata_.have_unknown_fields()) {
27362     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
27363         _internal_metadata_.unknown_fields(), target);
27364   }
27365   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LogParameter)
27366   return target;
27367 }
27368 
ByteSizeLong() const27369 size_t LogParameter::ByteSizeLong() const {
27370 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LogParameter)
27371   size_t total_size = 0;
27372 
27373   if (_internal_metadata_.have_unknown_fields()) {
27374     total_size +=
27375       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
27376         _internal_metadata_.unknown_fields());
27377   }
27378   if (_has_bits_[0 / 32] & 7u) {
27379     // optional float shift = 3 [default = 0];
27380     if (has_shift()) {
27381       total_size += 1 + 4;
27382     }
27383 
27384     // optional float base = 1 [default = -1];
27385     if (has_base()) {
27386       total_size += 1 + 4;
27387     }
27388 
27389     // optional float scale = 2 [default = 1];
27390     if (has_scale()) {
27391       total_size += 1 + 4;
27392     }
27393 
27394   }
27395   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
27396   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
27397   _cached_size_ = cached_size;
27398   GOOGLE_SAFE_CONCURRENT_WRITES_END();
27399   return total_size;
27400 }
27401 
MergeFrom(const::google::protobuf::Message & from)27402 void LogParameter::MergeFrom(const ::google::protobuf::Message& from) {
27403 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LogParameter)
27404   GOOGLE_DCHECK_NE(&from, this);
27405   const LogParameter* source =
27406       ::google::protobuf::internal::DynamicCastToGenerated<const LogParameter>(
27407           &from);
27408   if (source == NULL) {
27409   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LogParameter)
27410     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
27411   } else {
27412   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LogParameter)
27413     MergeFrom(*source);
27414   }
27415 }
27416 
MergeFrom(const LogParameter & from)27417 void LogParameter::MergeFrom(const LogParameter& from) {
27418 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LogParameter)
27419   GOOGLE_DCHECK_NE(&from, this);
27420   _internal_metadata_.MergeFrom(from._internal_metadata_);
27421   ::google::protobuf::uint32 cached_has_bits = 0;
27422   (void) cached_has_bits;
27423 
27424   cached_has_bits = from._has_bits_[0];
27425   if (cached_has_bits & 7u) {
27426     if (cached_has_bits & 0x00000001u) {
27427       shift_ = from.shift_;
27428     }
27429     if (cached_has_bits & 0x00000002u) {
27430       base_ = from.base_;
27431     }
27432     if (cached_has_bits & 0x00000004u) {
27433       scale_ = from.scale_;
27434     }
27435     _has_bits_[0] |= cached_has_bits;
27436   }
27437 }
27438 
CopyFrom(const::google::protobuf::Message & from)27439 void LogParameter::CopyFrom(const ::google::protobuf::Message& from) {
27440 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LogParameter)
27441   if (&from == this) return;
27442   Clear();
27443   MergeFrom(from);
27444 }
27445 
CopyFrom(const LogParameter & from)27446 void LogParameter::CopyFrom(const LogParameter& from) {
27447 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LogParameter)
27448   if (&from == this) return;
27449   Clear();
27450   MergeFrom(from);
27451 }
27452 
IsInitialized() const27453 bool LogParameter::IsInitialized() const {
27454   return true;
27455 }
27456 
Swap(LogParameter * other)27457 void LogParameter::Swap(LogParameter* other) {
27458   if (other == this) return;
27459   InternalSwap(other);
27460 }
InternalSwap(LogParameter * other)27461 void LogParameter::InternalSwap(LogParameter* other) {
27462   using std::swap;
27463   swap(shift_, other->shift_);
27464   swap(base_, other->base_);
27465   swap(scale_, other->scale_);
27466   swap(_has_bits_[0], other->_has_bits_[0]);
27467   _internal_metadata_.Swap(&other->_internal_metadata_);
27468   swap(_cached_size_, other->_cached_size_);
27469 }
27470 
GetMetadata() const27471 ::google::protobuf::Metadata LogParameter::GetMetadata() const {
27472   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
27473   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
27474 }
27475 
27476 
27477 // ===================================================================
27478 
InitAsDefaultInstance()27479 void LRNParameter::InitAsDefaultInstance() {
27480 }
27481 #if !defined(_MSC_VER) || _MSC_VER >= 1900
27482 const int LRNParameter::kLocalSizeFieldNumber;
27483 const int LRNParameter::kAlphaFieldNumber;
27484 const int LRNParameter::kBetaFieldNumber;
27485 const int LRNParameter::kNormRegionFieldNumber;
27486 const int LRNParameter::kKFieldNumber;
27487 const int LRNParameter::kEngineFieldNumber;
27488 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
27489 
LRNParameter()27490 LRNParameter::LRNParameter()
27491   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
27492   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
27493     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameter();
27494   }
27495   SharedCtor();
27496   // @@protoc_insertion_point(constructor:opencv_caffe.LRNParameter)
27497 }
LRNParameter(const LRNParameter & from)27498 LRNParameter::LRNParameter(const LRNParameter& from)
27499   : ::google::protobuf::Message(),
27500       _internal_metadata_(NULL),
27501       _has_bits_(from._has_bits_),
27502       _cached_size_(0) {
27503   _internal_metadata_.MergeFrom(from._internal_metadata_);
27504   ::memcpy(&norm_region_, &from.norm_region_,
27505     static_cast<size_t>(reinterpret_cast<char*>(&k_) -
27506     reinterpret_cast<char*>(&norm_region_)) + sizeof(k_));
27507   // @@protoc_insertion_point(copy_constructor:opencv_caffe.LRNParameter)
27508 }
27509 
SharedCtor()27510 void LRNParameter::SharedCtor() {
27511   _cached_size_ = 0;
27512   ::memset(&norm_region_, 0, static_cast<size_t>(
27513       reinterpret_cast<char*>(&engine_) -
27514       reinterpret_cast<char*>(&norm_region_)) + sizeof(engine_));
27515   local_size_ = 5u;
27516   alpha_ = 1;
27517   beta_ = 0.75f;
27518   k_ = 1;
27519 }
27520 
~LRNParameter()27521 LRNParameter::~LRNParameter() {
27522   // @@protoc_insertion_point(destructor:opencv_caffe.LRNParameter)
27523   SharedDtor();
27524 }
27525 
SharedDtor()27526 void LRNParameter::SharedDtor() {
27527 }
27528 
SetCachedSize(int size) const27529 void LRNParameter::SetCachedSize(int size) const {
27530   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
27531   _cached_size_ = size;
27532   GOOGLE_SAFE_CONCURRENT_WRITES_END();
27533 }
descriptor()27534 const ::google::protobuf::Descriptor* LRNParameter::descriptor() {
27535   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
27536   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
27537 }
27538 
default_instance()27539 const LRNParameter& LRNParameter::default_instance() {
27540   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsLRNParameter();
27541   return *internal_default_instance();
27542 }
27543 
New(::google::protobuf::Arena * arena) const27544 LRNParameter* LRNParameter::New(::google::protobuf::Arena* arena) const {
27545   LRNParameter* n = new LRNParameter;
27546   if (arena != NULL) {
27547     arena->Own(n);
27548   }
27549   return n;
27550 }
27551 
Clear()27552 void LRNParameter::Clear() {
27553 // @@protoc_insertion_point(message_clear_start:opencv_caffe.LRNParameter)
27554   ::google::protobuf::uint32 cached_has_bits = 0;
27555   // Prevent compiler warnings about cached_has_bits being unused
27556   (void) cached_has_bits;
27557 
27558   cached_has_bits = _has_bits_[0];
27559   if (cached_has_bits & 63u) {
27560     ::memset(&norm_region_, 0, static_cast<size_t>(
27561         reinterpret_cast<char*>(&engine_) -
27562         reinterpret_cast<char*>(&norm_region_)) + sizeof(engine_));
27563     local_size_ = 5u;
27564     alpha_ = 1;
27565     beta_ = 0.75f;
27566     k_ = 1;
27567   }
27568   _has_bits_.Clear();
27569   _internal_metadata_.Clear();
27570 }
27571 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)27572 bool LRNParameter::MergePartialFromCodedStream(
27573     ::google::protobuf::io::CodedInputStream* input) {
27574 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
27575   ::google::protobuf::uint32 tag;
27576   // @@protoc_insertion_point(parse_start:opencv_caffe.LRNParameter)
27577   for (;;) {
27578     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
27579     tag = p.first;
27580     if (!p.second) goto handle_unusual;
27581     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
27582       // optional uint32 local_size = 1 [default = 5];
27583       case 1: {
27584         if (static_cast< ::google::protobuf::uint8>(tag) ==
27585             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
27586           set_has_local_size();
27587           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27588                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
27589                  input, &local_size_)));
27590         } else {
27591           goto handle_unusual;
27592         }
27593         break;
27594       }
27595 
27596       // optional float alpha = 2 [default = 1];
27597       case 2: {
27598         if (static_cast< ::google::protobuf::uint8>(tag) ==
27599             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
27600           set_has_alpha();
27601           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27602                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
27603                  input, &alpha_)));
27604         } else {
27605           goto handle_unusual;
27606         }
27607         break;
27608       }
27609 
27610       // optional float beta = 3 [default = 0.75];
27611       case 3: {
27612         if (static_cast< ::google::protobuf::uint8>(tag) ==
27613             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
27614           set_has_beta();
27615           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27616                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
27617                  input, &beta_)));
27618         } else {
27619           goto handle_unusual;
27620         }
27621         break;
27622       }
27623 
27624       // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS];
27625       case 4: {
27626         if (static_cast< ::google::protobuf::uint8>(tag) ==
27627             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
27628           int value;
27629           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27630                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
27631                  input, &value)));
27632           if (::opencv_caffe::LRNParameter_NormRegion_IsValid(value)) {
27633             set_norm_region(static_cast< ::opencv_caffe::LRNParameter_NormRegion >(value));
27634           } else {
27635             mutable_unknown_fields()->AddVarint(
27636                 4, static_cast< ::google::protobuf::uint64>(value));
27637           }
27638         } else {
27639           goto handle_unusual;
27640         }
27641         break;
27642       }
27643 
27644       // optional float k = 5 [default = 1];
27645       case 5: {
27646         if (static_cast< ::google::protobuf::uint8>(tag) ==
27647             static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
27648           set_has_k();
27649           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27650                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
27651                  input, &k_)));
27652         } else {
27653           goto handle_unusual;
27654         }
27655         break;
27656       }
27657 
27658       // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT];
27659       case 6: {
27660         if (static_cast< ::google::protobuf::uint8>(tag) ==
27661             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
27662           int value;
27663           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
27664                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
27665                  input, &value)));
27666           if (::opencv_caffe::LRNParameter_Engine_IsValid(value)) {
27667             set_engine(static_cast< ::opencv_caffe::LRNParameter_Engine >(value));
27668           } else {
27669             mutable_unknown_fields()->AddVarint(
27670                 6, static_cast< ::google::protobuf::uint64>(value));
27671           }
27672         } else {
27673           goto handle_unusual;
27674         }
27675         break;
27676       }
27677 
27678       default: {
27679       handle_unusual:
27680         if (tag == 0) {
27681           goto success;
27682         }
27683         DO_(::google::protobuf::internal::WireFormat::SkipField(
27684               input, tag, _internal_metadata_.mutable_unknown_fields()));
27685         break;
27686       }
27687     }
27688   }
27689 success:
27690   // @@protoc_insertion_point(parse_success:opencv_caffe.LRNParameter)
27691   return true;
27692 failure:
27693   // @@protoc_insertion_point(parse_failure:opencv_caffe.LRNParameter)
27694   return false;
27695 #undef DO_
27696 }
27697 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const27698 void LRNParameter::SerializeWithCachedSizes(
27699     ::google::protobuf::io::CodedOutputStream* output) const {
27700   // @@protoc_insertion_point(serialize_start:opencv_caffe.LRNParameter)
27701   ::google::protobuf::uint32 cached_has_bits = 0;
27702   (void) cached_has_bits;
27703 
27704   cached_has_bits = _has_bits_[0];
27705   // optional uint32 local_size = 1 [default = 5];
27706   if (cached_has_bits & 0x00000004u) {
27707     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->local_size(), output);
27708   }
27709 
27710   // optional float alpha = 2 [default = 1];
27711   if (cached_has_bits & 0x00000008u) {
27712     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->alpha(), output);
27713   }
27714 
27715   // optional float beta = 3 [default = 0.75];
27716   if (cached_has_bits & 0x00000010u) {
27717     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->beta(), output);
27718   }
27719 
27720   // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS];
27721   if (cached_has_bits & 0x00000001u) {
27722     ::google::protobuf::internal::WireFormatLite::WriteEnum(
27723       4, this->norm_region(), output);
27724   }
27725 
27726   // optional float k = 5 [default = 1];
27727   if (cached_has_bits & 0x00000020u) {
27728     ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->k(), output);
27729   }
27730 
27731   // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT];
27732   if (cached_has_bits & 0x00000002u) {
27733     ::google::protobuf::internal::WireFormatLite::WriteEnum(
27734       6, this->engine(), output);
27735   }
27736 
27737   if (_internal_metadata_.have_unknown_fields()) {
27738     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
27739         _internal_metadata_.unknown_fields(), output);
27740   }
27741   // @@protoc_insertion_point(serialize_end:opencv_caffe.LRNParameter)
27742 }
27743 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const27744 ::google::protobuf::uint8* LRNParameter::InternalSerializeWithCachedSizesToArray(
27745     bool deterministic, ::google::protobuf::uint8* target) const {
27746   (void)deterministic; // Unused
27747   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.LRNParameter)
27748   ::google::protobuf::uint32 cached_has_bits = 0;
27749   (void) cached_has_bits;
27750 
27751   cached_has_bits = _has_bits_[0];
27752   // optional uint32 local_size = 1 [default = 5];
27753   if (cached_has_bits & 0x00000004u) {
27754     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->local_size(), target);
27755   }
27756 
27757   // optional float alpha = 2 [default = 1];
27758   if (cached_has_bits & 0x00000008u) {
27759     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->alpha(), target);
27760   }
27761 
27762   // optional float beta = 3 [default = 0.75];
27763   if (cached_has_bits & 0x00000010u) {
27764     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->beta(), target);
27765   }
27766 
27767   // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS];
27768   if (cached_has_bits & 0x00000001u) {
27769     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
27770       4, this->norm_region(), target);
27771   }
27772 
27773   // optional float k = 5 [default = 1];
27774   if (cached_has_bits & 0x00000020u) {
27775     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->k(), target);
27776   }
27777 
27778   // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT];
27779   if (cached_has_bits & 0x00000002u) {
27780     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
27781       6, this->engine(), target);
27782   }
27783 
27784   if (_internal_metadata_.have_unknown_fields()) {
27785     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
27786         _internal_metadata_.unknown_fields(), target);
27787   }
27788   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.LRNParameter)
27789   return target;
27790 }
27791 
ByteSizeLong() const27792 size_t LRNParameter::ByteSizeLong() const {
27793 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.LRNParameter)
27794   size_t total_size = 0;
27795 
27796   if (_internal_metadata_.have_unknown_fields()) {
27797     total_size +=
27798       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
27799         _internal_metadata_.unknown_fields());
27800   }
27801   if (_has_bits_[0 / 32] & 63u) {
27802     // optional .opencv_caffe.LRNParameter.NormRegion norm_region = 4 [default = ACROSS_CHANNELS];
27803     if (has_norm_region()) {
27804       total_size += 1 +
27805         ::google::protobuf::internal::WireFormatLite::EnumSize(this->norm_region());
27806     }
27807 
27808     // optional .opencv_caffe.LRNParameter.Engine engine = 6 [default = DEFAULT];
27809     if (has_engine()) {
27810       total_size += 1 +
27811         ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine());
27812     }
27813 
27814     // optional uint32 local_size = 1 [default = 5];
27815     if (has_local_size()) {
27816       total_size += 1 +
27817         ::google::protobuf::internal::WireFormatLite::UInt32Size(
27818           this->local_size());
27819     }
27820 
27821     // optional float alpha = 2 [default = 1];
27822     if (has_alpha()) {
27823       total_size += 1 + 4;
27824     }
27825 
27826     // optional float beta = 3 [default = 0.75];
27827     if (has_beta()) {
27828       total_size += 1 + 4;
27829     }
27830 
27831     // optional float k = 5 [default = 1];
27832     if (has_k()) {
27833       total_size += 1 + 4;
27834     }
27835 
27836   }
27837   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
27838   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
27839   _cached_size_ = cached_size;
27840   GOOGLE_SAFE_CONCURRENT_WRITES_END();
27841   return total_size;
27842 }
27843 
MergeFrom(const::google::protobuf::Message & from)27844 void LRNParameter::MergeFrom(const ::google::protobuf::Message& from) {
27845 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.LRNParameter)
27846   GOOGLE_DCHECK_NE(&from, this);
27847   const LRNParameter* source =
27848       ::google::protobuf::internal::DynamicCastToGenerated<const LRNParameter>(
27849           &from);
27850   if (source == NULL) {
27851   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.LRNParameter)
27852     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
27853   } else {
27854   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.LRNParameter)
27855     MergeFrom(*source);
27856   }
27857 }
27858 
MergeFrom(const LRNParameter & from)27859 void LRNParameter::MergeFrom(const LRNParameter& from) {
27860 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.LRNParameter)
27861   GOOGLE_DCHECK_NE(&from, this);
27862   _internal_metadata_.MergeFrom(from._internal_metadata_);
27863   ::google::protobuf::uint32 cached_has_bits = 0;
27864   (void) cached_has_bits;
27865 
27866   cached_has_bits = from._has_bits_[0];
27867   if (cached_has_bits & 63u) {
27868     if (cached_has_bits & 0x00000001u) {
27869       norm_region_ = from.norm_region_;
27870     }
27871     if (cached_has_bits & 0x00000002u) {
27872       engine_ = from.engine_;
27873     }
27874     if (cached_has_bits & 0x00000004u) {
27875       local_size_ = from.local_size_;
27876     }
27877     if (cached_has_bits & 0x00000008u) {
27878       alpha_ = from.alpha_;
27879     }
27880     if (cached_has_bits & 0x00000010u) {
27881       beta_ = from.beta_;
27882     }
27883     if (cached_has_bits & 0x00000020u) {
27884       k_ = from.k_;
27885     }
27886     _has_bits_[0] |= cached_has_bits;
27887   }
27888 }
27889 
CopyFrom(const::google::protobuf::Message & from)27890 void LRNParameter::CopyFrom(const ::google::protobuf::Message& from) {
27891 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.LRNParameter)
27892   if (&from == this) return;
27893   Clear();
27894   MergeFrom(from);
27895 }
27896 
CopyFrom(const LRNParameter & from)27897 void LRNParameter::CopyFrom(const LRNParameter& from) {
27898 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.LRNParameter)
27899   if (&from == this) return;
27900   Clear();
27901   MergeFrom(from);
27902 }
27903 
IsInitialized() const27904 bool LRNParameter::IsInitialized() const {
27905   return true;
27906 }
27907 
Swap(LRNParameter * other)27908 void LRNParameter::Swap(LRNParameter* other) {
27909   if (other == this) return;
27910   InternalSwap(other);
27911 }
InternalSwap(LRNParameter * other)27912 void LRNParameter::InternalSwap(LRNParameter* other) {
27913   using std::swap;
27914   swap(norm_region_, other->norm_region_);
27915   swap(engine_, other->engine_);
27916   swap(local_size_, other->local_size_);
27917   swap(alpha_, other->alpha_);
27918   swap(beta_, other->beta_);
27919   swap(k_, other->k_);
27920   swap(_has_bits_[0], other->_has_bits_[0]);
27921   _internal_metadata_.Swap(&other->_internal_metadata_);
27922   swap(_cached_size_, other->_cached_size_);
27923 }
27924 
GetMetadata() const27925 ::google::protobuf::Metadata LRNParameter::GetMetadata() const {
27926   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
27927   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
27928 }
27929 
27930 
27931 // ===================================================================
27932 
InitAsDefaultInstance()27933 void MemoryDataParameter::InitAsDefaultInstance() {
27934 }
27935 #if !defined(_MSC_VER) || _MSC_VER >= 1900
27936 const int MemoryDataParameter::kBatchSizeFieldNumber;
27937 const int MemoryDataParameter::kChannelsFieldNumber;
27938 const int MemoryDataParameter::kHeightFieldNumber;
27939 const int MemoryDataParameter::kWidthFieldNumber;
27940 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
27941 
MemoryDataParameter()27942 MemoryDataParameter::MemoryDataParameter()
27943   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
27944   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
27945     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameter();
27946   }
27947   SharedCtor();
27948   // @@protoc_insertion_point(constructor:opencv_caffe.MemoryDataParameter)
27949 }
MemoryDataParameter(const MemoryDataParameter & from)27950 MemoryDataParameter::MemoryDataParameter(const MemoryDataParameter& from)
27951   : ::google::protobuf::Message(),
27952       _internal_metadata_(NULL),
27953       _has_bits_(from._has_bits_),
27954       _cached_size_(0) {
27955   _internal_metadata_.MergeFrom(from._internal_metadata_);
27956   ::memcpy(&batch_size_, &from.batch_size_,
27957     static_cast<size_t>(reinterpret_cast<char*>(&width_) -
27958     reinterpret_cast<char*>(&batch_size_)) + sizeof(width_));
27959   // @@protoc_insertion_point(copy_constructor:opencv_caffe.MemoryDataParameter)
27960 }
27961 
SharedCtor()27962 void MemoryDataParameter::SharedCtor() {
27963   _cached_size_ = 0;
27964   ::memset(&batch_size_, 0, static_cast<size_t>(
27965       reinterpret_cast<char*>(&width_) -
27966       reinterpret_cast<char*>(&batch_size_)) + sizeof(width_));
27967 }
27968 
~MemoryDataParameter()27969 MemoryDataParameter::~MemoryDataParameter() {
27970   // @@protoc_insertion_point(destructor:opencv_caffe.MemoryDataParameter)
27971   SharedDtor();
27972 }
27973 
SharedDtor()27974 void MemoryDataParameter::SharedDtor() {
27975 }
27976 
SetCachedSize(int size) const27977 void MemoryDataParameter::SetCachedSize(int size) const {
27978   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
27979   _cached_size_ = size;
27980   GOOGLE_SAFE_CONCURRENT_WRITES_END();
27981 }
descriptor()27982 const ::google::protobuf::Descriptor* MemoryDataParameter::descriptor() {
27983   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
27984   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
27985 }
27986 
default_instance()27987 const MemoryDataParameter& MemoryDataParameter::default_instance() {
27988   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMemoryDataParameter();
27989   return *internal_default_instance();
27990 }
27991 
New(::google::protobuf::Arena * arena) const27992 MemoryDataParameter* MemoryDataParameter::New(::google::protobuf::Arena* arena) const {
27993   MemoryDataParameter* n = new MemoryDataParameter;
27994   if (arena != NULL) {
27995     arena->Own(n);
27996   }
27997   return n;
27998 }
27999 
Clear()28000 void MemoryDataParameter::Clear() {
28001 // @@protoc_insertion_point(message_clear_start:opencv_caffe.MemoryDataParameter)
28002   ::google::protobuf::uint32 cached_has_bits = 0;
28003   // Prevent compiler warnings about cached_has_bits being unused
28004   (void) cached_has_bits;
28005 
28006   cached_has_bits = _has_bits_[0];
28007   if (cached_has_bits & 15u) {
28008     ::memset(&batch_size_, 0, static_cast<size_t>(
28009         reinterpret_cast<char*>(&width_) -
28010         reinterpret_cast<char*>(&batch_size_)) + sizeof(width_));
28011   }
28012   _has_bits_.Clear();
28013   _internal_metadata_.Clear();
28014 }
28015 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)28016 bool MemoryDataParameter::MergePartialFromCodedStream(
28017     ::google::protobuf::io::CodedInputStream* input) {
28018 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
28019   ::google::protobuf::uint32 tag;
28020   // @@protoc_insertion_point(parse_start:opencv_caffe.MemoryDataParameter)
28021   for (;;) {
28022     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
28023     tag = p.first;
28024     if (!p.second) goto handle_unusual;
28025     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
28026       // optional uint32 batch_size = 1;
28027       case 1: {
28028         if (static_cast< ::google::protobuf::uint8>(tag) ==
28029             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
28030           set_has_batch_size();
28031           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
28032                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
28033                  input, &batch_size_)));
28034         } else {
28035           goto handle_unusual;
28036         }
28037         break;
28038       }
28039 
28040       // optional uint32 channels = 2;
28041       case 2: {
28042         if (static_cast< ::google::protobuf::uint8>(tag) ==
28043             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
28044           set_has_channels();
28045           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
28046                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
28047                  input, &channels_)));
28048         } else {
28049           goto handle_unusual;
28050         }
28051         break;
28052       }
28053 
28054       // optional uint32 height = 3;
28055       case 3: {
28056         if (static_cast< ::google::protobuf::uint8>(tag) ==
28057             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
28058           set_has_height();
28059           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
28060                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
28061                  input, &height_)));
28062         } else {
28063           goto handle_unusual;
28064         }
28065         break;
28066       }
28067 
28068       // optional uint32 width = 4;
28069       case 4: {
28070         if (static_cast< ::google::protobuf::uint8>(tag) ==
28071             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
28072           set_has_width();
28073           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
28074                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
28075                  input, &width_)));
28076         } else {
28077           goto handle_unusual;
28078         }
28079         break;
28080       }
28081 
28082       default: {
28083       handle_unusual:
28084         if (tag == 0) {
28085           goto success;
28086         }
28087         DO_(::google::protobuf::internal::WireFormat::SkipField(
28088               input, tag, _internal_metadata_.mutable_unknown_fields()));
28089         break;
28090       }
28091     }
28092   }
28093 success:
28094   // @@protoc_insertion_point(parse_success:opencv_caffe.MemoryDataParameter)
28095   return true;
28096 failure:
28097   // @@protoc_insertion_point(parse_failure:opencv_caffe.MemoryDataParameter)
28098   return false;
28099 #undef DO_
28100 }
28101 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const28102 void MemoryDataParameter::SerializeWithCachedSizes(
28103     ::google::protobuf::io::CodedOutputStream* output) const {
28104   // @@protoc_insertion_point(serialize_start:opencv_caffe.MemoryDataParameter)
28105   ::google::protobuf::uint32 cached_has_bits = 0;
28106   (void) cached_has_bits;
28107 
28108   cached_has_bits = _has_bits_[0];
28109   // optional uint32 batch_size = 1;
28110   if (cached_has_bits & 0x00000001u) {
28111     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->batch_size(), output);
28112   }
28113 
28114   // optional uint32 channels = 2;
28115   if (cached_has_bits & 0x00000002u) {
28116     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->channels(), output);
28117   }
28118 
28119   // optional uint32 height = 3;
28120   if (cached_has_bits & 0x00000004u) {
28121     ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output);
28122   }
28123 
28124   // optional uint32 width = 4;
28125   if (cached_has_bits & 0x00000008u) {
28126     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->width(), output);
28127   }
28128 
28129   if (_internal_metadata_.have_unknown_fields()) {
28130     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
28131         _internal_metadata_.unknown_fields(), output);
28132   }
28133   // @@protoc_insertion_point(serialize_end:opencv_caffe.MemoryDataParameter)
28134 }
28135 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const28136 ::google::protobuf::uint8* MemoryDataParameter::InternalSerializeWithCachedSizesToArray(
28137     bool deterministic, ::google::protobuf::uint8* target) const {
28138   (void)deterministic; // Unused
28139   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.MemoryDataParameter)
28140   ::google::protobuf::uint32 cached_has_bits = 0;
28141   (void) cached_has_bits;
28142 
28143   cached_has_bits = _has_bits_[0];
28144   // optional uint32 batch_size = 1;
28145   if (cached_has_bits & 0x00000001u) {
28146     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->batch_size(), target);
28147   }
28148 
28149   // optional uint32 channels = 2;
28150   if (cached_has_bits & 0x00000002u) {
28151     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->channels(), target);
28152   }
28153 
28154   // optional uint32 height = 3;
28155   if (cached_has_bits & 0x00000004u) {
28156     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->height(), target);
28157   }
28158 
28159   // optional uint32 width = 4;
28160   if (cached_has_bits & 0x00000008u) {
28161     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->width(), target);
28162   }
28163 
28164   if (_internal_metadata_.have_unknown_fields()) {
28165     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
28166         _internal_metadata_.unknown_fields(), target);
28167   }
28168   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.MemoryDataParameter)
28169   return target;
28170 }
28171 
ByteSizeLong() const28172 size_t MemoryDataParameter::ByteSizeLong() const {
28173 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.MemoryDataParameter)
28174   size_t total_size = 0;
28175 
28176   if (_internal_metadata_.have_unknown_fields()) {
28177     total_size +=
28178       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
28179         _internal_metadata_.unknown_fields());
28180   }
28181   if (_has_bits_[0 / 32] & 15u) {
28182     // optional uint32 batch_size = 1;
28183     if (has_batch_size()) {
28184       total_size += 1 +
28185         ::google::protobuf::internal::WireFormatLite::UInt32Size(
28186           this->batch_size());
28187     }
28188 
28189     // optional uint32 channels = 2;
28190     if (has_channels()) {
28191       total_size += 1 +
28192         ::google::protobuf::internal::WireFormatLite::UInt32Size(
28193           this->channels());
28194     }
28195 
28196     // optional uint32 height = 3;
28197     if (has_height()) {
28198       total_size += 1 +
28199         ::google::protobuf::internal::WireFormatLite::UInt32Size(
28200           this->height());
28201     }
28202 
28203     // optional uint32 width = 4;
28204     if (has_width()) {
28205       total_size += 1 +
28206         ::google::protobuf::internal::WireFormatLite::UInt32Size(
28207           this->width());
28208     }
28209 
28210   }
28211   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
28212   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
28213   _cached_size_ = cached_size;
28214   GOOGLE_SAFE_CONCURRENT_WRITES_END();
28215   return total_size;
28216 }
28217 
MergeFrom(const::google::protobuf::Message & from)28218 void MemoryDataParameter::MergeFrom(const ::google::protobuf::Message& from) {
28219 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.MemoryDataParameter)
28220   GOOGLE_DCHECK_NE(&from, this);
28221   const MemoryDataParameter* source =
28222       ::google::protobuf::internal::DynamicCastToGenerated<const MemoryDataParameter>(
28223           &from);
28224   if (source == NULL) {
28225   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.MemoryDataParameter)
28226     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
28227   } else {
28228   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.MemoryDataParameter)
28229     MergeFrom(*source);
28230   }
28231 }
28232 
MergeFrom(const MemoryDataParameter & from)28233 void MemoryDataParameter::MergeFrom(const MemoryDataParameter& from) {
28234 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.MemoryDataParameter)
28235   GOOGLE_DCHECK_NE(&from, this);
28236   _internal_metadata_.MergeFrom(from._internal_metadata_);
28237   ::google::protobuf::uint32 cached_has_bits = 0;
28238   (void) cached_has_bits;
28239 
28240   cached_has_bits = from._has_bits_[0];
28241   if (cached_has_bits & 15u) {
28242     if (cached_has_bits & 0x00000001u) {
28243       batch_size_ = from.batch_size_;
28244     }
28245     if (cached_has_bits & 0x00000002u) {
28246       channels_ = from.channels_;
28247     }
28248     if (cached_has_bits & 0x00000004u) {
28249       height_ = from.height_;
28250     }
28251     if (cached_has_bits & 0x00000008u) {
28252       width_ = from.width_;
28253     }
28254     _has_bits_[0] |= cached_has_bits;
28255   }
28256 }
28257 
CopyFrom(const::google::protobuf::Message & from)28258 void MemoryDataParameter::CopyFrom(const ::google::protobuf::Message& from) {
28259 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.MemoryDataParameter)
28260   if (&from == this) return;
28261   Clear();
28262   MergeFrom(from);
28263 }
28264 
CopyFrom(const MemoryDataParameter & from)28265 void MemoryDataParameter::CopyFrom(const MemoryDataParameter& from) {
28266 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.MemoryDataParameter)
28267   if (&from == this) return;
28268   Clear();
28269   MergeFrom(from);
28270 }
28271 
IsInitialized() const28272 bool MemoryDataParameter::IsInitialized() const {
28273   return true;
28274 }
28275 
Swap(MemoryDataParameter * other)28276 void MemoryDataParameter::Swap(MemoryDataParameter* other) {
28277   if (other == this) return;
28278   InternalSwap(other);
28279 }
InternalSwap(MemoryDataParameter * other)28280 void MemoryDataParameter::InternalSwap(MemoryDataParameter* other) {
28281   using std::swap;
28282   swap(batch_size_, other->batch_size_);
28283   swap(channels_, other->channels_);
28284   swap(height_, other->height_);
28285   swap(width_, other->width_);
28286   swap(_has_bits_[0], other->_has_bits_[0]);
28287   _internal_metadata_.Swap(&other->_internal_metadata_);
28288   swap(_cached_size_, other->_cached_size_);
28289 }
28290 
GetMetadata() const28291 ::google::protobuf::Metadata MemoryDataParameter::GetMetadata() const {
28292   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
28293   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
28294 }
28295 
28296 
28297 // ===================================================================
28298 
InitAsDefaultInstance()28299 void MVNParameter::InitAsDefaultInstance() {
28300 }
28301 #if !defined(_MSC_VER) || _MSC_VER >= 1900
28302 const int MVNParameter::kNormalizeVarianceFieldNumber;
28303 const int MVNParameter::kAcrossChannelsFieldNumber;
28304 const int MVNParameter::kEpsFieldNumber;
28305 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
28306 
MVNParameter()28307 MVNParameter::MVNParameter()
28308   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
28309   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
28310     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameter();
28311   }
28312   SharedCtor();
28313   // @@protoc_insertion_point(constructor:opencv_caffe.MVNParameter)
28314 }
MVNParameter(const MVNParameter & from)28315 MVNParameter::MVNParameter(const MVNParameter& from)
28316   : ::google::protobuf::Message(),
28317       _internal_metadata_(NULL),
28318       _has_bits_(from._has_bits_),
28319       _cached_size_(0) {
28320   _internal_metadata_.MergeFrom(from._internal_metadata_);
28321   ::memcpy(&across_channels_, &from.across_channels_,
28322     static_cast<size_t>(reinterpret_cast<char*>(&eps_) -
28323     reinterpret_cast<char*>(&across_channels_)) + sizeof(eps_));
28324   // @@protoc_insertion_point(copy_constructor:opencv_caffe.MVNParameter)
28325 }
28326 
SharedCtor()28327 void MVNParameter::SharedCtor() {
28328   _cached_size_ = 0;
28329   across_channels_ = false;
28330   normalize_variance_ = true;
28331   eps_ = 1e-09f;
28332 }
28333 
~MVNParameter()28334 MVNParameter::~MVNParameter() {
28335   // @@protoc_insertion_point(destructor:opencv_caffe.MVNParameter)
28336   SharedDtor();
28337 }
28338 
SharedDtor()28339 void MVNParameter::SharedDtor() {
28340 }
28341 
SetCachedSize(int size) const28342 void MVNParameter::SetCachedSize(int size) const {
28343   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
28344   _cached_size_ = size;
28345   GOOGLE_SAFE_CONCURRENT_WRITES_END();
28346 }
descriptor()28347 const ::google::protobuf::Descriptor* MVNParameter::descriptor() {
28348   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
28349   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
28350 }
28351 
default_instance()28352 const MVNParameter& MVNParameter::default_instance() {
28353   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsMVNParameter();
28354   return *internal_default_instance();
28355 }
28356 
New(::google::protobuf::Arena * arena) const28357 MVNParameter* MVNParameter::New(::google::protobuf::Arena* arena) const {
28358   MVNParameter* n = new MVNParameter;
28359   if (arena != NULL) {
28360     arena->Own(n);
28361   }
28362   return n;
28363 }
28364 
Clear()28365 void MVNParameter::Clear() {
28366 // @@protoc_insertion_point(message_clear_start:opencv_caffe.MVNParameter)
28367   ::google::protobuf::uint32 cached_has_bits = 0;
28368   // Prevent compiler warnings about cached_has_bits being unused
28369   (void) cached_has_bits;
28370 
28371   cached_has_bits = _has_bits_[0];
28372   if (cached_has_bits & 7u) {
28373     across_channels_ = false;
28374     normalize_variance_ = true;
28375     eps_ = 1e-09f;
28376   }
28377   _has_bits_.Clear();
28378   _internal_metadata_.Clear();
28379 }
28380 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)28381 bool MVNParameter::MergePartialFromCodedStream(
28382     ::google::protobuf::io::CodedInputStream* input) {
28383 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
28384   ::google::protobuf::uint32 tag;
28385   // @@protoc_insertion_point(parse_start:opencv_caffe.MVNParameter)
28386   for (;;) {
28387     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
28388     tag = p.first;
28389     if (!p.second) goto handle_unusual;
28390     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
28391       // optional bool normalize_variance = 1 [default = true];
28392       case 1: {
28393         if (static_cast< ::google::protobuf::uint8>(tag) ==
28394             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
28395           set_has_normalize_variance();
28396           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
28397                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
28398                  input, &normalize_variance_)));
28399         } else {
28400           goto handle_unusual;
28401         }
28402         break;
28403       }
28404 
28405       // optional bool across_channels = 2 [default = false];
28406       case 2: {
28407         if (static_cast< ::google::protobuf::uint8>(tag) ==
28408             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
28409           set_has_across_channels();
28410           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
28411                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
28412                  input, &across_channels_)));
28413         } else {
28414           goto handle_unusual;
28415         }
28416         break;
28417       }
28418 
28419       // optional float eps = 3 [default = 1e-09];
28420       case 3: {
28421         if (static_cast< ::google::protobuf::uint8>(tag) ==
28422             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
28423           set_has_eps();
28424           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
28425                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
28426                  input, &eps_)));
28427         } else {
28428           goto handle_unusual;
28429         }
28430         break;
28431       }
28432 
28433       default: {
28434       handle_unusual:
28435         if (tag == 0) {
28436           goto success;
28437         }
28438         DO_(::google::protobuf::internal::WireFormat::SkipField(
28439               input, tag, _internal_metadata_.mutable_unknown_fields()));
28440         break;
28441       }
28442     }
28443   }
28444 success:
28445   // @@protoc_insertion_point(parse_success:opencv_caffe.MVNParameter)
28446   return true;
28447 failure:
28448   // @@protoc_insertion_point(parse_failure:opencv_caffe.MVNParameter)
28449   return false;
28450 #undef DO_
28451 }
28452 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const28453 void MVNParameter::SerializeWithCachedSizes(
28454     ::google::protobuf::io::CodedOutputStream* output) const {
28455   // @@protoc_insertion_point(serialize_start:opencv_caffe.MVNParameter)
28456   ::google::protobuf::uint32 cached_has_bits = 0;
28457   (void) cached_has_bits;
28458 
28459   cached_has_bits = _has_bits_[0];
28460   // optional bool normalize_variance = 1 [default = true];
28461   if (cached_has_bits & 0x00000002u) {
28462     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->normalize_variance(), output);
28463   }
28464 
28465   // optional bool across_channels = 2 [default = false];
28466   if (cached_has_bits & 0x00000001u) {
28467     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->across_channels(), output);
28468   }
28469 
28470   // optional float eps = 3 [default = 1e-09];
28471   if (cached_has_bits & 0x00000004u) {
28472     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->eps(), output);
28473   }
28474 
28475   if (_internal_metadata_.have_unknown_fields()) {
28476     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
28477         _internal_metadata_.unknown_fields(), output);
28478   }
28479   // @@protoc_insertion_point(serialize_end:opencv_caffe.MVNParameter)
28480 }
28481 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const28482 ::google::protobuf::uint8* MVNParameter::InternalSerializeWithCachedSizesToArray(
28483     bool deterministic, ::google::protobuf::uint8* target) const {
28484   (void)deterministic; // Unused
28485   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.MVNParameter)
28486   ::google::protobuf::uint32 cached_has_bits = 0;
28487   (void) cached_has_bits;
28488 
28489   cached_has_bits = _has_bits_[0];
28490   // optional bool normalize_variance = 1 [default = true];
28491   if (cached_has_bits & 0x00000002u) {
28492     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->normalize_variance(), target);
28493   }
28494 
28495   // optional bool across_channels = 2 [default = false];
28496   if (cached_has_bits & 0x00000001u) {
28497     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->across_channels(), target);
28498   }
28499 
28500   // optional float eps = 3 [default = 1e-09];
28501   if (cached_has_bits & 0x00000004u) {
28502     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->eps(), target);
28503   }
28504 
28505   if (_internal_metadata_.have_unknown_fields()) {
28506     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
28507         _internal_metadata_.unknown_fields(), target);
28508   }
28509   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.MVNParameter)
28510   return target;
28511 }
28512 
ByteSizeLong() const28513 size_t MVNParameter::ByteSizeLong() const {
28514 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.MVNParameter)
28515   size_t total_size = 0;
28516 
28517   if (_internal_metadata_.have_unknown_fields()) {
28518     total_size +=
28519       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
28520         _internal_metadata_.unknown_fields());
28521   }
28522   if (_has_bits_[0 / 32] & 7u) {
28523     // optional bool across_channels = 2 [default = false];
28524     if (has_across_channels()) {
28525       total_size += 1 + 1;
28526     }
28527 
28528     // optional bool normalize_variance = 1 [default = true];
28529     if (has_normalize_variance()) {
28530       total_size += 1 + 1;
28531     }
28532 
28533     // optional float eps = 3 [default = 1e-09];
28534     if (has_eps()) {
28535       total_size += 1 + 4;
28536     }
28537 
28538   }
28539   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
28540   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
28541   _cached_size_ = cached_size;
28542   GOOGLE_SAFE_CONCURRENT_WRITES_END();
28543   return total_size;
28544 }
28545 
MergeFrom(const::google::protobuf::Message & from)28546 void MVNParameter::MergeFrom(const ::google::protobuf::Message& from) {
28547 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.MVNParameter)
28548   GOOGLE_DCHECK_NE(&from, this);
28549   const MVNParameter* source =
28550       ::google::protobuf::internal::DynamicCastToGenerated<const MVNParameter>(
28551           &from);
28552   if (source == NULL) {
28553   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.MVNParameter)
28554     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
28555   } else {
28556   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.MVNParameter)
28557     MergeFrom(*source);
28558   }
28559 }
28560 
MergeFrom(const MVNParameter & from)28561 void MVNParameter::MergeFrom(const MVNParameter& from) {
28562 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.MVNParameter)
28563   GOOGLE_DCHECK_NE(&from, this);
28564   _internal_metadata_.MergeFrom(from._internal_metadata_);
28565   ::google::protobuf::uint32 cached_has_bits = 0;
28566   (void) cached_has_bits;
28567 
28568   cached_has_bits = from._has_bits_[0];
28569   if (cached_has_bits & 7u) {
28570     if (cached_has_bits & 0x00000001u) {
28571       across_channels_ = from.across_channels_;
28572     }
28573     if (cached_has_bits & 0x00000002u) {
28574       normalize_variance_ = from.normalize_variance_;
28575     }
28576     if (cached_has_bits & 0x00000004u) {
28577       eps_ = from.eps_;
28578     }
28579     _has_bits_[0] |= cached_has_bits;
28580   }
28581 }
28582 
CopyFrom(const::google::protobuf::Message & from)28583 void MVNParameter::CopyFrom(const ::google::protobuf::Message& from) {
28584 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.MVNParameter)
28585   if (&from == this) return;
28586   Clear();
28587   MergeFrom(from);
28588 }
28589 
CopyFrom(const MVNParameter & from)28590 void MVNParameter::CopyFrom(const MVNParameter& from) {
28591 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.MVNParameter)
28592   if (&from == this) return;
28593   Clear();
28594   MergeFrom(from);
28595 }
28596 
IsInitialized() const28597 bool MVNParameter::IsInitialized() const {
28598   return true;
28599 }
28600 
Swap(MVNParameter * other)28601 void MVNParameter::Swap(MVNParameter* other) {
28602   if (other == this) return;
28603   InternalSwap(other);
28604 }
InternalSwap(MVNParameter * other)28605 void MVNParameter::InternalSwap(MVNParameter* other) {
28606   using std::swap;
28607   swap(across_channels_, other->across_channels_);
28608   swap(normalize_variance_, other->normalize_variance_);
28609   swap(eps_, other->eps_);
28610   swap(_has_bits_[0], other->_has_bits_[0]);
28611   _internal_metadata_.Swap(&other->_internal_metadata_);
28612   swap(_cached_size_, other->_cached_size_);
28613 }
28614 
GetMetadata() const28615 ::google::protobuf::Metadata MVNParameter::GetMetadata() const {
28616   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
28617   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
28618 }
28619 
28620 
28621 // ===================================================================
28622 
InitAsDefaultInstance()28623 void ParameterParameter::InitAsDefaultInstance() {
28624   ::opencv_caffe::_ParameterParameter_default_instance_._instance.get_mutable()->shape_ = const_cast< ::opencv_caffe::BlobShape*>(
28625       ::opencv_caffe::BlobShape::internal_default_instance());
28626 }
28627 #if !defined(_MSC_VER) || _MSC_VER >= 1900
28628 const int ParameterParameter::kShapeFieldNumber;
28629 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
28630 
ParameterParameter()28631 ParameterParameter::ParameterParameter()
28632   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
28633   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
28634     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParameterParameter();
28635   }
28636   SharedCtor();
28637   // @@protoc_insertion_point(constructor:opencv_caffe.ParameterParameter)
28638 }
ParameterParameter(const ParameterParameter & from)28639 ParameterParameter::ParameterParameter(const ParameterParameter& from)
28640   : ::google::protobuf::Message(),
28641       _internal_metadata_(NULL),
28642       _has_bits_(from._has_bits_),
28643       _cached_size_(0) {
28644   _internal_metadata_.MergeFrom(from._internal_metadata_);
28645   if (from.has_shape()) {
28646     shape_ = new ::opencv_caffe::BlobShape(*from.shape_);
28647   } else {
28648     shape_ = NULL;
28649   }
28650   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ParameterParameter)
28651 }
28652 
SharedCtor()28653 void ParameterParameter::SharedCtor() {
28654   _cached_size_ = 0;
28655   shape_ = NULL;
28656 }
28657 
~ParameterParameter()28658 ParameterParameter::~ParameterParameter() {
28659   // @@protoc_insertion_point(destructor:opencv_caffe.ParameterParameter)
28660   SharedDtor();
28661 }
28662 
SharedDtor()28663 void ParameterParameter::SharedDtor() {
28664   if (this != internal_default_instance()) delete shape_;
28665 }
28666 
SetCachedSize(int size) const28667 void ParameterParameter::SetCachedSize(int size) const {
28668   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
28669   _cached_size_ = size;
28670   GOOGLE_SAFE_CONCURRENT_WRITES_END();
28671 }
descriptor()28672 const ::google::protobuf::Descriptor* ParameterParameter::descriptor() {
28673   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
28674   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
28675 }
28676 
default_instance()28677 const ParameterParameter& ParameterParameter::default_instance() {
28678   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsParameterParameter();
28679   return *internal_default_instance();
28680 }
28681 
New(::google::protobuf::Arena * arena) const28682 ParameterParameter* ParameterParameter::New(::google::protobuf::Arena* arena) const {
28683   ParameterParameter* n = new ParameterParameter;
28684   if (arena != NULL) {
28685     arena->Own(n);
28686   }
28687   return n;
28688 }
28689 
Clear()28690 void ParameterParameter::Clear() {
28691 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ParameterParameter)
28692   ::google::protobuf::uint32 cached_has_bits = 0;
28693   // Prevent compiler warnings about cached_has_bits being unused
28694   (void) cached_has_bits;
28695 
28696   cached_has_bits = _has_bits_[0];
28697   if (cached_has_bits & 0x00000001u) {
28698     GOOGLE_DCHECK(shape_ != NULL);
28699     shape_->Clear();
28700   }
28701   _has_bits_.Clear();
28702   _internal_metadata_.Clear();
28703 }
28704 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)28705 bool ParameterParameter::MergePartialFromCodedStream(
28706     ::google::protobuf::io::CodedInputStream* input) {
28707 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
28708   ::google::protobuf::uint32 tag;
28709   // @@protoc_insertion_point(parse_start:opencv_caffe.ParameterParameter)
28710   for (;;) {
28711     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
28712     tag = p.first;
28713     if (!p.second) goto handle_unusual;
28714     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
28715       // optional .opencv_caffe.BlobShape shape = 1;
28716       case 1: {
28717         if (static_cast< ::google::protobuf::uint8>(tag) ==
28718             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
28719           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
28720                input, mutable_shape()));
28721         } else {
28722           goto handle_unusual;
28723         }
28724         break;
28725       }
28726 
28727       default: {
28728       handle_unusual:
28729         if (tag == 0) {
28730           goto success;
28731         }
28732         DO_(::google::protobuf::internal::WireFormat::SkipField(
28733               input, tag, _internal_metadata_.mutable_unknown_fields()));
28734         break;
28735       }
28736     }
28737   }
28738 success:
28739   // @@protoc_insertion_point(parse_success:opencv_caffe.ParameterParameter)
28740   return true;
28741 failure:
28742   // @@protoc_insertion_point(parse_failure:opencv_caffe.ParameterParameter)
28743   return false;
28744 #undef DO_
28745 }
28746 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const28747 void ParameterParameter::SerializeWithCachedSizes(
28748     ::google::protobuf::io::CodedOutputStream* output) const {
28749   // @@protoc_insertion_point(serialize_start:opencv_caffe.ParameterParameter)
28750   ::google::protobuf::uint32 cached_has_bits = 0;
28751   (void) cached_has_bits;
28752 
28753   cached_has_bits = _has_bits_[0];
28754   // optional .opencv_caffe.BlobShape shape = 1;
28755   if (cached_has_bits & 0x00000001u) {
28756     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
28757       1, *this->shape_, output);
28758   }
28759 
28760   if (_internal_metadata_.have_unknown_fields()) {
28761     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
28762         _internal_metadata_.unknown_fields(), output);
28763   }
28764   // @@protoc_insertion_point(serialize_end:opencv_caffe.ParameterParameter)
28765 }
28766 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const28767 ::google::protobuf::uint8* ParameterParameter::InternalSerializeWithCachedSizesToArray(
28768     bool deterministic, ::google::protobuf::uint8* target) const {
28769   (void)deterministic; // Unused
28770   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ParameterParameter)
28771   ::google::protobuf::uint32 cached_has_bits = 0;
28772   (void) cached_has_bits;
28773 
28774   cached_has_bits = _has_bits_[0];
28775   // optional .opencv_caffe.BlobShape shape = 1;
28776   if (cached_has_bits & 0x00000001u) {
28777     target = ::google::protobuf::internal::WireFormatLite::
28778       InternalWriteMessageToArray(
28779         1, *this->shape_, deterministic, target);
28780   }
28781 
28782   if (_internal_metadata_.have_unknown_fields()) {
28783     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
28784         _internal_metadata_.unknown_fields(), target);
28785   }
28786   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ParameterParameter)
28787   return target;
28788 }
28789 
ByteSizeLong() const28790 size_t ParameterParameter::ByteSizeLong() const {
28791 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ParameterParameter)
28792   size_t total_size = 0;
28793 
28794   if (_internal_metadata_.have_unknown_fields()) {
28795     total_size +=
28796       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
28797         _internal_metadata_.unknown_fields());
28798   }
28799   // optional .opencv_caffe.BlobShape shape = 1;
28800   if (has_shape()) {
28801     total_size += 1 +
28802       ::google::protobuf::internal::WireFormatLite::MessageSize(
28803         *this->shape_);
28804   }
28805 
28806   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
28807   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
28808   _cached_size_ = cached_size;
28809   GOOGLE_SAFE_CONCURRENT_WRITES_END();
28810   return total_size;
28811 }
28812 
MergeFrom(const::google::protobuf::Message & from)28813 void ParameterParameter::MergeFrom(const ::google::protobuf::Message& from) {
28814 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ParameterParameter)
28815   GOOGLE_DCHECK_NE(&from, this);
28816   const ParameterParameter* source =
28817       ::google::protobuf::internal::DynamicCastToGenerated<const ParameterParameter>(
28818           &from);
28819   if (source == NULL) {
28820   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ParameterParameter)
28821     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
28822   } else {
28823   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ParameterParameter)
28824     MergeFrom(*source);
28825   }
28826 }
28827 
MergeFrom(const ParameterParameter & from)28828 void ParameterParameter::MergeFrom(const ParameterParameter& from) {
28829 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ParameterParameter)
28830   GOOGLE_DCHECK_NE(&from, this);
28831   _internal_metadata_.MergeFrom(from._internal_metadata_);
28832   ::google::protobuf::uint32 cached_has_bits = 0;
28833   (void) cached_has_bits;
28834 
28835   if (from.has_shape()) {
28836     mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape());
28837   }
28838 }
28839 
CopyFrom(const::google::protobuf::Message & from)28840 void ParameterParameter::CopyFrom(const ::google::protobuf::Message& from) {
28841 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ParameterParameter)
28842   if (&from == this) return;
28843   Clear();
28844   MergeFrom(from);
28845 }
28846 
CopyFrom(const ParameterParameter & from)28847 void ParameterParameter::CopyFrom(const ParameterParameter& from) {
28848 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ParameterParameter)
28849   if (&from == this) return;
28850   Clear();
28851   MergeFrom(from);
28852 }
28853 
IsInitialized() const28854 bool ParameterParameter::IsInitialized() const {
28855   return true;
28856 }
28857 
Swap(ParameterParameter * other)28858 void ParameterParameter::Swap(ParameterParameter* other) {
28859   if (other == this) return;
28860   InternalSwap(other);
28861 }
InternalSwap(ParameterParameter * other)28862 void ParameterParameter::InternalSwap(ParameterParameter* other) {
28863   using std::swap;
28864   swap(shape_, other->shape_);
28865   swap(_has_bits_[0], other->_has_bits_[0]);
28866   _internal_metadata_.Swap(&other->_internal_metadata_);
28867   swap(_cached_size_, other->_cached_size_);
28868 }
28869 
GetMetadata() const28870 ::google::protobuf::Metadata ParameterParameter::GetMetadata() const {
28871   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
28872   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
28873 }
28874 
28875 
28876 // ===================================================================
28877 
InitAsDefaultInstance()28878 void PoolingParameter::InitAsDefaultInstance() {
28879 }
28880 #if !defined(_MSC_VER) || _MSC_VER >= 1900
28881 const int PoolingParameter::kPoolFieldNumber;
28882 const int PoolingParameter::kPadFieldNumber;
28883 const int PoolingParameter::kPadHFieldNumber;
28884 const int PoolingParameter::kPadWFieldNumber;
28885 const int PoolingParameter::kKernelSizeFieldNumber;
28886 const int PoolingParameter::kKernelHFieldNumber;
28887 const int PoolingParameter::kKernelWFieldNumber;
28888 const int PoolingParameter::kStrideFieldNumber;
28889 const int PoolingParameter::kStrideHFieldNumber;
28890 const int PoolingParameter::kStrideWFieldNumber;
28891 const int PoolingParameter::kEngineFieldNumber;
28892 const int PoolingParameter::kGlobalPoolingFieldNumber;
28893 const int PoolingParameter::kCeilModeFieldNumber;
28894 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
28895 
PoolingParameter()28896 PoolingParameter::PoolingParameter()
28897   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
28898   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
28899     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameter();
28900   }
28901   SharedCtor();
28902   // @@protoc_insertion_point(constructor:opencv_caffe.PoolingParameter)
28903 }
PoolingParameter(const PoolingParameter & from)28904 PoolingParameter::PoolingParameter(const PoolingParameter& from)
28905   : ::google::protobuf::Message(),
28906       _internal_metadata_(NULL),
28907       _has_bits_(from._has_bits_),
28908       _cached_size_(0) {
28909   _internal_metadata_.MergeFrom(from._internal_metadata_);
28910   ::memcpy(&pool_, &from.pool_,
28911     static_cast<size_t>(reinterpret_cast<char*>(&ceil_mode_) -
28912     reinterpret_cast<char*>(&pool_)) + sizeof(ceil_mode_));
28913   // @@protoc_insertion_point(copy_constructor:opencv_caffe.PoolingParameter)
28914 }
28915 
SharedCtor()28916 void PoolingParameter::SharedCtor() {
28917   _cached_size_ = 0;
28918   ::memset(&pool_, 0, static_cast<size_t>(
28919       reinterpret_cast<char*>(&global_pooling_) -
28920       reinterpret_cast<char*>(&pool_)) + sizeof(global_pooling_));
28921   stride_ = 1u;
28922   ceil_mode_ = true;
28923 }
28924 
~PoolingParameter()28925 PoolingParameter::~PoolingParameter() {
28926   // @@protoc_insertion_point(destructor:opencv_caffe.PoolingParameter)
28927   SharedDtor();
28928 }
28929 
SharedDtor()28930 void PoolingParameter::SharedDtor() {
28931 }
28932 
SetCachedSize(int size) const28933 void PoolingParameter::SetCachedSize(int size) const {
28934   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
28935   _cached_size_ = size;
28936   GOOGLE_SAFE_CONCURRENT_WRITES_END();
28937 }
descriptor()28938 const ::google::protobuf::Descriptor* PoolingParameter::descriptor() {
28939   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
28940   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
28941 }
28942 
default_instance()28943 const PoolingParameter& PoolingParameter::default_instance() {
28944   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPoolingParameter();
28945   return *internal_default_instance();
28946 }
28947 
New(::google::protobuf::Arena * arena) const28948 PoolingParameter* PoolingParameter::New(::google::protobuf::Arena* arena) const {
28949   PoolingParameter* n = new PoolingParameter;
28950   if (arena != NULL) {
28951     arena->Own(n);
28952   }
28953   return n;
28954 }
28955 
Clear()28956 void PoolingParameter::Clear() {
28957 // @@protoc_insertion_point(message_clear_start:opencv_caffe.PoolingParameter)
28958   ::google::protobuf::uint32 cached_has_bits = 0;
28959   // Prevent compiler warnings about cached_has_bits being unused
28960   (void) cached_has_bits;
28961 
28962   cached_has_bits = _has_bits_[0];
28963   if (cached_has_bits & 255u) {
28964     ::memset(&pool_, 0, static_cast<size_t>(
28965         reinterpret_cast<char*>(&pad_h_) -
28966         reinterpret_cast<char*>(&pool_)) + sizeof(pad_h_));
28967   }
28968   if (cached_has_bits & 7936u) {
28969     ::memset(&pad_w_, 0, static_cast<size_t>(
28970         reinterpret_cast<char*>(&global_pooling_) -
28971         reinterpret_cast<char*>(&pad_w_)) + sizeof(global_pooling_));
28972     stride_ = 1u;
28973     ceil_mode_ = true;
28974   }
28975   _has_bits_.Clear();
28976   _internal_metadata_.Clear();
28977 }
28978 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)28979 bool PoolingParameter::MergePartialFromCodedStream(
28980     ::google::protobuf::io::CodedInputStream* input) {
28981 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
28982   ::google::protobuf::uint32 tag;
28983   // @@protoc_insertion_point(parse_start:opencv_caffe.PoolingParameter)
28984   for (;;) {
28985     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
28986     tag = p.first;
28987     if (!p.second) goto handle_unusual;
28988     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
28989       // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX];
28990       case 1: {
28991         if (static_cast< ::google::protobuf::uint8>(tag) ==
28992             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
28993           int value;
28994           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
28995                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
28996                  input, &value)));
28997           if (::opencv_caffe::PoolingParameter_PoolMethod_IsValid(value)) {
28998             set_pool(static_cast< ::opencv_caffe::PoolingParameter_PoolMethod >(value));
28999           } else {
29000             mutable_unknown_fields()->AddVarint(
29001                 1, static_cast< ::google::protobuf::uint64>(value));
29002           }
29003         } else {
29004           goto handle_unusual;
29005         }
29006         break;
29007       }
29008 
29009       // optional uint32 kernel_size = 2;
29010       case 2: {
29011         if (static_cast< ::google::protobuf::uint8>(tag) ==
29012             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
29013           set_has_kernel_size();
29014           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29015                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29016                  input, &kernel_size_)));
29017         } else {
29018           goto handle_unusual;
29019         }
29020         break;
29021       }
29022 
29023       // optional uint32 stride = 3 [default = 1];
29024       case 3: {
29025         if (static_cast< ::google::protobuf::uint8>(tag) ==
29026             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
29027           set_has_stride();
29028           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29029                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29030                  input, &stride_)));
29031         } else {
29032           goto handle_unusual;
29033         }
29034         break;
29035       }
29036 
29037       // optional uint32 pad = 4 [default = 0];
29038       case 4: {
29039         if (static_cast< ::google::protobuf::uint8>(tag) ==
29040             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
29041           set_has_pad();
29042           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29043                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29044                  input, &pad_)));
29045         } else {
29046           goto handle_unusual;
29047         }
29048         break;
29049       }
29050 
29051       // optional uint32 kernel_h = 5;
29052       case 5: {
29053         if (static_cast< ::google::protobuf::uint8>(tag) ==
29054             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
29055           set_has_kernel_h();
29056           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29057                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29058                  input, &kernel_h_)));
29059         } else {
29060           goto handle_unusual;
29061         }
29062         break;
29063       }
29064 
29065       // optional uint32 kernel_w = 6;
29066       case 6: {
29067         if (static_cast< ::google::protobuf::uint8>(tag) ==
29068             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
29069           set_has_kernel_w();
29070           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29071                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29072                  input, &kernel_w_)));
29073         } else {
29074           goto handle_unusual;
29075         }
29076         break;
29077       }
29078 
29079       // optional uint32 stride_h = 7;
29080       case 7: {
29081         if (static_cast< ::google::protobuf::uint8>(tag) ==
29082             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
29083           set_has_stride_h();
29084           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29085                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29086                  input, &stride_h_)));
29087         } else {
29088           goto handle_unusual;
29089         }
29090         break;
29091       }
29092 
29093       // optional uint32 stride_w = 8;
29094       case 8: {
29095         if (static_cast< ::google::protobuf::uint8>(tag) ==
29096             static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
29097           set_has_stride_w();
29098           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29099                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29100                  input, &stride_w_)));
29101         } else {
29102           goto handle_unusual;
29103         }
29104         break;
29105       }
29106 
29107       // optional uint32 pad_h = 9 [default = 0];
29108       case 9: {
29109         if (static_cast< ::google::protobuf::uint8>(tag) ==
29110             static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
29111           set_has_pad_h();
29112           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29113                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29114                  input, &pad_h_)));
29115         } else {
29116           goto handle_unusual;
29117         }
29118         break;
29119       }
29120 
29121       // optional uint32 pad_w = 10 [default = 0];
29122       case 10: {
29123         if (static_cast< ::google::protobuf::uint8>(tag) ==
29124             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
29125           set_has_pad_w();
29126           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29127                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
29128                  input, &pad_w_)));
29129         } else {
29130           goto handle_unusual;
29131         }
29132         break;
29133       }
29134 
29135       // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT];
29136       case 11: {
29137         if (static_cast< ::google::protobuf::uint8>(tag) ==
29138             static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
29139           int value;
29140           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29141                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
29142                  input, &value)));
29143           if (::opencv_caffe::PoolingParameter_Engine_IsValid(value)) {
29144             set_engine(static_cast< ::opencv_caffe::PoolingParameter_Engine >(value));
29145           } else {
29146             mutable_unknown_fields()->AddVarint(
29147                 11, static_cast< ::google::protobuf::uint64>(value));
29148           }
29149         } else {
29150           goto handle_unusual;
29151         }
29152         break;
29153       }
29154 
29155       // optional bool global_pooling = 12 [default = false];
29156       case 12: {
29157         if (static_cast< ::google::protobuf::uint8>(tag) ==
29158             static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
29159           set_has_global_pooling();
29160           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29161                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
29162                  input, &global_pooling_)));
29163         } else {
29164           goto handle_unusual;
29165         }
29166         break;
29167       }
29168 
29169       // optional bool ceil_mode = 13 [default = true];
29170       case 13: {
29171         if (static_cast< ::google::protobuf::uint8>(tag) ==
29172             static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
29173           set_has_ceil_mode();
29174           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29175                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
29176                  input, &ceil_mode_)));
29177         } else {
29178           goto handle_unusual;
29179         }
29180         break;
29181       }
29182 
29183       default: {
29184       handle_unusual:
29185         if (tag == 0) {
29186           goto success;
29187         }
29188         DO_(::google::protobuf::internal::WireFormat::SkipField(
29189               input, tag, _internal_metadata_.mutable_unknown_fields()));
29190         break;
29191       }
29192     }
29193   }
29194 success:
29195   // @@protoc_insertion_point(parse_success:opencv_caffe.PoolingParameter)
29196   return true;
29197 failure:
29198   // @@protoc_insertion_point(parse_failure:opencv_caffe.PoolingParameter)
29199   return false;
29200 #undef DO_
29201 }
29202 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const29203 void PoolingParameter::SerializeWithCachedSizes(
29204     ::google::protobuf::io::CodedOutputStream* output) const {
29205   // @@protoc_insertion_point(serialize_start:opencv_caffe.PoolingParameter)
29206   ::google::protobuf::uint32 cached_has_bits = 0;
29207   (void) cached_has_bits;
29208 
29209   cached_has_bits = _has_bits_[0];
29210   // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX];
29211   if (cached_has_bits & 0x00000001u) {
29212     ::google::protobuf::internal::WireFormatLite::WriteEnum(
29213       1, this->pool(), output);
29214   }
29215 
29216   // optional uint32 kernel_size = 2;
29217   if (cached_has_bits & 0x00000002u) {
29218     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->kernel_size(), output);
29219   }
29220 
29221   // optional uint32 stride = 3 [default = 1];
29222   if (cached_has_bits & 0x00000800u) {
29223     ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->stride(), output);
29224   }
29225 
29226   // optional uint32 pad = 4 [default = 0];
29227   if (cached_has_bits & 0x00000004u) {
29228     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->pad(), output);
29229   }
29230 
29231   // optional uint32 kernel_h = 5;
29232   if (cached_has_bits & 0x00000008u) {
29233     ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->kernel_h(), output);
29234   }
29235 
29236   // optional uint32 kernel_w = 6;
29237   if (cached_has_bits & 0x00000010u) {
29238     ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->kernel_w(), output);
29239   }
29240 
29241   // optional uint32 stride_h = 7;
29242   if (cached_has_bits & 0x00000020u) {
29243     ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->stride_h(), output);
29244   }
29245 
29246   // optional uint32 stride_w = 8;
29247   if (cached_has_bits & 0x00000040u) {
29248     ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->stride_w(), output);
29249   }
29250 
29251   // optional uint32 pad_h = 9 [default = 0];
29252   if (cached_has_bits & 0x00000080u) {
29253     ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->pad_h(), output);
29254   }
29255 
29256   // optional uint32 pad_w = 10 [default = 0];
29257   if (cached_has_bits & 0x00000100u) {
29258     ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->pad_w(), output);
29259   }
29260 
29261   // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT];
29262   if (cached_has_bits & 0x00000200u) {
29263     ::google::protobuf::internal::WireFormatLite::WriteEnum(
29264       11, this->engine(), output);
29265   }
29266 
29267   // optional bool global_pooling = 12 [default = false];
29268   if (cached_has_bits & 0x00000400u) {
29269     ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->global_pooling(), output);
29270   }
29271 
29272   // optional bool ceil_mode = 13 [default = true];
29273   if (cached_has_bits & 0x00001000u) {
29274     ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->ceil_mode(), output);
29275   }
29276 
29277   if (_internal_metadata_.have_unknown_fields()) {
29278     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
29279         _internal_metadata_.unknown_fields(), output);
29280   }
29281   // @@protoc_insertion_point(serialize_end:opencv_caffe.PoolingParameter)
29282 }
29283 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const29284 ::google::protobuf::uint8* PoolingParameter::InternalSerializeWithCachedSizesToArray(
29285     bool deterministic, ::google::protobuf::uint8* target) const {
29286   (void)deterministic; // Unused
29287   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PoolingParameter)
29288   ::google::protobuf::uint32 cached_has_bits = 0;
29289   (void) cached_has_bits;
29290 
29291   cached_has_bits = _has_bits_[0];
29292   // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX];
29293   if (cached_has_bits & 0x00000001u) {
29294     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
29295       1, this->pool(), target);
29296   }
29297 
29298   // optional uint32 kernel_size = 2;
29299   if (cached_has_bits & 0x00000002u) {
29300     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->kernel_size(), target);
29301   }
29302 
29303   // optional uint32 stride = 3 [default = 1];
29304   if (cached_has_bits & 0x00000800u) {
29305     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->stride(), target);
29306   }
29307 
29308   // optional uint32 pad = 4 [default = 0];
29309   if (cached_has_bits & 0x00000004u) {
29310     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->pad(), target);
29311   }
29312 
29313   // optional uint32 kernel_h = 5;
29314   if (cached_has_bits & 0x00000008u) {
29315     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->kernel_h(), target);
29316   }
29317 
29318   // optional uint32 kernel_w = 6;
29319   if (cached_has_bits & 0x00000010u) {
29320     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->kernel_w(), target);
29321   }
29322 
29323   // optional uint32 stride_h = 7;
29324   if (cached_has_bits & 0x00000020u) {
29325     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->stride_h(), target);
29326   }
29327 
29328   // optional uint32 stride_w = 8;
29329   if (cached_has_bits & 0x00000040u) {
29330     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->stride_w(), target);
29331   }
29332 
29333   // optional uint32 pad_h = 9 [default = 0];
29334   if (cached_has_bits & 0x00000080u) {
29335     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->pad_h(), target);
29336   }
29337 
29338   // optional uint32 pad_w = 10 [default = 0];
29339   if (cached_has_bits & 0x00000100u) {
29340     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->pad_w(), target);
29341   }
29342 
29343   // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT];
29344   if (cached_has_bits & 0x00000200u) {
29345     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
29346       11, this->engine(), target);
29347   }
29348 
29349   // optional bool global_pooling = 12 [default = false];
29350   if (cached_has_bits & 0x00000400u) {
29351     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->global_pooling(), target);
29352   }
29353 
29354   // optional bool ceil_mode = 13 [default = true];
29355   if (cached_has_bits & 0x00001000u) {
29356     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->ceil_mode(), target);
29357   }
29358 
29359   if (_internal_metadata_.have_unknown_fields()) {
29360     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
29361         _internal_metadata_.unknown_fields(), target);
29362   }
29363   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PoolingParameter)
29364   return target;
29365 }
29366 
ByteSizeLong() const29367 size_t PoolingParameter::ByteSizeLong() const {
29368 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PoolingParameter)
29369   size_t total_size = 0;
29370 
29371   if (_internal_metadata_.have_unknown_fields()) {
29372     total_size +=
29373       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
29374         _internal_metadata_.unknown_fields());
29375   }
29376   if (_has_bits_[0 / 32] & 255u) {
29377     // optional .opencv_caffe.PoolingParameter.PoolMethod pool = 1 [default = MAX];
29378     if (has_pool()) {
29379       total_size += 1 +
29380         ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool());
29381     }
29382 
29383     // optional uint32 kernel_size = 2;
29384     if (has_kernel_size()) {
29385       total_size += 1 +
29386         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29387           this->kernel_size());
29388     }
29389 
29390     // optional uint32 pad = 4 [default = 0];
29391     if (has_pad()) {
29392       total_size += 1 +
29393         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29394           this->pad());
29395     }
29396 
29397     // optional uint32 kernel_h = 5;
29398     if (has_kernel_h()) {
29399       total_size += 1 +
29400         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29401           this->kernel_h());
29402     }
29403 
29404     // optional uint32 kernel_w = 6;
29405     if (has_kernel_w()) {
29406       total_size += 1 +
29407         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29408           this->kernel_w());
29409     }
29410 
29411     // optional uint32 stride_h = 7;
29412     if (has_stride_h()) {
29413       total_size += 1 +
29414         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29415           this->stride_h());
29416     }
29417 
29418     // optional uint32 stride_w = 8;
29419     if (has_stride_w()) {
29420       total_size += 1 +
29421         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29422           this->stride_w());
29423     }
29424 
29425     // optional uint32 pad_h = 9 [default = 0];
29426     if (has_pad_h()) {
29427       total_size += 1 +
29428         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29429           this->pad_h());
29430     }
29431 
29432   }
29433   if (_has_bits_[8 / 32] & 7936u) {
29434     // optional uint32 pad_w = 10 [default = 0];
29435     if (has_pad_w()) {
29436       total_size += 1 +
29437         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29438           this->pad_w());
29439     }
29440 
29441     // optional .opencv_caffe.PoolingParameter.Engine engine = 11 [default = DEFAULT];
29442     if (has_engine()) {
29443       total_size += 1 +
29444         ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine());
29445     }
29446 
29447     // optional bool global_pooling = 12 [default = false];
29448     if (has_global_pooling()) {
29449       total_size += 1 + 1;
29450     }
29451 
29452     // optional uint32 stride = 3 [default = 1];
29453     if (has_stride()) {
29454       total_size += 1 +
29455         ::google::protobuf::internal::WireFormatLite::UInt32Size(
29456           this->stride());
29457     }
29458 
29459     // optional bool ceil_mode = 13 [default = true];
29460     if (has_ceil_mode()) {
29461       total_size += 1 + 1;
29462     }
29463 
29464   }
29465   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
29466   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
29467   _cached_size_ = cached_size;
29468   GOOGLE_SAFE_CONCURRENT_WRITES_END();
29469   return total_size;
29470 }
29471 
MergeFrom(const::google::protobuf::Message & from)29472 void PoolingParameter::MergeFrom(const ::google::protobuf::Message& from) {
29473 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PoolingParameter)
29474   GOOGLE_DCHECK_NE(&from, this);
29475   const PoolingParameter* source =
29476       ::google::protobuf::internal::DynamicCastToGenerated<const PoolingParameter>(
29477           &from);
29478   if (source == NULL) {
29479   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PoolingParameter)
29480     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
29481   } else {
29482   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PoolingParameter)
29483     MergeFrom(*source);
29484   }
29485 }
29486 
MergeFrom(const PoolingParameter & from)29487 void PoolingParameter::MergeFrom(const PoolingParameter& from) {
29488 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PoolingParameter)
29489   GOOGLE_DCHECK_NE(&from, this);
29490   _internal_metadata_.MergeFrom(from._internal_metadata_);
29491   ::google::protobuf::uint32 cached_has_bits = 0;
29492   (void) cached_has_bits;
29493 
29494   cached_has_bits = from._has_bits_[0];
29495   if (cached_has_bits & 255u) {
29496     if (cached_has_bits & 0x00000001u) {
29497       pool_ = from.pool_;
29498     }
29499     if (cached_has_bits & 0x00000002u) {
29500       kernel_size_ = from.kernel_size_;
29501     }
29502     if (cached_has_bits & 0x00000004u) {
29503       pad_ = from.pad_;
29504     }
29505     if (cached_has_bits & 0x00000008u) {
29506       kernel_h_ = from.kernel_h_;
29507     }
29508     if (cached_has_bits & 0x00000010u) {
29509       kernel_w_ = from.kernel_w_;
29510     }
29511     if (cached_has_bits & 0x00000020u) {
29512       stride_h_ = from.stride_h_;
29513     }
29514     if (cached_has_bits & 0x00000040u) {
29515       stride_w_ = from.stride_w_;
29516     }
29517     if (cached_has_bits & 0x00000080u) {
29518       pad_h_ = from.pad_h_;
29519     }
29520     _has_bits_[0] |= cached_has_bits;
29521   }
29522   if (cached_has_bits & 7936u) {
29523     if (cached_has_bits & 0x00000100u) {
29524       pad_w_ = from.pad_w_;
29525     }
29526     if (cached_has_bits & 0x00000200u) {
29527       engine_ = from.engine_;
29528     }
29529     if (cached_has_bits & 0x00000400u) {
29530       global_pooling_ = from.global_pooling_;
29531     }
29532     if (cached_has_bits & 0x00000800u) {
29533       stride_ = from.stride_;
29534     }
29535     if (cached_has_bits & 0x00001000u) {
29536       ceil_mode_ = from.ceil_mode_;
29537     }
29538     _has_bits_[0] |= cached_has_bits;
29539   }
29540 }
29541 
CopyFrom(const::google::protobuf::Message & from)29542 void PoolingParameter::CopyFrom(const ::google::protobuf::Message& from) {
29543 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PoolingParameter)
29544   if (&from == this) return;
29545   Clear();
29546   MergeFrom(from);
29547 }
29548 
CopyFrom(const PoolingParameter & from)29549 void PoolingParameter::CopyFrom(const PoolingParameter& from) {
29550 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PoolingParameter)
29551   if (&from == this) return;
29552   Clear();
29553   MergeFrom(from);
29554 }
29555 
IsInitialized() const29556 bool PoolingParameter::IsInitialized() const {
29557   return true;
29558 }
29559 
Swap(PoolingParameter * other)29560 void PoolingParameter::Swap(PoolingParameter* other) {
29561   if (other == this) return;
29562   InternalSwap(other);
29563 }
InternalSwap(PoolingParameter * other)29564 void PoolingParameter::InternalSwap(PoolingParameter* other) {
29565   using std::swap;
29566   swap(pool_, other->pool_);
29567   swap(kernel_size_, other->kernel_size_);
29568   swap(pad_, other->pad_);
29569   swap(kernel_h_, other->kernel_h_);
29570   swap(kernel_w_, other->kernel_w_);
29571   swap(stride_h_, other->stride_h_);
29572   swap(stride_w_, other->stride_w_);
29573   swap(pad_h_, other->pad_h_);
29574   swap(pad_w_, other->pad_w_);
29575   swap(engine_, other->engine_);
29576   swap(global_pooling_, other->global_pooling_);
29577   swap(stride_, other->stride_);
29578   swap(ceil_mode_, other->ceil_mode_);
29579   swap(_has_bits_[0], other->_has_bits_[0]);
29580   _internal_metadata_.Swap(&other->_internal_metadata_);
29581   swap(_cached_size_, other->_cached_size_);
29582 }
29583 
GetMetadata() const29584 ::google::protobuf::Metadata PoolingParameter::GetMetadata() const {
29585   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
29586   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
29587 }
29588 
29589 
29590 // ===================================================================
29591 
InitAsDefaultInstance()29592 void PowerParameter::InitAsDefaultInstance() {
29593 }
29594 #if !defined(_MSC_VER) || _MSC_VER >= 1900
29595 const int PowerParameter::kPowerFieldNumber;
29596 const int PowerParameter::kScaleFieldNumber;
29597 const int PowerParameter::kShiftFieldNumber;
29598 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
29599 
PowerParameter()29600 PowerParameter::PowerParameter()
29601   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
29602   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
29603     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameter();
29604   }
29605   SharedCtor();
29606   // @@protoc_insertion_point(constructor:opencv_caffe.PowerParameter)
29607 }
PowerParameter(const PowerParameter & from)29608 PowerParameter::PowerParameter(const PowerParameter& from)
29609   : ::google::protobuf::Message(),
29610       _internal_metadata_(NULL),
29611       _has_bits_(from._has_bits_),
29612       _cached_size_(0) {
29613   _internal_metadata_.MergeFrom(from._internal_metadata_);
29614   ::memcpy(&shift_, &from.shift_,
29615     static_cast<size_t>(reinterpret_cast<char*>(&scale_) -
29616     reinterpret_cast<char*>(&shift_)) + sizeof(scale_));
29617   // @@protoc_insertion_point(copy_constructor:opencv_caffe.PowerParameter)
29618 }
29619 
SharedCtor()29620 void PowerParameter::SharedCtor() {
29621   _cached_size_ = 0;
29622   shift_ = 0;
29623   power_ = 1;
29624   scale_ = 1;
29625 }
29626 
~PowerParameter()29627 PowerParameter::~PowerParameter() {
29628   // @@protoc_insertion_point(destructor:opencv_caffe.PowerParameter)
29629   SharedDtor();
29630 }
29631 
SharedDtor()29632 void PowerParameter::SharedDtor() {
29633 }
29634 
SetCachedSize(int size) const29635 void PowerParameter::SetCachedSize(int size) const {
29636   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
29637   _cached_size_ = size;
29638   GOOGLE_SAFE_CONCURRENT_WRITES_END();
29639 }
descriptor()29640 const ::google::protobuf::Descriptor* PowerParameter::descriptor() {
29641   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
29642   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
29643 }
29644 
default_instance()29645 const PowerParameter& PowerParameter::default_instance() {
29646   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPowerParameter();
29647   return *internal_default_instance();
29648 }
29649 
New(::google::protobuf::Arena * arena) const29650 PowerParameter* PowerParameter::New(::google::protobuf::Arena* arena) const {
29651   PowerParameter* n = new PowerParameter;
29652   if (arena != NULL) {
29653     arena->Own(n);
29654   }
29655   return n;
29656 }
29657 
Clear()29658 void PowerParameter::Clear() {
29659 // @@protoc_insertion_point(message_clear_start:opencv_caffe.PowerParameter)
29660   ::google::protobuf::uint32 cached_has_bits = 0;
29661   // Prevent compiler warnings about cached_has_bits being unused
29662   (void) cached_has_bits;
29663 
29664   cached_has_bits = _has_bits_[0];
29665   if (cached_has_bits & 7u) {
29666     shift_ = 0;
29667     power_ = 1;
29668     scale_ = 1;
29669   }
29670   _has_bits_.Clear();
29671   _internal_metadata_.Clear();
29672 }
29673 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)29674 bool PowerParameter::MergePartialFromCodedStream(
29675     ::google::protobuf::io::CodedInputStream* input) {
29676 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
29677   ::google::protobuf::uint32 tag;
29678   // @@protoc_insertion_point(parse_start:opencv_caffe.PowerParameter)
29679   for (;;) {
29680     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
29681     tag = p.first;
29682     if (!p.second) goto handle_unusual;
29683     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
29684       // optional float power = 1 [default = 1];
29685       case 1: {
29686         if (static_cast< ::google::protobuf::uint8>(tag) ==
29687             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
29688           set_has_power();
29689           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29690                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
29691                  input, &power_)));
29692         } else {
29693           goto handle_unusual;
29694         }
29695         break;
29696       }
29697 
29698       // optional float scale = 2 [default = 1];
29699       case 2: {
29700         if (static_cast< ::google::protobuf::uint8>(tag) ==
29701             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
29702           set_has_scale();
29703           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29704                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
29705                  input, &scale_)));
29706         } else {
29707           goto handle_unusual;
29708         }
29709         break;
29710       }
29711 
29712       // optional float shift = 3 [default = 0];
29713       case 3: {
29714         if (static_cast< ::google::protobuf::uint8>(tag) ==
29715             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
29716           set_has_shift();
29717           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
29718                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
29719                  input, &shift_)));
29720         } else {
29721           goto handle_unusual;
29722         }
29723         break;
29724       }
29725 
29726       default: {
29727       handle_unusual:
29728         if (tag == 0) {
29729           goto success;
29730         }
29731         DO_(::google::protobuf::internal::WireFormat::SkipField(
29732               input, tag, _internal_metadata_.mutable_unknown_fields()));
29733         break;
29734       }
29735     }
29736   }
29737 success:
29738   // @@protoc_insertion_point(parse_success:opencv_caffe.PowerParameter)
29739   return true;
29740 failure:
29741   // @@protoc_insertion_point(parse_failure:opencv_caffe.PowerParameter)
29742   return false;
29743 #undef DO_
29744 }
29745 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const29746 void PowerParameter::SerializeWithCachedSizes(
29747     ::google::protobuf::io::CodedOutputStream* output) const {
29748   // @@protoc_insertion_point(serialize_start:opencv_caffe.PowerParameter)
29749   ::google::protobuf::uint32 cached_has_bits = 0;
29750   (void) cached_has_bits;
29751 
29752   cached_has_bits = _has_bits_[0];
29753   // optional float power = 1 [default = 1];
29754   if (cached_has_bits & 0x00000002u) {
29755     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->power(), output);
29756   }
29757 
29758   // optional float scale = 2 [default = 1];
29759   if (cached_has_bits & 0x00000004u) {
29760     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output);
29761   }
29762 
29763   // optional float shift = 3 [default = 0];
29764   if (cached_has_bits & 0x00000001u) {
29765     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->shift(), output);
29766   }
29767 
29768   if (_internal_metadata_.have_unknown_fields()) {
29769     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
29770         _internal_metadata_.unknown_fields(), output);
29771   }
29772   // @@protoc_insertion_point(serialize_end:opencv_caffe.PowerParameter)
29773 }
29774 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const29775 ::google::protobuf::uint8* PowerParameter::InternalSerializeWithCachedSizesToArray(
29776     bool deterministic, ::google::protobuf::uint8* target) const {
29777   (void)deterministic; // Unused
29778   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PowerParameter)
29779   ::google::protobuf::uint32 cached_has_bits = 0;
29780   (void) cached_has_bits;
29781 
29782   cached_has_bits = _has_bits_[0];
29783   // optional float power = 1 [default = 1];
29784   if (cached_has_bits & 0x00000002u) {
29785     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->power(), target);
29786   }
29787 
29788   // optional float scale = 2 [default = 1];
29789   if (cached_has_bits & 0x00000004u) {
29790     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target);
29791   }
29792 
29793   // optional float shift = 3 [default = 0];
29794   if (cached_has_bits & 0x00000001u) {
29795     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->shift(), target);
29796   }
29797 
29798   if (_internal_metadata_.have_unknown_fields()) {
29799     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
29800         _internal_metadata_.unknown_fields(), target);
29801   }
29802   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PowerParameter)
29803   return target;
29804 }
29805 
ByteSizeLong() const29806 size_t PowerParameter::ByteSizeLong() const {
29807 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PowerParameter)
29808   size_t total_size = 0;
29809 
29810   if (_internal_metadata_.have_unknown_fields()) {
29811     total_size +=
29812       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
29813         _internal_metadata_.unknown_fields());
29814   }
29815   if (_has_bits_[0 / 32] & 7u) {
29816     // optional float shift = 3 [default = 0];
29817     if (has_shift()) {
29818       total_size += 1 + 4;
29819     }
29820 
29821     // optional float power = 1 [default = 1];
29822     if (has_power()) {
29823       total_size += 1 + 4;
29824     }
29825 
29826     // optional float scale = 2 [default = 1];
29827     if (has_scale()) {
29828       total_size += 1 + 4;
29829     }
29830 
29831   }
29832   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
29833   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
29834   _cached_size_ = cached_size;
29835   GOOGLE_SAFE_CONCURRENT_WRITES_END();
29836   return total_size;
29837 }
29838 
MergeFrom(const::google::protobuf::Message & from)29839 void PowerParameter::MergeFrom(const ::google::protobuf::Message& from) {
29840 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PowerParameter)
29841   GOOGLE_DCHECK_NE(&from, this);
29842   const PowerParameter* source =
29843       ::google::protobuf::internal::DynamicCastToGenerated<const PowerParameter>(
29844           &from);
29845   if (source == NULL) {
29846   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PowerParameter)
29847     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
29848   } else {
29849   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PowerParameter)
29850     MergeFrom(*source);
29851   }
29852 }
29853 
MergeFrom(const PowerParameter & from)29854 void PowerParameter::MergeFrom(const PowerParameter& from) {
29855 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PowerParameter)
29856   GOOGLE_DCHECK_NE(&from, this);
29857   _internal_metadata_.MergeFrom(from._internal_metadata_);
29858   ::google::protobuf::uint32 cached_has_bits = 0;
29859   (void) cached_has_bits;
29860 
29861   cached_has_bits = from._has_bits_[0];
29862   if (cached_has_bits & 7u) {
29863     if (cached_has_bits & 0x00000001u) {
29864       shift_ = from.shift_;
29865     }
29866     if (cached_has_bits & 0x00000002u) {
29867       power_ = from.power_;
29868     }
29869     if (cached_has_bits & 0x00000004u) {
29870       scale_ = from.scale_;
29871     }
29872     _has_bits_[0] |= cached_has_bits;
29873   }
29874 }
29875 
CopyFrom(const::google::protobuf::Message & from)29876 void PowerParameter::CopyFrom(const ::google::protobuf::Message& from) {
29877 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PowerParameter)
29878   if (&from == this) return;
29879   Clear();
29880   MergeFrom(from);
29881 }
29882 
CopyFrom(const PowerParameter & from)29883 void PowerParameter::CopyFrom(const PowerParameter& from) {
29884 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PowerParameter)
29885   if (&from == this) return;
29886   Clear();
29887   MergeFrom(from);
29888 }
29889 
IsInitialized() const29890 bool PowerParameter::IsInitialized() const {
29891   return true;
29892 }
29893 
Swap(PowerParameter * other)29894 void PowerParameter::Swap(PowerParameter* other) {
29895   if (other == this) return;
29896   InternalSwap(other);
29897 }
InternalSwap(PowerParameter * other)29898 void PowerParameter::InternalSwap(PowerParameter* other) {
29899   using std::swap;
29900   swap(shift_, other->shift_);
29901   swap(power_, other->power_);
29902   swap(scale_, other->scale_);
29903   swap(_has_bits_[0], other->_has_bits_[0]);
29904   _internal_metadata_.Swap(&other->_internal_metadata_);
29905   swap(_cached_size_, other->_cached_size_);
29906 }
29907 
GetMetadata() const29908 ::google::protobuf::Metadata PowerParameter::GetMetadata() const {
29909   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
29910   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
29911 }
29912 
29913 
29914 // ===================================================================
29915 
InitAsDefaultInstance()29916 void PythonParameter::InitAsDefaultInstance() {
29917 }
29918 #if !defined(_MSC_VER) || _MSC_VER >= 1900
29919 const int PythonParameter::kModuleFieldNumber;
29920 const int PythonParameter::kLayerFieldNumber;
29921 const int PythonParameter::kParamStrFieldNumber;
29922 const int PythonParameter::kShareInParallelFieldNumber;
29923 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
29924 
PythonParameter()29925 PythonParameter::PythonParameter()
29926   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
29927   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
29928     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPythonParameter();
29929   }
29930   SharedCtor();
29931   // @@protoc_insertion_point(constructor:opencv_caffe.PythonParameter)
29932 }
PythonParameter(const PythonParameter & from)29933 PythonParameter::PythonParameter(const PythonParameter& from)
29934   : ::google::protobuf::Message(),
29935       _internal_metadata_(NULL),
29936       _has_bits_(from._has_bits_),
29937       _cached_size_(0) {
29938   _internal_metadata_.MergeFrom(from._internal_metadata_);
29939   module_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29940   if (from.has_module()) {
29941     module_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.module_);
29942   }
29943   layer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29944   if (from.has_layer()) {
29945     layer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.layer_);
29946   }
29947   param_str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29948   if (from.has_param_str()) {
29949     param_str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.param_str_);
29950   }
29951   share_in_parallel_ = from.share_in_parallel_;
29952   // @@protoc_insertion_point(copy_constructor:opencv_caffe.PythonParameter)
29953 }
29954 
SharedCtor()29955 void PythonParameter::SharedCtor() {
29956   _cached_size_ = 0;
29957   module_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29958   layer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29959   param_str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29960   share_in_parallel_ = false;
29961 }
29962 
~PythonParameter()29963 PythonParameter::~PythonParameter() {
29964   // @@protoc_insertion_point(destructor:opencv_caffe.PythonParameter)
29965   SharedDtor();
29966 }
29967 
SharedDtor()29968 void PythonParameter::SharedDtor() {
29969   module_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29970   layer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29971   param_str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
29972 }
29973 
SetCachedSize(int size) const29974 void PythonParameter::SetCachedSize(int size) const {
29975   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
29976   _cached_size_ = size;
29977   GOOGLE_SAFE_CONCURRENT_WRITES_END();
29978 }
descriptor()29979 const ::google::protobuf::Descriptor* PythonParameter::descriptor() {
29980   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
29981   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
29982 }
29983 
default_instance()29984 const PythonParameter& PythonParameter::default_instance() {
29985   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPythonParameter();
29986   return *internal_default_instance();
29987 }
29988 
New(::google::protobuf::Arena * arena) const29989 PythonParameter* PythonParameter::New(::google::protobuf::Arena* arena) const {
29990   PythonParameter* n = new PythonParameter;
29991   if (arena != NULL) {
29992     arena->Own(n);
29993   }
29994   return n;
29995 }
29996 
Clear()29997 void PythonParameter::Clear() {
29998 // @@protoc_insertion_point(message_clear_start:opencv_caffe.PythonParameter)
29999   ::google::protobuf::uint32 cached_has_bits = 0;
30000   // Prevent compiler warnings about cached_has_bits being unused
30001   (void) cached_has_bits;
30002 
30003   cached_has_bits = _has_bits_[0];
30004   if (cached_has_bits & 7u) {
30005     if (cached_has_bits & 0x00000001u) {
30006       GOOGLE_DCHECK(!module_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
30007       (*module_.UnsafeRawStringPointer())->clear();
30008     }
30009     if (cached_has_bits & 0x00000002u) {
30010       GOOGLE_DCHECK(!layer_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
30011       (*layer_.UnsafeRawStringPointer())->clear();
30012     }
30013     if (cached_has_bits & 0x00000004u) {
30014       GOOGLE_DCHECK(!param_str_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
30015       (*param_str_.UnsafeRawStringPointer())->clear();
30016     }
30017   }
30018   share_in_parallel_ = false;
30019   _has_bits_.Clear();
30020   _internal_metadata_.Clear();
30021 }
30022 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)30023 bool PythonParameter::MergePartialFromCodedStream(
30024     ::google::protobuf::io::CodedInputStream* input) {
30025 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
30026   ::google::protobuf::uint32 tag;
30027   // @@protoc_insertion_point(parse_start:opencv_caffe.PythonParameter)
30028   for (;;) {
30029     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
30030     tag = p.first;
30031     if (!p.second) goto handle_unusual;
30032     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
30033       // optional string module = 1;
30034       case 1: {
30035         if (static_cast< ::google::protobuf::uint8>(tag) ==
30036             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
30037           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
30038                 input, this->mutable_module()));
30039           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30040             this->module().data(), static_cast<int>(this->module().length()),
30041             ::google::protobuf::internal::WireFormat::PARSE,
30042             "opencv_caffe.PythonParameter.module");
30043         } else {
30044           goto handle_unusual;
30045         }
30046         break;
30047       }
30048 
30049       // optional string layer = 2;
30050       case 2: {
30051         if (static_cast< ::google::protobuf::uint8>(tag) ==
30052             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
30053           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
30054                 input, this->mutable_layer()));
30055           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30056             this->layer().data(), static_cast<int>(this->layer().length()),
30057             ::google::protobuf::internal::WireFormat::PARSE,
30058             "opencv_caffe.PythonParameter.layer");
30059         } else {
30060           goto handle_unusual;
30061         }
30062         break;
30063       }
30064 
30065       // optional string param_str = 3 [default = ""];
30066       case 3: {
30067         if (static_cast< ::google::protobuf::uint8>(tag) ==
30068             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
30069           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
30070                 input, this->mutable_param_str()));
30071           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30072             this->param_str().data(), static_cast<int>(this->param_str().length()),
30073             ::google::protobuf::internal::WireFormat::PARSE,
30074             "opencv_caffe.PythonParameter.param_str");
30075         } else {
30076           goto handle_unusual;
30077         }
30078         break;
30079       }
30080 
30081       // optional bool share_in_parallel = 4 [default = false];
30082       case 4: {
30083         if (static_cast< ::google::protobuf::uint8>(tag) ==
30084             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
30085           set_has_share_in_parallel();
30086           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
30087                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
30088                  input, &share_in_parallel_)));
30089         } else {
30090           goto handle_unusual;
30091         }
30092         break;
30093       }
30094 
30095       default: {
30096       handle_unusual:
30097         if (tag == 0) {
30098           goto success;
30099         }
30100         DO_(::google::protobuf::internal::WireFormat::SkipField(
30101               input, tag, _internal_metadata_.mutable_unknown_fields()));
30102         break;
30103       }
30104     }
30105   }
30106 success:
30107   // @@protoc_insertion_point(parse_success:opencv_caffe.PythonParameter)
30108   return true;
30109 failure:
30110   // @@protoc_insertion_point(parse_failure:opencv_caffe.PythonParameter)
30111   return false;
30112 #undef DO_
30113 }
30114 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const30115 void PythonParameter::SerializeWithCachedSizes(
30116     ::google::protobuf::io::CodedOutputStream* output) const {
30117   // @@protoc_insertion_point(serialize_start:opencv_caffe.PythonParameter)
30118   ::google::protobuf::uint32 cached_has_bits = 0;
30119   (void) cached_has_bits;
30120 
30121   cached_has_bits = _has_bits_[0];
30122   // optional string module = 1;
30123   if (cached_has_bits & 0x00000001u) {
30124     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30125       this->module().data(), static_cast<int>(this->module().length()),
30126       ::google::protobuf::internal::WireFormat::SERIALIZE,
30127       "opencv_caffe.PythonParameter.module");
30128     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
30129       1, this->module(), output);
30130   }
30131 
30132   // optional string layer = 2;
30133   if (cached_has_bits & 0x00000002u) {
30134     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30135       this->layer().data(), static_cast<int>(this->layer().length()),
30136       ::google::protobuf::internal::WireFormat::SERIALIZE,
30137       "opencv_caffe.PythonParameter.layer");
30138     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
30139       2, this->layer(), output);
30140   }
30141 
30142   // optional string param_str = 3 [default = ""];
30143   if (cached_has_bits & 0x00000004u) {
30144     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30145       this->param_str().data(), static_cast<int>(this->param_str().length()),
30146       ::google::protobuf::internal::WireFormat::SERIALIZE,
30147       "opencv_caffe.PythonParameter.param_str");
30148     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
30149       3, this->param_str(), output);
30150   }
30151 
30152   // optional bool share_in_parallel = 4 [default = false];
30153   if (cached_has_bits & 0x00000008u) {
30154     ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->share_in_parallel(), output);
30155   }
30156 
30157   if (_internal_metadata_.have_unknown_fields()) {
30158     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
30159         _internal_metadata_.unknown_fields(), output);
30160   }
30161   // @@protoc_insertion_point(serialize_end:opencv_caffe.PythonParameter)
30162 }
30163 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const30164 ::google::protobuf::uint8* PythonParameter::InternalSerializeWithCachedSizesToArray(
30165     bool deterministic, ::google::protobuf::uint8* target) const {
30166   (void)deterministic; // Unused
30167   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PythonParameter)
30168   ::google::protobuf::uint32 cached_has_bits = 0;
30169   (void) cached_has_bits;
30170 
30171   cached_has_bits = _has_bits_[0];
30172   // optional string module = 1;
30173   if (cached_has_bits & 0x00000001u) {
30174     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30175       this->module().data(), static_cast<int>(this->module().length()),
30176       ::google::protobuf::internal::WireFormat::SERIALIZE,
30177       "opencv_caffe.PythonParameter.module");
30178     target =
30179       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
30180         1, this->module(), target);
30181   }
30182 
30183   // optional string layer = 2;
30184   if (cached_has_bits & 0x00000002u) {
30185     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30186       this->layer().data(), static_cast<int>(this->layer().length()),
30187       ::google::protobuf::internal::WireFormat::SERIALIZE,
30188       "opencv_caffe.PythonParameter.layer");
30189     target =
30190       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
30191         2, this->layer(), target);
30192   }
30193 
30194   // optional string param_str = 3 [default = ""];
30195   if (cached_has_bits & 0x00000004u) {
30196     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
30197       this->param_str().data(), static_cast<int>(this->param_str().length()),
30198       ::google::protobuf::internal::WireFormat::SERIALIZE,
30199       "opencv_caffe.PythonParameter.param_str");
30200     target =
30201       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
30202         3, this->param_str(), target);
30203   }
30204 
30205   // optional bool share_in_parallel = 4 [default = false];
30206   if (cached_has_bits & 0x00000008u) {
30207     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->share_in_parallel(), target);
30208   }
30209 
30210   if (_internal_metadata_.have_unknown_fields()) {
30211     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
30212         _internal_metadata_.unknown_fields(), target);
30213   }
30214   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PythonParameter)
30215   return target;
30216 }
30217 
ByteSizeLong() const30218 size_t PythonParameter::ByteSizeLong() const {
30219 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PythonParameter)
30220   size_t total_size = 0;
30221 
30222   if (_internal_metadata_.have_unknown_fields()) {
30223     total_size +=
30224       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
30225         _internal_metadata_.unknown_fields());
30226   }
30227   if (_has_bits_[0 / 32] & 15u) {
30228     // optional string module = 1;
30229     if (has_module()) {
30230       total_size += 1 +
30231         ::google::protobuf::internal::WireFormatLite::StringSize(
30232           this->module());
30233     }
30234 
30235     // optional string layer = 2;
30236     if (has_layer()) {
30237       total_size += 1 +
30238         ::google::protobuf::internal::WireFormatLite::StringSize(
30239           this->layer());
30240     }
30241 
30242     // optional string param_str = 3 [default = ""];
30243     if (has_param_str()) {
30244       total_size += 1 +
30245         ::google::protobuf::internal::WireFormatLite::StringSize(
30246           this->param_str());
30247     }
30248 
30249     // optional bool share_in_parallel = 4 [default = false];
30250     if (has_share_in_parallel()) {
30251       total_size += 1 + 1;
30252     }
30253 
30254   }
30255   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
30256   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
30257   _cached_size_ = cached_size;
30258   GOOGLE_SAFE_CONCURRENT_WRITES_END();
30259   return total_size;
30260 }
30261 
MergeFrom(const::google::protobuf::Message & from)30262 void PythonParameter::MergeFrom(const ::google::protobuf::Message& from) {
30263 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PythonParameter)
30264   GOOGLE_DCHECK_NE(&from, this);
30265   const PythonParameter* source =
30266       ::google::protobuf::internal::DynamicCastToGenerated<const PythonParameter>(
30267           &from);
30268   if (source == NULL) {
30269   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PythonParameter)
30270     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
30271   } else {
30272   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PythonParameter)
30273     MergeFrom(*source);
30274   }
30275 }
30276 
MergeFrom(const PythonParameter & from)30277 void PythonParameter::MergeFrom(const PythonParameter& from) {
30278 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PythonParameter)
30279   GOOGLE_DCHECK_NE(&from, this);
30280   _internal_metadata_.MergeFrom(from._internal_metadata_);
30281   ::google::protobuf::uint32 cached_has_bits = 0;
30282   (void) cached_has_bits;
30283 
30284   cached_has_bits = from._has_bits_[0];
30285   if (cached_has_bits & 15u) {
30286     if (cached_has_bits & 0x00000001u) {
30287       set_has_module();
30288       module_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.module_);
30289     }
30290     if (cached_has_bits & 0x00000002u) {
30291       set_has_layer();
30292       layer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.layer_);
30293     }
30294     if (cached_has_bits & 0x00000004u) {
30295       set_has_param_str();
30296       param_str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.param_str_);
30297     }
30298     if (cached_has_bits & 0x00000008u) {
30299       share_in_parallel_ = from.share_in_parallel_;
30300     }
30301     _has_bits_[0] |= cached_has_bits;
30302   }
30303 }
30304 
CopyFrom(const::google::protobuf::Message & from)30305 void PythonParameter::CopyFrom(const ::google::protobuf::Message& from) {
30306 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PythonParameter)
30307   if (&from == this) return;
30308   Clear();
30309   MergeFrom(from);
30310 }
30311 
CopyFrom(const PythonParameter & from)30312 void PythonParameter::CopyFrom(const PythonParameter& from) {
30313 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PythonParameter)
30314   if (&from == this) return;
30315   Clear();
30316   MergeFrom(from);
30317 }
30318 
IsInitialized() const30319 bool PythonParameter::IsInitialized() const {
30320   return true;
30321 }
30322 
Swap(PythonParameter * other)30323 void PythonParameter::Swap(PythonParameter* other) {
30324   if (other == this) return;
30325   InternalSwap(other);
30326 }
InternalSwap(PythonParameter * other)30327 void PythonParameter::InternalSwap(PythonParameter* other) {
30328   using std::swap;
30329   module_.Swap(&other->module_);
30330   layer_.Swap(&other->layer_);
30331   param_str_.Swap(&other->param_str_);
30332   swap(share_in_parallel_, other->share_in_parallel_);
30333   swap(_has_bits_[0], other->_has_bits_[0]);
30334   _internal_metadata_.Swap(&other->_internal_metadata_);
30335   swap(_cached_size_, other->_cached_size_);
30336 }
30337 
GetMetadata() const30338 ::google::protobuf::Metadata PythonParameter::GetMetadata() const {
30339   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
30340   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
30341 }
30342 
30343 
30344 // ===================================================================
30345 
InitAsDefaultInstance()30346 void RecurrentParameter::InitAsDefaultInstance() {
30347   ::opencv_caffe::_RecurrentParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
30348       ::opencv_caffe::FillerParameter::internal_default_instance());
30349   ::opencv_caffe::_RecurrentParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
30350       ::opencv_caffe::FillerParameter::internal_default_instance());
30351 }
30352 #if !defined(_MSC_VER) || _MSC_VER >= 1900
30353 const int RecurrentParameter::kNumOutputFieldNumber;
30354 const int RecurrentParameter::kWeightFillerFieldNumber;
30355 const int RecurrentParameter::kBiasFillerFieldNumber;
30356 const int RecurrentParameter::kDebugInfoFieldNumber;
30357 const int RecurrentParameter::kExposeHiddenFieldNumber;
30358 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
30359 
RecurrentParameter()30360 RecurrentParameter::RecurrentParameter()
30361   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
30362   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
30363     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsRecurrentParameter();
30364   }
30365   SharedCtor();
30366   // @@protoc_insertion_point(constructor:opencv_caffe.RecurrentParameter)
30367 }
RecurrentParameter(const RecurrentParameter & from)30368 RecurrentParameter::RecurrentParameter(const RecurrentParameter& from)
30369   : ::google::protobuf::Message(),
30370       _internal_metadata_(NULL),
30371       _has_bits_(from._has_bits_),
30372       _cached_size_(0) {
30373   _internal_metadata_.MergeFrom(from._internal_metadata_);
30374   if (from.has_weight_filler()) {
30375     weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_);
30376   } else {
30377     weight_filler_ = NULL;
30378   }
30379   if (from.has_bias_filler()) {
30380     bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_);
30381   } else {
30382     bias_filler_ = NULL;
30383   }
30384   ::memcpy(&num_output_, &from.num_output_,
30385     static_cast<size_t>(reinterpret_cast<char*>(&expose_hidden_) -
30386     reinterpret_cast<char*>(&num_output_)) + sizeof(expose_hidden_));
30387   // @@protoc_insertion_point(copy_constructor:opencv_caffe.RecurrentParameter)
30388 }
30389 
SharedCtor()30390 void RecurrentParameter::SharedCtor() {
30391   _cached_size_ = 0;
30392   ::memset(&weight_filler_, 0, static_cast<size_t>(
30393       reinterpret_cast<char*>(&expose_hidden_) -
30394       reinterpret_cast<char*>(&weight_filler_)) + sizeof(expose_hidden_));
30395 }
30396 
~RecurrentParameter()30397 RecurrentParameter::~RecurrentParameter() {
30398   // @@protoc_insertion_point(destructor:opencv_caffe.RecurrentParameter)
30399   SharedDtor();
30400 }
30401 
SharedDtor()30402 void RecurrentParameter::SharedDtor() {
30403   if (this != internal_default_instance()) delete weight_filler_;
30404   if (this != internal_default_instance()) delete bias_filler_;
30405 }
30406 
SetCachedSize(int size) const30407 void RecurrentParameter::SetCachedSize(int size) const {
30408   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
30409   _cached_size_ = size;
30410   GOOGLE_SAFE_CONCURRENT_WRITES_END();
30411 }
descriptor()30412 const ::google::protobuf::Descriptor* RecurrentParameter::descriptor() {
30413   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
30414   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
30415 }
30416 
default_instance()30417 const RecurrentParameter& RecurrentParameter::default_instance() {
30418   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsRecurrentParameter();
30419   return *internal_default_instance();
30420 }
30421 
New(::google::protobuf::Arena * arena) const30422 RecurrentParameter* RecurrentParameter::New(::google::protobuf::Arena* arena) const {
30423   RecurrentParameter* n = new RecurrentParameter;
30424   if (arena != NULL) {
30425     arena->Own(n);
30426   }
30427   return n;
30428 }
30429 
Clear()30430 void RecurrentParameter::Clear() {
30431 // @@protoc_insertion_point(message_clear_start:opencv_caffe.RecurrentParameter)
30432   ::google::protobuf::uint32 cached_has_bits = 0;
30433   // Prevent compiler warnings about cached_has_bits being unused
30434   (void) cached_has_bits;
30435 
30436   cached_has_bits = _has_bits_[0];
30437   if (cached_has_bits & 3u) {
30438     if (cached_has_bits & 0x00000001u) {
30439       GOOGLE_DCHECK(weight_filler_ != NULL);
30440       weight_filler_->Clear();
30441     }
30442     if (cached_has_bits & 0x00000002u) {
30443       GOOGLE_DCHECK(bias_filler_ != NULL);
30444       bias_filler_->Clear();
30445     }
30446   }
30447   if (cached_has_bits & 28u) {
30448     ::memset(&num_output_, 0, static_cast<size_t>(
30449         reinterpret_cast<char*>(&expose_hidden_) -
30450         reinterpret_cast<char*>(&num_output_)) + sizeof(expose_hidden_));
30451   }
30452   _has_bits_.Clear();
30453   _internal_metadata_.Clear();
30454 }
30455 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)30456 bool RecurrentParameter::MergePartialFromCodedStream(
30457     ::google::protobuf::io::CodedInputStream* input) {
30458 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
30459   ::google::protobuf::uint32 tag;
30460   // @@protoc_insertion_point(parse_start:opencv_caffe.RecurrentParameter)
30461   for (;;) {
30462     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
30463     tag = p.first;
30464     if (!p.second) goto handle_unusual;
30465     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
30466       // optional uint32 num_output = 1 [default = 0];
30467       case 1: {
30468         if (static_cast< ::google::protobuf::uint8>(tag) ==
30469             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
30470           set_has_num_output();
30471           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
30472                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
30473                  input, &num_output_)));
30474         } else {
30475           goto handle_unusual;
30476         }
30477         break;
30478       }
30479 
30480       // optional .opencv_caffe.FillerParameter weight_filler = 2;
30481       case 2: {
30482         if (static_cast< ::google::protobuf::uint8>(tag) ==
30483             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
30484           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
30485                input, mutable_weight_filler()));
30486         } else {
30487           goto handle_unusual;
30488         }
30489         break;
30490       }
30491 
30492       // optional .opencv_caffe.FillerParameter bias_filler = 3;
30493       case 3: {
30494         if (static_cast< ::google::protobuf::uint8>(tag) ==
30495             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
30496           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
30497                input, mutable_bias_filler()));
30498         } else {
30499           goto handle_unusual;
30500         }
30501         break;
30502       }
30503 
30504       // optional bool debug_info = 4 [default = false];
30505       case 4: {
30506         if (static_cast< ::google::protobuf::uint8>(tag) ==
30507             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
30508           set_has_debug_info();
30509           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
30510                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
30511                  input, &debug_info_)));
30512         } else {
30513           goto handle_unusual;
30514         }
30515         break;
30516       }
30517 
30518       // optional bool expose_hidden = 5 [default = false];
30519       case 5: {
30520         if (static_cast< ::google::protobuf::uint8>(tag) ==
30521             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
30522           set_has_expose_hidden();
30523           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
30524                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
30525                  input, &expose_hidden_)));
30526         } else {
30527           goto handle_unusual;
30528         }
30529         break;
30530       }
30531 
30532       default: {
30533       handle_unusual:
30534         if (tag == 0) {
30535           goto success;
30536         }
30537         DO_(::google::protobuf::internal::WireFormat::SkipField(
30538               input, tag, _internal_metadata_.mutable_unknown_fields()));
30539         break;
30540       }
30541     }
30542   }
30543 success:
30544   // @@protoc_insertion_point(parse_success:opencv_caffe.RecurrentParameter)
30545   return true;
30546 failure:
30547   // @@protoc_insertion_point(parse_failure:opencv_caffe.RecurrentParameter)
30548   return false;
30549 #undef DO_
30550 }
30551 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const30552 void RecurrentParameter::SerializeWithCachedSizes(
30553     ::google::protobuf::io::CodedOutputStream* output) const {
30554   // @@protoc_insertion_point(serialize_start:opencv_caffe.RecurrentParameter)
30555   ::google::protobuf::uint32 cached_has_bits = 0;
30556   (void) cached_has_bits;
30557 
30558   cached_has_bits = _has_bits_[0];
30559   // optional uint32 num_output = 1 [default = 0];
30560   if (cached_has_bits & 0x00000004u) {
30561     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->num_output(), output);
30562   }
30563 
30564   // optional .opencv_caffe.FillerParameter weight_filler = 2;
30565   if (cached_has_bits & 0x00000001u) {
30566     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
30567       2, *this->weight_filler_, output);
30568   }
30569 
30570   // optional .opencv_caffe.FillerParameter bias_filler = 3;
30571   if (cached_has_bits & 0x00000002u) {
30572     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
30573       3, *this->bias_filler_, output);
30574   }
30575 
30576   // optional bool debug_info = 4 [default = false];
30577   if (cached_has_bits & 0x00000008u) {
30578     ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->debug_info(), output);
30579   }
30580 
30581   // optional bool expose_hidden = 5 [default = false];
30582   if (cached_has_bits & 0x00000010u) {
30583     ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->expose_hidden(), output);
30584   }
30585 
30586   if (_internal_metadata_.have_unknown_fields()) {
30587     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
30588         _internal_metadata_.unknown_fields(), output);
30589   }
30590   // @@protoc_insertion_point(serialize_end:opencv_caffe.RecurrentParameter)
30591 }
30592 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const30593 ::google::protobuf::uint8* RecurrentParameter::InternalSerializeWithCachedSizesToArray(
30594     bool deterministic, ::google::protobuf::uint8* target) const {
30595   (void)deterministic; // Unused
30596   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.RecurrentParameter)
30597   ::google::protobuf::uint32 cached_has_bits = 0;
30598   (void) cached_has_bits;
30599 
30600   cached_has_bits = _has_bits_[0];
30601   // optional uint32 num_output = 1 [default = 0];
30602   if (cached_has_bits & 0x00000004u) {
30603     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->num_output(), target);
30604   }
30605 
30606   // optional .opencv_caffe.FillerParameter weight_filler = 2;
30607   if (cached_has_bits & 0x00000001u) {
30608     target = ::google::protobuf::internal::WireFormatLite::
30609       InternalWriteMessageToArray(
30610         2, *this->weight_filler_, deterministic, target);
30611   }
30612 
30613   // optional .opencv_caffe.FillerParameter bias_filler = 3;
30614   if (cached_has_bits & 0x00000002u) {
30615     target = ::google::protobuf::internal::WireFormatLite::
30616       InternalWriteMessageToArray(
30617         3, *this->bias_filler_, deterministic, target);
30618   }
30619 
30620   // optional bool debug_info = 4 [default = false];
30621   if (cached_has_bits & 0x00000008u) {
30622     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->debug_info(), target);
30623   }
30624 
30625   // optional bool expose_hidden = 5 [default = false];
30626   if (cached_has_bits & 0x00000010u) {
30627     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->expose_hidden(), target);
30628   }
30629 
30630   if (_internal_metadata_.have_unknown_fields()) {
30631     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
30632         _internal_metadata_.unknown_fields(), target);
30633   }
30634   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.RecurrentParameter)
30635   return target;
30636 }
30637 
ByteSizeLong() const30638 size_t RecurrentParameter::ByteSizeLong() const {
30639 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.RecurrentParameter)
30640   size_t total_size = 0;
30641 
30642   if (_internal_metadata_.have_unknown_fields()) {
30643     total_size +=
30644       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
30645         _internal_metadata_.unknown_fields());
30646   }
30647   if (_has_bits_[0 / 32] & 31u) {
30648     // optional .opencv_caffe.FillerParameter weight_filler = 2;
30649     if (has_weight_filler()) {
30650       total_size += 1 +
30651         ::google::protobuf::internal::WireFormatLite::MessageSize(
30652           *this->weight_filler_);
30653     }
30654 
30655     // optional .opencv_caffe.FillerParameter bias_filler = 3;
30656     if (has_bias_filler()) {
30657       total_size += 1 +
30658         ::google::protobuf::internal::WireFormatLite::MessageSize(
30659           *this->bias_filler_);
30660     }
30661 
30662     // optional uint32 num_output = 1 [default = 0];
30663     if (has_num_output()) {
30664       total_size += 1 +
30665         ::google::protobuf::internal::WireFormatLite::UInt32Size(
30666           this->num_output());
30667     }
30668 
30669     // optional bool debug_info = 4 [default = false];
30670     if (has_debug_info()) {
30671       total_size += 1 + 1;
30672     }
30673 
30674     // optional bool expose_hidden = 5 [default = false];
30675     if (has_expose_hidden()) {
30676       total_size += 1 + 1;
30677     }
30678 
30679   }
30680   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
30681   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
30682   _cached_size_ = cached_size;
30683   GOOGLE_SAFE_CONCURRENT_WRITES_END();
30684   return total_size;
30685 }
30686 
MergeFrom(const::google::protobuf::Message & from)30687 void RecurrentParameter::MergeFrom(const ::google::protobuf::Message& from) {
30688 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.RecurrentParameter)
30689   GOOGLE_DCHECK_NE(&from, this);
30690   const RecurrentParameter* source =
30691       ::google::protobuf::internal::DynamicCastToGenerated<const RecurrentParameter>(
30692           &from);
30693   if (source == NULL) {
30694   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.RecurrentParameter)
30695     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
30696   } else {
30697   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.RecurrentParameter)
30698     MergeFrom(*source);
30699   }
30700 }
30701 
MergeFrom(const RecurrentParameter & from)30702 void RecurrentParameter::MergeFrom(const RecurrentParameter& from) {
30703 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.RecurrentParameter)
30704   GOOGLE_DCHECK_NE(&from, this);
30705   _internal_metadata_.MergeFrom(from._internal_metadata_);
30706   ::google::protobuf::uint32 cached_has_bits = 0;
30707   (void) cached_has_bits;
30708 
30709   cached_has_bits = from._has_bits_[0];
30710   if (cached_has_bits & 31u) {
30711     if (cached_has_bits & 0x00000001u) {
30712       mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler());
30713     }
30714     if (cached_has_bits & 0x00000002u) {
30715       mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler());
30716     }
30717     if (cached_has_bits & 0x00000004u) {
30718       num_output_ = from.num_output_;
30719     }
30720     if (cached_has_bits & 0x00000008u) {
30721       debug_info_ = from.debug_info_;
30722     }
30723     if (cached_has_bits & 0x00000010u) {
30724       expose_hidden_ = from.expose_hidden_;
30725     }
30726     _has_bits_[0] |= cached_has_bits;
30727   }
30728 }
30729 
CopyFrom(const::google::protobuf::Message & from)30730 void RecurrentParameter::CopyFrom(const ::google::protobuf::Message& from) {
30731 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.RecurrentParameter)
30732   if (&from == this) return;
30733   Clear();
30734   MergeFrom(from);
30735 }
30736 
CopyFrom(const RecurrentParameter & from)30737 void RecurrentParameter::CopyFrom(const RecurrentParameter& from) {
30738 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.RecurrentParameter)
30739   if (&from == this) return;
30740   Clear();
30741   MergeFrom(from);
30742 }
30743 
IsInitialized() const30744 bool RecurrentParameter::IsInitialized() const {
30745   return true;
30746 }
30747 
Swap(RecurrentParameter * other)30748 void RecurrentParameter::Swap(RecurrentParameter* other) {
30749   if (other == this) return;
30750   InternalSwap(other);
30751 }
InternalSwap(RecurrentParameter * other)30752 void RecurrentParameter::InternalSwap(RecurrentParameter* other) {
30753   using std::swap;
30754   swap(weight_filler_, other->weight_filler_);
30755   swap(bias_filler_, other->bias_filler_);
30756   swap(num_output_, other->num_output_);
30757   swap(debug_info_, other->debug_info_);
30758   swap(expose_hidden_, other->expose_hidden_);
30759   swap(_has_bits_[0], other->_has_bits_[0]);
30760   _internal_metadata_.Swap(&other->_internal_metadata_);
30761   swap(_cached_size_, other->_cached_size_);
30762 }
30763 
GetMetadata() const30764 ::google::protobuf::Metadata RecurrentParameter::GetMetadata() const {
30765   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
30766   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
30767 }
30768 
30769 
30770 // ===================================================================
30771 
InitAsDefaultInstance()30772 void ReductionParameter::InitAsDefaultInstance() {
30773 }
30774 #if !defined(_MSC_VER) || _MSC_VER >= 1900
30775 const int ReductionParameter::kOperationFieldNumber;
30776 const int ReductionParameter::kAxisFieldNumber;
30777 const int ReductionParameter::kCoeffFieldNumber;
30778 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
30779 
ReductionParameter()30780 ReductionParameter::ReductionParameter()
30781   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
30782   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
30783     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReductionParameter();
30784   }
30785   SharedCtor();
30786   // @@protoc_insertion_point(constructor:opencv_caffe.ReductionParameter)
30787 }
ReductionParameter(const ReductionParameter & from)30788 ReductionParameter::ReductionParameter(const ReductionParameter& from)
30789   : ::google::protobuf::Message(),
30790       _internal_metadata_(NULL),
30791       _has_bits_(from._has_bits_),
30792       _cached_size_(0) {
30793   _internal_metadata_.MergeFrom(from._internal_metadata_);
30794   ::memcpy(&axis_, &from.axis_,
30795     static_cast<size_t>(reinterpret_cast<char*>(&coeff_) -
30796     reinterpret_cast<char*>(&axis_)) + sizeof(coeff_));
30797   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReductionParameter)
30798 }
30799 
SharedCtor()30800 void ReductionParameter::SharedCtor() {
30801   _cached_size_ = 0;
30802   axis_ = 0;
30803   operation_ = 1;
30804   coeff_ = 1;
30805 }
30806 
~ReductionParameter()30807 ReductionParameter::~ReductionParameter() {
30808   // @@protoc_insertion_point(destructor:opencv_caffe.ReductionParameter)
30809   SharedDtor();
30810 }
30811 
SharedDtor()30812 void ReductionParameter::SharedDtor() {
30813 }
30814 
SetCachedSize(int size) const30815 void ReductionParameter::SetCachedSize(int size) const {
30816   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
30817   _cached_size_ = size;
30818   GOOGLE_SAFE_CONCURRENT_WRITES_END();
30819 }
descriptor()30820 const ::google::protobuf::Descriptor* ReductionParameter::descriptor() {
30821   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
30822   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
30823 }
30824 
default_instance()30825 const ReductionParameter& ReductionParameter::default_instance() {
30826   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReductionParameter();
30827   return *internal_default_instance();
30828 }
30829 
New(::google::protobuf::Arena * arena) const30830 ReductionParameter* ReductionParameter::New(::google::protobuf::Arena* arena) const {
30831   ReductionParameter* n = new ReductionParameter;
30832   if (arena != NULL) {
30833     arena->Own(n);
30834   }
30835   return n;
30836 }
30837 
Clear()30838 void ReductionParameter::Clear() {
30839 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ReductionParameter)
30840   ::google::protobuf::uint32 cached_has_bits = 0;
30841   // Prevent compiler warnings about cached_has_bits being unused
30842   (void) cached_has_bits;
30843 
30844   cached_has_bits = _has_bits_[0];
30845   if (cached_has_bits & 7u) {
30846     axis_ = 0;
30847     operation_ = 1;
30848     coeff_ = 1;
30849   }
30850   _has_bits_.Clear();
30851   _internal_metadata_.Clear();
30852 }
30853 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)30854 bool ReductionParameter::MergePartialFromCodedStream(
30855     ::google::protobuf::io::CodedInputStream* input) {
30856 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
30857   ::google::protobuf::uint32 tag;
30858   // @@protoc_insertion_point(parse_start:opencv_caffe.ReductionParameter)
30859   for (;;) {
30860     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
30861     tag = p.first;
30862     if (!p.second) goto handle_unusual;
30863     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
30864       // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM];
30865       case 1: {
30866         if (static_cast< ::google::protobuf::uint8>(tag) ==
30867             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
30868           int value;
30869           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
30870                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
30871                  input, &value)));
30872           if (::opencv_caffe::ReductionParameter_ReductionOp_IsValid(value)) {
30873             set_operation(static_cast< ::opencv_caffe::ReductionParameter_ReductionOp >(value));
30874           } else {
30875             mutable_unknown_fields()->AddVarint(
30876                 1, static_cast< ::google::protobuf::uint64>(value));
30877           }
30878         } else {
30879           goto handle_unusual;
30880         }
30881         break;
30882       }
30883 
30884       // optional int32 axis = 2 [default = 0];
30885       case 2: {
30886         if (static_cast< ::google::protobuf::uint8>(tag) ==
30887             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
30888           set_has_axis();
30889           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
30890                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
30891                  input, &axis_)));
30892         } else {
30893           goto handle_unusual;
30894         }
30895         break;
30896       }
30897 
30898       // optional float coeff = 3 [default = 1];
30899       case 3: {
30900         if (static_cast< ::google::protobuf::uint8>(tag) ==
30901             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
30902           set_has_coeff();
30903           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
30904                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
30905                  input, &coeff_)));
30906         } else {
30907           goto handle_unusual;
30908         }
30909         break;
30910       }
30911 
30912       default: {
30913       handle_unusual:
30914         if (tag == 0) {
30915           goto success;
30916         }
30917         DO_(::google::protobuf::internal::WireFormat::SkipField(
30918               input, tag, _internal_metadata_.mutable_unknown_fields()));
30919         break;
30920       }
30921     }
30922   }
30923 success:
30924   // @@protoc_insertion_point(parse_success:opencv_caffe.ReductionParameter)
30925   return true;
30926 failure:
30927   // @@protoc_insertion_point(parse_failure:opencv_caffe.ReductionParameter)
30928   return false;
30929 #undef DO_
30930 }
30931 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const30932 void ReductionParameter::SerializeWithCachedSizes(
30933     ::google::protobuf::io::CodedOutputStream* output) const {
30934   // @@protoc_insertion_point(serialize_start:opencv_caffe.ReductionParameter)
30935   ::google::protobuf::uint32 cached_has_bits = 0;
30936   (void) cached_has_bits;
30937 
30938   cached_has_bits = _has_bits_[0];
30939   // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM];
30940   if (cached_has_bits & 0x00000002u) {
30941     ::google::protobuf::internal::WireFormatLite::WriteEnum(
30942       1, this->operation(), output);
30943   }
30944 
30945   // optional int32 axis = 2 [default = 0];
30946   if (cached_has_bits & 0x00000001u) {
30947     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output);
30948   }
30949 
30950   // optional float coeff = 3 [default = 1];
30951   if (cached_has_bits & 0x00000004u) {
30952     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->coeff(), output);
30953   }
30954 
30955   if (_internal_metadata_.have_unknown_fields()) {
30956     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
30957         _internal_metadata_.unknown_fields(), output);
30958   }
30959   // @@protoc_insertion_point(serialize_end:opencv_caffe.ReductionParameter)
30960 }
30961 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const30962 ::google::protobuf::uint8* ReductionParameter::InternalSerializeWithCachedSizesToArray(
30963     bool deterministic, ::google::protobuf::uint8* target) const {
30964   (void)deterministic; // Unused
30965   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReductionParameter)
30966   ::google::protobuf::uint32 cached_has_bits = 0;
30967   (void) cached_has_bits;
30968 
30969   cached_has_bits = _has_bits_[0];
30970   // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM];
30971   if (cached_has_bits & 0x00000002u) {
30972     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
30973       1, this->operation(), target);
30974   }
30975 
30976   // optional int32 axis = 2 [default = 0];
30977   if (cached_has_bits & 0x00000001u) {
30978     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target);
30979   }
30980 
30981   // optional float coeff = 3 [default = 1];
30982   if (cached_has_bits & 0x00000004u) {
30983     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->coeff(), target);
30984   }
30985 
30986   if (_internal_metadata_.have_unknown_fields()) {
30987     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
30988         _internal_metadata_.unknown_fields(), target);
30989   }
30990   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReductionParameter)
30991   return target;
30992 }
30993 
ByteSizeLong() const30994 size_t ReductionParameter::ByteSizeLong() const {
30995 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReductionParameter)
30996   size_t total_size = 0;
30997 
30998   if (_internal_metadata_.have_unknown_fields()) {
30999     total_size +=
31000       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
31001         _internal_metadata_.unknown_fields());
31002   }
31003   if (_has_bits_[0 / 32] & 7u) {
31004     // optional int32 axis = 2 [default = 0];
31005     if (has_axis()) {
31006       total_size += 1 +
31007         ::google::protobuf::internal::WireFormatLite::Int32Size(
31008           this->axis());
31009     }
31010 
31011     // optional .opencv_caffe.ReductionParameter.ReductionOp operation = 1 [default = SUM];
31012     if (has_operation()) {
31013       total_size += 1 +
31014         ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
31015     }
31016 
31017     // optional float coeff = 3 [default = 1];
31018     if (has_coeff()) {
31019       total_size += 1 + 4;
31020     }
31021 
31022   }
31023   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
31024   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
31025   _cached_size_ = cached_size;
31026   GOOGLE_SAFE_CONCURRENT_WRITES_END();
31027   return total_size;
31028 }
31029 
MergeFrom(const::google::protobuf::Message & from)31030 void ReductionParameter::MergeFrom(const ::google::protobuf::Message& from) {
31031 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReductionParameter)
31032   GOOGLE_DCHECK_NE(&from, this);
31033   const ReductionParameter* source =
31034       ::google::protobuf::internal::DynamicCastToGenerated<const ReductionParameter>(
31035           &from);
31036   if (source == NULL) {
31037   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReductionParameter)
31038     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
31039   } else {
31040   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReductionParameter)
31041     MergeFrom(*source);
31042   }
31043 }
31044 
MergeFrom(const ReductionParameter & from)31045 void ReductionParameter::MergeFrom(const ReductionParameter& from) {
31046 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReductionParameter)
31047   GOOGLE_DCHECK_NE(&from, this);
31048   _internal_metadata_.MergeFrom(from._internal_metadata_);
31049   ::google::protobuf::uint32 cached_has_bits = 0;
31050   (void) cached_has_bits;
31051 
31052   cached_has_bits = from._has_bits_[0];
31053   if (cached_has_bits & 7u) {
31054     if (cached_has_bits & 0x00000001u) {
31055       axis_ = from.axis_;
31056     }
31057     if (cached_has_bits & 0x00000002u) {
31058       operation_ = from.operation_;
31059     }
31060     if (cached_has_bits & 0x00000004u) {
31061       coeff_ = from.coeff_;
31062     }
31063     _has_bits_[0] |= cached_has_bits;
31064   }
31065 }
31066 
CopyFrom(const::google::protobuf::Message & from)31067 void ReductionParameter::CopyFrom(const ::google::protobuf::Message& from) {
31068 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReductionParameter)
31069   if (&from == this) return;
31070   Clear();
31071   MergeFrom(from);
31072 }
31073 
CopyFrom(const ReductionParameter & from)31074 void ReductionParameter::CopyFrom(const ReductionParameter& from) {
31075 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReductionParameter)
31076   if (&from == this) return;
31077   Clear();
31078   MergeFrom(from);
31079 }
31080 
IsInitialized() const31081 bool ReductionParameter::IsInitialized() const {
31082   return true;
31083 }
31084 
Swap(ReductionParameter * other)31085 void ReductionParameter::Swap(ReductionParameter* other) {
31086   if (other == this) return;
31087   InternalSwap(other);
31088 }
InternalSwap(ReductionParameter * other)31089 void ReductionParameter::InternalSwap(ReductionParameter* other) {
31090   using std::swap;
31091   swap(axis_, other->axis_);
31092   swap(operation_, other->operation_);
31093   swap(coeff_, other->coeff_);
31094   swap(_has_bits_[0], other->_has_bits_[0]);
31095   _internal_metadata_.Swap(&other->_internal_metadata_);
31096   swap(_cached_size_, other->_cached_size_);
31097 }
31098 
GetMetadata() const31099 ::google::protobuf::Metadata ReductionParameter::GetMetadata() const {
31100   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
31101   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
31102 }
31103 
31104 
31105 // ===================================================================
31106 
InitAsDefaultInstance()31107 void ReLUParameter::InitAsDefaultInstance() {
31108 }
31109 #if !defined(_MSC_VER) || _MSC_VER >= 1900
31110 const int ReLUParameter::kNegativeSlopeFieldNumber;
31111 const int ReLUParameter::kEngineFieldNumber;
31112 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
31113 
ReLUParameter()31114 ReLUParameter::ReLUParameter()
31115   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
31116   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
31117     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameter();
31118   }
31119   SharedCtor();
31120   // @@protoc_insertion_point(constructor:opencv_caffe.ReLUParameter)
31121 }
ReLUParameter(const ReLUParameter & from)31122 ReLUParameter::ReLUParameter(const ReLUParameter& from)
31123   : ::google::protobuf::Message(),
31124       _internal_metadata_(NULL),
31125       _has_bits_(from._has_bits_),
31126       _cached_size_(0) {
31127   _internal_metadata_.MergeFrom(from._internal_metadata_);
31128   ::memcpy(&negative_slope_, &from.negative_slope_,
31129     static_cast<size_t>(reinterpret_cast<char*>(&engine_) -
31130     reinterpret_cast<char*>(&negative_slope_)) + sizeof(engine_));
31131   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReLUParameter)
31132 }
31133 
SharedCtor()31134 void ReLUParameter::SharedCtor() {
31135   _cached_size_ = 0;
31136   ::memset(&negative_slope_, 0, static_cast<size_t>(
31137       reinterpret_cast<char*>(&engine_) -
31138       reinterpret_cast<char*>(&negative_slope_)) + sizeof(engine_));
31139 }
31140 
~ReLUParameter()31141 ReLUParameter::~ReLUParameter() {
31142   // @@protoc_insertion_point(destructor:opencv_caffe.ReLUParameter)
31143   SharedDtor();
31144 }
31145 
SharedDtor()31146 void ReLUParameter::SharedDtor() {
31147 }
31148 
SetCachedSize(int size) const31149 void ReLUParameter::SetCachedSize(int size) const {
31150   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
31151   _cached_size_ = size;
31152   GOOGLE_SAFE_CONCURRENT_WRITES_END();
31153 }
descriptor()31154 const ::google::protobuf::Descriptor* ReLUParameter::descriptor() {
31155   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
31156   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
31157 }
31158 
default_instance()31159 const ReLUParameter& ReLUParameter::default_instance() {
31160   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReLUParameter();
31161   return *internal_default_instance();
31162 }
31163 
New(::google::protobuf::Arena * arena) const31164 ReLUParameter* ReLUParameter::New(::google::protobuf::Arena* arena) const {
31165   ReLUParameter* n = new ReLUParameter;
31166   if (arena != NULL) {
31167     arena->Own(n);
31168   }
31169   return n;
31170 }
31171 
Clear()31172 void ReLUParameter::Clear() {
31173 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ReLUParameter)
31174   ::google::protobuf::uint32 cached_has_bits = 0;
31175   // Prevent compiler warnings about cached_has_bits being unused
31176   (void) cached_has_bits;
31177 
31178   cached_has_bits = _has_bits_[0];
31179   if (cached_has_bits & 3u) {
31180     ::memset(&negative_slope_, 0, static_cast<size_t>(
31181         reinterpret_cast<char*>(&engine_) -
31182         reinterpret_cast<char*>(&negative_slope_)) + sizeof(engine_));
31183   }
31184   _has_bits_.Clear();
31185   _internal_metadata_.Clear();
31186 }
31187 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)31188 bool ReLUParameter::MergePartialFromCodedStream(
31189     ::google::protobuf::io::CodedInputStream* input) {
31190 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
31191   ::google::protobuf::uint32 tag;
31192   // @@protoc_insertion_point(parse_start:opencv_caffe.ReLUParameter)
31193   for (;;) {
31194     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
31195     tag = p.first;
31196     if (!p.second) goto handle_unusual;
31197     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
31198       // optional float negative_slope = 1 [default = 0];
31199       case 1: {
31200         if (static_cast< ::google::protobuf::uint8>(tag) ==
31201             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
31202           set_has_negative_slope();
31203           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
31204                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
31205                  input, &negative_slope_)));
31206         } else {
31207           goto handle_unusual;
31208         }
31209         break;
31210       }
31211 
31212       // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT];
31213       case 2: {
31214         if (static_cast< ::google::protobuf::uint8>(tag) ==
31215             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
31216           int value;
31217           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
31218                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
31219                  input, &value)));
31220           if (::opencv_caffe::ReLUParameter_Engine_IsValid(value)) {
31221             set_engine(static_cast< ::opencv_caffe::ReLUParameter_Engine >(value));
31222           } else {
31223             mutable_unknown_fields()->AddVarint(
31224                 2, static_cast< ::google::protobuf::uint64>(value));
31225           }
31226         } else {
31227           goto handle_unusual;
31228         }
31229         break;
31230       }
31231 
31232       default: {
31233       handle_unusual:
31234         if (tag == 0) {
31235           goto success;
31236         }
31237         DO_(::google::protobuf::internal::WireFormat::SkipField(
31238               input, tag, _internal_metadata_.mutable_unknown_fields()));
31239         break;
31240       }
31241     }
31242   }
31243 success:
31244   // @@protoc_insertion_point(parse_success:opencv_caffe.ReLUParameter)
31245   return true;
31246 failure:
31247   // @@protoc_insertion_point(parse_failure:opencv_caffe.ReLUParameter)
31248   return false;
31249 #undef DO_
31250 }
31251 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const31252 void ReLUParameter::SerializeWithCachedSizes(
31253     ::google::protobuf::io::CodedOutputStream* output) const {
31254   // @@protoc_insertion_point(serialize_start:opencv_caffe.ReLUParameter)
31255   ::google::protobuf::uint32 cached_has_bits = 0;
31256   (void) cached_has_bits;
31257 
31258   cached_has_bits = _has_bits_[0];
31259   // optional float negative_slope = 1 [default = 0];
31260   if (cached_has_bits & 0x00000001u) {
31261     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->negative_slope(), output);
31262   }
31263 
31264   // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT];
31265   if (cached_has_bits & 0x00000002u) {
31266     ::google::protobuf::internal::WireFormatLite::WriteEnum(
31267       2, this->engine(), output);
31268   }
31269 
31270   if (_internal_metadata_.have_unknown_fields()) {
31271     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
31272         _internal_metadata_.unknown_fields(), output);
31273   }
31274   // @@protoc_insertion_point(serialize_end:opencv_caffe.ReLUParameter)
31275 }
31276 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const31277 ::google::protobuf::uint8* ReLUParameter::InternalSerializeWithCachedSizesToArray(
31278     bool deterministic, ::google::protobuf::uint8* target) const {
31279   (void)deterministic; // Unused
31280   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReLUParameter)
31281   ::google::protobuf::uint32 cached_has_bits = 0;
31282   (void) cached_has_bits;
31283 
31284   cached_has_bits = _has_bits_[0];
31285   // optional float negative_slope = 1 [default = 0];
31286   if (cached_has_bits & 0x00000001u) {
31287     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->negative_slope(), target);
31288   }
31289 
31290   // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT];
31291   if (cached_has_bits & 0x00000002u) {
31292     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
31293       2, this->engine(), target);
31294   }
31295 
31296   if (_internal_metadata_.have_unknown_fields()) {
31297     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
31298         _internal_metadata_.unknown_fields(), target);
31299   }
31300   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReLUParameter)
31301   return target;
31302 }
31303 
ByteSizeLong() const31304 size_t ReLUParameter::ByteSizeLong() const {
31305 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReLUParameter)
31306   size_t total_size = 0;
31307 
31308   if (_internal_metadata_.have_unknown_fields()) {
31309     total_size +=
31310       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
31311         _internal_metadata_.unknown_fields());
31312   }
31313   if (_has_bits_[0 / 32] & 3u) {
31314     // optional float negative_slope = 1 [default = 0];
31315     if (has_negative_slope()) {
31316       total_size += 1 + 4;
31317     }
31318 
31319     // optional .opencv_caffe.ReLUParameter.Engine engine = 2 [default = DEFAULT];
31320     if (has_engine()) {
31321       total_size += 1 +
31322         ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine());
31323     }
31324 
31325   }
31326   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
31327   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
31328   _cached_size_ = cached_size;
31329   GOOGLE_SAFE_CONCURRENT_WRITES_END();
31330   return total_size;
31331 }
31332 
MergeFrom(const::google::protobuf::Message & from)31333 void ReLUParameter::MergeFrom(const ::google::protobuf::Message& from) {
31334 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReLUParameter)
31335   GOOGLE_DCHECK_NE(&from, this);
31336   const ReLUParameter* source =
31337       ::google::protobuf::internal::DynamicCastToGenerated<const ReLUParameter>(
31338           &from);
31339   if (source == NULL) {
31340   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReLUParameter)
31341     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
31342   } else {
31343   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReLUParameter)
31344     MergeFrom(*source);
31345   }
31346 }
31347 
MergeFrom(const ReLUParameter & from)31348 void ReLUParameter::MergeFrom(const ReLUParameter& from) {
31349 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReLUParameter)
31350   GOOGLE_DCHECK_NE(&from, this);
31351   _internal_metadata_.MergeFrom(from._internal_metadata_);
31352   ::google::protobuf::uint32 cached_has_bits = 0;
31353   (void) cached_has_bits;
31354 
31355   cached_has_bits = from._has_bits_[0];
31356   if (cached_has_bits & 3u) {
31357     if (cached_has_bits & 0x00000001u) {
31358       negative_slope_ = from.negative_slope_;
31359     }
31360     if (cached_has_bits & 0x00000002u) {
31361       engine_ = from.engine_;
31362     }
31363     _has_bits_[0] |= cached_has_bits;
31364   }
31365 }
31366 
CopyFrom(const::google::protobuf::Message & from)31367 void ReLUParameter::CopyFrom(const ::google::protobuf::Message& from) {
31368 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReLUParameter)
31369   if (&from == this) return;
31370   Clear();
31371   MergeFrom(from);
31372 }
31373 
CopyFrom(const ReLUParameter & from)31374 void ReLUParameter::CopyFrom(const ReLUParameter& from) {
31375 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReLUParameter)
31376   if (&from == this) return;
31377   Clear();
31378   MergeFrom(from);
31379 }
31380 
IsInitialized() const31381 bool ReLUParameter::IsInitialized() const {
31382   return true;
31383 }
31384 
Swap(ReLUParameter * other)31385 void ReLUParameter::Swap(ReLUParameter* other) {
31386   if (other == this) return;
31387   InternalSwap(other);
31388 }
InternalSwap(ReLUParameter * other)31389 void ReLUParameter::InternalSwap(ReLUParameter* other) {
31390   using std::swap;
31391   swap(negative_slope_, other->negative_slope_);
31392   swap(engine_, other->engine_);
31393   swap(_has_bits_[0], other->_has_bits_[0]);
31394   _internal_metadata_.Swap(&other->_internal_metadata_);
31395   swap(_cached_size_, other->_cached_size_);
31396 }
31397 
GetMetadata() const31398 ::google::protobuf::Metadata ReLUParameter::GetMetadata() const {
31399   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
31400   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
31401 }
31402 
31403 
31404 // ===================================================================
31405 
InitAsDefaultInstance()31406 void ReshapeParameter::InitAsDefaultInstance() {
31407   ::opencv_caffe::_ReshapeParameter_default_instance_._instance.get_mutable()->shape_ = const_cast< ::opencv_caffe::BlobShape*>(
31408       ::opencv_caffe::BlobShape::internal_default_instance());
31409 }
31410 #if !defined(_MSC_VER) || _MSC_VER >= 1900
31411 const int ReshapeParameter::kShapeFieldNumber;
31412 const int ReshapeParameter::kAxisFieldNumber;
31413 const int ReshapeParameter::kNumAxesFieldNumber;
31414 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
31415 
ReshapeParameter()31416 ReshapeParameter::ReshapeParameter()
31417   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
31418   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
31419     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReshapeParameter();
31420   }
31421   SharedCtor();
31422   // @@protoc_insertion_point(constructor:opencv_caffe.ReshapeParameter)
31423 }
ReshapeParameter(const ReshapeParameter & from)31424 ReshapeParameter::ReshapeParameter(const ReshapeParameter& from)
31425   : ::google::protobuf::Message(),
31426       _internal_metadata_(NULL),
31427       _has_bits_(from._has_bits_),
31428       _cached_size_(0) {
31429   _internal_metadata_.MergeFrom(from._internal_metadata_);
31430   if (from.has_shape()) {
31431     shape_ = new ::opencv_caffe::BlobShape(*from.shape_);
31432   } else {
31433     shape_ = NULL;
31434   }
31435   ::memcpy(&axis_, &from.axis_,
31436     static_cast<size_t>(reinterpret_cast<char*>(&num_axes_) -
31437     reinterpret_cast<char*>(&axis_)) + sizeof(num_axes_));
31438   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ReshapeParameter)
31439 }
31440 
SharedCtor()31441 void ReshapeParameter::SharedCtor() {
31442   _cached_size_ = 0;
31443   ::memset(&shape_, 0, static_cast<size_t>(
31444       reinterpret_cast<char*>(&axis_) -
31445       reinterpret_cast<char*>(&shape_)) + sizeof(axis_));
31446   num_axes_ = -1;
31447 }
31448 
~ReshapeParameter()31449 ReshapeParameter::~ReshapeParameter() {
31450   // @@protoc_insertion_point(destructor:opencv_caffe.ReshapeParameter)
31451   SharedDtor();
31452 }
31453 
SharedDtor()31454 void ReshapeParameter::SharedDtor() {
31455   if (this != internal_default_instance()) delete shape_;
31456 }
31457 
SetCachedSize(int size) const31458 void ReshapeParameter::SetCachedSize(int size) const {
31459   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
31460   _cached_size_ = size;
31461   GOOGLE_SAFE_CONCURRENT_WRITES_END();
31462 }
descriptor()31463 const ::google::protobuf::Descriptor* ReshapeParameter::descriptor() {
31464   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
31465   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
31466 }
31467 
default_instance()31468 const ReshapeParameter& ReshapeParameter::default_instance() {
31469   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsReshapeParameter();
31470   return *internal_default_instance();
31471 }
31472 
New(::google::protobuf::Arena * arena) const31473 ReshapeParameter* ReshapeParameter::New(::google::protobuf::Arena* arena) const {
31474   ReshapeParameter* n = new ReshapeParameter;
31475   if (arena != NULL) {
31476     arena->Own(n);
31477   }
31478   return n;
31479 }
31480 
Clear()31481 void ReshapeParameter::Clear() {
31482 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ReshapeParameter)
31483   ::google::protobuf::uint32 cached_has_bits = 0;
31484   // Prevent compiler warnings about cached_has_bits being unused
31485   (void) cached_has_bits;
31486 
31487   cached_has_bits = _has_bits_[0];
31488   if (cached_has_bits & 0x00000001u) {
31489     GOOGLE_DCHECK(shape_ != NULL);
31490     shape_->Clear();
31491   }
31492   if (cached_has_bits & 6u) {
31493     axis_ = 0;
31494     num_axes_ = -1;
31495   }
31496   _has_bits_.Clear();
31497   _internal_metadata_.Clear();
31498 }
31499 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)31500 bool ReshapeParameter::MergePartialFromCodedStream(
31501     ::google::protobuf::io::CodedInputStream* input) {
31502 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
31503   ::google::protobuf::uint32 tag;
31504   // @@protoc_insertion_point(parse_start:opencv_caffe.ReshapeParameter)
31505   for (;;) {
31506     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
31507     tag = p.first;
31508     if (!p.second) goto handle_unusual;
31509     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
31510       // optional .opencv_caffe.BlobShape shape = 1;
31511       case 1: {
31512         if (static_cast< ::google::protobuf::uint8>(tag) ==
31513             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
31514           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
31515                input, mutable_shape()));
31516         } else {
31517           goto handle_unusual;
31518         }
31519         break;
31520       }
31521 
31522       // optional int32 axis = 2 [default = 0];
31523       case 2: {
31524         if (static_cast< ::google::protobuf::uint8>(tag) ==
31525             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
31526           set_has_axis();
31527           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
31528                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
31529                  input, &axis_)));
31530         } else {
31531           goto handle_unusual;
31532         }
31533         break;
31534       }
31535 
31536       // optional int32 num_axes = 3 [default = -1];
31537       case 3: {
31538         if (static_cast< ::google::protobuf::uint8>(tag) ==
31539             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
31540           set_has_num_axes();
31541           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
31542                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
31543                  input, &num_axes_)));
31544         } else {
31545           goto handle_unusual;
31546         }
31547         break;
31548       }
31549 
31550       default: {
31551       handle_unusual:
31552         if (tag == 0) {
31553           goto success;
31554         }
31555         DO_(::google::protobuf::internal::WireFormat::SkipField(
31556               input, tag, _internal_metadata_.mutable_unknown_fields()));
31557         break;
31558       }
31559     }
31560   }
31561 success:
31562   // @@protoc_insertion_point(parse_success:opencv_caffe.ReshapeParameter)
31563   return true;
31564 failure:
31565   // @@protoc_insertion_point(parse_failure:opencv_caffe.ReshapeParameter)
31566   return false;
31567 #undef DO_
31568 }
31569 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const31570 void ReshapeParameter::SerializeWithCachedSizes(
31571     ::google::protobuf::io::CodedOutputStream* output) const {
31572   // @@protoc_insertion_point(serialize_start:opencv_caffe.ReshapeParameter)
31573   ::google::protobuf::uint32 cached_has_bits = 0;
31574   (void) cached_has_bits;
31575 
31576   cached_has_bits = _has_bits_[0];
31577   // optional .opencv_caffe.BlobShape shape = 1;
31578   if (cached_has_bits & 0x00000001u) {
31579     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
31580       1, *this->shape_, output);
31581   }
31582 
31583   // optional int32 axis = 2 [default = 0];
31584   if (cached_has_bits & 0x00000002u) {
31585     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output);
31586   }
31587 
31588   // optional int32 num_axes = 3 [default = -1];
31589   if (cached_has_bits & 0x00000004u) {
31590     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->num_axes(), output);
31591   }
31592 
31593   if (_internal_metadata_.have_unknown_fields()) {
31594     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
31595         _internal_metadata_.unknown_fields(), output);
31596   }
31597   // @@protoc_insertion_point(serialize_end:opencv_caffe.ReshapeParameter)
31598 }
31599 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const31600 ::google::protobuf::uint8* ReshapeParameter::InternalSerializeWithCachedSizesToArray(
31601     bool deterministic, ::google::protobuf::uint8* target) const {
31602   (void)deterministic; // Unused
31603   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ReshapeParameter)
31604   ::google::protobuf::uint32 cached_has_bits = 0;
31605   (void) cached_has_bits;
31606 
31607   cached_has_bits = _has_bits_[0];
31608   // optional .opencv_caffe.BlobShape shape = 1;
31609   if (cached_has_bits & 0x00000001u) {
31610     target = ::google::protobuf::internal::WireFormatLite::
31611       InternalWriteMessageToArray(
31612         1, *this->shape_, deterministic, target);
31613   }
31614 
31615   // optional int32 axis = 2 [default = 0];
31616   if (cached_has_bits & 0x00000002u) {
31617     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target);
31618   }
31619 
31620   // optional int32 num_axes = 3 [default = -1];
31621   if (cached_has_bits & 0x00000004u) {
31622     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->num_axes(), target);
31623   }
31624 
31625   if (_internal_metadata_.have_unknown_fields()) {
31626     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
31627         _internal_metadata_.unknown_fields(), target);
31628   }
31629   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ReshapeParameter)
31630   return target;
31631 }
31632 
ByteSizeLong() const31633 size_t ReshapeParameter::ByteSizeLong() const {
31634 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ReshapeParameter)
31635   size_t total_size = 0;
31636 
31637   if (_internal_metadata_.have_unknown_fields()) {
31638     total_size +=
31639       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
31640         _internal_metadata_.unknown_fields());
31641   }
31642   if (_has_bits_[0 / 32] & 7u) {
31643     // optional .opencv_caffe.BlobShape shape = 1;
31644     if (has_shape()) {
31645       total_size += 1 +
31646         ::google::protobuf::internal::WireFormatLite::MessageSize(
31647           *this->shape_);
31648     }
31649 
31650     // optional int32 axis = 2 [default = 0];
31651     if (has_axis()) {
31652       total_size += 1 +
31653         ::google::protobuf::internal::WireFormatLite::Int32Size(
31654           this->axis());
31655     }
31656 
31657     // optional int32 num_axes = 3 [default = -1];
31658     if (has_num_axes()) {
31659       total_size += 1 +
31660         ::google::protobuf::internal::WireFormatLite::Int32Size(
31661           this->num_axes());
31662     }
31663 
31664   }
31665   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
31666   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
31667   _cached_size_ = cached_size;
31668   GOOGLE_SAFE_CONCURRENT_WRITES_END();
31669   return total_size;
31670 }
31671 
MergeFrom(const::google::protobuf::Message & from)31672 void ReshapeParameter::MergeFrom(const ::google::protobuf::Message& from) {
31673 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ReshapeParameter)
31674   GOOGLE_DCHECK_NE(&from, this);
31675   const ReshapeParameter* source =
31676       ::google::protobuf::internal::DynamicCastToGenerated<const ReshapeParameter>(
31677           &from);
31678   if (source == NULL) {
31679   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ReshapeParameter)
31680     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
31681   } else {
31682   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ReshapeParameter)
31683     MergeFrom(*source);
31684   }
31685 }
31686 
MergeFrom(const ReshapeParameter & from)31687 void ReshapeParameter::MergeFrom(const ReshapeParameter& from) {
31688 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ReshapeParameter)
31689   GOOGLE_DCHECK_NE(&from, this);
31690   _internal_metadata_.MergeFrom(from._internal_metadata_);
31691   ::google::protobuf::uint32 cached_has_bits = 0;
31692   (void) cached_has_bits;
31693 
31694   cached_has_bits = from._has_bits_[0];
31695   if (cached_has_bits & 7u) {
31696     if (cached_has_bits & 0x00000001u) {
31697       mutable_shape()->::opencv_caffe::BlobShape::MergeFrom(from.shape());
31698     }
31699     if (cached_has_bits & 0x00000002u) {
31700       axis_ = from.axis_;
31701     }
31702     if (cached_has_bits & 0x00000004u) {
31703       num_axes_ = from.num_axes_;
31704     }
31705     _has_bits_[0] |= cached_has_bits;
31706   }
31707 }
31708 
CopyFrom(const::google::protobuf::Message & from)31709 void ReshapeParameter::CopyFrom(const ::google::protobuf::Message& from) {
31710 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ReshapeParameter)
31711   if (&from == this) return;
31712   Clear();
31713   MergeFrom(from);
31714 }
31715 
CopyFrom(const ReshapeParameter & from)31716 void ReshapeParameter::CopyFrom(const ReshapeParameter& from) {
31717 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ReshapeParameter)
31718   if (&from == this) return;
31719   Clear();
31720   MergeFrom(from);
31721 }
31722 
IsInitialized() const31723 bool ReshapeParameter::IsInitialized() const {
31724   return true;
31725 }
31726 
Swap(ReshapeParameter * other)31727 void ReshapeParameter::Swap(ReshapeParameter* other) {
31728   if (other == this) return;
31729   InternalSwap(other);
31730 }
InternalSwap(ReshapeParameter * other)31731 void ReshapeParameter::InternalSwap(ReshapeParameter* other) {
31732   using std::swap;
31733   swap(shape_, other->shape_);
31734   swap(axis_, other->axis_);
31735   swap(num_axes_, other->num_axes_);
31736   swap(_has_bits_[0], other->_has_bits_[0]);
31737   _internal_metadata_.Swap(&other->_internal_metadata_);
31738   swap(_cached_size_, other->_cached_size_);
31739 }
31740 
GetMetadata() const31741 ::google::protobuf::Metadata ReshapeParameter::GetMetadata() const {
31742   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
31743   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
31744 }
31745 
31746 
31747 // ===================================================================
31748 
InitAsDefaultInstance()31749 void ScaleParameter::InitAsDefaultInstance() {
31750   ::opencv_caffe::_ScaleParameter_default_instance_._instance.get_mutable()->filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
31751       ::opencv_caffe::FillerParameter::internal_default_instance());
31752   ::opencv_caffe::_ScaleParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
31753       ::opencv_caffe::FillerParameter::internal_default_instance());
31754 }
31755 #if !defined(_MSC_VER) || _MSC_VER >= 1900
31756 const int ScaleParameter::kAxisFieldNumber;
31757 const int ScaleParameter::kNumAxesFieldNumber;
31758 const int ScaleParameter::kFillerFieldNumber;
31759 const int ScaleParameter::kBiasTermFieldNumber;
31760 const int ScaleParameter::kBiasFillerFieldNumber;
31761 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
31762 
ScaleParameter()31763 ScaleParameter::ScaleParameter()
31764   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
31765   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
31766     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsScaleParameter();
31767   }
31768   SharedCtor();
31769   // @@protoc_insertion_point(constructor:opencv_caffe.ScaleParameter)
31770 }
ScaleParameter(const ScaleParameter & from)31771 ScaleParameter::ScaleParameter(const ScaleParameter& from)
31772   : ::google::protobuf::Message(),
31773       _internal_metadata_(NULL),
31774       _has_bits_(from._has_bits_),
31775       _cached_size_(0) {
31776   _internal_metadata_.MergeFrom(from._internal_metadata_);
31777   if (from.has_filler()) {
31778     filler_ = new ::opencv_caffe::FillerParameter(*from.filler_);
31779   } else {
31780     filler_ = NULL;
31781   }
31782   if (from.has_bias_filler()) {
31783     bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_);
31784   } else {
31785     bias_filler_ = NULL;
31786   }
31787   ::memcpy(&bias_term_, &from.bias_term_,
31788     static_cast<size_t>(reinterpret_cast<char*>(&num_axes_) -
31789     reinterpret_cast<char*>(&bias_term_)) + sizeof(num_axes_));
31790   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ScaleParameter)
31791 }
31792 
SharedCtor()31793 void ScaleParameter::SharedCtor() {
31794   _cached_size_ = 0;
31795   ::memset(&filler_, 0, static_cast<size_t>(
31796       reinterpret_cast<char*>(&bias_term_) -
31797       reinterpret_cast<char*>(&filler_)) + sizeof(bias_term_));
31798   axis_ = 1;
31799   num_axes_ = 1;
31800 }
31801 
~ScaleParameter()31802 ScaleParameter::~ScaleParameter() {
31803   // @@protoc_insertion_point(destructor:opencv_caffe.ScaleParameter)
31804   SharedDtor();
31805 }
31806 
SharedDtor()31807 void ScaleParameter::SharedDtor() {
31808   if (this != internal_default_instance()) delete filler_;
31809   if (this != internal_default_instance()) delete bias_filler_;
31810 }
31811 
SetCachedSize(int size) const31812 void ScaleParameter::SetCachedSize(int size) const {
31813   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
31814   _cached_size_ = size;
31815   GOOGLE_SAFE_CONCURRENT_WRITES_END();
31816 }
descriptor()31817 const ::google::protobuf::Descriptor* ScaleParameter::descriptor() {
31818   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
31819   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
31820 }
31821 
default_instance()31822 const ScaleParameter& ScaleParameter::default_instance() {
31823   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsScaleParameter();
31824   return *internal_default_instance();
31825 }
31826 
New(::google::protobuf::Arena * arena) const31827 ScaleParameter* ScaleParameter::New(::google::protobuf::Arena* arena) const {
31828   ScaleParameter* n = new ScaleParameter;
31829   if (arena != NULL) {
31830     arena->Own(n);
31831   }
31832   return n;
31833 }
31834 
Clear()31835 void ScaleParameter::Clear() {
31836 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ScaleParameter)
31837   ::google::protobuf::uint32 cached_has_bits = 0;
31838   // Prevent compiler warnings about cached_has_bits being unused
31839   (void) cached_has_bits;
31840 
31841   cached_has_bits = _has_bits_[0];
31842   if (cached_has_bits & 3u) {
31843     if (cached_has_bits & 0x00000001u) {
31844       GOOGLE_DCHECK(filler_ != NULL);
31845       filler_->Clear();
31846     }
31847     if (cached_has_bits & 0x00000002u) {
31848       GOOGLE_DCHECK(bias_filler_ != NULL);
31849       bias_filler_->Clear();
31850     }
31851   }
31852   if (cached_has_bits & 28u) {
31853     bias_term_ = false;
31854     axis_ = 1;
31855     num_axes_ = 1;
31856   }
31857   _has_bits_.Clear();
31858   _internal_metadata_.Clear();
31859 }
31860 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)31861 bool ScaleParameter::MergePartialFromCodedStream(
31862     ::google::protobuf::io::CodedInputStream* input) {
31863 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
31864   ::google::protobuf::uint32 tag;
31865   // @@protoc_insertion_point(parse_start:opencv_caffe.ScaleParameter)
31866   for (;;) {
31867     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
31868     tag = p.first;
31869     if (!p.second) goto handle_unusual;
31870     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
31871       // optional int32 axis = 1 [default = 1];
31872       case 1: {
31873         if (static_cast< ::google::protobuf::uint8>(tag) ==
31874             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
31875           set_has_axis();
31876           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
31877                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
31878                  input, &axis_)));
31879         } else {
31880           goto handle_unusual;
31881         }
31882         break;
31883       }
31884 
31885       // optional int32 num_axes = 2 [default = 1];
31886       case 2: {
31887         if (static_cast< ::google::protobuf::uint8>(tag) ==
31888             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
31889           set_has_num_axes();
31890           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
31891                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
31892                  input, &num_axes_)));
31893         } else {
31894           goto handle_unusual;
31895         }
31896         break;
31897       }
31898 
31899       // optional .opencv_caffe.FillerParameter filler = 3;
31900       case 3: {
31901         if (static_cast< ::google::protobuf::uint8>(tag) ==
31902             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
31903           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
31904                input, mutable_filler()));
31905         } else {
31906           goto handle_unusual;
31907         }
31908         break;
31909       }
31910 
31911       // optional bool bias_term = 4 [default = false];
31912       case 4: {
31913         if (static_cast< ::google::protobuf::uint8>(tag) ==
31914             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
31915           set_has_bias_term();
31916           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
31917                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
31918                  input, &bias_term_)));
31919         } else {
31920           goto handle_unusual;
31921         }
31922         break;
31923       }
31924 
31925       // optional .opencv_caffe.FillerParameter bias_filler = 5;
31926       case 5: {
31927         if (static_cast< ::google::protobuf::uint8>(tag) ==
31928             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
31929           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
31930                input, mutable_bias_filler()));
31931         } else {
31932           goto handle_unusual;
31933         }
31934         break;
31935       }
31936 
31937       default: {
31938       handle_unusual:
31939         if (tag == 0) {
31940           goto success;
31941         }
31942         DO_(::google::protobuf::internal::WireFormat::SkipField(
31943               input, tag, _internal_metadata_.mutable_unknown_fields()));
31944         break;
31945       }
31946     }
31947   }
31948 success:
31949   // @@protoc_insertion_point(parse_success:opencv_caffe.ScaleParameter)
31950   return true;
31951 failure:
31952   // @@protoc_insertion_point(parse_failure:opencv_caffe.ScaleParameter)
31953   return false;
31954 #undef DO_
31955 }
31956 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const31957 void ScaleParameter::SerializeWithCachedSizes(
31958     ::google::protobuf::io::CodedOutputStream* output) const {
31959   // @@protoc_insertion_point(serialize_start:opencv_caffe.ScaleParameter)
31960   ::google::protobuf::uint32 cached_has_bits = 0;
31961   (void) cached_has_bits;
31962 
31963   cached_has_bits = _has_bits_[0];
31964   // optional int32 axis = 1 [default = 1];
31965   if (cached_has_bits & 0x00000008u) {
31966     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output);
31967   }
31968 
31969   // optional int32 num_axes = 2 [default = 1];
31970   if (cached_has_bits & 0x00000010u) {
31971     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_axes(), output);
31972   }
31973 
31974   // optional .opencv_caffe.FillerParameter filler = 3;
31975   if (cached_has_bits & 0x00000001u) {
31976     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
31977       3, *this->filler_, output);
31978   }
31979 
31980   // optional bool bias_term = 4 [default = false];
31981   if (cached_has_bits & 0x00000004u) {
31982     ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->bias_term(), output);
31983   }
31984 
31985   // optional .opencv_caffe.FillerParameter bias_filler = 5;
31986   if (cached_has_bits & 0x00000002u) {
31987     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
31988       5, *this->bias_filler_, output);
31989   }
31990 
31991   if (_internal_metadata_.have_unknown_fields()) {
31992     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
31993         _internal_metadata_.unknown_fields(), output);
31994   }
31995   // @@protoc_insertion_point(serialize_end:opencv_caffe.ScaleParameter)
31996 }
31997 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const31998 ::google::protobuf::uint8* ScaleParameter::InternalSerializeWithCachedSizesToArray(
31999     bool deterministic, ::google::protobuf::uint8* target) const {
32000   (void)deterministic; // Unused
32001   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ScaleParameter)
32002   ::google::protobuf::uint32 cached_has_bits = 0;
32003   (void) cached_has_bits;
32004 
32005   cached_has_bits = _has_bits_[0];
32006   // optional int32 axis = 1 [default = 1];
32007   if (cached_has_bits & 0x00000008u) {
32008     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target);
32009   }
32010 
32011   // optional int32 num_axes = 2 [default = 1];
32012   if (cached_has_bits & 0x00000010u) {
32013     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_axes(), target);
32014   }
32015 
32016   // optional .opencv_caffe.FillerParameter filler = 3;
32017   if (cached_has_bits & 0x00000001u) {
32018     target = ::google::protobuf::internal::WireFormatLite::
32019       InternalWriteMessageToArray(
32020         3, *this->filler_, deterministic, target);
32021   }
32022 
32023   // optional bool bias_term = 4 [default = false];
32024   if (cached_has_bits & 0x00000004u) {
32025     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->bias_term(), target);
32026   }
32027 
32028   // optional .opencv_caffe.FillerParameter bias_filler = 5;
32029   if (cached_has_bits & 0x00000002u) {
32030     target = ::google::protobuf::internal::WireFormatLite::
32031       InternalWriteMessageToArray(
32032         5, *this->bias_filler_, deterministic, target);
32033   }
32034 
32035   if (_internal_metadata_.have_unknown_fields()) {
32036     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
32037         _internal_metadata_.unknown_fields(), target);
32038   }
32039   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ScaleParameter)
32040   return target;
32041 }
32042 
ByteSizeLong() const32043 size_t ScaleParameter::ByteSizeLong() const {
32044 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ScaleParameter)
32045   size_t total_size = 0;
32046 
32047   if (_internal_metadata_.have_unknown_fields()) {
32048     total_size +=
32049       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
32050         _internal_metadata_.unknown_fields());
32051   }
32052   if (_has_bits_[0 / 32] & 31u) {
32053     // optional .opencv_caffe.FillerParameter filler = 3;
32054     if (has_filler()) {
32055       total_size += 1 +
32056         ::google::protobuf::internal::WireFormatLite::MessageSize(
32057           *this->filler_);
32058     }
32059 
32060     // optional .opencv_caffe.FillerParameter bias_filler = 5;
32061     if (has_bias_filler()) {
32062       total_size += 1 +
32063         ::google::protobuf::internal::WireFormatLite::MessageSize(
32064           *this->bias_filler_);
32065     }
32066 
32067     // optional bool bias_term = 4 [default = false];
32068     if (has_bias_term()) {
32069       total_size += 1 + 1;
32070     }
32071 
32072     // optional int32 axis = 1 [default = 1];
32073     if (has_axis()) {
32074       total_size += 1 +
32075         ::google::protobuf::internal::WireFormatLite::Int32Size(
32076           this->axis());
32077     }
32078 
32079     // optional int32 num_axes = 2 [default = 1];
32080     if (has_num_axes()) {
32081       total_size += 1 +
32082         ::google::protobuf::internal::WireFormatLite::Int32Size(
32083           this->num_axes());
32084     }
32085 
32086   }
32087   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
32088   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
32089   _cached_size_ = cached_size;
32090   GOOGLE_SAFE_CONCURRENT_WRITES_END();
32091   return total_size;
32092 }
32093 
MergeFrom(const::google::protobuf::Message & from)32094 void ScaleParameter::MergeFrom(const ::google::protobuf::Message& from) {
32095 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ScaleParameter)
32096   GOOGLE_DCHECK_NE(&from, this);
32097   const ScaleParameter* source =
32098       ::google::protobuf::internal::DynamicCastToGenerated<const ScaleParameter>(
32099           &from);
32100   if (source == NULL) {
32101   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ScaleParameter)
32102     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
32103   } else {
32104   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ScaleParameter)
32105     MergeFrom(*source);
32106   }
32107 }
32108 
MergeFrom(const ScaleParameter & from)32109 void ScaleParameter::MergeFrom(const ScaleParameter& from) {
32110 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ScaleParameter)
32111   GOOGLE_DCHECK_NE(&from, this);
32112   _internal_metadata_.MergeFrom(from._internal_metadata_);
32113   ::google::protobuf::uint32 cached_has_bits = 0;
32114   (void) cached_has_bits;
32115 
32116   cached_has_bits = from._has_bits_[0];
32117   if (cached_has_bits & 31u) {
32118     if (cached_has_bits & 0x00000001u) {
32119       mutable_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.filler());
32120     }
32121     if (cached_has_bits & 0x00000002u) {
32122       mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler());
32123     }
32124     if (cached_has_bits & 0x00000004u) {
32125       bias_term_ = from.bias_term_;
32126     }
32127     if (cached_has_bits & 0x00000008u) {
32128       axis_ = from.axis_;
32129     }
32130     if (cached_has_bits & 0x00000010u) {
32131       num_axes_ = from.num_axes_;
32132     }
32133     _has_bits_[0] |= cached_has_bits;
32134   }
32135 }
32136 
CopyFrom(const::google::protobuf::Message & from)32137 void ScaleParameter::CopyFrom(const ::google::protobuf::Message& from) {
32138 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ScaleParameter)
32139   if (&from == this) return;
32140   Clear();
32141   MergeFrom(from);
32142 }
32143 
CopyFrom(const ScaleParameter & from)32144 void ScaleParameter::CopyFrom(const ScaleParameter& from) {
32145 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ScaleParameter)
32146   if (&from == this) return;
32147   Clear();
32148   MergeFrom(from);
32149 }
32150 
IsInitialized() const32151 bool ScaleParameter::IsInitialized() const {
32152   return true;
32153 }
32154 
Swap(ScaleParameter * other)32155 void ScaleParameter::Swap(ScaleParameter* other) {
32156   if (other == this) return;
32157   InternalSwap(other);
32158 }
InternalSwap(ScaleParameter * other)32159 void ScaleParameter::InternalSwap(ScaleParameter* other) {
32160   using std::swap;
32161   swap(filler_, other->filler_);
32162   swap(bias_filler_, other->bias_filler_);
32163   swap(bias_term_, other->bias_term_);
32164   swap(axis_, other->axis_);
32165   swap(num_axes_, other->num_axes_);
32166   swap(_has_bits_[0], other->_has_bits_[0]);
32167   _internal_metadata_.Swap(&other->_internal_metadata_);
32168   swap(_cached_size_, other->_cached_size_);
32169 }
32170 
GetMetadata() const32171 ::google::protobuf::Metadata ScaleParameter::GetMetadata() const {
32172   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
32173   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
32174 }
32175 
32176 
32177 // ===================================================================
32178 
InitAsDefaultInstance()32179 void SigmoidParameter::InitAsDefaultInstance() {
32180 }
32181 #if !defined(_MSC_VER) || _MSC_VER >= 1900
32182 const int SigmoidParameter::kEngineFieldNumber;
32183 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
32184 
SigmoidParameter()32185 SigmoidParameter::SigmoidParameter()
32186   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
32187   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
32188     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameter();
32189   }
32190   SharedCtor();
32191   // @@protoc_insertion_point(constructor:opencv_caffe.SigmoidParameter)
32192 }
SigmoidParameter(const SigmoidParameter & from)32193 SigmoidParameter::SigmoidParameter(const SigmoidParameter& from)
32194   : ::google::protobuf::Message(),
32195       _internal_metadata_(NULL),
32196       _has_bits_(from._has_bits_),
32197       _cached_size_(0) {
32198   _internal_metadata_.MergeFrom(from._internal_metadata_);
32199   engine_ = from.engine_;
32200   // @@protoc_insertion_point(copy_constructor:opencv_caffe.SigmoidParameter)
32201 }
32202 
SharedCtor()32203 void SigmoidParameter::SharedCtor() {
32204   _cached_size_ = 0;
32205   engine_ = 0;
32206 }
32207 
~SigmoidParameter()32208 SigmoidParameter::~SigmoidParameter() {
32209   // @@protoc_insertion_point(destructor:opencv_caffe.SigmoidParameter)
32210   SharedDtor();
32211 }
32212 
SharedDtor()32213 void SigmoidParameter::SharedDtor() {
32214 }
32215 
SetCachedSize(int size) const32216 void SigmoidParameter::SetCachedSize(int size) const {
32217   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
32218   _cached_size_ = size;
32219   GOOGLE_SAFE_CONCURRENT_WRITES_END();
32220 }
descriptor()32221 const ::google::protobuf::Descriptor* SigmoidParameter::descriptor() {
32222   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
32223   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
32224 }
32225 
default_instance()32226 const SigmoidParameter& SigmoidParameter::default_instance() {
32227   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSigmoidParameter();
32228   return *internal_default_instance();
32229 }
32230 
New(::google::protobuf::Arena * arena) const32231 SigmoidParameter* SigmoidParameter::New(::google::protobuf::Arena* arena) const {
32232   SigmoidParameter* n = new SigmoidParameter;
32233   if (arena != NULL) {
32234     arena->Own(n);
32235   }
32236   return n;
32237 }
32238 
Clear()32239 void SigmoidParameter::Clear() {
32240 // @@protoc_insertion_point(message_clear_start:opencv_caffe.SigmoidParameter)
32241   ::google::protobuf::uint32 cached_has_bits = 0;
32242   // Prevent compiler warnings about cached_has_bits being unused
32243   (void) cached_has_bits;
32244 
32245   engine_ = 0;
32246   _has_bits_.Clear();
32247   _internal_metadata_.Clear();
32248 }
32249 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)32250 bool SigmoidParameter::MergePartialFromCodedStream(
32251     ::google::protobuf::io::CodedInputStream* input) {
32252 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
32253   ::google::protobuf::uint32 tag;
32254   // @@protoc_insertion_point(parse_start:opencv_caffe.SigmoidParameter)
32255   for (;;) {
32256     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
32257     tag = p.first;
32258     if (!p.second) goto handle_unusual;
32259     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
32260       // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT];
32261       case 1: {
32262         if (static_cast< ::google::protobuf::uint8>(tag) ==
32263             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
32264           int value;
32265           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
32266                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
32267                  input, &value)));
32268           if (::opencv_caffe::SigmoidParameter_Engine_IsValid(value)) {
32269             set_engine(static_cast< ::opencv_caffe::SigmoidParameter_Engine >(value));
32270           } else {
32271             mutable_unknown_fields()->AddVarint(
32272                 1, static_cast< ::google::protobuf::uint64>(value));
32273           }
32274         } else {
32275           goto handle_unusual;
32276         }
32277         break;
32278       }
32279 
32280       default: {
32281       handle_unusual:
32282         if (tag == 0) {
32283           goto success;
32284         }
32285         DO_(::google::protobuf::internal::WireFormat::SkipField(
32286               input, tag, _internal_metadata_.mutable_unknown_fields()));
32287         break;
32288       }
32289     }
32290   }
32291 success:
32292   // @@protoc_insertion_point(parse_success:opencv_caffe.SigmoidParameter)
32293   return true;
32294 failure:
32295   // @@protoc_insertion_point(parse_failure:opencv_caffe.SigmoidParameter)
32296   return false;
32297 #undef DO_
32298 }
32299 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const32300 void SigmoidParameter::SerializeWithCachedSizes(
32301     ::google::protobuf::io::CodedOutputStream* output) const {
32302   // @@protoc_insertion_point(serialize_start:opencv_caffe.SigmoidParameter)
32303   ::google::protobuf::uint32 cached_has_bits = 0;
32304   (void) cached_has_bits;
32305 
32306   cached_has_bits = _has_bits_[0];
32307   // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT];
32308   if (cached_has_bits & 0x00000001u) {
32309     ::google::protobuf::internal::WireFormatLite::WriteEnum(
32310       1, this->engine(), output);
32311   }
32312 
32313   if (_internal_metadata_.have_unknown_fields()) {
32314     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
32315         _internal_metadata_.unknown_fields(), output);
32316   }
32317   // @@protoc_insertion_point(serialize_end:opencv_caffe.SigmoidParameter)
32318 }
32319 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const32320 ::google::protobuf::uint8* SigmoidParameter::InternalSerializeWithCachedSizesToArray(
32321     bool deterministic, ::google::protobuf::uint8* target) const {
32322   (void)deterministic; // Unused
32323   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SigmoidParameter)
32324   ::google::protobuf::uint32 cached_has_bits = 0;
32325   (void) cached_has_bits;
32326 
32327   cached_has_bits = _has_bits_[0];
32328   // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT];
32329   if (cached_has_bits & 0x00000001u) {
32330     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
32331       1, this->engine(), target);
32332   }
32333 
32334   if (_internal_metadata_.have_unknown_fields()) {
32335     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
32336         _internal_metadata_.unknown_fields(), target);
32337   }
32338   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SigmoidParameter)
32339   return target;
32340 }
32341 
ByteSizeLong() const32342 size_t SigmoidParameter::ByteSizeLong() const {
32343 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SigmoidParameter)
32344   size_t total_size = 0;
32345 
32346   if (_internal_metadata_.have_unknown_fields()) {
32347     total_size +=
32348       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
32349         _internal_metadata_.unknown_fields());
32350   }
32351   // optional .opencv_caffe.SigmoidParameter.Engine engine = 1 [default = DEFAULT];
32352   if (has_engine()) {
32353     total_size += 1 +
32354       ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine());
32355   }
32356 
32357   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
32358   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
32359   _cached_size_ = cached_size;
32360   GOOGLE_SAFE_CONCURRENT_WRITES_END();
32361   return total_size;
32362 }
32363 
MergeFrom(const::google::protobuf::Message & from)32364 void SigmoidParameter::MergeFrom(const ::google::protobuf::Message& from) {
32365 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SigmoidParameter)
32366   GOOGLE_DCHECK_NE(&from, this);
32367   const SigmoidParameter* source =
32368       ::google::protobuf::internal::DynamicCastToGenerated<const SigmoidParameter>(
32369           &from);
32370   if (source == NULL) {
32371   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SigmoidParameter)
32372     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
32373   } else {
32374   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SigmoidParameter)
32375     MergeFrom(*source);
32376   }
32377 }
32378 
MergeFrom(const SigmoidParameter & from)32379 void SigmoidParameter::MergeFrom(const SigmoidParameter& from) {
32380 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SigmoidParameter)
32381   GOOGLE_DCHECK_NE(&from, this);
32382   _internal_metadata_.MergeFrom(from._internal_metadata_);
32383   ::google::protobuf::uint32 cached_has_bits = 0;
32384   (void) cached_has_bits;
32385 
32386   if (from.has_engine()) {
32387     set_engine(from.engine());
32388   }
32389 }
32390 
CopyFrom(const::google::protobuf::Message & from)32391 void SigmoidParameter::CopyFrom(const ::google::protobuf::Message& from) {
32392 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SigmoidParameter)
32393   if (&from == this) return;
32394   Clear();
32395   MergeFrom(from);
32396 }
32397 
CopyFrom(const SigmoidParameter & from)32398 void SigmoidParameter::CopyFrom(const SigmoidParameter& from) {
32399 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SigmoidParameter)
32400   if (&from == this) return;
32401   Clear();
32402   MergeFrom(from);
32403 }
32404 
IsInitialized() const32405 bool SigmoidParameter::IsInitialized() const {
32406   return true;
32407 }
32408 
Swap(SigmoidParameter * other)32409 void SigmoidParameter::Swap(SigmoidParameter* other) {
32410   if (other == this) return;
32411   InternalSwap(other);
32412 }
InternalSwap(SigmoidParameter * other)32413 void SigmoidParameter::InternalSwap(SigmoidParameter* other) {
32414   using std::swap;
32415   swap(engine_, other->engine_);
32416   swap(_has_bits_[0], other->_has_bits_[0]);
32417   _internal_metadata_.Swap(&other->_internal_metadata_);
32418   swap(_cached_size_, other->_cached_size_);
32419 }
32420 
GetMetadata() const32421 ::google::protobuf::Metadata SigmoidParameter::GetMetadata() const {
32422   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
32423   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
32424 }
32425 
32426 
32427 // ===================================================================
32428 
InitAsDefaultInstance()32429 void SliceParameter::InitAsDefaultInstance() {
32430 }
32431 #if !defined(_MSC_VER) || _MSC_VER >= 1900
32432 const int SliceParameter::kAxisFieldNumber;
32433 const int SliceParameter::kSlicePointFieldNumber;
32434 const int SliceParameter::kSliceDimFieldNumber;
32435 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
32436 
SliceParameter()32437 SliceParameter::SliceParameter()
32438   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
32439   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
32440     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameter();
32441   }
32442   SharedCtor();
32443   // @@protoc_insertion_point(constructor:opencv_caffe.SliceParameter)
32444 }
SliceParameter(const SliceParameter & from)32445 SliceParameter::SliceParameter(const SliceParameter& from)
32446   : ::google::protobuf::Message(),
32447       _internal_metadata_(NULL),
32448       _has_bits_(from._has_bits_),
32449       _cached_size_(0),
32450       slice_point_(from.slice_point_) {
32451   _internal_metadata_.MergeFrom(from._internal_metadata_);
32452   ::memcpy(&slice_dim_, &from.slice_dim_,
32453     static_cast<size_t>(reinterpret_cast<char*>(&axis_) -
32454     reinterpret_cast<char*>(&slice_dim_)) + sizeof(axis_));
32455   // @@protoc_insertion_point(copy_constructor:opencv_caffe.SliceParameter)
32456 }
32457 
SharedCtor()32458 void SliceParameter::SharedCtor() {
32459   _cached_size_ = 0;
32460   slice_dim_ = 1u;
32461   axis_ = 1;
32462 }
32463 
~SliceParameter()32464 SliceParameter::~SliceParameter() {
32465   // @@protoc_insertion_point(destructor:opencv_caffe.SliceParameter)
32466   SharedDtor();
32467 }
32468 
SharedDtor()32469 void SliceParameter::SharedDtor() {
32470 }
32471 
SetCachedSize(int size) const32472 void SliceParameter::SetCachedSize(int size) const {
32473   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
32474   _cached_size_ = size;
32475   GOOGLE_SAFE_CONCURRENT_WRITES_END();
32476 }
descriptor()32477 const ::google::protobuf::Descriptor* SliceParameter::descriptor() {
32478   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
32479   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
32480 }
32481 
default_instance()32482 const SliceParameter& SliceParameter::default_instance() {
32483   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSliceParameter();
32484   return *internal_default_instance();
32485 }
32486 
New(::google::protobuf::Arena * arena) const32487 SliceParameter* SliceParameter::New(::google::protobuf::Arena* arena) const {
32488   SliceParameter* n = new SliceParameter;
32489   if (arena != NULL) {
32490     arena->Own(n);
32491   }
32492   return n;
32493 }
32494 
Clear()32495 void SliceParameter::Clear() {
32496 // @@protoc_insertion_point(message_clear_start:opencv_caffe.SliceParameter)
32497   ::google::protobuf::uint32 cached_has_bits = 0;
32498   // Prevent compiler warnings about cached_has_bits being unused
32499   (void) cached_has_bits;
32500 
32501   slice_point_.Clear();
32502   cached_has_bits = _has_bits_[0];
32503   if (cached_has_bits & 3u) {
32504     slice_dim_ = 1u;
32505     axis_ = 1;
32506   }
32507   _has_bits_.Clear();
32508   _internal_metadata_.Clear();
32509 }
32510 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)32511 bool SliceParameter::MergePartialFromCodedStream(
32512     ::google::protobuf::io::CodedInputStream* input) {
32513 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
32514   ::google::protobuf::uint32 tag;
32515   // @@protoc_insertion_point(parse_start:opencv_caffe.SliceParameter)
32516   for (;;) {
32517     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
32518     tag = p.first;
32519     if (!p.second) goto handle_unusual;
32520     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
32521       // optional uint32 slice_dim = 1 [default = 1];
32522       case 1: {
32523         if (static_cast< ::google::protobuf::uint8>(tag) ==
32524             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
32525           set_has_slice_dim();
32526           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
32527                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
32528                  input, &slice_dim_)));
32529         } else {
32530           goto handle_unusual;
32531         }
32532         break;
32533       }
32534 
32535       // repeated uint32 slice_point = 2;
32536       case 2: {
32537         if (static_cast< ::google::protobuf::uint8>(tag) ==
32538             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
32539           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
32540                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
32541                  1, 16u, input, this->mutable_slice_point())));
32542         } else if (
32543             static_cast< ::google::protobuf::uint8>(tag) ==
32544             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
32545           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
32546                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
32547                  input, this->mutable_slice_point())));
32548         } else {
32549           goto handle_unusual;
32550         }
32551         break;
32552       }
32553 
32554       // optional int32 axis = 3 [default = 1];
32555       case 3: {
32556         if (static_cast< ::google::protobuf::uint8>(tag) ==
32557             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
32558           set_has_axis();
32559           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
32560                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
32561                  input, &axis_)));
32562         } else {
32563           goto handle_unusual;
32564         }
32565         break;
32566       }
32567 
32568       default: {
32569       handle_unusual:
32570         if (tag == 0) {
32571           goto success;
32572         }
32573         DO_(::google::protobuf::internal::WireFormat::SkipField(
32574               input, tag, _internal_metadata_.mutable_unknown_fields()));
32575         break;
32576       }
32577     }
32578   }
32579 success:
32580   // @@protoc_insertion_point(parse_success:opencv_caffe.SliceParameter)
32581   return true;
32582 failure:
32583   // @@protoc_insertion_point(parse_failure:opencv_caffe.SliceParameter)
32584   return false;
32585 #undef DO_
32586 }
32587 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const32588 void SliceParameter::SerializeWithCachedSizes(
32589     ::google::protobuf::io::CodedOutputStream* output) const {
32590   // @@protoc_insertion_point(serialize_start:opencv_caffe.SliceParameter)
32591   ::google::protobuf::uint32 cached_has_bits = 0;
32592   (void) cached_has_bits;
32593 
32594   cached_has_bits = _has_bits_[0];
32595   // optional uint32 slice_dim = 1 [default = 1];
32596   if (cached_has_bits & 0x00000001u) {
32597     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->slice_dim(), output);
32598   }
32599 
32600   // repeated uint32 slice_point = 2;
32601   for (int i = 0, n = this->slice_point_size(); i < n; i++) {
32602     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
32603       2, this->slice_point(i), output);
32604   }
32605 
32606   // optional int32 axis = 3 [default = 1];
32607   if (cached_has_bits & 0x00000002u) {
32608     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->axis(), output);
32609   }
32610 
32611   if (_internal_metadata_.have_unknown_fields()) {
32612     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
32613         _internal_metadata_.unknown_fields(), output);
32614   }
32615   // @@protoc_insertion_point(serialize_end:opencv_caffe.SliceParameter)
32616 }
32617 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const32618 ::google::protobuf::uint8* SliceParameter::InternalSerializeWithCachedSizesToArray(
32619     bool deterministic, ::google::protobuf::uint8* target) const {
32620   (void)deterministic; // Unused
32621   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SliceParameter)
32622   ::google::protobuf::uint32 cached_has_bits = 0;
32623   (void) cached_has_bits;
32624 
32625   cached_has_bits = _has_bits_[0];
32626   // optional uint32 slice_dim = 1 [default = 1];
32627   if (cached_has_bits & 0x00000001u) {
32628     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->slice_dim(), target);
32629   }
32630 
32631   // repeated uint32 slice_point = 2;
32632   target = ::google::protobuf::internal::WireFormatLite::
32633     WriteUInt32ToArray(2, this->slice_point_, target);
32634 
32635   // optional int32 axis = 3 [default = 1];
32636   if (cached_has_bits & 0x00000002u) {
32637     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->axis(), target);
32638   }
32639 
32640   if (_internal_metadata_.have_unknown_fields()) {
32641     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
32642         _internal_metadata_.unknown_fields(), target);
32643   }
32644   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SliceParameter)
32645   return target;
32646 }
32647 
ByteSizeLong() const32648 size_t SliceParameter::ByteSizeLong() const {
32649 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SliceParameter)
32650   size_t total_size = 0;
32651 
32652   if (_internal_metadata_.have_unknown_fields()) {
32653     total_size +=
32654       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
32655         _internal_metadata_.unknown_fields());
32656   }
32657   // repeated uint32 slice_point = 2;
32658   {
32659     size_t data_size = ::google::protobuf::internal::WireFormatLite::
32660       UInt32Size(this->slice_point_);
32661     total_size += 1 *
32662                   ::google::protobuf::internal::FromIntSize(this->slice_point_size());
32663     total_size += data_size;
32664   }
32665 
32666   if (_has_bits_[0 / 32] & 3u) {
32667     // optional uint32 slice_dim = 1 [default = 1];
32668     if (has_slice_dim()) {
32669       total_size += 1 +
32670         ::google::protobuf::internal::WireFormatLite::UInt32Size(
32671           this->slice_dim());
32672     }
32673 
32674     // optional int32 axis = 3 [default = 1];
32675     if (has_axis()) {
32676       total_size += 1 +
32677         ::google::protobuf::internal::WireFormatLite::Int32Size(
32678           this->axis());
32679     }
32680 
32681   }
32682   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
32683   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
32684   _cached_size_ = cached_size;
32685   GOOGLE_SAFE_CONCURRENT_WRITES_END();
32686   return total_size;
32687 }
32688 
MergeFrom(const::google::protobuf::Message & from)32689 void SliceParameter::MergeFrom(const ::google::protobuf::Message& from) {
32690 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SliceParameter)
32691   GOOGLE_DCHECK_NE(&from, this);
32692   const SliceParameter* source =
32693       ::google::protobuf::internal::DynamicCastToGenerated<const SliceParameter>(
32694           &from);
32695   if (source == NULL) {
32696   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SliceParameter)
32697     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
32698   } else {
32699   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SliceParameter)
32700     MergeFrom(*source);
32701   }
32702 }
32703 
MergeFrom(const SliceParameter & from)32704 void SliceParameter::MergeFrom(const SliceParameter& from) {
32705 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SliceParameter)
32706   GOOGLE_DCHECK_NE(&from, this);
32707   _internal_metadata_.MergeFrom(from._internal_metadata_);
32708   ::google::protobuf::uint32 cached_has_bits = 0;
32709   (void) cached_has_bits;
32710 
32711   slice_point_.MergeFrom(from.slice_point_);
32712   cached_has_bits = from._has_bits_[0];
32713   if (cached_has_bits & 3u) {
32714     if (cached_has_bits & 0x00000001u) {
32715       slice_dim_ = from.slice_dim_;
32716     }
32717     if (cached_has_bits & 0x00000002u) {
32718       axis_ = from.axis_;
32719     }
32720     _has_bits_[0] |= cached_has_bits;
32721   }
32722 }
32723 
CopyFrom(const::google::protobuf::Message & from)32724 void SliceParameter::CopyFrom(const ::google::protobuf::Message& from) {
32725 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SliceParameter)
32726   if (&from == this) return;
32727   Clear();
32728   MergeFrom(from);
32729 }
32730 
CopyFrom(const SliceParameter & from)32731 void SliceParameter::CopyFrom(const SliceParameter& from) {
32732 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SliceParameter)
32733   if (&from == this) return;
32734   Clear();
32735   MergeFrom(from);
32736 }
32737 
IsInitialized() const32738 bool SliceParameter::IsInitialized() const {
32739   return true;
32740 }
32741 
Swap(SliceParameter * other)32742 void SliceParameter::Swap(SliceParameter* other) {
32743   if (other == this) return;
32744   InternalSwap(other);
32745 }
InternalSwap(SliceParameter * other)32746 void SliceParameter::InternalSwap(SliceParameter* other) {
32747   using std::swap;
32748   slice_point_.InternalSwap(&other->slice_point_);
32749   swap(slice_dim_, other->slice_dim_);
32750   swap(axis_, other->axis_);
32751   swap(_has_bits_[0], other->_has_bits_[0]);
32752   _internal_metadata_.Swap(&other->_internal_metadata_);
32753   swap(_cached_size_, other->_cached_size_);
32754 }
32755 
GetMetadata() const32756 ::google::protobuf::Metadata SliceParameter::GetMetadata() const {
32757   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
32758   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
32759 }
32760 
32761 
32762 // ===================================================================
32763 
InitAsDefaultInstance()32764 void SoftmaxParameter::InitAsDefaultInstance() {
32765 }
32766 #if !defined(_MSC_VER) || _MSC_VER >= 1900
32767 const int SoftmaxParameter::kEngineFieldNumber;
32768 const int SoftmaxParameter::kAxisFieldNumber;
32769 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
32770 
SoftmaxParameter()32771 SoftmaxParameter::SoftmaxParameter()
32772   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
32773   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
32774     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameter();
32775   }
32776   SharedCtor();
32777   // @@protoc_insertion_point(constructor:opencv_caffe.SoftmaxParameter)
32778 }
SoftmaxParameter(const SoftmaxParameter & from)32779 SoftmaxParameter::SoftmaxParameter(const SoftmaxParameter& from)
32780   : ::google::protobuf::Message(),
32781       _internal_metadata_(NULL),
32782       _has_bits_(from._has_bits_),
32783       _cached_size_(0) {
32784   _internal_metadata_.MergeFrom(from._internal_metadata_);
32785   ::memcpy(&engine_, &from.engine_,
32786     static_cast<size_t>(reinterpret_cast<char*>(&axis_) -
32787     reinterpret_cast<char*>(&engine_)) + sizeof(axis_));
32788   // @@protoc_insertion_point(copy_constructor:opencv_caffe.SoftmaxParameter)
32789 }
32790 
SharedCtor()32791 void SoftmaxParameter::SharedCtor() {
32792   _cached_size_ = 0;
32793   engine_ = 0;
32794   axis_ = 1;
32795 }
32796 
~SoftmaxParameter()32797 SoftmaxParameter::~SoftmaxParameter() {
32798   // @@protoc_insertion_point(destructor:opencv_caffe.SoftmaxParameter)
32799   SharedDtor();
32800 }
32801 
SharedDtor()32802 void SoftmaxParameter::SharedDtor() {
32803 }
32804 
SetCachedSize(int size) const32805 void SoftmaxParameter::SetCachedSize(int size) const {
32806   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
32807   _cached_size_ = size;
32808   GOOGLE_SAFE_CONCURRENT_WRITES_END();
32809 }
descriptor()32810 const ::google::protobuf::Descriptor* SoftmaxParameter::descriptor() {
32811   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
32812   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
32813 }
32814 
default_instance()32815 const SoftmaxParameter& SoftmaxParameter::default_instance() {
32816   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSoftmaxParameter();
32817   return *internal_default_instance();
32818 }
32819 
New(::google::protobuf::Arena * arena) const32820 SoftmaxParameter* SoftmaxParameter::New(::google::protobuf::Arena* arena) const {
32821   SoftmaxParameter* n = new SoftmaxParameter;
32822   if (arena != NULL) {
32823     arena->Own(n);
32824   }
32825   return n;
32826 }
32827 
Clear()32828 void SoftmaxParameter::Clear() {
32829 // @@protoc_insertion_point(message_clear_start:opencv_caffe.SoftmaxParameter)
32830   ::google::protobuf::uint32 cached_has_bits = 0;
32831   // Prevent compiler warnings about cached_has_bits being unused
32832   (void) cached_has_bits;
32833 
32834   cached_has_bits = _has_bits_[0];
32835   if (cached_has_bits & 3u) {
32836     engine_ = 0;
32837     axis_ = 1;
32838   }
32839   _has_bits_.Clear();
32840   _internal_metadata_.Clear();
32841 }
32842 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)32843 bool SoftmaxParameter::MergePartialFromCodedStream(
32844     ::google::protobuf::io::CodedInputStream* input) {
32845 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
32846   ::google::protobuf::uint32 tag;
32847   // @@protoc_insertion_point(parse_start:opencv_caffe.SoftmaxParameter)
32848   for (;;) {
32849     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
32850     tag = p.first;
32851     if (!p.second) goto handle_unusual;
32852     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
32853       // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT];
32854       case 1: {
32855         if (static_cast< ::google::protobuf::uint8>(tag) ==
32856             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
32857           int value;
32858           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
32859                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
32860                  input, &value)));
32861           if (::opencv_caffe::SoftmaxParameter_Engine_IsValid(value)) {
32862             set_engine(static_cast< ::opencv_caffe::SoftmaxParameter_Engine >(value));
32863           } else {
32864             mutable_unknown_fields()->AddVarint(
32865                 1, static_cast< ::google::protobuf::uint64>(value));
32866           }
32867         } else {
32868           goto handle_unusual;
32869         }
32870         break;
32871       }
32872 
32873       // optional int32 axis = 2 [default = 1];
32874       case 2: {
32875         if (static_cast< ::google::protobuf::uint8>(tag) ==
32876             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
32877           set_has_axis();
32878           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
32879                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
32880                  input, &axis_)));
32881         } else {
32882           goto handle_unusual;
32883         }
32884         break;
32885       }
32886 
32887       default: {
32888       handle_unusual:
32889         if (tag == 0) {
32890           goto success;
32891         }
32892         DO_(::google::protobuf::internal::WireFormat::SkipField(
32893               input, tag, _internal_metadata_.mutable_unknown_fields()));
32894         break;
32895       }
32896     }
32897   }
32898 success:
32899   // @@protoc_insertion_point(parse_success:opencv_caffe.SoftmaxParameter)
32900   return true;
32901 failure:
32902   // @@protoc_insertion_point(parse_failure:opencv_caffe.SoftmaxParameter)
32903   return false;
32904 #undef DO_
32905 }
32906 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const32907 void SoftmaxParameter::SerializeWithCachedSizes(
32908     ::google::protobuf::io::CodedOutputStream* output) const {
32909   // @@protoc_insertion_point(serialize_start:opencv_caffe.SoftmaxParameter)
32910   ::google::protobuf::uint32 cached_has_bits = 0;
32911   (void) cached_has_bits;
32912 
32913   cached_has_bits = _has_bits_[0];
32914   // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT];
32915   if (cached_has_bits & 0x00000001u) {
32916     ::google::protobuf::internal::WireFormatLite::WriteEnum(
32917       1, this->engine(), output);
32918   }
32919 
32920   // optional int32 axis = 2 [default = 1];
32921   if (cached_has_bits & 0x00000002u) {
32922     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->axis(), output);
32923   }
32924 
32925   if (_internal_metadata_.have_unknown_fields()) {
32926     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
32927         _internal_metadata_.unknown_fields(), output);
32928   }
32929   // @@protoc_insertion_point(serialize_end:opencv_caffe.SoftmaxParameter)
32930 }
32931 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const32932 ::google::protobuf::uint8* SoftmaxParameter::InternalSerializeWithCachedSizesToArray(
32933     bool deterministic, ::google::protobuf::uint8* target) const {
32934   (void)deterministic; // Unused
32935   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SoftmaxParameter)
32936   ::google::protobuf::uint32 cached_has_bits = 0;
32937   (void) cached_has_bits;
32938 
32939   cached_has_bits = _has_bits_[0];
32940   // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT];
32941   if (cached_has_bits & 0x00000001u) {
32942     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
32943       1, this->engine(), target);
32944   }
32945 
32946   // optional int32 axis = 2 [default = 1];
32947   if (cached_has_bits & 0x00000002u) {
32948     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->axis(), target);
32949   }
32950 
32951   if (_internal_metadata_.have_unknown_fields()) {
32952     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
32953         _internal_metadata_.unknown_fields(), target);
32954   }
32955   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SoftmaxParameter)
32956   return target;
32957 }
32958 
ByteSizeLong() const32959 size_t SoftmaxParameter::ByteSizeLong() const {
32960 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SoftmaxParameter)
32961   size_t total_size = 0;
32962 
32963   if (_internal_metadata_.have_unknown_fields()) {
32964     total_size +=
32965       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
32966         _internal_metadata_.unknown_fields());
32967   }
32968   if (_has_bits_[0 / 32] & 3u) {
32969     // optional .opencv_caffe.SoftmaxParameter.Engine engine = 1 [default = DEFAULT];
32970     if (has_engine()) {
32971       total_size += 1 +
32972         ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine());
32973     }
32974 
32975     // optional int32 axis = 2 [default = 1];
32976     if (has_axis()) {
32977       total_size += 1 +
32978         ::google::protobuf::internal::WireFormatLite::Int32Size(
32979           this->axis());
32980     }
32981 
32982   }
32983   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
32984   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
32985   _cached_size_ = cached_size;
32986   GOOGLE_SAFE_CONCURRENT_WRITES_END();
32987   return total_size;
32988 }
32989 
MergeFrom(const::google::protobuf::Message & from)32990 void SoftmaxParameter::MergeFrom(const ::google::protobuf::Message& from) {
32991 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SoftmaxParameter)
32992   GOOGLE_DCHECK_NE(&from, this);
32993   const SoftmaxParameter* source =
32994       ::google::protobuf::internal::DynamicCastToGenerated<const SoftmaxParameter>(
32995           &from);
32996   if (source == NULL) {
32997   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SoftmaxParameter)
32998     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
32999   } else {
33000   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SoftmaxParameter)
33001     MergeFrom(*source);
33002   }
33003 }
33004 
MergeFrom(const SoftmaxParameter & from)33005 void SoftmaxParameter::MergeFrom(const SoftmaxParameter& from) {
33006 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SoftmaxParameter)
33007   GOOGLE_DCHECK_NE(&from, this);
33008   _internal_metadata_.MergeFrom(from._internal_metadata_);
33009   ::google::protobuf::uint32 cached_has_bits = 0;
33010   (void) cached_has_bits;
33011 
33012   cached_has_bits = from._has_bits_[0];
33013   if (cached_has_bits & 3u) {
33014     if (cached_has_bits & 0x00000001u) {
33015       engine_ = from.engine_;
33016     }
33017     if (cached_has_bits & 0x00000002u) {
33018       axis_ = from.axis_;
33019     }
33020     _has_bits_[0] |= cached_has_bits;
33021   }
33022 }
33023 
CopyFrom(const::google::protobuf::Message & from)33024 void SoftmaxParameter::CopyFrom(const ::google::protobuf::Message& from) {
33025 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SoftmaxParameter)
33026   if (&from == this) return;
33027   Clear();
33028   MergeFrom(from);
33029 }
33030 
CopyFrom(const SoftmaxParameter & from)33031 void SoftmaxParameter::CopyFrom(const SoftmaxParameter& from) {
33032 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SoftmaxParameter)
33033   if (&from == this) return;
33034   Clear();
33035   MergeFrom(from);
33036 }
33037 
IsInitialized() const33038 bool SoftmaxParameter::IsInitialized() const {
33039   return true;
33040 }
33041 
Swap(SoftmaxParameter * other)33042 void SoftmaxParameter::Swap(SoftmaxParameter* other) {
33043   if (other == this) return;
33044   InternalSwap(other);
33045 }
InternalSwap(SoftmaxParameter * other)33046 void SoftmaxParameter::InternalSwap(SoftmaxParameter* other) {
33047   using std::swap;
33048   swap(engine_, other->engine_);
33049   swap(axis_, other->axis_);
33050   swap(_has_bits_[0], other->_has_bits_[0]);
33051   _internal_metadata_.Swap(&other->_internal_metadata_);
33052   swap(_cached_size_, other->_cached_size_);
33053 }
33054 
GetMetadata() const33055 ::google::protobuf::Metadata SoftmaxParameter::GetMetadata() const {
33056   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
33057   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
33058 }
33059 
33060 
33061 // ===================================================================
33062 
InitAsDefaultInstance()33063 void TanHParameter::InitAsDefaultInstance() {
33064 }
33065 #if !defined(_MSC_VER) || _MSC_VER >= 1900
33066 const int TanHParameter::kEngineFieldNumber;
33067 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
33068 
TanHParameter()33069 TanHParameter::TanHParameter()
33070   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
33071   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
33072     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameter();
33073   }
33074   SharedCtor();
33075   // @@protoc_insertion_point(constructor:opencv_caffe.TanHParameter)
33076 }
TanHParameter(const TanHParameter & from)33077 TanHParameter::TanHParameter(const TanHParameter& from)
33078   : ::google::protobuf::Message(),
33079       _internal_metadata_(NULL),
33080       _has_bits_(from._has_bits_),
33081       _cached_size_(0) {
33082   _internal_metadata_.MergeFrom(from._internal_metadata_);
33083   engine_ = from.engine_;
33084   // @@protoc_insertion_point(copy_constructor:opencv_caffe.TanHParameter)
33085 }
33086 
SharedCtor()33087 void TanHParameter::SharedCtor() {
33088   _cached_size_ = 0;
33089   engine_ = 0;
33090 }
33091 
~TanHParameter()33092 TanHParameter::~TanHParameter() {
33093   // @@protoc_insertion_point(destructor:opencv_caffe.TanHParameter)
33094   SharedDtor();
33095 }
33096 
SharedDtor()33097 void TanHParameter::SharedDtor() {
33098 }
33099 
SetCachedSize(int size) const33100 void TanHParameter::SetCachedSize(int size) const {
33101   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
33102   _cached_size_ = size;
33103   GOOGLE_SAFE_CONCURRENT_WRITES_END();
33104 }
descriptor()33105 const ::google::protobuf::Descriptor* TanHParameter::descriptor() {
33106   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
33107   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
33108 }
33109 
default_instance()33110 const TanHParameter& TanHParameter::default_instance() {
33111   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTanHParameter();
33112   return *internal_default_instance();
33113 }
33114 
New(::google::protobuf::Arena * arena) const33115 TanHParameter* TanHParameter::New(::google::protobuf::Arena* arena) const {
33116   TanHParameter* n = new TanHParameter;
33117   if (arena != NULL) {
33118     arena->Own(n);
33119   }
33120   return n;
33121 }
33122 
Clear()33123 void TanHParameter::Clear() {
33124 // @@protoc_insertion_point(message_clear_start:opencv_caffe.TanHParameter)
33125   ::google::protobuf::uint32 cached_has_bits = 0;
33126   // Prevent compiler warnings about cached_has_bits being unused
33127   (void) cached_has_bits;
33128 
33129   engine_ = 0;
33130   _has_bits_.Clear();
33131   _internal_metadata_.Clear();
33132 }
33133 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)33134 bool TanHParameter::MergePartialFromCodedStream(
33135     ::google::protobuf::io::CodedInputStream* input) {
33136 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
33137   ::google::protobuf::uint32 tag;
33138   // @@protoc_insertion_point(parse_start:opencv_caffe.TanHParameter)
33139   for (;;) {
33140     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
33141     tag = p.first;
33142     if (!p.second) goto handle_unusual;
33143     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
33144       // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT];
33145       case 1: {
33146         if (static_cast< ::google::protobuf::uint8>(tag) ==
33147             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
33148           int value;
33149           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
33150                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
33151                  input, &value)));
33152           if (::opencv_caffe::TanHParameter_Engine_IsValid(value)) {
33153             set_engine(static_cast< ::opencv_caffe::TanHParameter_Engine >(value));
33154           } else {
33155             mutable_unknown_fields()->AddVarint(
33156                 1, static_cast< ::google::protobuf::uint64>(value));
33157           }
33158         } else {
33159           goto handle_unusual;
33160         }
33161         break;
33162       }
33163 
33164       default: {
33165       handle_unusual:
33166         if (tag == 0) {
33167           goto success;
33168         }
33169         DO_(::google::protobuf::internal::WireFormat::SkipField(
33170               input, tag, _internal_metadata_.mutable_unknown_fields()));
33171         break;
33172       }
33173     }
33174   }
33175 success:
33176   // @@protoc_insertion_point(parse_success:opencv_caffe.TanHParameter)
33177   return true;
33178 failure:
33179   // @@protoc_insertion_point(parse_failure:opencv_caffe.TanHParameter)
33180   return false;
33181 #undef DO_
33182 }
33183 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const33184 void TanHParameter::SerializeWithCachedSizes(
33185     ::google::protobuf::io::CodedOutputStream* output) const {
33186   // @@protoc_insertion_point(serialize_start:opencv_caffe.TanHParameter)
33187   ::google::protobuf::uint32 cached_has_bits = 0;
33188   (void) cached_has_bits;
33189 
33190   cached_has_bits = _has_bits_[0];
33191   // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT];
33192   if (cached_has_bits & 0x00000001u) {
33193     ::google::protobuf::internal::WireFormatLite::WriteEnum(
33194       1, this->engine(), output);
33195   }
33196 
33197   if (_internal_metadata_.have_unknown_fields()) {
33198     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
33199         _internal_metadata_.unknown_fields(), output);
33200   }
33201   // @@protoc_insertion_point(serialize_end:opencv_caffe.TanHParameter)
33202 }
33203 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const33204 ::google::protobuf::uint8* TanHParameter::InternalSerializeWithCachedSizesToArray(
33205     bool deterministic, ::google::protobuf::uint8* target) const {
33206   (void)deterministic; // Unused
33207   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TanHParameter)
33208   ::google::protobuf::uint32 cached_has_bits = 0;
33209   (void) cached_has_bits;
33210 
33211   cached_has_bits = _has_bits_[0];
33212   // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT];
33213   if (cached_has_bits & 0x00000001u) {
33214     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
33215       1, this->engine(), target);
33216   }
33217 
33218   if (_internal_metadata_.have_unknown_fields()) {
33219     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
33220         _internal_metadata_.unknown_fields(), target);
33221   }
33222   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TanHParameter)
33223   return target;
33224 }
33225 
ByteSizeLong() const33226 size_t TanHParameter::ByteSizeLong() const {
33227 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TanHParameter)
33228   size_t total_size = 0;
33229 
33230   if (_internal_metadata_.have_unknown_fields()) {
33231     total_size +=
33232       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
33233         _internal_metadata_.unknown_fields());
33234   }
33235   // optional .opencv_caffe.TanHParameter.Engine engine = 1 [default = DEFAULT];
33236   if (has_engine()) {
33237     total_size += 1 +
33238       ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine());
33239   }
33240 
33241   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
33242   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
33243   _cached_size_ = cached_size;
33244   GOOGLE_SAFE_CONCURRENT_WRITES_END();
33245   return total_size;
33246 }
33247 
MergeFrom(const::google::protobuf::Message & from)33248 void TanHParameter::MergeFrom(const ::google::protobuf::Message& from) {
33249 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TanHParameter)
33250   GOOGLE_DCHECK_NE(&from, this);
33251   const TanHParameter* source =
33252       ::google::protobuf::internal::DynamicCastToGenerated<const TanHParameter>(
33253           &from);
33254   if (source == NULL) {
33255   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TanHParameter)
33256     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
33257   } else {
33258   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TanHParameter)
33259     MergeFrom(*source);
33260   }
33261 }
33262 
MergeFrom(const TanHParameter & from)33263 void TanHParameter::MergeFrom(const TanHParameter& from) {
33264 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TanHParameter)
33265   GOOGLE_DCHECK_NE(&from, this);
33266   _internal_metadata_.MergeFrom(from._internal_metadata_);
33267   ::google::protobuf::uint32 cached_has_bits = 0;
33268   (void) cached_has_bits;
33269 
33270   if (from.has_engine()) {
33271     set_engine(from.engine());
33272   }
33273 }
33274 
CopyFrom(const::google::protobuf::Message & from)33275 void TanHParameter::CopyFrom(const ::google::protobuf::Message& from) {
33276 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TanHParameter)
33277   if (&from == this) return;
33278   Clear();
33279   MergeFrom(from);
33280 }
33281 
CopyFrom(const TanHParameter & from)33282 void TanHParameter::CopyFrom(const TanHParameter& from) {
33283 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TanHParameter)
33284   if (&from == this) return;
33285   Clear();
33286   MergeFrom(from);
33287 }
33288 
IsInitialized() const33289 bool TanHParameter::IsInitialized() const {
33290   return true;
33291 }
33292 
Swap(TanHParameter * other)33293 void TanHParameter::Swap(TanHParameter* other) {
33294   if (other == this) return;
33295   InternalSwap(other);
33296 }
InternalSwap(TanHParameter * other)33297 void TanHParameter::InternalSwap(TanHParameter* other) {
33298   using std::swap;
33299   swap(engine_, other->engine_);
33300   swap(_has_bits_[0], other->_has_bits_[0]);
33301   _internal_metadata_.Swap(&other->_internal_metadata_);
33302   swap(_cached_size_, other->_cached_size_);
33303 }
33304 
GetMetadata() const33305 ::google::protobuf::Metadata TanHParameter::GetMetadata() const {
33306   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
33307   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
33308 }
33309 
33310 
33311 // ===================================================================
33312 
InitAsDefaultInstance()33313 void TileParameter::InitAsDefaultInstance() {
33314 }
33315 #if !defined(_MSC_VER) || _MSC_VER >= 1900
33316 const int TileParameter::kAxisFieldNumber;
33317 const int TileParameter::kTilesFieldNumber;
33318 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
33319 
TileParameter()33320 TileParameter::TileParameter()
33321   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
33322   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
33323     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTileParameter();
33324   }
33325   SharedCtor();
33326   // @@protoc_insertion_point(constructor:opencv_caffe.TileParameter)
33327 }
TileParameter(const TileParameter & from)33328 TileParameter::TileParameter(const TileParameter& from)
33329   : ::google::protobuf::Message(),
33330       _internal_metadata_(NULL),
33331       _has_bits_(from._has_bits_),
33332       _cached_size_(0) {
33333   _internal_metadata_.MergeFrom(from._internal_metadata_);
33334   ::memcpy(&tiles_, &from.tiles_,
33335     static_cast<size_t>(reinterpret_cast<char*>(&axis_) -
33336     reinterpret_cast<char*>(&tiles_)) + sizeof(axis_));
33337   // @@protoc_insertion_point(copy_constructor:opencv_caffe.TileParameter)
33338 }
33339 
SharedCtor()33340 void TileParameter::SharedCtor() {
33341   _cached_size_ = 0;
33342   tiles_ = 0;
33343   axis_ = 1;
33344 }
33345 
~TileParameter()33346 TileParameter::~TileParameter() {
33347   // @@protoc_insertion_point(destructor:opencv_caffe.TileParameter)
33348   SharedDtor();
33349 }
33350 
SharedDtor()33351 void TileParameter::SharedDtor() {
33352 }
33353 
SetCachedSize(int size) const33354 void TileParameter::SetCachedSize(int size) const {
33355   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
33356   _cached_size_ = size;
33357   GOOGLE_SAFE_CONCURRENT_WRITES_END();
33358 }
descriptor()33359 const ::google::protobuf::Descriptor* TileParameter::descriptor() {
33360   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
33361   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
33362 }
33363 
default_instance()33364 const TileParameter& TileParameter::default_instance() {
33365   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsTileParameter();
33366   return *internal_default_instance();
33367 }
33368 
New(::google::protobuf::Arena * arena) const33369 TileParameter* TileParameter::New(::google::protobuf::Arena* arena) const {
33370   TileParameter* n = new TileParameter;
33371   if (arena != NULL) {
33372     arena->Own(n);
33373   }
33374   return n;
33375 }
33376 
Clear()33377 void TileParameter::Clear() {
33378 // @@protoc_insertion_point(message_clear_start:opencv_caffe.TileParameter)
33379   ::google::protobuf::uint32 cached_has_bits = 0;
33380   // Prevent compiler warnings about cached_has_bits being unused
33381   (void) cached_has_bits;
33382 
33383   cached_has_bits = _has_bits_[0];
33384   if (cached_has_bits & 3u) {
33385     tiles_ = 0;
33386     axis_ = 1;
33387   }
33388   _has_bits_.Clear();
33389   _internal_metadata_.Clear();
33390 }
33391 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)33392 bool TileParameter::MergePartialFromCodedStream(
33393     ::google::protobuf::io::CodedInputStream* input) {
33394 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
33395   ::google::protobuf::uint32 tag;
33396   // @@protoc_insertion_point(parse_start:opencv_caffe.TileParameter)
33397   for (;;) {
33398     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
33399     tag = p.first;
33400     if (!p.second) goto handle_unusual;
33401     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
33402       // optional int32 axis = 1 [default = 1];
33403       case 1: {
33404         if (static_cast< ::google::protobuf::uint8>(tag) ==
33405             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
33406           set_has_axis();
33407           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
33408                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
33409                  input, &axis_)));
33410         } else {
33411           goto handle_unusual;
33412         }
33413         break;
33414       }
33415 
33416       // optional int32 tiles = 2;
33417       case 2: {
33418         if (static_cast< ::google::protobuf::uint8>(tag) ==
33419             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
33420           set_has_tiles();
33421           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
33422                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
33423                  input, &tiles_)));
33424         } else {
33425           goto handle_unusual;
33426         }
33427         break;
33428       }
33429 
33430       default: {
33431       handle_unusual:
33432         if (tag == 0) {
33433           goto success;
33434         }
33435         DO_(::google::protobuf::internal::WireFormat::SkipField(
33436               input, tag, _internal_metadata_.mutable_unknown_fields()));
33437         break;
33438       }
33439     }
33440   }
33441 success:
33442   // @@protoc_insertion_point(parse_success:opencv_caffe.TileParameter)
33443   return true;
33444 failure:
33445   // @@protoc_insertion_point(parse_failure:opencv_caffe.TileParameter)
33446   return false;
33447 #undef DO_
33448 }
33449 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const33450 void TileParameter::SerializeWithCachedSizes(
33451     ::google::protobuf::io::CodedOutputStream* output) const {
33452   // @@protoc_insertion_point(serialize_start:opencv_caffe.TileParameter)
33453   ::google::protobuf::uint32 cached_has_bits = 0;
33454   (void) cached_has_bits;
33455 
33456   cached_has_bits = _has_bits_[0];
33457   // optional int32 axis = 1 [default = 1];
33458   if (cached_has_bits & 0x00000002u) {
33459     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->axis(), output);
33460   }
33461 
33462   // optional int32 tiles = 2;
33463   if (cached_has_bits & 0x00000001u) {
33464     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->tiles(), output);
33465   }
33466 
33467   if (_internal_metadata_.have_unknown_fields()) {
33468     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
33469         _internal_metadata_.unknown_fields(), output);
33470   }
33471   // @@protoc_insertion_point(serialize_end:opencv_caffe.TileParameter)
33472 }
33473 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const33474 ::google::protobuf::uint8* TileParameter::InternalSerializeWithCachedSizesToArray(
33475     bool deterministic, ::google::protobuf::uint8* target) const {
33476   (void)deterministic; // Unused
33477   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.TileParameter)
33478   ::google::protobuf::uint32 cached_has_bits = 0;
33479   (void) cached_has_bits;
33480 
33481   cached_has_bits = _has_bits_[0];
33482   // optional int32 axis = 1 [default = 1];
33483   if (cached_has_bits & 0x00000002u) {
33484     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->axis(), target);
33485   }
33486 
33487   // optional int32 tiles = 2;
33488   if (cached_has_bits & 0x00000001u) {
33489     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->tiles(), target);
33490   }
33491 
33492   if (_internal_metadata_.have_unknown_fields()) {
33493     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
33494         _internal_metadata_.unknown_fields(), target);
33495   }
33496   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.TileParameter)
33497   return target;
33498 }
33499 
ByteSizeLong() const33500 size_t TileParameter::ByteSizeLong() const {
33501 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.TileParameter)
33502   size_t total_size = 0;
33503 
33504   if (_internal_metadata_.have_unknown_fields()) {
33505     total_size +=
33506       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
33507         _internal_metadata_.unknown_fields());
33508   }
33509   if (_has_bits_[0 / 32] & 3u) {
33510     // optional int32 tiles = 2;
33511     if (has_tiles()) {
33512       total_size += 1 +
33513         ::google::protobuf::internal::WireFormatLite::Int32Size(
33514           this->tiles());
33515     }
33516 
33517     // optional int32 axis = 1 [default = 1];
33518     if (has_axis()) {
33519       total_size += 1 +
33520         ::google::protobuf::internal::WireFormatLite::Int32Size(
33521           this->axis());
33522     }
33523 
33524   }
33525   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
33526   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
33527   _cached_size_ = cached_size;
33528   GOOGLE_SAFE_CONCURRENT_WRITES_END();
33529   return total_size;
33530 }
33531 
MergeFrom(const::google::protobuf::Message & from)33532 void TileParameter::MergeFrom(const ::google::protobuf::Message& from) {
33533 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.TileParameter)
33534   GOOGLE_DCHECK_NE(&from, this);
33535   const TileParameter* source =
33536       ::google::protobuf::internal::DynamicCastToGenerated<const TileParameter>(
33537           &from);
33538   if (source == NULL) {
33539   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.TileParameter)
33540     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
33541   } else {
33542   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.TileParameter)
33543     MergeFrom(*source);
33544   }
33545 }
33546 
MergeFrom(const TileParameter & from)33547 void TileParameter::MergeFrom(const TileParameter& from) {
33548 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.TileParameter)
33549   GOOGLE_DCHECK_NE(&from, this);
33550   _internal_metadata_.MergeFrom(from._internal_metadata_);
33551   ::google::protobuf::uint32 cached_has_bits = 0;
33552   (void) cached_has_bits;
33553 
33554   cached_has_bits = from._has_bits_[0];
33555   if (cached_has_bits & 3u) {
33556     if (cached_has_bits & 0x00000001u) {
33557       tiles_ = from.tiles_;
33558     }
33559     if (cached_has_bits & 0x00000002u) {
33560       axis_ = from.axis_;
33561     }
33562     _has_bits_[0] |= cached_has_bits;
33563   }
33564 }
33565 
CopyFrom(const::google::protobuf::Message & from)33566 void TileParameter::CopyFrom(const ::google::protobuf::Message& from) {
33567 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.TileParameter)
33568   if (&from == this) return;
33569   Clear();
33570   MergeFrom(from);
33571 }
33572 
CopyFrom(const TileParameter & from)33573 void TileParameter::CopyFrom(const TileParameter& from) {
33574 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.TileParameter)
33575   if (&from == this) return;
33576   Clear();
33577   MergeFrom(from);
33578 }
33579 
IsInitialized() const33580 bool TileParameter::IsInitialized() const {
33581   return true;
33582 }
33583 
Swap(TileParameter * other)33584 void TileParameter::Swap(TileParameter* other) {
33585   if (other == this) return;
33586   InternalSwap(other);
33587 }
InternalSwap(TileParameter * other)33588 void TileParameter::InternalSwap(TileParameter* other) {
33589   using std::swap;
33590   swap(tiles_, other->tiles_);
33591   swap(axis_, other->axis_);
33592   swap(_has_bits_[0], other->_has_bits_[0]);
33593   _internal_metadata_.Swap(&other->_internal_metadata_);
33594   swap(_cached_size_, other->_cached_size_);
33595 }
33596 
GetMetadata() const33597 ::google::protobuf::Metadata TileParameter::GetMetadata() const {
33598   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
33599   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
33600 }
33601 
33602 
33603 // ===================================================================
33604 
InitAsDefaultInstance()33605 void ThresholdParameter::InitAsDefaultInstance() {
33606 }
33607 #if !defined(_MSC_VER) || _MSC_VER >= 1900
33608 const int ThresholdParameter::kThresholdFieldNumber;
33609 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
33610 
ThresholdParameter()33611 ThresholdParameter::ThresholdParameter()
33612   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
33613   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
33614     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameter();
33615   }
33616   SharedCtor();
33617   // @@protoc_insertion_point(constructor:opencv_caffe.ThresholdParameter)
33618 }
ThresholdParameter(const ThresholdParameter & from)33619 ThresholdParameter::ThresholdParameter(const ThresholdParameter& from)
33620   : ::google::protobuf::Message(),
33621       _internal_metadata_(NULL),
33622       _has_bits_(from._has_bits_),
33623       _cached_size_(0) {
33624   _internal_metadata_.MergeFrom(from._internal_metadata_);
33625   threshold_ = from.threshold_;
33626   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ThresholdParameter)
33627 }
33628 
SharedCtor()33629 void ThresholdParameter::SharedCtor() {
33630   _cached_size_ = 0;
33631   threshold_ = 0;
33632 }
33633 
~ThresholdParameter()33634 ThresholdParameter::~ThresholdParameter() {
33635   // @@protoc_insertion_point(destructor:opencv_caffe.ThresholdParameter)
33636   SharedDtor();
33637 }
33638 
SharedDtor()33639 void ThresholdParameter::SharedDtor() {
33640 }
33641 
SetCachedSize(int size) const33642 void ThresholdParameter::SetCachedSize(int size) const {
33643   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
33644   _cached_size_ = size;
33645   GOOGLE_SAFE_CONCURRENT_WRITES_END();
33646 }
descriptor()33647 const ::google::protobuf::Descriptor* ThresholdParameter::descriptor() {
33648   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
33649   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
33650 }
33651 
default_instance()33652 const ThresholdParameter& ThresholdParameter::default_instance() {
33653   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsThresholdParameter();
33654   return *internal_default_instance();
33655 }
33656 
New(::google::protobuf::Arena * arena) const33657 ThresholdParameter* ThresholdParameter::New(::google::protobuf::Arena* arena) const {
33658   ThresholdParameter* n = new ThresholdParameter;
33659   if (arena != NULL) {
33660     arena->Own(n);
33661   }
33662   return n;
33663 }
33664 
Clear()33665 void ThresholdParameter::Clear() {
33666 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ThresholdParameter)
33667   ::google::protobuf::uint32 cached_has_bits = 0;
33668   // Prevent compiler warnings about cached_has_bits being unused
33669   (void) cached_has_bits;
33670 
33671   threshold_ = 0;
33672   _has_bits_.Clear();
33673   _internal_metadata_.Clear();
33674 }
33675 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)33676 bool ThresholdParameter::MergePartialFromCodedStream(
33677     ::google::protobuf::io::CodedInputStream* input) {
33678 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
33679   ::google::protobuf::uint32 tag;
33680   // @@protoc_insertion_point(parse_start:opencv_caffe.ThresholdParameter)
33681   for (;;) {
33682     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
33683     tag = p.first;
33684     if (!p.second) goto handle_unusual;
33685     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
33686       // optional float threshold = 1 [default = 0];
33687       case 1: {
33688         if (static_cast< ::google::protobuf::uint8>(tag) ==
33689             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
33690           set_has_threshold();
33691           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
33692                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
33693                  input, &threshold_)));
33694         } else {
33695           goto handle_unusual;
33696         }
33697         break;
33698       }
33699 
33700       default: {
33701       handle_unusual:
33702         if (tag == 0) {
33703           goto success;
33704         }
33705         DO_(::google::protobuf::internal::WireFormat::SkipField(
33706               input, tag, _internal_metadata_.mutable_unknown_fields()));
33707         break;
33708       }
33709     }
33710   }
33711 success:
33712   // @@protoc_insertion_point(parse_success:opencv_caffe.ThresholdParameter)
33713   return true;
33714 failure:
33715   // @@protoc_insertion_point(parse_failure:opencv_caffe.ThresholdParameter)
33716   return false;
33717 #undef DO_
33718 }
33719 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const33720 void ThresholdParameter::SerializeWithCachedSizes(
33721     ::google::protobuf::io::CodedOutputStream* output) const {
33722   // @@protoc_insertion_point(serialize_start:opencv_caffe.ThresholdParameter)
33723   ::google::protobuf::uint32 cached_has_bits = 0;
33724   (void) cached_has_bits;
33725 
33726   cached_has_bits = _has_bits_[0];
33727   // optional float threshold = 1 [default = 0];
33728   if (cached_has_bits & 0x00000001u) {
33729     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->threshold(), output);
33730   }
33731 
33732   if (_internal_metadata_.have_unknown_fields()) {
33733     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
33734         _internal_metadata_.unknown_fields(), output);
33735   }
33736   // @@protoc_insertion_point(serialize_end:opencv_caffe.ThresholdParameter)
33737 }
33738 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const33739 ::google::protobuf::uint8* ThresholdParameter::InternalSerializeWithCachedSizesToArray(
33740     bool deterministic, ::google::protobuf::uint8* target) const {
33741   (void)deterministic; // Unused
33742   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ThresholdParameter)
33743   ::google::protobuf::uint32 cached_has_bits = 0;
33744   (void) cached_has_bits;
33745 
33746   cached_has_bits = _has_bits_[0];
33747   // optional float threshold = 1 [default = 0];
33748   if (cached_has_bits & 0x00000001u) {
33749     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->threshold(), target);
33750   }
33751 
33752   if (_internal_metadata_.have_unknown_fields()) {
33753     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
33754         _internal_metadata_.unknown_fields(), target);
33755   }
33756   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ThresholdParameter)
33757   return target;
33758 }
33759 
ByteSizeLong() const33760 size_t ThresholdParameter::ByteSizeLong() const {
33761 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ThresholdParameter)
33762   size_t total_size = 0;
33763 
33764   if (_internal_metadata_.have_unknown_fields()) {
33765     total_size +=
33766       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
33767         _internal_metadata_.unknown_fields());
33768   }
33769   // optional float threshold = 1 [default = 0];
33770   if (has_threshold()) {
33771     total_size += 1 + 4;
33772   }
33773 
33774   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
33775   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
33776   _cached_size_ = cached_size;
33777   GOOGLE_SAFE_CONCURRENT_WRITES_END();
33778   return total_size;
33779 }
33780 
MergeFrom(const::google::protobuf::Message & from)33781 void ThresholdParameter::MergeFrom(const ::google::protobuf::Message& from) {
33782 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ThresholdParameter)
33783   GOOGLE_DCHECK_NE(&from, this);
33784   const ThresholdParameter* source =
33785       ::google::protobuf::internal::DynamicCastToGenerated<const ThresholdParameter>(
33786           &from);
33787   if (source == NULL) {
33788   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ThresholdParameter)
33789     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
33790   } else {
33791   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ThresholdParameter)
33792     MergeFrom(*source);
33793   }
33794 }
33795 
MergeFrom(const ThresholdParameter & from)33796 void ThresholdParameter::MergeFrom(const ThresholdParameter& from) {
33797 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ThresholdParameter)
33798   GOOGLE_DCHECK_NE(&from, this);
33799   _internal_metadata_.MergeFrom(from._internal_metadata_);
33800   ::google::protobuf::uint32 cached_has_bits = 0;
33801   (void) cached_has_bits;
33802 
33803   if (from.has_threshold()) {
33804     set_threshold(from.threshold());
33805   }
33806 }
33807 
CopyFrom(const::google::protobuf::Message & from)33808 void ThresholdParameter::CopyFrom(const ::google::protobuf::Message& from) {
33809 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ThresholdParameter)
33810   if (&from == this) return;
33811   Clear();
33812   MergeFrom(from);
33813 }
33814 
CopyFrom(const ThresholdParameter & from)33815 void ThresholdParameter::CopyFrom(const ThresholdParameter& from) {
33816 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ThresholdParameter)
33817   if (&from == this) return;
33818   Clear();
33819   MergeFrom(from);
33820 }
33821 
IsInitialized() const33822 bool ThresholdParameter::IsInitialized() const {
33823   return true;
33824 }
33825 
Swap(ThresholdParameter * other)33826 void ThresholdParameter::Swap(ThresholdParameter* other) {
33827   if (other == this) return;
33828   InternalSwap(other);
33829 }
InternalSwap(ThresholdParameter * other)33830 void ThresholdParameter::InternalSwap(ThresholdParameter* other) {
33831   using std::swap;
33832   swap(threshold_, other->threshold_);
33833   swap(_has_bits_[0], other->_has_bits_[0]);
33834   _internal_metadata_.Swap(&other->_internal_metadata_);
33835   swap(_cached_size_, other->_cached_size_);
33836 }
33837 
GetMetadata() const33838 ::google::protobuf::Metadata ThresholdParameter::GetMetadata() const {
33839   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
33840   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
33841 }
33842 
33843 
33844 // ===================================================================
33845 
InitAsDefaultInstance()33846 void WindowDataParameter::InitAsDefaultInstance() {
33847 }
33848 ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> WindowDataParameter::_default_crop_mode_;
33849 #if !defined(_MSC_VER) || _MSC_VER >= 1900
33850 const int WindowDataParameter::kSourceFieldNumber;
33851 const int WindowDataParameter::kScaleFieldNumber;
33852 const int WindowDataParameter::kMeanFileFieldNumber;
33853 const int WindowDataParameter::kBatchSizeFieldNumber;
33854 const int WindowDataParameter::kCropSizeFieldNumber;
33855 const int WindowDataParameter::kMirrorFieldNumber;
33856 const int WindowDataParameter::kFgThresholdFieldNumber;
33857 const int WindowDataParameter::kBgThresholdFieldNumber;
33858 const int WindowDataParameter::kFgFractionFieldNumber;
33859 const int WindowDataParameter::kContextPadFieldNumber;
33860 const int WindowDataParameter::kCropModeFieldNumber;
33861 const int WindowDataParameter::kCacheImagesFieldNumber;
33862 const int WindowDataParameter::kRootFolderFieldNumber;
33863 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
33864 
WindowDataParameter()33865 WindowDataParameter::WindowDataParameter()
33866   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
33867   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
33868     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameter();
33869   }
33870   SharedCtor();
33871   // @@protoc_insertion_point(constructor:opencv_caffe.WindowDataParameter)
33872 }
WindowDataParameter(const WindowDataParameter & from)33873 WindowDataParameter::WindowDataParameter(const WindowDataParameter& from)
33874   : ::google::protobuf::Message(),
33875       _internal_metadata_(NULL),
33876       _has_bits_(from._has_bits_),
33877       _cached_size_(0) {
33878   _internal_metadata_.MergeFrom(from._internal_metadata_);
33879   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33880   if (from.has_source()) {
33881     source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
33882   }
33883   mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33884   if (from.has_mean_file()) {
33885     mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_);
33886   }
33887   crop_mode_.UnsafeSetDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get());
33888   if (from.has_crop_mode()) {
33889     crop_mode_.AssignWithDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), from.crop_mode_);
33890   }
33891   root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33892   if (from.has_root_folder()) {
33893     root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_);
33894   }
33895   ::memcpy(&batch_size_, &from.batch_size_,
33896     static_cast<size_t>(reinterpret_cast<char*>(&fg_fraction_) -
33897     reinterpret_cast<char*>(&batch_size_)) + sizeof(fg_fraction_));
33898   // @@protoc_insertion_point(copy_constructor:opencv_caffe.WindowDataParameter)
33899 }
33900 
SharedCtor()33901 void WindowDataParameter::SharedCtor() {
33902   _cached_size_ = 0;
33903   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33904   mean_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33905   crop_mode_.UnsafeSetDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get());
33906   root_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33907   ::memset(&batch_size_, 0, static_cast<size_t>(
33908       reinterpret_cast<char*>(&context_pad_) -
33909       reinterpret_cast<char*>(&batch_size_)) + sizeof(context_pad_));
33910   scale_ = 1;
33911   fg_threshold_ = 0.5f;
33912   bg_threshold_ = 0.5f;
33913   fg_fraction_ = 0.25f;
33914 }
33915 
~WindowDataParameter()33916 WindowDataParameter::~WindowDataParameter() {
33917   // @@protoc_insertion_point(destructor:opencv_caffe.WindowDataParameter)
33918   SharedDtor();
33919 }
33920 
SharedDtor()33921 void WindowDataParameter::SharedDtor() {
33922   source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33923   mean_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33924   crop_mode_.DestroyNoArena(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get());
33925   root_folder_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
33926 }
33927 
SetCachedSize(int size) const33928 void WindowDataParameter::SetCachedSize(int size) const {
33929   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
33930   _cached_size_ = size;
33931   GOOGLE_SAFE_CONCURRENT_WRITES_END();
33932 }
descriptor()33933 const ::google::protobuf::Descriptor* WindowDataParameter::descriptor() {
33934   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
33935   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
33936 }
33937 
default_instance()33938 const WindowDataParameter& WindowDataParameter::default_instance() {
33939   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsWindowDataParameter();
33940   return *internal_default_instance();
33941 }
33942 
New(::google::protobuf::Arena * arena) const33943 WindowDataParameter* WindowDataParameter::New(::google::protobuf::Arena* arena) const {
33944   WindowDataParameter* n = new WindowDataParameter;
33945   if (arena != NULL) {
33946     arena->Own(n);
33947   }
33948   return n;
33949 }
33950 
Clear()33951 void WindowDataParameter::Clear() {
33952 // @@protoc_insertion_point(message_clear_start:opencv_caffe.WindowDataParameter)
33953   ::google::protobuf::uint32 cached_has_bits = 0;
33954   // Prevent compiler warnings about cached_has_bits being unused
33955   (void) cached_has_bits;
33956 
33957   cached_has_bits = _has_bits_[0];
33958   if (cached_has_bits & 15u) {
33959     if (cached_has_bits & 0x00000001u) {
33960       GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
33961       (*source_.UnsafeRawStringPointer())->clear();
33962     }
33963     if (cached_has_bits & 0x00000002u) {
33964       GOOGLE_DCHECK(!mean_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
33965       (*mean_file_.UnsafeRawStringPointer())->clear();
33966     }
33967     if (cached_has_bits & 0x00000004u) {
33968       GOOGLE_DCHECK(!crop_mode_.IsDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get()));
33969       (*crop_mode_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get());
33970     }
33971     if (cached_has_bits & 0x00000008u) {
33972       GOOGLE_DCHECK(!root_folder_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
33973       (*root_folder_.UnsafeRawStringPointer())->clear();
33974     }
33975   }
33976   if (cached_has_bits & 240u) {
33977     ::memset(&batch_size_, 0, static_cast<size_t>(
33978         reinterpret_cast<char*>(&cache_images_) -
33979         reinterpret_cast<char*>(&batch_size_)) + sizeof(cache_images_));
33980   }
33981   if (cached_has_bits & 7936u) {
33982     context_pad_ = 0u;
33983     scale_ = 1;
33984     fg_threshold_ = 0.5f;
33985     bg_threshold_ = 0.5f;
33986     fg_fraction_ = 0.25f;
33987   }
33988   _has_bits_.Clear();
33989   _internal_metadata_.Clear();
33990 }
33991 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)33992 bool WindowDataParameter::MergePartialFromCodedStream(
33993     ::google::protobuf::io::CodedInputStream* input) {
33994 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
33995   ::google::protobuf::uint32 tag;
33996   // @@protoc_insertion_point(parse_start:opencv_caffe.WindowDataParameter)
33997   for (;;) {
33998     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
33999     tag = p.first;
34000     if (!p.second) goto handle_unusual;
34001     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
34002       // optional string source = 1;
34003       case 1: {
34004         if (static_cast< ::google::protobuf::uint8>(tag) ==
34005             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
34006           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
34007                 input, this->mutable_source()));
34008           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34009             this->source().data(), static_cast<int>(this->source().length()),
34010             ::google::protobuf::internal::WireFormat::PARSE,
34011             "opencv_caffe.WindowDataParameter.source");
34012         } else {
34013           goto handle_unusual;
34014         }
34015         break;
34016       }
34017 
34018       // optional float scale = 2 [default = 1];
34019       case 2: {
34020         if (static_cast< ::google::protobuf::uint8>(tag) ==
34021             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
34022           set_has_scale();
34023           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34024                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
34025                  input, &scale_)));
34026         } else {
34027           goto handle_unusual;
34028         }
34029         break;
34030       }
34031 
34032       // optional string mean_file = 3;
34033       case 3: {
34034         if (static_cast< ::google::protobuf::uint8>(tag) ==
34035             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
34036           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
34037                 input, this->mutable_mean_file()));
34038           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34039             this->mean_file().data(), static_cast<int>(this->mean_file().length()),
34040             ::google::protobuf::internal::WireFormat::PARSE,
34041             "opencv_caffe.WindowDataParameter.mean_file");
34042         } else {
34043           goto handle_unusual;
34044         }
34045         break;
34046       }
34047 
34048       // optional uint32 batch_size = 4;
34049       case 4: {
34050         if (static_cast< ::google::protobuf::uint8>(tag) ==
34051             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
34052           set_has_batch_size();
34053           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34054                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
34055                  input, &batch_size_)));
34056         } else {
34057           goto handle_unusual;
34058         }
34059         break;
34060       }
34061 
34062       // optional uint32 crop_size = 5 [default = 0];
34063       case 5: {
34064         if (static_cast< ::google::protobuf::uint8>(tag) ==
34065             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
34066           set_has_crop_size();
34067           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34068                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
34069                  input, &crop_size_)));
34070         } else {
34071           goto handle_unusual;
34072         }
34073         break;
34074       }
34075 
34076       // optional bool mirror = 6 [default = false];
34077       case 6: {
34078         if (static_cast< ::google::protobuf::uint8>(tag) ==
34079             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
34080           set_has_mirror();
34081           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34082                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
34083                  input, &mirror_)));
34084         } else {
34085           goto handle_unusual;
34086         }
34087         break;
34088       }
34089 
34090       // optional float fg_threshold = 7 [default = 0.5];
34091       case 7: {
34092         if (static_cast< ::google::protobuf::uint8>(tag) ==
34093             static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
34094           set_has_fg_threshold();
34095           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34096                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
34097                  input, &fg_threshold_)));
34098         } else {
34099           goto handle_unusual;
34100         }
34101         break;
34102       }
34103 
34104       // optional float bg_threshold = 8 [default = 0.5];
34105       case 8: {
34106         if (static_cast< ::google::protobuf::uint8>(tag) ==
34107             static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
34108           set_has_bg_threshold();
34109           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34110                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
34111                  input, &bg_threshold_)));
34112         } else {
34113           goto handle_unusual;
34114         }
34115         break;
34116       }
34117 
34118       // optional float fg_fraction = 9 [default = 0.25];
34119       case 9: {
34120         if (static_cast< ::google::protobuf::uint8>(tag) ==
34121             static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
34122           set_has_fg_fraction();
34123           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34124                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
34125                  input, &fg_fraction_)));
34126         } else {
34127           goto handle_unusual;
34128         }
34129         break;
34130       }
34131 
34132       // optional uint32 context_pad = 10 [default = 0];
34133       case 10: {
34134         if (static_cast< ::google::protobuf::uint8>(tag) ==
34135             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
34136           set_has_context_pad();
34137           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34138                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
34139                  input, &context_pad_)));
34140         } else {
34141           goto handle_unusual;
34142         }
34143         break;
34144       }
34145 
34146       // optional string crop_mode = 11 [default = "warp"];
34147       case 11: {
34148         if (static_cast< ::google::protobuf::uint8>(tag) ==
34149             static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
34150           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
34151                 input, this->mutable_crop_mode()));
34152           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34153             this->crop_mode().data(), static_cast<int>(this->crop_mode().length()),
34154             ::google::protobuf::internal::WireFormat::PARSE,
34155             "opencv_caffe.WindowDataParameter.crop_mode");
34156         } else {
34157           goto handle_unusual;
34158         }
34159         break;
34160       }
34161 
34162       // optional bool cache_images = 12 [default = false];
34163       case 12: {
34164         if (static_cast< ::google::protobuf::uint8>(tag) ==
34165             static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
34166           set_has_cache_images();
34167           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34168                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
34169                  input, &cache_images_)));
34170         } else {
34171           goto handle_unusual;
34172         }
34173         break;
34174       }
34175 
34176       // optional string root_folder = 13 [default = ""];
34177       case 13: {
34178         if (static_cast< ::google::protobuf::uint8>(tag) ==
34179             static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
34180           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
34181                 input, this->mutable_root_folder()));
34182           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34183             this->root_folder().data(), static_cast<int>(this->root_folder().length()),
34184             ::google::protobuf::internal::WireFormat::PARSE,
34185             "opencv_caffe.WindowDataParameter.root_folder");
34186         } else {
34187           goto handle_unusual;
34188         }
34189         break;
34190       }
34191 
34192       default: {
34193       handle_unusual:
34194         if (tag == 0) {
34195           goto success;
34196         }
34197         DO_(::google::protobuf::internal::WireFormat::SkipField(
34198               input, tag, _internal_metadata_.mutable_unknown_fields()));
34199         break;
34200       }
34201     }
34202   }
34203 success:
34204   // @@protoc_insertion_point(parse_success:opencv_caffe.WindowDataParameter)
34205   return true;
34206 failure:
34207   // @@protoc_insertion_point(parse_failure:opencv_caffe.WindowDataParameter)
34208   return false;
34209 #undef DO_
34210 }
34211 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const34212 void WindowDataParameter::SerializeWithCachedSizes(
34213     ::google::protobuf::io::CodedOutputStream* output) const {
34214   // @@protoc_insertion_point(serialize_start:opencv_caffe.WindowDataParameter)
34215   ::google::protobuf::uint32 cached_has_bits = 0;
34216   (void) cached_has_bits;
34217 
34218   cached_has_bits = _has_bits_[0];
34219   // optional string source = 1;
34220   if (cached_has_bits & 0x00000001u) {
34221     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34222       this->source().data(), static_cast<int>(this->source().length()),
34223       ::google::protobuf::internal::WireFormat::SERIALIZE,
34224       "opencv_caffe.WindowDataParameter.source");
34225     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
34226       1, this->source(), output);
34227   }
34228 
34229   // optional float scale = 2 [default = 1];
34230   if (cached_has_bits & 0x00000200u) {
34231     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output);
34232   }
34233 
34234   // optional string mean_file = 3;
34235   if (cached_has_bits & 0x00000002u) {
34236     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34237       this->mean_file().data(), static_cast<int>(this->mean_file().length()),
34238       ::google::protobuf::internal::WireFormat::SERIALIZE,
34239       "opencv_caffe.WindowDataParameter.mean_file");
34240     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
34241       3, this->mean_file(), output);
34242   }
34243 
34244   // optional uint32 batch_size = 4;
34245   if (cached_has_bits & 0x00000010u) {
34246     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->batch_size(), output);
34247   }
34248 
34249   // optional uint32 crop_size = 5 [default = 0];
34250   if (cached_has_bits & 0x00000020u) {
34251     ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->crop_size(), output);
34252   }
34253 
34254   // optional bool mirror = 6 [default = false];
34255   if (cached_has_bits & 0x00000040u) {
34256     ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->mirror(), output);
34257   }
34258 
34259   // optional float fg_threshold = 7 [default = 0.5];
34260   if (cached_has_bits & 0x00000400u) {
34261     ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->fg_threshold(), output);
34262   }
34263 
34264   // optional float bg_threshold = 8 [default = 0.5];
34265   if (cached_has_bits & 0x00000800u) {
34266     ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->bg_threshold(), output);
34267   }
34268 
34269   // optional float fg_fraction = 9 [default = 0.25];
34270   if (cached_has_bits & 0x00001000u) {
34271     ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->fg_fraction(), output);
34272   }
34273 
34274   // optional uint32 context_pad = 10 [default = 0];
34275   if (cached_has_bits & 0x00000100u) {
34276     ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->context_pad(), output);
34277   }
34278 
34279   // optional string crop_mode = 11 [default = "warp"];
34280   if (cached_has_bits & 0x00000004u) {
34281     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34282       this->crop_mode().data(), static_cast<int>(this->crop_mode().length()),
34283       ::google::protobuf::internal::WireFormat::SERIALIZE,
34284       "opencv_caffe.WindowDataParameter.crop_mode");
34285     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
34286       11, this->crop_mode(), output);
34287   }
34288 
34289   // optional bool cache_images = 12 [default = false];
34290   if (cached_has_bits & 0x00000080u) {
34291     ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->cache_images(), output);
34292   }
34293 
34294   // optional string root_folder = 13 [default = ""];
34295   if (cached_has_bits & 0x00000008u) {
34296     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34297       this->root_folder().data(), static_cast<int>(this->root_folder().length()),
34298       ::google::protobuf::internal::WireFormat::SERIALIZE,
34299       "opencv_caffe.WindowDataParameter.root_folder");
34300     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
34301       13, this->root_folder(), output);
34302   }
34303 
34304   if (_internal_metadata_.have_unknown_fields()) {
34305     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
34306         _internal_metadata_.unknown_fields(), output);
34307   }
34308   // @@protoc_insertion_point(serialize_end:opencv_caffe.WindowDataParameter)
34309 }
34310 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const34311 ::google::protobuf::uint8* WindowDataParameter::InternalSerializeWithCachedSizesToArray(
34312     bool deterministic, ::google::protobuf::uint8* target) const {
34313   (void)deterministic; // Unused
34314   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.WindowDataParameter)
34315   ::google::protobuf::uint32 cached_has_bits = 0;
34316   (void) cached_has_bits;
34317 
34318   cached_has_bits = _has_bits_[0];
34319   // optional string source = 1;
34320   if (cached_has_bits & 0x00000001u) {
34321     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34322       this->source().data(), static_cast<int>(this->source().length()),
34323       ::google::protobuf::internal::WireFormat::SERIALIZE,
34324       "opencv_caffe.WindowDataParameter.source");
34325     target =
34326       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
34327         1, this->source(), target);
34328   }
34329 
34330   // optional float scale = 2 [default = 1];
34331   if (cached_has_bits & 0x00000200u) {
34332     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->scale(), target);
34333   }
34334 
34335   // optional string mean_file = 3;
34336   if (cached_has_bits & 0x00000002u) {
34337     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34338       this->mean_file().data(), static_cast<int>(this->mean_file().length()),
34339       ::google::protobuf::internal::WireFormat::SERIALIZE,
34340       "opencv_caffe.WindowDataParameter.mean_file");
34341     target =
34342       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
34343         3, this->mean_file(), target);
34344   }
34345 
34346   // optional uint32 batch_size = 4;
34347   if (cached_has_bits & 0x00000010u) {
34348     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->batch_size(), target);
34349   }
34350 
34351   // optional uint32 crop_size = 5 [default = 0];
34352   if (cached_has_bits & 0x00000020u) {
34353     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->crop_size(), target);
34354   }
34355 
34356   // optional bool mirror = 6 [default = false];
34357   if (cached_has_bits & 0x00000040u) {
34358     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->mirror(), target);
34359   }
34360 
34361   // optional float fg_threshold = 7 [default = 0.5];
34362   if (cached_has_bits & 0x00000400u) {
34363     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->fg_threshold(), target);
34364   }
34365 
34366   // optional float bg_threshold = 8 [default = 0.5];
34367   if (cached_has_bits & 0x00000800u) {
34368     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->bg_threshold(), target);
34369   }
34370 
34371   // optional float fg_fraction = 9 [default = 0.25];
34372   if (cached_has_bits & 0x00001000u) {
34373     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->fg_fraction(), target);
34374   }
34375 
34376   // optional uint32 context_pad = 10 [default = 0];
34377   if (cached_has_bits & 0x00000100u) {
34378     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->context_pad(), target);
34379   }
34380 
34381   // optional string crop_mode = 11 [default = "warp"];
34382   if (cached_has_bits & 0x00000004u) {
34383     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34384       this->crop_mode().data(), static_cast<int>(this->crop_mode().length()),
34385       ::google::protobuf::internal::WireFormat::SERIALIZE,
34386       "opencv_caffe.WindowDataParameter.crop_mode");
34387     target =
34388       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
34389         11, this->crop_mode(), target);
34390   }
34391 
34392   // optional bool cache_images = 12 [default = false];
34393   if (cached_has_bits & 0x00000080u) {
34394     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->cache_images(), target);
34395   }
34396 
34397   // optional string root_folder = 13 [default = ""];
34398   if (cached_has_bits & 0x00000008u) {
34399     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
34400       this->root_folder().data(), static_cast<int>(this->root_folder().length()),
34401       ::google::protobuf::internal::WireFormat::SERIALIZE,
34402       "opencv_caffe.WindowDataParameter.root_folder");
34403     target =
34404       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
34405         13, this->root_folder(), target);
34406   }
34407 
34408   if (_internal_metadata_.have_unknown_fields()) {
34409     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
34410         _internal_metadata_.unknown_fields(), target);
34411   }
34412   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.WindowDataParameter)
34413   return target;
34414 }
34415 
ByteSizeLong() const34416 size_t WindowDataParameter::ByteSizeLong() const {
34417 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.WindowDataParameter)
34418   size_t total_size = 0;
34419 
34420   if (_internal_metadata_.have_unknown_fields()) {
34421     total_size +=
34422       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
34423         _internal_metadata_.unknown_fields());
34424   }
34425   if (_has_bits_[0 / 32] & 255u) {
34426     // optional string source = 1;
34427     if (has_source()) {
34428       total_size += 1 +
34429         ::google::protobuf::internal::WireFormatLite::StringSize(
34430           this->source());
34431     }
34432 
34433     // optional string mean_file = 3;
34434     if (has_mean_file()) {
34435       total_size += 1 +
34436         ::google::protobuf::internal::WireFormatLite::StringSize(
34437           this->mean_file());
34438     }
34439 
34440     // optional string crop_mode = 11 [default = "warp"];
34441     if (has_crop_mode()) {
34442       total_size += 1 +
34443         ::google::protobuf::internal::WireFormatLite::StringSize(
34444           this->crop_mode());
34445     }
34446 
34447     // optional string root_folder = 13 [default = ""];
34448     if (has_root_folder()) {
34449       total_size += 1 +
34450         ::google::protobuf::internal::WireFormatLite::StringSize(
34451           this->root_folder());
34452     }
34453 
34454     // optional uint32 batch_size = 4;
34455     if (has_batch_size()) {
34456       total_size += 1 +
34457         ::google::protobuf::internal::WireFormatLite::UInt32Size(
34458           this->batch_size());
34459     }
34460 
34461     // optional uint32 crop_size = 5 [default = 0];
34462     if (has_crop_size()) {
34463       total_size += 1 +
34464         ::google::protobuf::internal::WireFormatLite::UInt32Size(
34465           this->crop_size());
34466     }
34467 
34468     // optional bool mirror = 6 [default = false];
34469     if (has_mirror()) {
34470       total_size += 1 + 1;
34471     }
34472 
34473     // optional bool cache_images = 12 [default = false];
34474     if (has_cache_images()) {
34475       total_size += 1 + 1;
34476     }
34477 
34478   }
34479   if (_has_bits_[8 / 32] & 7936u) {
34480     // optional uint32 context_pad = 10 [default = 0];
34481     if (has_context_pad()) {
34482       total_size += 1 +
34483         ::google::protobuf::internal::WireFormatLite::UInt32Size(
34484           this->context_pad());
34485     }
34486 
34487     // optional float scale = 2 [default = 1];
34488     if (has_scale()) {
34489       total_size += 1 + 4;
34490     }
34491 
34492     // optional float fg_threshold = 7 [default = 0.5];
34493     if (has_fg_threshold()) {
34494       total_size += 1 + 4;
34495     }
34496 
34497     // optional float bg_threshold = 8 [default = 0.5];
34498     if (has_bg_threshold()) {
34499       total_size += 1 + 4;
34500     }
34501 
34502     // optional float fg_fraction = 9 [default = 0.25];
34503     if (has_fg_fraction()) {
34504       total_size += 1 + 4;
34505     }
34506 
34507   }
34508   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
34509   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
34510   _cached_size_ = cached_size;
34511   GOOGLE_SAFE_CONCURRENT_WRITES_END();
34512   return total_size;
34513 }
34514 
MergeFrom(const::google::protobuf::Message & from)34515 void WindowDataParameter::MergeFrom(const ::google::protobuf::Message& from) {
34516 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.WindowDataParameter)
34517   GOOGLE_DCHECK_NE(&from, this);
34518   const WindowDataParameter* source =
34519       ::google::protobuf::internal::DynamicCastToGenerated<const WindowDataParameter>(
34520           &from);
34521   if (source == NULL) {
34522   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.WindowDataParameter)
34523     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
34524   } else {
34525   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.WindowDataParameter)
34526     MergeFrom(*source);
34527   }
34528 }
34529 
MergeFrom(const WindowDataParameter & from)34530 void WindowDataParameter::MergeFrom(const WindowDataParameter& from) {
34531 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.WindowDataParameter)
34532   GOOGLE_DCHECK_NE(&from, this);
34533   _internal_metadata_.MergeFrom(from._internal_metadata_);
34534   ::google::protobuf::uint32 cached_has_bits = 0;
34535   (void) cached_has_bits;
34536 
34537   cached_has_bits = from._has_bits_[0];
34538   if (cached_has_bits & 255u) {
34539     if (cached_has_bits & 0x00000001u) {
34540       set_has_source();
34541       source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
34542     }
34543     if (cached_has_bits & 0x00000002u) {
34544       set_has_mean_file();
34545       mean_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mean_file_);
34546     }
34547     if (cached_has_bits & 0x00000004u) {
34548       set_has_crop_mode();
34549       crop_mode_.AssignWithDefault(&::opencv_caffe::WindowDataParameter::_default_crop_mode_.get(), from.crop_mode_);
34550     }
34551     if (cached_has_bits & 0x00000008u) {
34552       set_has_root_folder();
34553       root_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_folder_);
34554     }
34555     if (cached_has_bits & 0x00000010u) {
34556       batch_size_ = from.batch_size_;
34557     }
34558     if (cached_has_bits & 0x00000020u) {
34559       crop_size_ = from.crop_size_;
34560     }
34561     if (cached_has_bits & 0x00000040u) {
34562       mirror_ = from.mirror_;
34563     }
34564     if (cached_has_bits & 0x00000080u) {
34565       cache_images_ = from.cache_images_;
34566     }
34567     _has_bits_[0] |= cached_has_bits;
34568   }
34569   if (cached_has_bits & 7936u) {
34570     if (cached_has_bits & 0x00000100u) {
34571       context_pad_ = from.context_pad_;
34572     }
34573     if (cached_has_bits & 0x00000200u) {
34574       scale_ = from.scale_;
34575     }
34576     if (cached_has_bits & 0x00000400u) {
34577       fg_threshold_ = from.fg_threshold_;
34578     }
34579     if (cached_has_bits & 0x00000800u) {
34580       bg_threshold_ = from.bg_threshold_;
34581     }
34582     if (cached_has_bits & 0x00001000u) {
34583       fg_fraction_ = from.fg_fraction_;
34584     }
34585     _has_bits_[0] |= cached_has_bits;
34586   }
34587 }
34588 
CopyFrom(const::google::protobuf::Message & from)34589 void WindowDataParameter::CopyFrom(const ::google::protobuf::Message& from) {
34590 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.WindowDataParameter)
34591   if (&from == this) return;
34592   Clear();
34593   MergeFrom(from);
34594 }
34595 
CopyFrom(const WindowDataParameter & from)34596 void WindowDataParameter::CopyFrom(const WindowDataParameter& from) {
34597 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.WindowDataParameter)
34598   if (&from == this) return;
34599   Clear();
34600   MergeFrom(from);
34601 }
34602 
IsInitialized() const34603 bool WindowDataParameter::IsInitialized() const {
34604   return true;
34605 }
34606 
Swap(WindowDataParameter * other)34607 void WindowDataParameter::Swap(WindowDataParameter* other) {
34608   if (other == this) return;
34609   InternalSwap(other);
34610 }
InternalSwap(WindowDataParameter * other)34611 void WindowDataParameter::InternalSwap(WindowDataParameter* other) {
34612   using std::swap;
34613   source_.Swap(&other->source_);
34614   mean_file_.Swap(&other->mean_file_);
34615   crop_mode_.Swap(&other->crop_mode_);
34616   root_folder_.Swap(&other->root_folder_);
34617   swap(batch_size_, other->batch_size_);
34618   swap(crop_size_, other->crop_size_);
34619   swap(mirror_, other->mirror_);
34620   swap(cache_images_, other->cache_images_);
34621   swap(context_pad_, other->context_pad_);
34622   swap(scale_, other->scale_);
34623   swap(fg_threshold_, other->fg_threshold_);
34624   swap(bg_threshold_, other->bg_threshold_);
34625   swap(fg_fraction_, other->fg_fraction_);
34626   swap(_has_bits_[0], other->_has_bits_[0]);
34627   _internal_metadata_.Swap(&other->_internal_metadata_);
34628   swap(_cached_size_, other->_cached_size_);
34629 }
34630 
GetMetadata() const34631 ::google::protobuf::Metadata WindowDataParameter::GetMetadata() const {
34632   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
34633   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
34634 }
34635 
34636 
34637 // ===================================================================
34638 
InitAsDefaultInstance()34639 void SPPParameter::InitAsDefaultInstance() {
34640 }
34641 #if !defined(_MSC_VER) || _MSC_VER >= 1900
34642 const int SPPParameter::kPyramidHeightFieldNumber;
34643 const int SPPParameter::kPoolFieldNumber;
34644 const int SPPParameter::kEngineFieldNumber;
34645 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
34646 
SPPParameter()34647 SPPParameter::SPPParameter()
34648   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
34649   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
34650     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSPPParameter();
34651   }
34652   SharedCtor();
34653   // @@protoc_insertion_point(constructor:opencv_caffe.SPPParameter)
34654 }
SPPParameter(const SPPParameter & from)34655 SPPParameter::SPPParameter(const SPPParameter& from)
34656   : ::google::protobuf::Message(),
34657       _internal_metadata_(NULL),
34658       _has_bits_(from._has_bits_),
34659       _cached_size_(0) {
34660   _internal_metadata_.MergeFrom(from._internal_metadata_);
34661   ::memcpy(&pyramid_height_, &from.pyramid_height_,
34662     static_cast<size_t>(reinterpret_cast<char*>(&engine_) -
34663     reinterpret_cast<char*>(&pyramid_height_)) + sizeof(engine_));
34664   // @@protoc_insertion_point(copy_constructor:opencv_caffe.SPPParameter)
34665 }
34666 
SharedCtor()34667 void SPPParameter::SharedCtor() {
34668   _cached_size_ = 0;
34669   ::memset(&pyramid_height_, 0, static_cast<size_t>(
34670       reinterpret_cast<char*>(&engine_) -
34671       reinterpret_cast<char*>(&pyramid_height_)) + sizeof(engine_));
34672 }
34673 
~SPPParameter()34674 SPPParameter::~SPPParameter() {
34675   // @@protoc_insertion_point(destructor:opencv_caffe.SPPParameter)
34676   SharedDtor();
34677 }
34678 
SharedDtor()34679 void SPPParameter::SharedDtor() {
34680 }
34681 
SetCachedSize(int size) const34682 void SPPParameter::SetCachedSize(int size) const {
34683   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
34684   _cached_size_ = size;
34685   GOOGLE_SAFE_CONCURRENT_WRITES_END();
34686 }
descriptor()34687 const ::google::protobuf::Descriptor* SPPParameter::descriptor() {
34688   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
34689   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
34690 }
34691 
default_instance()34692 const SPPParameter& SPPParameter::default_instance() {
34693   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsSPPParameter();
34694   return *internal_default_instance();
34695 }
34696 
New(::google::protobuf::Arena * arena) const34697 SPPParameter* SPPParameter::New(::google::protobuf::Arena* arena) const {
34698   SPPParameter* n = new SPPParameter;
34699   if (arena != NULL) {
34700     arena->Own(n);
34701   }
34702   return n;
34703 }
34704 
Clear()34705 void SPPParameter::Clear() {
34706 // @@protoc_insertion_point(message_clear_start:opencv_caffe.SPPParameter)
34707   ::google::protobuf::uint32 cached_has_bits = 0;
34708   // Prevent compiler warnings about cached_has_bits being unused
34709   (void) cached_has_bits;
34710 
34711   cached_has_bits = _has_bits_[0];
34712   if (cached_has_bits & 7u) {
34713     ::memset(&pyramid_height_, 0, static_cast<size_t>(
34714         reinterpret_cast<char*>(&engine_) -
34715         reinterpret_cast<char*>(&pyramid_height_)) + sizeof(engine_));
34716   }
34717   _has_bits_.Clear();
34718   _internal_metadata_.Clear();
34719 }
34720 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)34721 bool SPPParameter::MergePartialFromCodedStream(
34722     ::google::protobuf::io::CodedInputStream* input) {
34723 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
34724   ::google::protobuf::uint32 tag;
34725   // @@protoc_insertion_point(parse_start:opencv_caffe.SPPParameter)
34726   for (;;) {
34727     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
34728     tag = p.first;
34729     if (!p.second) goto handle_unusual;
34730     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
34731       // optional uint32 pyramid_height = 1;
34732       case 1: {
34733         if (static_cast< ::google::protobuf::uint8>(tag) ==
34734             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
34735           set_has_pyramid_height();
34736           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34737                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
34738                  input, &pyramid_height_)));
34739         } else {
34740           goto handle_unusual;
34741         }
34742         break;
34743       }
34744 
34745       // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX];
34746       case 2: {
34747         if (static_cast< ::google::protobuf::uint8>(tag) ==
34748             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
34749           int value;
34750           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34751                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
34752                  input, &value)));
34753           if (::opencv_caffe::SPPParameter_PoolMethod_IsValid(value)) {
34754             set_pool(static_cast< ::opencv_caffe::SPPParameter_PoolMethod >(value));
34755           } else {
34756             mutable_unknown_fields()->AddVarint(
34757                 2, static_cast< ::google::protobuf::uint64>(value));
34758           }
34759         } else {
34760           goto handle_unusual;
34761         }
34762         break;
34763       }
34764 
34765       // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT];
34766       case 6: {
34767         if (static_cast< ::google::protobuf::uint8>(tag) ==
34768             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
34769           int value;
34770           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
34771                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
34772                  input, &value)));
34773           if (::opencv_caffe::SPPParameter_Engine_IsValid(value)) {
34774             set_engine(static_cast< ::opencv_caffe::SPPParameter_Engine >(value));
34775           } else {
34776             mutable_unknown_fields()->AddVarint(
34777                 6, static_cast< ::google::protobuf::uint64>(value));
34778           }
34779         } else {
34780           goto handle_unusual;
34781         }
34782         break;
34783       }
34784 
34785       default: {
34786       handle_unusual:
34787         if (tag == 0) {
34788           goto success;
34789         }
34790         DO_(::google::protobuf::internal::WireFormat::SkipField(
34791               input, tag, _internal_metadata_.mutable_unknown_fields()));
34792         break;
34793       }
34794     }
34795   }
34796 success:
34797   // @@protoc_insertion_point(parse_success:opencv_caffe.SPPParameter)
34798   return true;
34799 failure:
34800   // @@protoc_insertion_point(parse_failure:opencv_caffe.SPPParameter)
34801   return false;
34802 #undef DO_
34803 }
34804 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const34805 void SPPParameter::SerializeWithCachedSizes(
34806     ::google::protobuf::io::CodedOutputStream* output) const {
34807   // @@protoc_insertion_point(serialize_start:opencv_caffe.SPPParameter)
34808   ::google::protobuf::uint32 cached_has_bits = 0;
34809   (void) cached_has_bits;
34810 
34811   cached_has_bits = _has_bits_[0];
34812   // optional uint32 pyramid_height = 1;
34813   if (cached_has_bits & 0x00000001u) {
34814     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->pyramid_height(), output);
34815   }
34816 
34817   // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX];
34818   if (cached_has_bits & 0x00000002u) {
34819     ::google::protobuf::internal::WireFormatLite::WriteEnum(
34820       2, this->pool(), output);
34821   }
34822 
34823   // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT];
34824   if (cached_has_bits & 0x00000004u) {
34825     ::google::protobuf::internal::WireFormatLite::WriteEnum(
34826       6, this->engine(), output);
34827   }
34828 
34829   if (_internal_metadata_.have_unknown_fields()) {
34830     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
34831         _internal_metadata_.unknown_fields(), output);
34832   }
34833   // @@protoc_insertion_point(serialize_end:opencv_caffe.SPPParameter)
34834 }
34835 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const34836 ::google::protobuf::uint8* SPPParameter::InternalSerializeWithCachedSizesToArray(
34837     bool deterministic, ::google::protobuf::uint8* target) const {
34838   (void)deterministic; // Unused
34839   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.SPPParameter)
34840   ::google::protobuf::uint32 cached_has_bits = 0;
34841   (void) cached_has_bits;
34842 
34843   cached_has_bits = _has_bits_[0];
34844   // optional uint32 pyramid_height = 1;
34845   if (cached_has_bits & 0x00000001u) {
34846     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->pyramid_height(), target);
34847   }
34848 
34849   // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX];
34850   if (cached_has_bits & 0x00000002u) {
34851     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
34852       2, this->pool(), target);
34853   }
34854 
34855   // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT];
34856   if (cached_has_bits & 0x00000004u) {
34857     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
34858       6, this->engine(), target);
34859   }
34860 
34861   if (_internal_metadata_.have_unknown_fields()) {
34862     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
34863         _internal_metadata_.unknown_fields(), target);
34864   }
34865   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.SPPParameter)
34866   return target;
34867 }
34868 
ByteSizeLong() const34869 size_t SPPParameter::ByteSizeLong() const {
34870 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.SPPParameter)
34871   size_t total_size = 0;
34872 
34873   if (_internal_metadata_.have_unknown_fields()) {
34874     total_size +=
34875       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
34876         _internal_metadata_.unknown_fields());
34877   }
34878   if (_has_bits_[0 / 32] & 7u) {
34879     // optional uint32 pyramid_height = 1;
34880     if (has_pyramid_height()) {
34881       total_size += 1 +
34882         ::google::protobuf::internal::WireFormatLite::UInt32Size(
34883           this->pyramid_height());
34884     }
34885 
34886     // optional .opencv_caffe.SPPParameter.PoolMethod pool = 2 [default = MAX];
34887     if (has_pool()) {
34888       total_size += 1 +
34889         ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool());
34890     }
34891 
34892     // optional .opencv_caffe.SPPParameter.Engine engine = 6 [default = DEFAULT];
34893     if (has_engine()) {
34894       total_size += 1 +
34895         ::google::protobuf::internal::WireFormatLite::EnumSize(this->engine());
34896     }
34897 
34898   }
34899   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
34900   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
34901   _cached_size_ = cached_size;
34902   GOOGLE_SAFE_CONCURRENT_WRITES_END();
34903   return total_size;
34904 }
34905 
MergeFrom(const::google::protobuf::Message & from)34906 void SPPParameter::MergeFrom(const ::google::protobuf::Message& from) {
34907 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.SPPParameter)
34908   GOOGLE_DCHECK_NE(&from, this);
34909   const SPPParameter* source =
34910       ::google::protobuf::internal::DynamicCastToGenerated<const SPPParameter>(
34911           &from);
34912   if (source == NULL) {
34913   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.SPPParameter)
34914     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
34915   } else {
34916   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.SPPParameter)
34917     MergeFrom(*source);
34918   }
34919 }
34920 
MergeFrom(const SPPParameter & from)34921 void SPPParameter::MergeFrom(const SPPParameter& from) {
34922 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.SPPParameter)
34923   GOOGLE_DCHECK_NE(&from, this);
34924   _internal_metadata_.MergeFrom(from._internal_metadata_);
34925   ::google::protobuf::uint32 cached_has_bits = 0;
34926   (void) cached_has_bits;
34927 
34928   cached_has_bits = from._has_bits_[0];
34929   if (cached_has_bits & 7u) {
34930     if (cached_has_bits & 0x00000001u) {
34931       pyramid_height_ = from.pyramid_height_;
34932     }
34933     if (cached_has_bits & 0x00000002u) {
34934       pool_ = from.pool_;
34935     }
34936     if (cached_has_bits & 0x00000004u) {
34937       engine_ = from.engine_;
34938     }
34939     _has_bits_[0] |= cached_has_bits;
34940   }
34941 }
34942 
CopyFrom(const::google::protobuf::Message & from)34943 void SPPParameter::CopyFrom(const ::google::protobuf::Message& from) {
34944 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.SPPParameter)
34945   if (&from == this) return;
34946   Clear();
34947   MergeFrom(from);
34948 }
34949 
CopyFrom(const SPPParameter & from)34950 void SPPParameter::CopyFrom(const SPPParameter& from) {
34951 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.SPPParameter)
34952   if (&from == this) return;
34953   Clear();
34954   MergeFrom(from);
34955 }
34956 
IsInitialized() const34957 bool SPPParameter::IsInitialized() const {
34958   return true;
34959 }
34960 
Swap(SPPParameter * other)34961 void SPPParameter::Swap(SPPParameter* other) {
34962   if (other == this) return;
34963   InternalSwap(other);
34964 }
InternalSwap(SPPParameter * other)34965 void SPPParameter::InternalSwap(SPPParameter* other) {
34966   using std::swap;
34967   swap(pyramid_height_, other->pyramid_height_);
34968   swap(pool_, other->pool_);
34969   swap(engine_, other->engine_);
34970   swap(_has_bits_[0], other->_has_bits_[0]);
34971   _internal_metadata_.Swap(&other->_internal_metadata_);
34972   swap(_cached_size_, other->_cached_size_);
34973 }
34974 
GetMetadata() const34975 ::google::protobuf::Metadata SPPParameter::GetMetadata() const {
34976   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
34977   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
34978 }
34979 
34980 
34981 // ===================================================================
34982 
InitAsDefaultInstance()34983 void V1LayerParameter::InitAsDefaultInstance() {
34984   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->accuracy_param_ = const_cast< ::opencv_caffe::AccuracyParameter*>(
34985       ::opencv_caffe::AccuracyParameter::internal_default_instance());
34986   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->argmax_param_ = const_cast< ::opencv_caffe::ArgMaxParameter*>(
34987       ::opencv_caffe::ArgMaxParameter::internal_default_instance());
34988   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->concat_param_ = const_cast< ::opencv_caffe::ConcatParameter*>(
34989       ::opencv_caffe::ConcatParameter::internal_default_instance());
34990   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->contrastive_loss_param_ = const_cast< ::opencv_caffe::ContrastiveLossParameter*>(
34991       ::opencv_caffe::ContrastiveLossParameter::internal_default_instance());
34992   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->convolution_param_ = const_cast< ::opencv_caffe::ConvolutionParameter*>(
34993       ::opencv_caffe::ConvolutionParameter::internal_default_instance());
34994   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->data_param_ = const_cast< ::opencv_caffe::DataParameter*>(
34995       ::opencv_caffe::DataParameter::internal_default_instance());
34996   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->dropout_param_ = const_cast< ::opencv_caffe::DropoutParameter*>(
34997       ::opencv_caffe::DropoutParameter::internal_default_instance());
34998   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->dummy_data_param_ = const_cast< ::opencv_caffe::DummyDataParameter*>(
34999       ::opencv_caffe::DummyDataParameter::internal_default_instance());
35000   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->eltwise_param_ = const_cast< ::opencv_caffe::EltwiseParameter*>(
35001       ::opencv_caffe::EltwiseParameter::internal_default_instance());
35002   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->exp_param_ = const_cast< ::opencv_caffe::ExpParameter*>(
35003       ::opencv_caffe::ExpParameter::internal_default_instance());
35004   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->hdf5_data_param_ = const_cast< ::opencv_caffe::HDF5DataParameter*>(
35005       ::opencv_caffe::HDF5DataParameter::internal_default_instance());
35006   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>(
35007       ::opencv_caffe::HDF5OutputParameter::internal_default_instance());
35008   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->hinge_loss_param_ = const_cast< ::opencv_caffe::HingeLossParameter*>(
35009       ::opencv_caffe::HingeLossParameter::internal_default_instance());
35010   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->image_data_param_ = const_cast< ::opencv_caffe::ImageDataParameter*>(
35011       ::opencv_caffe::ImageDataParameter::internal_default_instance());
35012   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->infogain_loss_param_ = const_cast< ::opencv_caffe::InfogainLossParameter*>(
35013       ::opencv_caffe::InfogainLossParameter::internal_default_instance());
35014   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->inner_product_param_ = const_cast< ::opencv_caffe::InnerProductParameter*>(
35015       ::opencv_caffe::InnerProductParameter::internal_default_instance());
35016   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->lrn_param_ = const_cast< ::opencv_caffe::LRNParameter*>(
35017       ::opencv_caffe::LRNParameter::internal_default_instance());
35018   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->memory_data_param_ = const_cast< ::opencv_caffe::MemoryDataParameter*>(
35019       ::opencv_caffe::MemoryDataParameter::internal_default_instance());
35020   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->mvn_param_ = const_cast< ::opencv_caffe::MVNParameter*>(
35021       ::opencv_caffe::MVNParameter::internal_default_instance());
35022   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->pooling_param_ = const_cast< ::opencv_caffe::PoolingParameter*>(
35023       ::opencv_caffe::PoolingParameter::internal_default_instance());
35024   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->power_param_ = const_cast< ::opencv_caffe::PowerParameter*>(
35025       ::opencv_caffe::PowerParameter::internal_default_instance());
35026   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->relu_param_ = const_cast< ::opencv_caffe::ReLUParameter*>(
35027       ::opencv_caffe::ReLUParameter::internal_default_instance());
35028   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->sigmoid_param_ = const_cast< ::opencv_caffe::SigmoidParameter*>(
35029       ::opencv_caffe::SigmoidParameter::internal_default_instance());
35030   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->softmax_param_ = const_cast< ::opencv_caffe::SoftmaxParameter*>(
35031       ::opencv_caffe::SoftmaxParameter::internal_default_instance());
35032   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->slice_param_ = const_cast< ::opencv_caffe::SliceParameter*>(
35033       ::opencv_caffe::SliceParameter::internal_default_instance());
35034   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->tanh_param_ = const_cast< ::opencv_caffe::TanHParameter*>(
35035       ::opencv_caffe::TanHParameter::internal_default_instance());
35036   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->threshold_param_ = const_cast< ::opencv_caffe::ThresholdParameter*>(
35037       ::opencv_caffe::ThresholdParameter::internal_default_instance());
35038   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->window_data_param_ = const_cast< ::opencv_caffe::WindowDataParameter*>(
35039       ::opencv_caffe::WindowDataParameter::internal_default_instance());
35040   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->transform_param_ = const_cast< ::opencv_caffe::TransformationParameter*>(
35041       ::opencv_caffe::TransformationParameter::internal_default_instance());
35042   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->loss_param_ = const_cast< ::opencv_caffe::LossParameter*>(
35043       ::opencv_caffe::LossParameter::internal_default_instance());
35044   ::opencv_caffe::_V1LayerParameter_default_instance_._instance.get_mutable()->layer_ = const_cast< ::opencv_caffe::V0LayerParameter*>(
35045       ::opencv_caffe::V0LayerParameter::internal_default_instance());
35046 }
35047 #if !defined(_MSC_VER) || _MSC_VER >= 1900
35048 const int V1LayerParameter::kBottomFieldNumber;
35049 const int V1LayerParameter::kTopFieldNumber;
35050 const int V1LayerParameter::kNameFieldNumber;
35051 const int V1LayerParameter::kIncludeFieldNumber;
35052 const int V1LayerParameter::kExcludeFieldNumber;
35053 const int V1LayerParameter::kTypeFieldNumber;
35054 const int V1LayerParameter::kBlobsFieldNumber;
35055 const int V1LayerParameter::kParamFieldNumber;
35056 const int V1LayerParameter::kBlobShareModeFieldNumber;
35057 const int V1LayerParameter::kBlobsLrFieldNumber;
35058 const int V1LayerParameter::kWeightDecayFieldNumber;
35059 const int V1LayerParameter::kLossWeightFieldNumber;
35060 const int V1LayerParameter::kAccuracyParamFieldNumber;
35061 const int V1LayerParameter::kArgmaxParamFieldNumber;
35062 const int V1LayerParameter::kConcatParamFieldNumber;
35063 const int V1LayerParameter::kContrastiveLossParamFieldNumber;
35064 const int V1LayerParameter::kConvolutionParamFieldNumber;
35065 const int V1LayerParameter::kDataParamFieldNumber;
35066 const int V1LayerParameter::kDropoutParamFieldNumber;
35067 const int V1LayerParameter::kDummyDataParamFieldNumber;
35068 const int V1LayerParameter::kEltwiseParamFieldNumber;
35069 const int V1LayerParameter::kExpParamFieldNumber;
35070 const int V1LayerParameter::kHdf5DataParamFieldNumber;
35071 const int V1LayerParameter::kHdf5OutputParamFieldNumber;
35072 const int V1LayerParameter::kHingeLossParamFieldNumber;
35073 const int V1LayerParameter::kImageDataParamFieldNumber;
35074 const int V1LayerParameter::kInfogainLossParamFieldNumber;
35075 const int V1LayerParameter::kInnerProductParamFieldNumber;
35076 const int V1LayerParameter::kLrnParamFieldNumber;
35077 const int V1LayerParameter::kMemoryDataParamFieldNumber;
35078 const int V1LayerParameter::kMvnParamFieldNumber;
35079 const int V1LayerParameter::kPoolingParamFieldNumber;
35080 const int V1LayerParameter::kPowerParamFieldNumber;
35081 const int V1LayerParameter::kReluParamFieldNumber;
35082 const int V1LayerParameter::kSigmoidParamFieldNumber;
35083 const int V1LayerParameter::kSoftmaxParamFieldNumber;
35084 const int V1LayerParameter::kSliceParamFieldNumber;
35085 const int V1LayerParameter::kTanhParamFieldNumber;
35086 const int V1LayerParameter::kThresholdParamFieldNumber;
35087 const int V1LayerParameter::kWindowDataParamFieldNumber;
35088 const int V1LayerParameter::kTransformParamFieldNumber;
35089 const int V1LayerParameter::kLossParamFieldNumber;
35090 const int V1LayerParameter::kLayerFieldNumber;
35091 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
35092 
V1LayerParameter()35093 V1LayerParameter::V1LayerParameter()
35094   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
35095   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
35096     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV1LayerParameter();
35097   }
35098   SharedCtor();
35099   // @@protoc_insertion_point(constructor:opencv_caffe.V1LayerParameter)
35100 }
V1LayerParameter(const V1LayerParameter & from)35101 V1LayerParameter::V1LayerParameter(const V1LayerParameter& from)
35102   : ::google::protobuf::Message(),
35103       _internal_metadata_(NULL),
35104       _has_bits_(from._has_bits_),
35105       bottom_(from.bottom_),
35106       top_(from.top_),
35107       blobs_(from.blobs_),
35108       blobs_lr_(from.blobs_lr_),
35109       weight_decay_(from.weight_decay_),
35110       include_(from.include_),
35111       exclude_(from.exclude_),
35112       loss_weight_(from.loss_weight_),
35113       param_(from.param_),
35114       blob_share_mode_(from.blob_share_mode_),
35115       _cached_size_(0) {
35116   _internal_metadata_.MergeFrom(from._internal_metadata_);
35117   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
35118   if (from.has_name()) {
35119     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
35120   }
35121   if (from.has_layer()) {
35122     layer_ = new ::opencv_caffe::V0LayerParameter(*from.layer_);
35123   } else {
35124     layer_ = NULL;
35125   }
35126   if (from.has_concat_param()) {
35127     concat_param_ = new ::opencv_caffe::ConcatParameter(*from.concat_param_);
35128   } else {
35129     concat_param_ = NULL;
35130   }
35131   if (from.has_convolution_param()) {
35132     convolution_param_ = new ::opencv_caffe::ConvolutionParameter(*from.convolution_param_);
35133   } else {
35134     convolution_param_ = NULL;
35135   }
35136   if (from.has_data_param()) {
35137     data_param_ = new ::opencv_caffe::DataParameter(*from.data_param_);
35138   } else {
35139     data_param_ = NULL;
35140   }
35141   if (from.has_dropout_param()) {
35142     dropout_param_ = new ::opencv_caffe::DropoutParameter(*from.dropout_param_);
35143   } else {
35144     dropout_param_ = NULL;
35145   }
35146   if (from.has_hdf5_data_param()) {
35147     hdf5_data_param_ = new ::opencv_caffe::HDF5DataParameter(*from.hdf5_data_param_);
35148   } else {
35149     hdf5_data_param_ = NULL;
35150   }
35151   if (from.has_hdf5_output_param()) {
35152     hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter(*from.hdf5_output_param_);
35153   } else {
35154     hdf5_output_param_ = NULL;
35155   }
35156   if (from.has_image_data_param()) {
35157     image_data_param_ = new ::opencv_caffe::ImageDataParameter(*from.image_data_param_);
35158   } else {
35159     image_data_param_ = NULL;
35160   }
35161   if (from.has_infogain_loss_param()) {
35162     infogain_loss_param_ = new ::opencv_caffe::InfogainLossParameter(*from.infogain_loss_param_);
35163   } else {
35164     infogain_loss_param_ = NULL;
35165   }
35166   if (from.has_inner_product_param()) {
35167     inner_product_param_ = new ::opencv_caffe::InnerProductParameter(*from.inner_product_param_);
35168   } else {
35169     inner_product_param_ = NULL;
35170   }
35171   if (from.has_lrn_param()) {
35172     lrn_param_ = new ::opencv_caffe::LRNParameter(*from.lrn_param_);
35173   } else {
35174     lrn_param_ = NULL;
35175   }
35176   if (from.has_pooling_param()) {
35177     pooling_param_ = new ::opencv_caffe::PoolingParameter(*from.pooling_param_);
35178   } else {
35179     pooling_param_ = NULL;
35180   }
35181   if (from.has_window_data_param()) {
35182     window_data_param_ = new ::opencv_caffe::WindowDataParameter(*from.window_data_param_);
35183   } else {
35184     window_data_param_ = NULL;
35185   }
35186   if (from.has_power_param()) {
35187     power_param_ = new ::opencv_caffe::PowerParameter(*from.power_param_);
35188   } else {
35189     power_param_ = NULL;
35190   }
35191   if (from.has_memory_data_param()) {
35192     memory_data_param_ = new ::opencv_caffe::MemoryDataParameter(*from.memory_data_param_);
35193   } else {
35194     memory_data_param_ = NULL;
35195   }
35196   if (from.has_argmax_param()) {
35197     argmax_param_ = new ::opencv_caffe::ArgMaxParameter(*from.argmax_param_);
35198   } else {
35199     argmax_param_ = NULL;
35200   }
35201   if (from.has_eltwise_param()) {
35202     eltwise_param_ = new ::opencv_caffe::EltwiseParameter(*from.eltwise_param_);
35203   } else {
35204     eltwise_param_ = NULL;
35205   }
35206   if (from.has_threshold_param()) {
35207     threshold_param_ = new ::opencv_caffe::ThresholdParameter(*from.threshold_param_);
35208   } else {
35209     threshold_param_ = NULL;
35210   }
35211   if (from.has_dummy_data_param()) {
35212     dummy_data_param_ = new ::opencv_caffe::DummyDataParameter(*from.dummy_data_param_);
35213   } else {
35214     dummy_data_param_ = NULL;
35215   }
35216   if (from.has_accuracy_param()) {
35217     accuracy_param_ = new ::opencv_caffe::AccuracyParameter(*from.accuracy_param_);
35218   } else {
35219     accuracy_param_ = NULL;
35220   }
35221   if (from.has_hinge_loss_param()) {
35222     hinge_loss_param_ = new ::opencv_caffe::HingeLossParameter(*from.hinge_loss_param_);
35223   } else {
35224     hinge_loss_param_ = NULL;
35225   }
35226   if (from.has_relu_param()) {
35227     relu_param_ = new ::opencv_caffe::ReLUParameter(*from.relu_param_);
35228   } else {
35229     relu_param_ = NULL;
35230   }
35231   if (from.has_slice_param()) {
35232     slice_param_ = new ::opencv_caffe::SliceParameter(*from.slice_param_);
35233   } else {
35234     slice_param_ = NULL;
35235   }
35236   if (from.has_mvn_param()) {
35237     mvn_param_ = new ::opencv_caffe::MVNParameter(*from.mvn_param_);
35238   } else {
35239     mvn_param_ = NULL;
35240   }
35241   if (from.has_transform_param()) {
35242     transform_param_ = new ::opencv_caffe::TransformationParameter(*from.transform_param_);
35243   } else {
35244     transform_param_ = NULL;
35245   }
35246   if (from.has_tanh_param()) {
35247     tanh_param_ = new ::opencv_caffe::TanHParameter(*from.tanh_param_);
35248   } else {
35249     tanh_param_ = NULL;
35250   }
35251   if (from.has_sigmoid_param()) {
35252     sigmoid_param_ = new ::opencv_caffe::SigmoidParameter(*from.sigmoid_param_);
35253   } else {
35254     sigmoid_param_ = NULL;
35255   }
35256   if (from.has_softmax_param()) {
35257     softmax_param_ = new ::opencv_caffe::SoftmaxParameter(*from.softmax_param_);
35258   } else {
35259     softmax_param_ = NULL;
35260   }
35261   if (from.has_contrastive_loss_param()) {
35262     contrastive_loss_param_ = new ::opencv_caffe::ContrastiveLossParameter(*from.contrastive_loss_param_);
35263   } else {
35264     contrastive_loss_param_ = NULL;
35265   }
35266   if (from.has_exp_param()) {
35267     exp_param_ = new ::opencv_caffe::ExpParameter(*from.exp_param_);
35268   } else {
35269     exp_param_ = NULL;
35270   }
35271   if (from.has_loss_param()) {
35272     loss_param_ = new ::opencv_caffe::LossParameter(*from.loss_param_);
35273   } else {
35274     loss_param_ = NULL;
35275   }
35276   type_ = from.type_;
35277   // @@protoc_insertion_point(copy_constructor:opencv_caffe.V1LayerParameter)
35278 }
35279 
SharedCtor()35280 void V1LayerParameter::SharedCtor() {
35281   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
35282   ::memset(&layer_, 0, static_cast<size_t>(
35283       reinterpret_cast<char*>(&type_) -
35284       reinterpret_cast<char*>(&layer_)) + sizeof(type_));
35285   _cached_size_ = 0;
35286 }
35287 
~V1LayerParameter()35288 V1LayerParameter::~V1LayerParameter() {
35289   // @@protoc_insertion_point(destructor:opencv_caffe.V1LayerParameter)
35290   SharedDtor();
35291 }
35292 
SharedDtor()35293 void V1LayerParameter::SharedDtor() {
35294   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
35295   if (this != internal_default_instance()) delete layer_;
35296   if (this != internal_default_instance()) delete concat_param_;
35297   if (this != internal_default_instance()) delete convolution_param_;
35298   if (this != internal_default_instance()) delete data_param_;
35299   if (this != internal_default_instance()) delete dropout_param_;
35300   if (this != internal_default_instance()) delete hdf5_data_param_;
35301   if (this != internal_default_instance()) delete hdf5_output_param_;
35302   if (this != internal_default_instance()) delete image_data_param_;
35303   if (this != internal_default_instance()) delete infogain_loss_param_;
35304   if (this != internal_default_instance()) delete inner_product_param_;
35305   if (this != internal_default_instance()) delete lrn_param_;
35306   if (this != internal_default_instance()) delete pooling_param_;
35307   if (this != internal_default_instance()) delete window_data_param_;
35308   if (this != internal_default_instance()) delete power_param_;
35309   if (this != internal_default_instance()) delete memory_data_param_;
35310   if (this != internal_default_instance()) delete argmax_param_;
35311   if (this != internal_default_instance()) delete eltwise_param_;
35312   if (this != internal_default_instance()) delete threshold_param_;
35313   if (this != internal_default_instance()) delete dummy_data_param_;
35314   if (this != internal_default_instance()) delete accuracy_param_;
35315   if (this != internal_default_instance()) delete hinge_loss_param_;
35316   if (this != internal_default_instance()) delete relu_param_;
35317   if (this != internal_default_instance()) delete slice_param_;
35318   if (this != internal_default_instance()) delete mvn_param_;
35319   if (this != internal_default_instance()) delete transform_param_;
35320   if (this != internal_default_instance()) delete tanh_param_;
35321   if (this != internal_default_instance()) delete sigmoid_param_;
35322   if (this != internal_default_instance()) delete softmax_param_;
35323   if (this != internal_default_instance()) delete contrastive_loss_param_;
35324   if (this != internal_default_instance()) delete exp_param_;
35325   if (this != internal_default_instance()) delete loss_param_;
35326 }
35327 
SetCachedSize(int size) const35328 void V1LayerParameter::SetCachedSize(int size) const {
35329   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
35330   _cached_size_ = size;
35331   GOOGLE_SAFE_CONCURRENT_WRITES_END();
35332 }
descriptor()35333 const ::google::protobuf::Descriptor* V1LayerParameter::descriptor() {
35334   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
35335   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
35336 }
35337 
default_instance()35338 const V1LayerParameter& V1LayerParameter::default_instance() {
35339   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV1LayerParameter();
35340   return *internal_default_instance();
35341 }
35342 
New(::google::protobuf::Arena * arena) const35343 V1LayerParameter* V1LayerParameter::New(::google::protobuf::Arena* arena) const {
35344   V1LayerParameter* n = new V1LayerParameter;
35345   if (arena != NULL) {
35346     arena->Own(n);
35347   }
35348   return n;
35349 }
35350 
Clear()35351 void V1LayerParameter::Clear() {
35352 // @@protoc_insertion_point(message_clear_start:opencv_caffe.V1LayerParameter)
35353   ::google::protobuf::uint32 cached_has_bits = 0;
35354   // Prevent compiler warnings about cached_has_bits being unused
35355   (void) cached_has_bits;
35356 
35357   bottom_.Clear();
35358   top_.Clear();
35359   blobs_.Clear();
35360   blobs_lr_.Clear();
35361   weight_decay_.Clear();
35362   include_.Clear();
35363   exclude_.Clear();
35364   loss_weight_.Clear();
35365   param_.Clear();
35366   blob_share_mode_.Clear();
35367   cached_has_bits = _has_bits_[0];
35368   if (cached_has_bits & 255u) {
35369     if (cached_has_bits & 0x00000001u) {
35370       GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
35371       (*name_.UnsafeRawStringPointer())->clear();
35372     }
35373     if (cached_has_bits & 0x00000002u) {
35374       GOOGLE_DCHECK(layer_ != NULL);
35375       layer_->Clear();
35376     }
35377     if (cached_has_bits & 0x00000004u) {
35378       GOOGLE_DCHECK(concat_param_ != NULL);
35379       concat_param_->Clear();
35380     }
35381     if (cached_has_bits & 0x00000008u) {
35382       GOOGLE_DCHECK(convolution_param_ != NULL);
35383       convolution_param_->Clear();
35384     }
35385     if (cached_has_bits & 0x00000010u) {
35386       GOOGLE_DCHECK(data_param_ != NULL);
35387       data_param_->Clear();
35388     }
35389     if (cached_has_bits & 0x00000020u) {
35390       GOOGLE_DCHECK(dropout_param_ != NULL);
35391       dropout_param_->Clear();
35392     }
35393     if (cached_has_bits & 0x00000040u) {
35394       GOOGLE_DCHECK(hdf5_data_param_ != NULL);
35395       hdf5_data_param_->Clear();
35396     }
35397     if (cached_has_bits & 0x00000080u) {
35398       GOOGLE_DCHECK(hdf5_output_param_ != NULL);
35399       hdf5_output_param_->Clear();
35400     }
35401   }
35402   if (cached_has_bits & 65280u) {
35403     if (cached_has_bits & 0x00000100u) {
35404       GOOGLE_DCHECK(image_data_param_ != NULL);
35405       image_data_param_->Clear();
35406     }
35407     if (cached_has_bits & 0x00000200u) {
35408       GOOGLE_DCHECK(infogain_loss_param_ != NULL);
35409       infogain_loss_param_->Clear();
35410     }
35411     if (cached_has_bits & 0x00000400u) {
35412       GOOGLE_DCHECK(inner_product_param_ != NULL);
35413       inner_product_param_->Clear();
35414     }
35415     if (cached_has_bits & 0x00000800u) {
35416       GOOGLE_DCHECK(lrn_param_ != NULL);
35417       lrn_param_->Clear();
35418     }
35419     if (cached_has_bits & 0x00001000u) {
35420       GOOGLE_DCHECK(pooling_param_ != NULL);
35421       pooling_param_->Clear();
35422     }
35423     if (cached_has_bits & 0x00002000u) {
35424       GOOGLE_DCHECK(window_data_param_ != NULL);
35425       window_data_param_->Clear();
35426     }
35427     if (cached_has_bits & 0x00004000u) {
35428       GOOGLE_DCHECK(power_param_ != NULL);
35429       power_param_->Clear();
35430     }
35431     if (cached_has_bits & 0x00008000u) {
35432       GOOGLE_DCHECK(memory_data_param_ != NULL);
35433       memory_data_param_->Clear();
35434     }
35435   }
35436   if (cached_has_bits & 16711680u) {
35437     if (cached_has_bits & 0x00010000u) {
35438       GOOGLE_DCHECK(argmax_param_ != NULL);
35439       argmax_param_->Clear();
35440     }
35441     if (cached_has_bits & 0x00020000u) {
35442       GOOGLE_DCHECK(eltwise_param_ != NULL);
35443       eltwise_param_->Clear();
35444     }
35445     if (cached_has_bits & 0x00040000u) {
35446       GOOGLE_DCHECK(threshold_param_ != NULL);
35447       threshold_param_->Clear();
35448     }
35449     if (cached_has_bits & 0x00080000u) {
35450       GOOGLE_DCHECK(dummy_data_param_ != NULL);
35451       dummy_data_param_->Clear();
35452     }
35453     if (cached_has_bits & 0x00100000u) {
35454       GOOGLE_DCHECK(accuracy_param_ != NULL);
35455       accuracy_param_->Clear();
35456     }
35457     if (cached_has_bits & 0x00200000u) {
35458       GOOGLE_DCHECK(hinge_loss_param_ != NULL);
35459       hinge_loss_param_->Clear();
35460     }
35461     if (cached_has_bits & 0x00400000u) {
35462       GOOGLE_DCHECK(relu_param_ != NULL);
35463       relu_param_->Clear();
35464     }
35465     if (cached_has_bits & 0x00800000u) {
35466       GOOGLE_DCHECK(slice_param_ != NULL);
35467       slice_param_->Clear();
35468     }
35469   }
35470   if (cached_has_bits & 4278190080u) {
35471     if (cached_has_bits & 0x01000000u) {
35472       GOOGLE_DCHECK(mvn_param_ != NULL);
35473       mvn_param_->Clear();
35474     }
35475     if (cached_has_bits & 0x02000000u) {
35476       GOOGLE_DCHECK(transform_param_ != NULL);
35477       transform_param_->Clear();
35478     }
35479     if (cached_has_bits & 0x04000000u) {
35480       GOOGLE_DCHECK(tanh_param_ != NULL);
35481       tanh_param_->Clear();
35482     }
35483     if (cached_has_bits & 0x08000000u) {
35484       GOOGLE_DCHECK(sigmoid_param_ != NULL);
35485       sigmoid_param_->Clear();
35486     }
35487     if (cached_has_bits & 0x10000000u) {
35488       GOOGLE_DCHECK(softmax_param_ != NULL);
35489       softmax_param_->Clear();
35490     }
35491     if (cached_has_bits & 0x20000000u) {
35492       GOOGLE_DCHECK(contrastive_loss_param_ != NULL);
35493       contrastive_loss_param_->Clear();
35494     }
35495     if (cached_has_bits & 0x40000000u) {
35496       GOOGLE_DCHECK(exp_param_ != NULL);
35497       exp_param_->Clear();
35498     }
35499     if (cached_has_bits & 0x80000000u) {
35500       GOOGLE_DCHECK(loss_param_ != NULL);
35501       loss_param_->Clear();
35502     }
35503   }
35504   type_ = 0;
35505   _has_bits_.Clear();
35506   _internal_metadata_.Clear();
35507 }
35508 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)35509 bool V1LayerParameter::MergePartialFromCodedStream(
35510     ::google::protobuf::io::CodedInputStream* input) {
35511 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
35512   ::google::protobuf::uint32 tag;
35513   // @@protoc_insertion_point(parse_start:opencv_caffe.V1LayerParameter)
35514   for (;;) {
35515     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
35516     tag = p.first;
35517     if (!p.second) goto handle_unusual;
35518     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
35519       // optional .opencv_caffe.V0LayerParameter layer = 1;
35520       case 1: {
35521         if (static_cast< ::google::protobuf::uint8>(tag) ==
35522             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
35523           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35524                input, mutable_layer()));
35525         } else {
35526           goto handle_unusual;
35527         }
35528         break;
35529       }
35530 
35531       // repeated string bottom = 2;
35532       case 2: {
35533         if (static_cast< ::google::protobuf::uint8>(tag) ==
35534             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
35535           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
35536                 input, this->add_bottom()));
35537           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
35538             this->bottom(this->bottom_size() - 1).data(),
35539             static_cast<int>(this->bottom(this->bottom_size() - 1).length()),
35540             ::google::protobuf::internal::WireFormat::PARSE,
35541             "opencv_caffe.V1LayerParameter.bottom");
35542         } else {
35543           goto handle_unusual;
35544         }
35545         break;
35546       }
35547 
35548       // repeated string top = 3;
35549       case 3: {
35550         if (static_cast< ::google::protobuf::uint8>(tag) ==
35551             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
35552           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
35553                 input, this->add_top()));
35554           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
35555             this->top(this->top_size() - 1).data(),
35556             static_cast<int>(this->top(this->top_size() - 1).length()),
35557             ::google::protobuf::internal::WireFormat::PARSE,
35558             "opencv_caffe.V1LayerParameter.top");
35559         } else {
35560           goto handle_unusual;
35561         }
35562         break;
35563       }
35564 
35565       // optional string name = 4;
35566       case 4: {
35567         if (static_cast< ::google::protobuf::uint8>(tag) ==
35568             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
35569           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
35570                 input, this->mutable_name()));
35571           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
35572             this->name().data(), static_cast<int>(this->name().length()),
35573             ::google::protobuf::internal::WireFormat::PARSE,
35574             "opencv_caffe.V1LayerParameter.name");
35575         } else {
35576           goto handle_unusual;
35577         }
35578         break;
35579       }
35580 
35581       // optional .opencv_caffe.V1LayerParameter.LayerType type = 5;
35582       case 5: {
35583         if (static_cast< ::google::protobuf::uint8>(tag) ==
35584             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
35585           int value;
35586           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
35587                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
35588                  input, &value)));
35589           if (::opencv_caffe::V1LayerParameter_LayerType_IsValid(value)) {
35590             set_type(static_cast< ::opencv_caffe::V1LayerParameter_LayerType >(value));
35591           } else {
35592             mutable_unknown_fields()->AddVarint(
35593                 5, static_cast< ::google::protobuf::uint64>(value));
35594           }
35595         } else {
35596           goto handle_unusual;
35597         }
35598         break;
35599       }
35600 
35601       // repeated .opencv_caffe.BlobProto blobs = 6;
35602       case 6: {
35603         if (static_cast< ::google::protobuf::uint8>(tag) ==
35604             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
35605           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_blobs()));
35606         } else {
35607           goto handle_unusual;
35608         }
35609         break;
35610       }
35611 
35612       // repeated float blobs_lr = 7;
35613       case 7: {
35614         if (static_cast< ::google::protobuf::uint8>(tag) ==
35615             static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
35616           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
35617                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
35618                  1, 61u, input, this->mutable_blobs_lr())));
35619         } else if (
35620             static_cast< ::google::protobuf::uint8>(tag) ==
35621             static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
35622           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
35623                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
35624                  input, this->mutable_blobs_lr())));
35625         } else {
35626           goto handle_unusual;
35627         }
35628         break;
35629       }
35630 
35631       // repeated float weight_decay = 8;
35632       case 8: {
35633         if (static_cast< ::google::protobuf::uint8>(tag) ==
35634             static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
35635           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
35636                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
35637                  1, 69u, input, this->mutable_weight_decay())));
35638         } else if (
35639             static_cast< ::google::protobuf::uint8>(tag) ==
35640             static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
35641           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
35642                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
35643                  input, this->mutable_weight_decay())));
35644         } else {
35645           goto handle_unusual;
35646         }
35647         break;
35648       }
35649 
35650       // optional .opencv_caffe.ConcatParameter concat_param = 9;
35651       case 9: {
35652         if (static_cast< ::google::protobuf::uint8>(tag) ==
35653             static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
35654           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35655                input, mutable_concat_param()));
35656         } else {
35657           goto handle_unusual;
35658         }
35659         break;
35660       }
35661 
35662       // optional .opencv_caffe.ConvolutionParameter convolution_param = 10;
35663       case 10: {
35664         if (static_cast< ::google::protobuf::uint8>(tag) ==
35665             static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
35666           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35667                input, mutable_convolution_param()));
35668         } else {
35669           goto handle_unusual;
35670         }
35671         break;
35672       }
35673 
35674       // optional .opencv_caffe.DataParameter data_param = 11;
35675       case 11: {
35676         if (static_cast< ::google::protobuf::uint8>(tag) ==
35677             static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
35678           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35679                input, mutable_data_param()));
35680         } else {
35681           goto handle_unusual;
35682         }
35683         break;
35684       }
35685 
35686       // optional .opencv_caffe.DropoutParameter dropout_param = 12;
35687       case 12: {
35688         if (static_cast< ::google::protobuf::uint8>(tag) ==
35689             static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
35690           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35691                input, mutable_dropout_param()));
35692         } else {
35693           goto handle_unusual;
35694         }
35695         break;
35696       }
35697 
35698       // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13;
35699       case 13: {
35700         if (static_cast< ::google::protobuf::uint8>(tag) ==
35701             static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
35702           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35703                input, mutable_hdf5_data_param()));
35704         } else {
35705           goto handle_unusual;
35706         }
35707         break;
35708       }
35709 
35710       // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14;
35711       case 14: {
35712         if (static_cast< ::google::protobuf::uint8>(tag) ==
35713             static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
35714           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35715                input, mutable_hdf5_output_param()));
35716         } else {
35717           goto handle_unusual;
35718         }
35719         break;
35720       }
35721 
35722       // optional .opencv_caffe.ImageDataParameter image_data_param = 15;
35723       case 15: {
35724         if (static_cast< ::google::protobuf::uint8>(tag) ==
35725             static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
35726           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35727                input, mutable_image_data_param()));
35728         } else {
35729           goto handle_unusual;
35730         }
35731         break;
35732       }
35733 
35734       // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16;
35735       case 16: {
35736         if (static_cast< ::google::protobuf::uint8>(tag) ==
35737             static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
35738           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35739                input, mutable_infogain_loss_param()));
35740         } else {
35741           goto handle_unusual;
35742         }
35743         break;
35744       }
35745 
35746       // optional .opencv_caffe.InnerProductParameter inner_product_param = 17;
35747       case 17: {
35748         if (static_cast< ::google::protobuf::uint8>(tag) ==
35749             static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
35750           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35751                input, mutable_inner_product_param()));
35752         } else {
35753           goto handle_unusual;
35754         }
35755         break;
35756       }
35757 
35758       // optional .opencv_caffe.LRNParameter lrn_param = 18;
35759       case 18: {
35760         if (static_cast< ::google::protobuf::uint8>(tag) ==
35761             static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
35762           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35763                input, mutable_lrn_param()));
35764         } else {
35765           goto handle_unusual;
35766         }
35767         break;
35768       }
35769 
35770       // optional .opencv_caffe.PoolingParameter pooling_param = 19;
35771       case 19: {
35772         if (static_cast< ::google::protobuf::uint8>(tag) ==
35773             static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
35774           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35775                input, mutable_pooling_param()));
35776         } else {
35777           goto handle_unusual;
35778         }
35779         break;
35780       }
35781 
35782       // optional .opencv_caffe.WindowDataParameter window_data_param = 20;
35783       case 20: {
35784         if (static_cast< ::google::protobuf::uint8>(tag) ==
35785             static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
35786           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35787                input, mutable_window_data_param()));
35788         } else {
35789           goto handle_unusual;
35790         }
35791         break;
35792       }
35793 
35794       // optional .opencv_caffe.PowerParameter power_param = 21;
35795       case 21: {
35796         if (static_cast< ::google::protobuf::uint8>(tag) ==
35797             static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
35798           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35799                input, mutable_power_param()));
35800         } else {
35801           goto handle_unusual;
35802         }
35803         break;
35804       }
35805 
35806       // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22;
35807       case 22: {
35808         if (static_cast< ::google::protobuf::uint8>(tag) ==
35809             static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
35810           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35811                input, mutable_memory_data_param()));
35812         } else {
35813           goto handle_unusual;
35814         }
35815         break;
35816       }
35817 
35818       // optional .opencv_caffe.ArgMaxParameter argmax_param = 23;
35819       case 23: {
35820         if (static_cast< ::google::protobuf::uint8>(tag) ==
35821             static_cast< ::google::protobuf::uint8>(186u /* 186 & 0xFF */)) {
35822           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35823                input, mutable_argmax_param()));
35824         } else {
35825           goto handle_unusual;
35826         }
35827         break;
35828       }
35829 
35830       // optional .opencv_caffe.EltwiseParameter eltwise_param = 24;
35831       case 24: {
35832         if (static_cast< ::google::protobuf::uint8>(tag) ==
35833             static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
35834           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35835                input, mutable_eltwise_param()));
35836         } else {
35837           goto handle_unusual;
35838         }
35839         break;
35840       }
35841 
35842       // optional .opencv_caffe.ThresholdParameter threshold_param = 25;
35843       case 25: {
35844         if (static_cast< ::google::protobuf::uint8>(tag) ==
35845             static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) {
35846           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35847                input, mutable_threshold_param()));
35848         } else {
35849           goto handle_unusual;
35850         }
35851         break;
35852       }
35853 
35854       // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26;
35855       case 26: {
35856         if (static_cast< ::google::protobuf::uint8>(tag) ==
35857             static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) {
35858           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35859                input, mutable_dummy_data_param()));
35860         } else {
35861           goto handle_unusual;
35862         }
35863         break;
35864       }
35865 
35866       // optional .opencv_caffe.AccuracyParameter accuracy_param = 27;
35867       case 27: {
35868         if (static_cast< ::google::protobuf::uint8>(tag) ==
35869             static_cast< ::google::protobuf::uint8>(218u /* 218 & 0xFF */)) {
35870           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35871                input, mutable_accuracy_param()));
35872         } else {
35873           goto handle_unusual;
35874         }
35875         break;
35876       }
35877 
35878       // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29;
35879       case 29: {
35880         if (static_cast< ::google::protobuf::uint8>(tag) ==
35881             static_cast< ::google::protobuf::uint8>(234u /* 234 & 0xFF */)) {
35882           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35883                input, mutable_hinge_loss_param()));
35884         } else {
35885           goto handle_unusual;
35886         }
35887         break;
35888       }
35889 
35890       // optional .opencv_caffe.ReLUParameter relu_param = 30;
35891       case 30: {
35892         if (static_cast< ::google::protobuf::uint8>(tag) ==
35893             static_cast< ::google::protobuf::uint8>(242u /* 242 & 0xFF */)) {
35894           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35895                input, mutable_relu_param()));
35896         } else {
35897           goto handle_unusual;
35898         }
35899         break;
35900       }
35901 
35902       // optional .opencv_caffe.SliceParameter slice_param = 31;
35903       case 31: {
35904         if (static_cast< ::google::protobuf::uint8>(tag) ==
35905             static_cast< ::google::protobuf::uint8>(250u /* 250 & 0xFF */)) {
35906           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35907                input, mutable_slice_param()));
35908         } else {
35909           goto handle_unusual;
35910         }
35911         break;
35912       }
35913 
35914       // repeated .opencv_caffe.NetStateRule include = 32;
35915       case 32: {
35916         if (static_cast< ::google::protobuf::uint8>(tag) ==
35917             static_cast< ::google::protobuf::uint8>(2u /* 258 & 0xFF */)) {
35918           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_include()));
35919         } else {
35920           goto handle_unusual;
35921         }
35922         break;
35923       }
35924 
35925       // repeated .opencv_caffe.NetStateRule exclude = 33;
35926       case 33: {
35927         if (static_cast< ::google::protobuf::uint8>(tag) ==
35928             static_cast< ::google::protobuf::uint8>(10u /* 266 & 0xFF */)) {
35929           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_exclude()));
35930         } else {
35931           goto handle_unusual;
35932         }
35933         break;
35934       }
35935 
35936       // optional .opencv_caffe.MVNParameter mvn_param = 34;
35937       case 34: {
35938         if (static_cast< ::google::protobuf::uint8>(tag) ==
35939             static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) {
35940           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35941                input, mutable_mvn_param()));
35942         } else {
35943           goto handle_unusual;
35944         }
35945         break;
35946       }
35947 
35948       // repeated float loss_weight = 35;
35949       case 35: {
35950         if (static_cast< ::google::protobuf::uint8>(tag) ==
35951             static_cast< ::google::protobuf::uint8>(29u /* 285 & 0xFF */)) {
35952           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
35953                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
35954                  2, 285u, input, this->mutable_loss_weight())));
35955         } else if (
35956             static_cast< ::google::protobuf::uint8>(tag) ==
35957             static_cast< ::google::protobuf::uint8>(26u /* 282 & 0xFF */)) {
35958           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
35959                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
35960                  input, this->mutable_loss_weight())));
35961         } else {
35962           goto handle_unusual;
35963         }
35964         break;
35965       }
35966 
35967       // optional .opencv_caffe.TransformationParameter transform_param = 36;
35968       case 36: {
35969         if (static_cast< ::google::protobuf::uint8>(tag) ==
35970             static_cast< ::google::protobuf::uint8>(34u /* 290 & 0xFF */)) {
35971           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35972                input, mutable_transform_param()));
35973         } else {
35974           goto handle_unusual;
35975         }
35976         break;
35977       }
35978 
35979       // optional .opencv_caffe.TanHParameter tanh_param = 37;
35980       case 37: {
35981         if (static_cast< ::google::protobuf::uint8>(tag) ==
35982             static_cast< ::google::protobuf::uint8>(42u /* 298 & 0xFF */)) {
35983           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35984                input, mutable_tanh_param()));
35985         } else {
35986           goto handle_unusual;
35987         }
35988         break;
35989       }
35990 
35991       // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38;
35992       case 38: {
35993         if (static_cast< ::google::protobuf::uint8>(tag) ==
35994             static_cast< ::google::protobuf::uint8>(50u /* 306 & 0xFF */)) {
35995           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
35996                input, mutable_sigmoid_param()));
35997         } else {
35998           goto handle_unusual;
35999         }
36000         break;
36001       }
36002 
36003       // optional .opencv_caffe.SoftmaxParameter softmax_param = 39;
36004       case 39: {
36005         if (static_cast< ::google::protobuf::uint8>(tag) ==
36006             static_cast< ::google::protobuf::uint8>(58u /* 314 & 0xFF */)) {
36007           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
36008                input, mutable_softmax_param()));
36009         } else {
36010           goto handle_unusual;
36011         }
36012         break;
36013       }
36014 
36015       // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40;
36016       case 40: {
36017         if (static_cast< ::google::protobuf::uint8>(tag) ==
36018             static_cast< ::google::protobuf::uint8>(66u /* 322 & 0xFF */)) {
36019           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
36020                input, mutable_contrastive_loss_param()));
36021         } else {
36022           goto handle_unusual;
36023         }
36024         break;
36025       }
36026 
36027       // optional .opencv_caffe.ExpParameter exp_param = 41;
36028       case 41: {
36029         if (static_cast< ::google::protobuf::uint8>(tag) ==
36030             static_cast< ::google::protobuf::uint8>(74u /* 330 & 0xFF */)) {
36031           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
36032                input, mutable_exp_param()));
36033         } else {
36034           goto handle_unusual;
36035         }
36036         break;
36037       }
36038 
36039       // optional .opencv_caffe.LossParameter loss_param = 42;
36040       case 42: {
36041         if (static_cast< ::google::protobuf::uint8>(tag) ==
36042             static_cast< ::google::protobuf::uint8>(82u /* 338 & 0xFF */)) {
36043           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
36044                input, mutable_loss_param()));
36045         } else {
36046           goto handle_unusual;
36047         }
36048         break;
36049       }
36050 
36051       // repeated string param = 1001;
36052       case 1001: {
36053         if (static_cast< ::google::protobuf::uint8>(tag) ==
36054             static_cast< ::google::protobuf::uint8>(74u /* 8010 & 0xFF */)) {
36055           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
36056                 input, this->add_param()));
36057           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36058             this->param(this->param_size() - 1).data(),
36059             static_cast<int>(this->param(this->param_size() - 1).length()),
36060             ::google::protobuf::internal::WireFormat::PARSE,
36061             "opencv_caffe.V1LayerParameter.param");
36062         } else {
36063           goto handle_unusual;
36064         }
36065         break;
36066       }
36067 
36068       // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002;
36069       case 1002: {
36070         if (static_cast< ::google::protobuf::uint8>(tag) ==
36071             static_cast< ::google::protobuf::uint8>(80u /* 8016 & 0xFF */)) {
36072           int value;
36073           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
36074                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
36075                  input, &value)));
36076           if (::opencv_caffe::V1LayerParameter_DimCheckMode_IsValid(value)) {
36077             add_blob_share_mode(static_cast< ::opencv_caffe::V1LayerParameter_DimCheckMode >(value));
36078           } else {
36079             mutable_unknown_fields()->AddVarint(
36080                 1002, static_cast< ::google::protobuf::uint64>(value));
36081           }
36082         } else if (
36083             static_cast< ::google::protobuf::uint8>(tag) ==
36084             static_cast< ::google::protobuf::uint8>(82u /* 8018 & 0xFF */)) {
36085           DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
36086                  input,
36087                  1002,
36088                  ::opencv_caffe::V1LayerParameter_DimCheckMode_IsValid,
36089                  mutable_unknown_fields(),
36090                  this->mutable_blob_share_mode())));
36091         } else {
36092           goto handle_unusual;
36093         }
36094         break;
36095       }
36096 
36097       default: {
36098       handle_unusual:
36099         if (tag == 0) {
36100           goto success;
36101         }
36102         DO_(::google::protobuf::internal::WireFormat::SkipField(
36103               input, tag, _internal_metadata_.mutable_unknown_fields()));
36104         break;
36105       }
36106     }
36107   }
36108 success:
36109   // @@protoc_insertion_point(parse_success:opencv_caffe.V1LayerParameter)
36110   return true;
36111 failure:
36112   // @@protoc_insertion_point(parse_failure:opencv_caffe.V1LayerParameter)
36113   return false;
36114 #undef DO_
36115 }
36116 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const36117 void V1LayerParameter::SerializeWithCachedSizes(
36118     ::google::protobuf::io::CodedOutputStream* output) const {
36119   // @@protoc_insertion_point(serialize_start:opencv_caffe.V1LayerParameter)
36120   ::google::protobuf::uint32 cached_has_bits = 0;
36121   (void) cached_has_bits;
36122 
36123   cached_has_bits = _has_bits_[0];
36124   // optional .opencv_caffe.V0LayerParameter layer = 1;
36125   if (cached_has_bits & 0x00000002u) {
36126     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36127       1, *this->layer_, output);
36128   }
36129 
36130   // repeated string bottom = 2;
36131   for (int i = 0, n = this->bottom_size(); i < n; i++) {
36132     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36133       this->bottom(i).data(), static_cast<int>(this->bottom(i).length()),
36134       ::google::protobuf::internal::WireFormat::SERIALIZE,
36135       "opencv_caffe.V1LayerParameter.bottom");
36136     ::google::protobuf::internal::WireFormatLite::WriteString(
36137       2, this->bottom(i), output);
36138   }
36139 
36140   // repeated string top = 3;
36141   for (int i = 0, n = this->top_size(); i < n; i++) {
36142     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36143       this->top(i).data(), static_cast<int>(this->top(i).length()),
36144       ::google::protobuf::internal::WireFormat::SERIALIZE,
36145       "opencv_caffe.V1LayerParameter.top");
36146     ::google::protobuf::internal::WireFormatLite::WriteString(
36147       3, this->top(i), output);
36148   }
36149 
36150   // optional string name = 4;
36151   if (cached_has_bits & 0x00000001u) {
36152     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36153       this->name().data(), static_cast<int>(this->name().length()),
36154       ::google::protobuf::internal::WireFormat::SERIALIZE,
36155       "opencv_caffe.V1LayerParameter.name");
36156     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
36157       4, this->name(), output);
36158   }
36159 
36160   cached_has_bits = _has_bits_[1];
36161   // optional .opencv_caffe.V1LayerParameter.LayerType type = 5;
36162   if (cached_has_bits & 0x00000001u) {
36163     ::google::protobuf::internal::WireFormatLite::WriteEnum(
36164       5, this->type(), output);
36165   }
36166 
36167   // repeated .opencv_caffe.BlobProto blobs = 6;
36168   for (unsigned int i = 0,
36169       n = static_cast<unsigned int>(this->blobs_size()); i < n; i++) {
36170     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36171       6, this->blobs(static_cast<int>(i)), output);
36172   }
36173 
36174   // repeated float blobs_lr = 7;
36175   for (int i = 0, n = this->blobs_lr_size(); i < n; i++) {
36176     ::google::protobuf::internal::WireFormatLite::WriteFloat(
36177       7, this->blobs_lr(i), output);
36178   }
36179 
36180   // repeated float weight_decay = 8;
36181   for (int i = 0, n = this->weight_decay_size(); i < n; i++) {
36182     ::google::protobuf::internal::WireFormatLite::WriteFloat(
36183       8, this->weight_decay(i), output);
36184   }
36185 
36186   cached_has_bits = _has_bits_[0];
36187   // optional .opencv_caffe.ConcatParameter concat_param = 9;
36188   if (cached_has_bits & 0x00000004u) {
36189     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36190       9, *this->concat_param_, output);
36191   }
36192 
36193   // optional .opencv_caffe.ConvolutionParameter convolution_param = 10;
36194   if (cached_has_bits & 0x00000008u) {
36195     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36196       10, *this->convolution_param_, output);
36197   }
36198 
36199   // optional .opencv_caffe.DataParameter data_param = 11;
36200   if (cached_has_bits & 0x00000010u) {
36201     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36202       11, *this->data_param_, output);
36203   }
36204 
36205   // optional .opencv_caffe.DropoutParameter dropout_param = 12;
36206   if (cached_has_bits & 0x00000020u) {
36207     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36208       12, *this->dropout_param_, output);
36209   }
36210 
36211   // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13;
36212   if (cached_has_bits & 0x00000040u) {
36213     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36214       13, *this->hdf5_data_param_, output);
36215   }
36216 
36217   // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14;
36218   if (cached_has_bits & 0x00000080u) {
36219     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36220       14, *this->hdf5_output_param_, output);
36221   }
36222 
36223   // optional .opencv_caffe.ImageDataParameter image_data_param = 15;
36224   if (cached_has_bits & 0x00000100u) {
36225     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36226       15, *this->image_data_param_, output);
36227   }
36228 
36229   // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16;
36230   if (cached_has_bits & 0x00000200u) {
36231     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36232       16, *this->infogain_loss_param_, output);
36233   }
36234 
36235   // optional .opencv_caffe.InnerProductParameter inner_product_param = 17;
36236   if (cached_has_bits & 0x00000400u) {
36237     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36238       17, *this->inner_product_param_, output);
36239   }
36240 
36241   // optional .opencv_caffe.LRNParameter lrn_param = 18;
36242   if (cached_has_bits & 0x00000800u) {
36243     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36244       18, *this->lrn_param_, output);
36245   }
36246 
36247   // optional .opencv_caffe.PoolingParameter pooling_param = 19;
36248   if (cached_has_bits & 0x00001000u) {
36249     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36250       19, *this->pooling_param_, output);
36251   }
36252 
36253   // optional .opencv_caffe.WindowDataParameter window_data_param = 20;
36254   if (cached_has_bits & 0x00002000u) {
36255     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36256       20, *this->window_data_param_, output);
36257   }
36258 
36259   // optional .opencv_caffe.PowerParameter power_param = 21;
36260   if (cached_has_bits & 0x00004000u) {
36261     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36262       21, *this->power_param_, output);
36263   }
36264 
36265   // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22;
36266   if (cached_has_bits & 0x00008000u) {
36267     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36268       22, *this->memory_data_param_, output);
36269   }
36270 
36271   // optional .opencv_caffe.ArgMaxParameter argmax_param = 23;
36272   if (cached_has_bits & 0x00010000u) {
36273     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36274       23, *this->argmax_param_, output);
36275   }
36276 
36277   // optional .opencv_caffe.EltwiseParameter eltwise_param = 24;
36278   if (cached_has_bits & 0x00020000u) {
36279     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36280       24, *this->eltwise_param_, output);
36281   }
36282 
36283   // optional .opencv_caffe.ThresholdParameter threshold_param = 25;
36284   if (cached_has_bits & 0x00040000u) {
36285     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36286       25, *this->threshold_param_, output);
36287   }
36288 
36289   // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26;
36290   if (cached_has_bits & 0x00080000u) {
36291     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36292       26, *this->dummy_data_param_, output);
36293   }
36294 
36295   // optional .opencv_caffe.AccuracyParameter accuracy_param = 27;
36296   if (cached_has_bits & 0x00100000u) {
36297     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36298       27, *this->accuracy_param_, output);
36299   }
36300 
36301   // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29;
36302   if (cached_has_bits & 0x00200000u) {
36303     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36304       29, *this->hinge_loss_param_, output);
36305   }
36306 
36307   // optional .opencv_caffe.ReLUParameter relu_param = 30;
36308   if (cached_has_bits & 0x00400000u) {
36309     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36310       30, *this->relu_param_, output);
36311   }
36312 
36313   // optional .opencv_caffe.SliceParameter slice_param = 31;
36314   if (cached_has_bits & 0x00800000u) {
36315     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36316       31, *this->slice_param_, output);
36317   }
36318 
36319   // repeated .opencv_caffe.NetStateRule include = 32;
36320   for (unsigned int i = 0,
36321       n = static_cast<unsigned int>(this->include_size()); i < n; i++) {
36322     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36323       32, this->include(static_cast<int>(i)), output);
36324   }
36325 
36326   // repeated .opencv_caffe.NetStateRule exclude = 33;
36327   for (unsigned int i = 0,
36328       n = static_cast<unsigned int>(this->exclude_size()); i < n; i++) {
36329     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36330       33, this->exclude(static_cast<int>(i)), output);
36331   }
36332 
36333   // optional .opencv_caffe.MVNParameter mvn_param = 34;
36334   if (cached_has_bits & 0x01000000u) {
36335     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36336       34, *this->mvn_param_, output);
36337   }
36338 
36339   // repeated float loss_weight = 35;
36340   for (int i = 0, n = this->loss_weight_size(); i < n; i++) {
36341     ::google::protobuf::internal::WireFormatLite::WriteFloat(
36342       35, this->loss_weight(i), output);
36343   }
36344 
36345   // optional .opencv_caffe.TransformationParameter transform_param = 36;
36346   if (cached_has_bits & 0x02000000u) {
36347     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36348       36, *this->transform_param_, output);
36349   }
36350 
36351   // optional .opencv_caffe.TanHParameter tanh_param = 37;
36352   if (cached_has_bits & 0x04000000u) {
36353     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36354       37, *this->tanh_param_, output);
36355   }
36356 
36357   // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38;
36358   if (cached_has_bits & 0x08000000u) {
36359     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36360       38, *this->sigmoid_param_, output);
36361   }
36362 
36363   // optional .opencv_caffe.SoftmaxParameter softmax_param = 39;
36364   if (cached_has_bits & 0x10000000u) {
36365     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36366       39, *this->softmax_param_, output);
36367   }
36368 
36369   // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40;
36370   if (cached_has_bits & 0x20000000u) {
36371     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36372       40, *this->contrastive_loss_param_, output);
36373   }
36374 
36375   // optional .opencv_caffe.ExpParameter exp_param = 41;
36376   if (cached_has_bits & 0x40000000u) {
36377     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36378       41, *this->exp_param_, output);
36379   }
36380 
36381   // optional .opencv_caffe.LossParameter loss_param = 42;
36382   if (cached_has_bits & 0x80000000u) {
36383     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36384       42, *this->loss_param_, output);
36385   }
36386 
36387   // repeated string param = 1001;
36388   for (int i = 0, n = this->param_size(); i < n; i++) {
36389     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36390       this->param(i).data(), static_cast<int>(this->param(i).length()),
36391       ::google::protobuf::internal::WireFormat::SERIALIZE,
36392       "opencv_caffe.V1LayerParameter.param");
36393     ::google::protobuf::internal::WireFormatLite::WriteString(
36394       1001, this->param(i), output);
36395   }
36396 
36397   // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002;
36398   for (int i = 0, n = this->blob_share_mode_size(); i < n; i++) {
36399     ::google::protobuf::internal::WireFormatLite::WriteEnum(
36400       1002, this->blob_share_mode(i), output);
36401   }
36402 
36403   if (_internal_metadata_.have_unknown_fields()) {
36404     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
36405         _internal_metadata_.unknown_fields(), output);
36406   }
36407   // @@protoc_insertion_point(serialize_end:opencv_caffe.V1LayerParameter)
36408 }
36409 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const36410 ::google::protobuf::uint8* V1LayerParameter::InternalSerializeWithCachedSizesToArray(
36411     bool deterministic, ::google::protobuf::uint8* target) const {
36412   (void)deterministic; // Unused
36413   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.V1LayerParameter)
36414   ::google::protobuf::uint32 cached_has_bits = 0;
36415   (void) cached_has_bits;
36416 
36417   cached_has_bits = _has_bits_[0];
36418   // optional .opencv_caffe.V0LayerParameter layer = 1;
36419   if (cached_has_bits & 0x00000002u) {
36420     target = ::google::protobuf::internal::WireFormatLite::
36421       InternalWriteMessageToArray(
36422         1, *this->layer_, deterministic, target);
36423   }
36424 
36425   // repeated string bottom = 2;
36426   for (int i = 0, n = this->bottom_size(); i < n; i++) {
36427     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36428       this->bottom(i).data(), static_cast<int>(this->bottom(i).length()),
36429       ::google::protobuf::internal::WireFormat::SERIALIZE,
36430       "opencv_caffe.V1LayerParameter.bottom");
36431     target = ::google::protobuf::internal::WireFormatLite::
36432       WriteStringToArray(2, this->bottom(i), target);
36433   }
36434 
36435   // repeated string top = 3;
36436   for (int i = 0, n = this->top_size(); i < n; i++) {
36437     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36438       this->top(i).data(), static_cast<int>(this->top(i).length()),
36439       ::google::protobuf::internal::WireFormat::SERIALIZE,
36440       "opencv_caffe.V1LayerParameter.top");
36441     target = ::google::protobuf::internal::WireFormatLite::
36442       WriteStringToArray(3, this->top(i), target);
36443   }
36444 
36445   // optional string name = 4;
36446   if (cached_has_bits & 0x00000001u) {
36447     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36448       this->name().data(), static_cast<int>(this->name().length()),
36449       ::google::protobuf::internal::WireFormat::SERIALIZE,
36450       "opencv_caffe.V1LayerParameter.name");
36451     target =
36452       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
36453         4, this->name(), target);
36454   }
36455 
36456   cached_has_bits = _has_bits_[1];
36457   // optional .opencv_caffe.V1LayerParameter.LayerType type = 5;
36458   if (cached_has_bits & 0x00000001u) {
36459     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
36460       5, this->type(), target);
36461   }
36462 
36463   // repeated .opencv_caffe.BlobProto blobs = 6;
36464   for (unsigned int i = 0,
36465       n = static_cast<unsigned int>(this->blobs_size()); i < n; i++) {
36466     target = ::google::protobuf::internal::WireFormatLite::
36467       InternalWriteMessageToArray(
36468         6, this->blobs(static_cast<int>(i)), deterministic, target);
36469   }
36470 
36471   // repeated float blobs_lr = 7;
36472   target = ::google::protobuf::internal::WireFormatLite::
36473     WriteFloatToArray(7, this->blobs_lr_, target);
36474 
36475   // repeated float weight_decay = 8;
36476   target = ::google::protobuf::internal::WireFormatLite::
36477     WriteFloatToArray(8, this->weight_decay_, target);
36478 
36479   cached_has_bits = _has_bits_[0];
36480   // optional .opencv_caffe.ConcatParameter concat_param = 9;
36481   if (cached_has_bits & 0x00000004u) {
36482     target = ::google::protobuf::internal::WireFormatLite::
36483       InternalWriteMessageToArray(
36484         9, *this->concat_param_, deterministic, target);
36485   }
36486 
36487   // optional .opencv_caffe.ConvolutionParameter convolution_param = 10;
36488   if (cached_has_bits & 0x00000008u) {
36489     target = ::google::protobuf::internal::WireFormatLite::
36490       InternalWriteMessageToArray(
36491         10, *this->convolution_param_, deterministic, target);
36492   }
36493 
36494   // optional .opencv_caffe.DataParameter data_param = 11;
36495   if (cached_has_bits & 0x00000010u) {
36496     target = ::google::protobuf::internal::WireFormatLite::
36497       InternalWriteMessageToArray(
36498         11, *this->data_param_, deterministic, target);
36499   }
36500 
36501   // optional .opencv_caffe.DropoutParameter dropout_param = 12;
36502   if (cached_has_bits & 0x00000020u) {
36503     target = ::google::protobuf::internal::WireFormatLite::
36504       InternalWriteMessageToArray(
36505         12, *this->dropout_param_, deterministic, target);
36506   }
36507 
36508   // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13;
36509   if (cached_has_bits & 0x00000040u) {
36510     target = ::google::protobuf::internal::WireFormatLite::
36511       InternalWriteMessageToArray(
36512         13, *this->hdf5_data_param_, deterministic, target);
36513   }
36514 
36515   // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14;
36516   if (cached_has_bits & 0x00000080u) {
36517     target = ::google::protobuf::internal::WireFormatLite::
36518       InternalWriteMessageToArray(
36519         14, *this->hdf5_output_param_, deterministic, target);
36520   }
36521 
36522   // optional .opencv_caffe.ImageDataParameter image_data_param = 15;
36523   if (cached_has_bits & 0x00000100u) {
36524     target = ::google::protobuf::internal::WireFormatLite::
36525       InternalWriteMessageToArray(
36526         15, *this->image_data_param_, deterministic, target);
36527   }
36528 
36529   // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16;
36530   if (cached_has_bits & 0x00000200u) {
36531     target = ::google::protobuf::internal::WireFormatLite::
36532       InternalWriteMessageToArray(
36533         16, *this->infogain_loss_param_, deterministic, target);
36534   }
36535 
36536   // optional .opencv_caffe.InnerProductParameter inner_product_param = 17;
36537   if (cached_has_bits & 0x00000400u) {
36538     target = ::google::protobuf::internal::WireFormatLite::
36539       InternalWriteMessageToArray(
36540         17, *this->inner_product_param_, deterministic, target);
36541   }
36542 
36543   // optional .opencv_caffe.LRNParameter lrn_param = 18;
36544   if (cached_has_bits & 0x00000800u) {
36545     target = ::google::protobuf::internal::WireFormatLite::
36546       InternalWriteMessageToArray(
36547         18, *this->lrn_param_, deterministic, target);
36548   }
36549 
36550   // optional .opencv_caffe.PoolingParameter pooling_param = 19;
36551   if (cached_has_bits & 0x00001000u) {
36552     target = ::google::protobuf::internal::WireFormatLite::
36553       InternalWriteMessageToArray(
36554         19, *this->pooling_param_, deterministic, target);
36555   }
36556 
36557   // optional .opencv_caffe.WindowDataParameter window_data_param = 20;
36558   if (cached_has_bits & 0x00002000u) {
36559     target = ::google::protobuf::internal::WireFormatLite::
36560       InternalWriteMessageToArray(
36561         20, *this->window_data_param_, deterministic, target);
36562   }
36563 
36564   // optional .opencv_caffe.PowerParameter power_param = 21;
36565   if (cached_has_bits & 0x00004000u) {
36566     target = ::google::protobuf::internal::WireFormatLite::
36567       InternalWriteMessageToArray(
36568         21, *this->power_param_, deterministic, target);
36569   }
36570 
36571   // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22;
36572   if (cached_has_bits & 0x00008000u) {
36573     target = ::google::protobuf::internal::WireFormatLite::
36574       InternalWriteMessageToArray(
36575         22, *this->memory_data_param_, deterministic, target);
36576   }
36577 
36578   // optional .opencv_caffe.ArgMaxParameter argmax_param = 23;
36579   if (cached_has_bits & 0x00010000u) {
36580     target = ::google::protobuf::internal::WireFormatLite::
36581       InternalWriteMessageToArray(
36582         23, *this->argmax_param_, deterministic, target);
36583   }
36584 
36585   // optional .opencv_caffe.EltwiseParameter eltwise_param = 24;
36586   if (cached_has_bits & 0x00020000u) {
36587     target = ::google::protobuf::internal::WireFormatLite::
36588       InternalWriteMessageToArray(
36589         24, *this->eltwise_param_, deterministic, target);
36590   }
36591 
36592   // optional .opencv_caffe.ThresholdParameter threshold_param = 25;
36593   if (cached_has_bits & 0x00040000u) {
36594     target = ::google::protobuf::internal::WireFormatLite::
36595       InternalWriteMessageToArray(
36596         25, *this->threshold_param_, deterministic, target);
36597   }
36598 
36599   // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26;
36600   if (cached_has_bits & 0x00080000u) {
36601     target = ::google::protobuf::internal::WireFormatLite::
36602       InternalWriteMessageToArray(
36603         26, *this->dummy_data_param_, deterministic, target);
36604   }
36605 
36606   // optional .opencv_caffe.AccuracyParameter accuracy_param = 27;
36607   if (cached_has_bits & 0x00100000u) {
36608     target = ::google::protobuf::internal::WireFormatLite::
36609       InternalWriteMessageToArray(
36610         27, *this->accuracy_param_, deterministic, target);
36611   }
36612 
36613   // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29;
36614   if (cached_has_bits & 0x00200000u) {
36615     target = ::google::protobuf::internal::WireFormatLite::
36616       InternalWriteMessageToArray(
36617         29, *this->hinge_loss_param_, deterministic, target);
36618   }
36619 
36620   // optional .opencv_caffe.ReLUParameter relu_param = 30;
36621   if (cached_has_bits & 0x00400000u) {
36622     target = ::google::protobuf::internal::WireFormatLite::
36623       InternalWriteMessageToArray(
36624         30, *this->relu_param_, deterministic, target);
36625   }
36626 
36627   // optional .opencv_caffe.SliceParameter slice_param = 31;
36628   if (cached_has_bits & 0x00800000u) {
36629     target = ::google::protobuf::internal::WireFormatLite::
36630       InternalWriteMessageToArray(
36631         31, *this->slice_param_, deterministic, target);
36632   }
36633 
36634   // repeated .opencv_caffe.NetStateRule include = 32;
36635   for (unsigned int i = 0,
36636       n = static_cast<unsigned int>(this->include_size()); i < n; i++) {
36637     target = ::google::protobuf::internal::WireFormatLite::
36638       InternalWriteMessageToArray(
36639         32, this->include(static_cast<int>(i)), deterministic, target);
36640   }
36641 
36642   // repeated .opencv_caffe.NetStateRule exclude = 33;
36643   for (unsigned int i = 0,
36644       n = static_cast<unsigned int>(this->exclude_size()); i < n; i++) {
36645     target = ::google::protobuf::internal::WireFormatLite::
36646       InternalWriteMessageToArray(
36647         33, this->exclude(static_cast<int>(i)), deterministic, target);
36648   }
36649 
36650   // optional .opencv_caffe.MVNParameter mvn_param = 34;
36651   if (cached_has_bits & 0x01000000u) {
36652     target = ::google::protobuf::internal::WireFormatLite::
36653       InternalWriteMessageToArray(
36654         34, *this->mvn_param_, deterministic, target);
36655   }
36656 
36657   // repeated float loss_weight = 35;
36658   target = ::google::protobuf::internal::WireFormatLite::
36659     WriteFloatToArray(35, this->loss_weight_, target);
36660 
36661   // optional .opencv_caffe.TransformationParameter transform_param = 36;
36662   if (cached_has_bits & 0x02000000u) {
36663     target = ::google::protobuf::internal::WireFormatLite::
36664       InternalWriteMessageToArray(
36665         36, *this->transform_param_, deterministic, target);
36666   }
36667 
36668   // optional .opencv_caffe.TanHParameter tanh_param = 37;
36669   if (cached_has_bits & 0x04000000u) {
36670     target = ::google::protobuf::internal::WireFormatLite::
36671       InternalWriteMessageToArray(
36672         37, *this->tanh_param_, deterministic, target);
36673   }
36674 
36675   // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38;
36676   if (cached_has_bits & 0x08000000u) {
36677     target = ::google::protobuf::internal::WireFormatLite::
36678       InternalWriteMessageToArray(
36679         38, *this->sigmoid_param_, deterministic, target);
36680   }
36681 
36682   // optional .opencv_caffe.SoftmaxParameter softmax_param = 39;
36683   if (cached_has_bits & 0x10000000u) {
36684     target = ::google::protobuf::internal::WireFormatLite::
36685       InternalWriteMessageToArray(
36686         39, *this->softmax_param_, deterministic, target);
36687   }
36688 
36689   // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40;
36690   if (cached_has_bits & 0x20000000u) {
36691     target = ::google::protobuf::internal::WireFormatLite::
36692       InternalWriteMessageToArray(
36693         40, *this->contrastive_loss_param_, deterministic, target);
36694   }
36695 
36696   // optional .opencv_caffe.ExpParameter exp_param = 41;
36697   if (cached_has_bits & 0x40000000u) {
36698     target = ::google::protobuf::internal::WireFormatLite::
36699       InternalWriteMessageToArray(
36700         41, *this->exp_param_, deterministic, target);
36701   }
36702 
36703   // optional .opencv_caffe.LossParameter loss_param = 42;
36704   if (cached_has_bits & 0x80000000u) {
36705     target = ::google::protobuf::internal::WireFormatLite::
36706       InternalWriteMessageToArray(
36707         42, *this->loss_param_, deterministic, target);
36708   }
36709 
36710   // repeated string param = 1001;
36711   for (int i = 0, n = this->param_size(); i < n; i++) {
36712     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
36713       this->param(i).data(), static_cast<int>(this->param(i).length()),
36714       ::google::protobuf::internal::WireFormat::SERIALIZE,
36715       "opencv_caffe.V1LayerParameter.param");
36716     target = ::google::protobuf::internal::WireFormatLite::
36717       WriteStringToArray(1001, this->param(i), target);
36718   }
36719 
36720   // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002;
36721   target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
36722     1002, this->blob_share_mode_, target);
36723 
36724   if (_internal_metadata_.have_unknown_fields()) {
36725     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
36726         _internal_metadata_.unknown_fields(), target);
36727   }
36728   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.V1LayerParameter)
36729   return target;
36730 }
36731 
ByteSizeLong() const36732 size_t V1LayerParameter::ByteSizeLong() const {
36733 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.V1LayerParameter)
36734   size_t total_size = 0;
36735 
36736   if (_internal_metadata_.have_unknown_fields()) {
36737     total_size +=
36738       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
36739         _internal_metadata_.unknown_fields());
36740   }
36741   // repeated string bottom = 2;
36742   total_size += 1 *
36743       ::google::protobuf::internal::FromIntSize(this->bottom_size());
36744   for (int i = 0, n = this->bottom_size(); i < n; i++) {
36745     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
36746       this->bottom(i));
36747   }
36748 
36749   // repeated string top = 3;
36750   total_size += 1 *
36751       ::google::protobuf::internal::FromIntSize(this->top_size());
36752   for (int i = 0, n = this->top_size(); i < n; i++) {
36753     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
36754       this->top(i));
36755   }
36756 
36757   // repeated .opencv_caffe.BlobProto blobs = 6;
36758   {
36759     unsigned int count = static_cast<unsigned int>(this->blobs_size());
36760     total_size += 1UL * count;
36761     for (unsigned int i = 0; i < count; i++) {
36762       total_size +=
36763         ::google::protobuf::internal::WireFormatLite::MessageSize(
36764           this->blobs(static_cast<int>(i)));
36765     }
36766   }
36767 
36768   // repeated float blobs_lr = 7;
36769   {
36770     unsigned int count = static_cast<unsigned int>(this->blobs_lr_size());
36771     size_t data_size = 4UL * count;
36772     total_size += 1 *
36773                   ::google::protobuf::internal::FromIntSize(this->blobs_lr_size());
36774     total_size += data_size;
36775   }
36776 
36777   // repeated float weight_decay = 8;
36778   {
36779     unsigned int count = static_cast<unsigned int>(this->weight_decay_size());
36780     size_t data_size = 4UL * count;
36781     total_size += 1 *
36782                   ::google::protobuf::internal::FromIntSize(this->weight_decay_size());
36783     total_size += data_size;
36784   }
36785 
36786   // repeated .opencv_caffe.NetStateRule include = 32;
36787   {
36788     unsigned int count = static_cast<unsigned int>(this->include_size());
36789     total_size += 2UL * count;
36790     for (unsigned int i = 0; i < count; i++) {
36791       total_size +=
36792         ::google::protobuf::internal::WireFormatLite::MessageSize(
36793           this->include(static_cast<int>(i)));
36794     }
36795   }
36796 
36797   // repeated .opencv_caffe.NetStateRule exclude = 33;
36798   {
36799     unsigned int count = static_cast<unsigned int>(this->exclude_size());
36800     total_size += 2UL * count;
36801     for (unsigned int i = 0; i < count; i++) {
36802       total_size +=
36803         ::google::protobuf::internal::WireFormatLite::MessageSize(
36804           this->exclude(static_cast<int>(i)));
36805     }
36806   }
36807 
36808   // repeated float loss_weight = 35;
36809   {
36810     unsigned int count = static_cast<unsigned int>(this->loss_weight_size());
36811     size_t data_size = 4UL * count;
36812     total_size += 2 *
36813                   ::google::protobuf::internal::FromIntSize(this->loss_weight_size());
36814     total_size += data_size;
36815   }
36816 
36817   // repeated string param = 1001;
36818   total_size += 2 *
36819       ::google::protobuf::internal::FromIntSize(this->param_size());
36820   for (int i = 0, n = this->param_size(); i < n; i++) {
36821     total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
36822       this->param(i));
36823   }
36824 
36825   // repeated .opencv_caffe.V1LayerParameter.DimCheckMode blob_share_mode = 1002;
36826   {
36827     size_t data_size = 0;
36828     unsigned int count = static_cast<unsigned int>(this->blob_share_mode_size());for (unsigned int i = 0; i < count; i++) {
36829       data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
36830         this->blob_share_mode(static_cast<int>(i)));
36831     }
36832     total_size += (2UL * count) + data_size;
36833   }
36834 
36835   if (_has_bits_[0 / 32] & 255u) {
36836     // optional string name = 4;
36837     if (has_name()) {
36838       total_size += 1 +
36839         ::google::protobuf::internal::WireFormatLite::StringSize(
36840           this->name());
36841     }
36842 
36843     // optional .opencv_caffe.V0LayerParameter layer = 1;
36844     if (has_layer()) {
36845       total_size += 1 +
36846         ::google::protobuf::internal::WireFormatLite::MessageSize(
36847           *this->layer_);
36848     }
36849 
36850     // optional .opencv_caffe.ConcatParameter concat_param = 9;
36851     if (has_concat_param()) {
36852       total_size += 1 +
36853         ::google::protobuf::internal::WireFormatLite::MessageSize(
36854           *this->concat_param_);
36855     }
36856 
36857     // optional .opencv_caffe.ConvolutionParameter convolution_param = 10;
36858     if (has_convolution_param()) {
36859       total_size += 1 +
36860         ::google::protobuf::internal::WireFormatLite::MessageSize(
36861           *this->convolution_param_);
36862     }
36863 
36864     // optional .opencv_caffe.DataParameter data_param = 11;
36865     if (has_data_param()) {
36866       total_size += 1 +
36867         ::google::protobuf::internal::WireFormatLite::MessageSize(
36868           *this->data_param_);
36869     }
36870 
36871     // optional .opencv_caffe.DropoutParameter dropout_param = 12;
36872     if (has_dropout_param()) {
36873       total_size += 1 +
36874         ::google::protobuf::internal::WireFormatLite::MessageSize(
36875           *this->dropout_param_);
36876     }
36877 
36878     // optional .opencv_caffe.HDF5DataParameter hdf5_data_param = 13;
36879     if (has_hdf5_data_param()) {
36880       total_size += 1 +
36881         ::google::protobuf::internal::WireFormatLite::MessageSize(
36882           *this->hdf5_data_param_);
36883     }
36884 
36885     // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 14;
36886     if (has_hdf5_output_param()) {
36887       total_size += 1 +
36888         ::google::protobuf::internal::WireFormatLite::MessageSize(
36889           *this->hdf5_output_param_);
36890     }
36891 
36892   }
36893   if (_has_bits_[8 / 32] & 65280u) {
36894     // optional .opencv_caffe.ImageDataParameter image_data_param = 15;
36895     if (has_image_data_param()) {
36896       total_size += 1 +
36897         ::google::protobuf::internal::WireFormatLite::MessageSize(
36898           *this->image_data_param_);
36899     }
36900 
36901     // optional .opencv_caffe.InfogainLossParameter infogain_loss_param = 16;
36902     if (has_infogain_loss_param()) {
36903       total_size += 2 +
36904         ::google::protobuf::internal::WireFormatLite::MessageSize(
36905           *this->infogain_loss_param_);
36906     }
36907 
36908     // optional .opencv_caffe.InnerProductParameter inner_product_param = 17;
36909     if (has_inner_product_param()) {
36910       total_size += 2 +
36911         ::google::protobuf::internal::WireFormatLite::MessageSize(
36912           *this->inner_product_param_);
36913     }
36914 
36915     // optional .opencv_caffe.LRNParameter lrn_param = 18;
36916     if (has_lrn_param()) {
36917       total_size += 2 +
36918         ::google::protobuf::internal::WireFormatLite::MessageSize(
36919           *this->lrn_param_);
36920     }
36921 
36922     // optional .opencv_caffe.PoolingParameter pooling_param = 19;
36923     if (has_pooling_param()) {
36924       total_size += 2 +
36925         ::google::protobuf::internal::WireFormatLite::MessageSize(
36926           *this->pooling_param_);
36927     }
36928 
36929     // optional .opencv_caffe.WindowDataParameter window_data_param = 20;
36930     if (has_window_data_param()) {
36931       total_size += 2 +
36932         ::google::protobuf::internal::WireFormatLite::MessageSize(
36933           *this->window_data_param_);
36934     }
36935 
36936     // optional .opencv_caffe.PowerParameter power_param = 21;
36937     if (has_power_param()) {
36938       total_size += 2 +
36939         ::google::protobuf::internal::WireFormatLite::MessageSize(
36940           *this->power_param_);
36941     }
36942 
36943     // optional .opencv_caffe.MemoryDataParameter memory_data_param = 22;
36944     if (has_memory_data_param()) {
36945       total_size += 2 +
36946         ::google::protobuf::internal::WireFormatLite::MessageSize(
36947           *this->memory_data_param_);
36948     }
36949 
36950   }
36951   if (_has_bits_[16 / 32] & 16711680u) {
36952     // optional .opencv_caffe.ArgMaxParameter argmax_param = 23;
36953     if (has_argmax_param()) {
36954       total_size += 2 +
36955         ::google::protobuf::internal::WireFormatLite::MessageSize(
36956           *this->argmax_param_);
36957     }
36958 
36959     // optional .opencv_caffe.EltwiseParameter eltwise_param = 24;
36960     if (has_eltwise_param()) {
36961       total_size += 2 +
36962         ::google::protobuf::internal::WireFormatLite::MessageSize(
36963           *this->eltwise_param_);
36964     }
36965 
36966     // optional .opencv_caffe.ThresholdParameter threshold_param = 25;
36967     if (has_threshold_param()) {
36968       total_size += 2 +
36969         ::google::protobuf::internal::WireFormatLite::MessageSize(
36970           *this->threshold_param_);
36971     }
36972 
36973     // optional .opencv_caffe.DummyDataParameter dummy_data_param = 26;
36974     if (has_dummy_data_param()) {
36975       total_size += 2 +
36976         ::google::protobuf::internal::WireFormatLite::MessageSize(
36977           *this->dummy_data_param_);
36978     }
36979 
36980     // optional .opencv_caffe.AccuracyParameter accuracy_param = 27;
36981     if (has_accuracy_param()) {
36982       total_size += 2 +
36983         ::google::protobuf::internal::WireFormatLite::MessageSize(
36984           *this->accuracy_param_);
36985     }
36986 
36987     // optional .opencv_caffe.HingeLossParameter hinge_loss_param = 29;
36988     if (has_hinge_loss_param()) {
36989       total_size += 2 +
36990         ::google::protobuf::internal::WireFormatLite::MessageSize(
36991           *this->hinge_loss_param_);
36992     }
36993 
36994     // optional .opencv_caffe.ReLUParameter relu_param = 30;
36995     if (has_relu_param()) {
36996       total_size += 2 +
36997         ::google::protobuf::internal::WireFormatLite::MessageSize(
36998           *this->relu_param_);
36999     }
37000 
37001     // optional .opencv_caffe.SliceParameter slice_param = 31;
37002     if (has_slice_param()) {
37003       total_size += 2 +
37004         ::google::protobuf::internal::WireFormatLite::MessageSize(
37005           *this->slice_param_);
37006     }
37007 
37008   }
37009   if (_has_bits_[24 / 32] & 4278190080u) {
37010     // optional .opencv_caffe.MVNParameter mvn_param = 34;
37011     if (has_mvn_param()) {
37012       total_size += 2 +
37013         ::google::protobuf::internal::WireFormatLite::MessageSize(
37014           *this->mvn_param_);
37015     }
37016 
37017     // optional .opencv_caffe.TransformationParameter transform_param = 36;
37018     if (has_transform_param()) {
37019       total_size += 2 +
37020         ::google::protobuf::internal::WireFormatLite::MessageSize(
37021           *this->transform_param_);
37022     }
37023 
37024     // optional .opencv_caffe.TanHParameter tanh_param = 37;
37025     if (has_tanh_param()) {
37026       total_size += 2 +
37027         ::google::protobuf::internal::WireFormatLite::MessageSize(
37028           *this->tanh_param_);
37029     }
37030 
37031     // optional .opencv_caffe.SigmoidParameter sigmoid_param = 38;
37032     if (has_sigmoid_param()) {
37033       total_size += 2 +
37034         ::google::protobuf::internal::WireFormatLite::MessageSize(
37035           *this->sigmoid_param_);
37036     }
37037 
37038     // optional .opencv_caffe.SoftmaxParameter softmax_param = 39;
37039     if (has_softmax_param()) {
37040       total_size += 2 +
37041         ::google::protobuf::internal::WireFormatLite::MessageSize(
37042           *this->softmax_param_);
37043     }
37044 
37045     // optional .opencv_caffe.ContrastiveLossParameter contrastive_loss_param = 40;
37046     if (has_contrastive_loss_param()) {
37047       total_size += 2 +
37048         ::google::protobuf::internal::WireFormatLite::MessageSize(
37049           *this->contrastive_loss_param_);
37050     }
37051 
37052     // optional .opencv_caffe.ExpParameter exp_param = 41;
37053     if (has_exp_param()) {
37054       total_size += 2 +
37055         ::google::protobuf::internal::WireFormatLite::MessageSize(
37056           *this->exp_param_);
37057     }
37058 
37059     // optional .opencv_caffe.LossParameter loss_param = 42;
37060     if (has_loss_param()) {
37061       total_size += 2 +
37062         ::google::protobuf::internal::WireFormatLite::MessageSize(
37063           *this->loss_param_);
37064     }
37065 
37066   }
37067   // optional .opencv_caffe.V1LayerParameter.LayerType type = 5;
37068   if (has_type()) {
37069     total_size += 1 +
37070       ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
37071   }
37072 
37073   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
37074   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
37075   _cached_size_ = cached_size;
37076   GOOGLE_SAFE_CONCURRENT_WRITES_END();
37077   return total_size;
37078 }
37079 
MergeFrom(const::google::protobuf::Message & from)37080 void V1LayerParameter::MergeFrom(const ::google::protobuf::Message& from) {
37081 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.V1LayerParameter)
37082   GOOGLE_DCHECK_NE(&from, this);
37083   const V1LayerParameter* source =
37084       ::google::protobuf::internal::DynamicCastToGenerated<const V1LayerParameter>(
37085           &from);
37086   if (source == NULL) {
37087   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.V1LayerParameter)
37088     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
37089   } else {
37090   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.V1LayerParameter)
37091     MergeFrom(*source);
37092   }
37093 }
37094 
MergeFrom(const V1LayerParameter & from)37095 void V1LayerParameter::MergeFrom(const V1LayerParameter& from) {
37096 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.V1LayerParameter)
37097   GOOGLE_DCHECK_NE(&from, this);
37098   _internal_metadata_.MergeFrom(from._internal_metadata_);
37099   ::google::protobuf::uint32 cached_has_bits = 0;
37100   (void) cached_has_bits;
37101 
37102   bottom_.MergeFrom(from.bottom_);
37103   top_.MergeFrom(from.top_);
37104   blobs_.MergeFrom(from.blobs_);
37105   blobs_lr_.MergeFrom(from.blobs_lr_);
37106   weight_decay_.MergeFrom(from.weight_decay_);
37107   include_.MergeFrom(from.include_);
37108   exclude_.MergeFrom(from.exclude_);
37109   loss_weight_.MergeFrom(from.loss_weight_);
37110   param_.MergeFrom(from.param_);
37111   blob_share_mode_.MergeFrom(from.blob_share_mode_);
37112   cached_has_bits = from._has_bits_[0];
37113   if (cached_has_bits & 255u) {
37114     if (cached_has_bits & 0x00000001u) {
37115       set_has_name();
37116       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
37117     }
37118     if (cached_has_bits & 0x00000002u) {
37119       mutable_layer()->::opencv_caffe::V0LayerParameter::MergeFrom(from.layer());
37120     }
37121     if (cached_has_bits & 0x00000004u) {
37122       mutable_concat_param()->::opencv_caffe::ConcatParameter::MergeFrom(from.concat_param());
37123     }
37124     if (cached_has_bits & 0x00000008u) {
37125       mutable_convolution_param()->::opencv_caffe::ConvolutionParameter::MergeFrom(from.convolution_param());
37126     }
37127     if (cached_has_bits & 0x00000010u) {
37128       mutable_data_param()->::opencv_caffe::DataParameter::MergeFrom(from.data_param());
37129     }
37130     if (cached_has_bits & 0x00000020u) {
37131       mutable_dropout_param()->::opencv_caffe::DropoutParameter::MergeFrom(from.dropout_param());
37132     }
37133     if (cached_has_bits & 0x00000040u) {
37134       mutable_hdf5_data_param()->::opencv_caffe::HDF5DataParameter::MergeFrom(from.hdf5_data_param());
37135     }
37136     if (cached_has_bits & 0x00000080u) {
37137       mutable_hdf5_output_param()->::opencv_caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param());
37138     }
37139   }
37140   if (cached_has_bits & 65280u) {
37141     if (cached_has_bits & 0x00000100u) {
37142       mutable_image_data_param()->::opencv_caffe::ImageDataParameter::MergeFrom(from.image_data_param());
37143     }
37144     if (cached_has_bits & 0x00000200u) {
37145       mutable_infogain_loss_param()->::opencv_caffe::InfogainLossParameter::MergeFrom(from.infogain_loss_param());
37146     }
37147     if (cached_has_bits & 0x00000400u) {
37148       mutable_inner_product_param()->::opencv_caffe::InnerProductParameter::MergeFrom(from.inner_product_param());
37149     }
37150     if (cached_has_bits & 0x00000800u) {
37151       mutable_lrn_param()->::opencv_caffe::LRNParameter::MergeFrom(from.lrn_param());
37152     }
37153     if (cached_has_bits & 0x00001000u) {
37154       mutable_pooling_param()->::opencv_caffe::PoolingParameter::MergeFrom(from.pooling_param());
37155     }
37156     if (cached_has_bits & 0x00002000u) {
37157       mutable_window_data_param()->::opencv_caffe::WindowDataParameter::MergeFrom(from.window_data_param());
37158     }
37159     if (cached_has_bits & 0x00004000u) {
37160       mutable_power_param()->::opencv_caffe::PowerParameter::MergeFrom(from.power_param());
37161     }
37162     if (cached_has_bits & 0x00008000u) {
37163       mutable_memory_data_param()->::opencv_caffe::MemoryDataParameter::MergeFrom(from.memory_data_param());
37164     }
37165   }
37166   if (cached_has_bits & 16711680u) {
37167     if (cached_has_bits & 0x00010000u) {
37168       mutable_argmax_param()->::opencv_caffe::ArgMaxParameter::MergeFrom(from.argmax_param());
37169     }
37170     if (cached_has_bits & 0x00020000u) {
37171       mutable_eltwise_param()->::opencv_caffe::EltwiseParameter::MergeFrom(from.eltwise_param());
37172     }
37173     if (cached_has_bits & 0x00040000u) {
37174       mutable_threshold_param()->::opencv_caffe::ThresholdParameter::MergeFrom(from.threshold_param());
37175     }
37176     if (cached_has_bits & 0x00080000u) {
37177       mutable_dummy_data_param()->::opencv_caffe::DummyDataParameter::MergeFrom(from.dummy_data_param());
37178     }
37179     if (cached_has_bits & 0x00100000u) {
37180       mutable_accuracy_param()->::opencv_caffe::AccuracyParameter::MergeFrom(from.accuracy_param());
37181     }
37182     if (cached_has_bits & 0x00200000u) {
37183       mutable_hinge_loss_param()->::opencv_caffe::HingeLossParameter::MergeFrom(from.hinge_loss_param());
37184     }
37185     if (cached_has_bits & 0x00400000u) {
37186       mutable_relu_param()->::opencv_caffe::ReLUParameter::MergeFrom(from.relu_param());
37187     }
37188     if (cached_has_bits & 0x00800000u) {
37189       mutable_slice_param()->::opencv_caffe::SliceParameter::MergeFrom(from.slice_param());
37190     }
37191   }
37192   if (cached_has_bits & 4278190080u) {
37193     if (cached_has_bits & 0x01000000u) {
37194       mutable_mvn_param()->::opencv_caffe::MVNParameter::MergeFrom(from.mvn_param());
37195     }
37196     if (cached_has_bits & 0x02000000u) {
37197       mutable_transform_param()->::opencv_caffe::TransformationParameter::MergeFrom(from.transform_param());
37198     }
37199     if (cached_has_bits & 0x04000000u) {
37200       mutable_tanh_param()->::opencv_caffe::TanHParameter::MergeFrom(from.tanh_param());
37201     }
37202     if (cached_has_bits & 0x08000000u) {
37203       mutable_sigmoid_param()->::opencv_caffe::SigmoidParameter::MergeFrom(from.sigmoid_param());
37204     }
37205     if (cached_has_bits & 0x10000000u) {
37206       mutable_softmax_param()->::opencv_caffe::SoftmaxParameter::MergeFrom(from.softmax_param());
37207     }
37208     if (cached_has_bits & 0x20000000u) {
37209       mutable_contrastive_loss_param()->::opencv_caffe::ContrastiveLossParameter::MergeFrom(from.contrastive_loss_param());
37210     }
37211     if (cached_has_bits & 0x40000000u) {
37212       mutable_exp_param()->::opencv_caffe::ExpParameter::MergeFrom(from.exp_param());
37213     }
37214     if (cached_has_bits & 0x80000000u) {
37215       mutable_loss_param()->::opencv_caffe::LossParameter::MergeFrom(from.loss_param());
37216     }
37217   }
37218   if (from.has_type()) {
37219     set_type(from.type());
37220   }
37221 }
37222 
CopyFrom(const::google::protobuf::Message & from)37223 void V1LayerParameter::CopyFrom(const ::google::protobuf::Message& from) {
37224 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.V1LayerParameter)
37225   if (&from == this) return;
37226   Clear();
37227   MergeFrom(from);
37228 }
37229 
CopyFrom(const V1LayerParameter & from)37230 void V1LayerParameter::CopyFrom(const V1LayerParameter& from) {
37231 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.V1LayerParameter)
37232   if (&from == this) return;
37233   Clear();
37234   MergeFrom(from);
37235 }
37236 
IsInitialized() const37237 bool V1LayerParameter::IsInitialized() const {
37238   return true;
37239 }
37240 
Swap(V1LayerParameter * other)37241 void V1LayerParameter::Swap(V1LayerParameter* other) {
37242   if (other == this) return;
37243   InternalSwap(other);
37244 }
InternalSwap(V1LayerParameter * other)37245 void V1LayerParameter::InternalSwap(V1LayerParameter* other) {
37246   using std::swap;
37247   bottom_.InternalSwap(&other->bottom_);
37248   top_.InternalSwap(&other->top_);
37249   blobs_.InternalSwap(&other->blobs_);
37250   blobs_lr_.InternalSwap(&other->blobs_lr_);
37251   weight_decay_.InternalSwap(&other->weight_decay_);
37252   include_.InternalSwap(&other->include_);
37253   exclude_.InternalSwap(&other->exclude_);
37254   loss_weight_.InternalSwap(&other->loss_weight_);
37255   param_.InternalSwap(&other->param_);
37256   blob_share_mode_.InternalSwap(&other->blob_share_mode_);
37257   name_.Swap(&other->name_);
37258   swap(layer_, other->layer_);
37259   swap(concat_param_, other->concat_param_);
37260   swap(convolution_param_, other->convolution_param_);
37261   swap(data_param_, other->data_param_);
37262   swap(dropout_param_, other->dropout_param_);
37263   swap(hdf5_data_param_, other->hdf5_data_param_);
37264   swap(hdf5_output_param_, other->hdf5_output_param_);
37265   swap(image_data_param_, other->image_data_param_);
37266   swap(infogain_loss_param_, other->infogain_loss_param_);
37267   swap(inner_product_param_, other->inner_product_param_);
37268   swap(lrn_param_, other->lrn_param_);
37269   swap(pooling_param_, other->pooling_param_);
37270   swap(window_data_param_, other->window_data_param_);
37271   swap(power_param_, other->power_param_);
37272   swap(memory_data_param_, other->memory_data_param_);
37273   swap(argmax_param_, other->argmax_param_);
37274   swap(eltwise_param_, other->eltwise_param_);
37275   swap(threshold_param_, other->threshold_param_);
37276   swap(dummy_data_param_, other->dummy_data_param_);
37277   swap(accuracy_param_, other->accuracy_param_);
37278   swap(hinge_loss_param_, other->hinge_loss_param_);
37279   swap(relu_param_, other->relu_param_);
37280   swap(slice_param_, other->slice_param_);
37281   swap(mvn_param_, other->mvn_param_);
37282   swap(transform_param_, other->transform_param_);
37283   swap(tanh_param_, other->tanh_param_);
37284   swap(sigmoid_param_, other->sigmoid_param_);
37285   swap(softmax_param_, other->softmax_param_);
37286   swap(contrastive_loss_param_, other->contrastive_loss_param_);
37287   swap(exp_param_, other->exp_param_);
37288   swap(loss_param_, other->loss_param_);
37289   swap(type_, other->type_);
37290   swap(_has_bits_[0], other->_has_bits_[0]);
37291   swap(_has_bits_[1], other->_has_bits_[1]);
37292   _internal_metadata_.Swap(&other->_internal_metadata_);
37293   swap(_cached_size_, other->_cached_size_);
37294 }
37295 
GetMetadata() const37296 ::google::protobuf::Metadata V1LayerParameter::GetMetadata() const {
37297   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
37298   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
37299 }
37300 
37301 
37302 // ===================================================================
37303 
InitAsDefaultInstance()37304 void V0LayerParameter::InitAsDefaultInstance() {
37305   ::opencv_caffe::_V0LayerParameter_default_instance_._instance.get_mutable()->weight_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
37306       ::opencv_caffe::FillerParameter::internal_default_instance());
37307   ::opencv_caffe::_V0LayerParameter_default_instance_._instance.get_mutable()->bias_filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
37308       ::opencv_caffe::FillerParameter::internal_default_instance());
37309   ::opencv_caffe::_V0LayerParameter_default_instance_._instance.get_mutable()->hdf5_output_param_ = const_cast< ::opencv_caffe::HDF5OutputParameter*>(
37310       ::opencv_caffe::HDF5OutputParameter::internal_default_instance());
37311 }
37312 ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> V0LayerParameter::_default_det_crop_mode_;
37313 #if !defined(_MSC_VER) || _MSC_VER >= 1900
37314 const int V0LayerParameter::kNameFieldNumber;
37315 const int V0LayerParameter::kTypeFieldNumber;
37316 const int V0LayerParameter::kNumOutputFieldNumber;
37317 const int V0LayerParameter::kBiastermFieldNumber;
37318 const int V0LayerParameter::kWeightFillerFieldNumber;
37319 const int V0LayerParameter::kBiasFillerFieldNumber;
37320 const int V0LayerParameter::kPadFieldNumber;
37321 const int V0LayerParameter::kKernelsizeFieldNumber;
37322 const int V0LayerParameter::kGroupFieldNumber;
37323 const int V0LayerParameter::kStrideFieldNumber;
37324 const int V0LayerParameter::kPoolFieldNumber;
37325 const int V0LayerParameter::kDropoutRatioFieldNumber;
37326 const int V0LayerParameter::kLocalSizeFieldNumber;
37327 const int V0LayerParameter::kAlphaFieldNumber;
37328 const int V0LayerParameter::kBetaFieldNumber;
37329 const int V0LayerParameter::kKFieldNumber;
37330 const int V0LayerParameter::kSourceFieldNumber;
37331 const int V0LayerParameter::kScaleFieldNumber;
37332 const int V0LayerParameter::kMeanfileFieldNumber;
37333 const int V0LayerParameter::kBatchsizeFieldNumber;
37334 const int V0LayerParameter::kCropsizeFieldNumber;
37335 const int V0LayerParameter::kMirrorFieldNumber;
37336 const int V0LayerParameter::kBlobsFieldNumber;
37337 const int V0LayerParameter::kBlobsLrFieldNumber;
37338 const int V0LayerParameter::kWeightDecayFieldNumber;
37339 const int V0LayerParameter::kRandSkipFieldNumber;
37340 const int V0LayerParameter::kDetFgThresholdFieldNumber;
37341 const int V0LayerParameter::kDetBgThresholdFieldNumber;
37342 const int V0LayerParameter::kDetFgFractionFieldNumber;
37343 const int V0LayerParameter::kDetContextPadFieldNumber;
37344 const int V0LayerParameter::kDetCropModeFieldNumber;
37345 const int V0LayerParameter::kNewNumFieldNumber;
37346 const int V0LayerParameter::kNewChannelsFieldNumber;
37347 const int V0LayerParameter::kNewHeightFieldNumber;
37348 const int V0LayerParameter::kNewWidthFieldNumber;
37349 const int V0LayerParameter::kShuffleImagesFieldNumber;
37350 const int V0LayerParameter::kConcatDimFieldNumber;
37351 const int V0LayerParameter::kHdf5OutputParamFieldNumber;
37352 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
37353 
V0LayerParameter()37354 V0LayerParameter::V0LayerParameter()
37355   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
37356   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
37357     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV0LayerParameter();
37358   }
37359   SharedCtor();
37360   // @@protoc_insertion_point(constructor:opencv_caffe.V0LayerParameter)
37361 }
V0LayerParameter(const V0LayerParameter & from)37362 V0LayerParameter::V0LayerParameter(const V0LayerParameter& from)
37363   : ::google::protobuf::Message(),
37364       _internal_metadata_(NULL),
37365       _has_bits_(from._has_bits_),
37366       blobs_(from.blobs_),
37367       blobs_lr_(from.blobs_lr_),
37368       weight_decay_(from.weight_decay_),
37369       _cached_size_(0) {
37370   _internal_metadata_.MergeFrom(from._internal_metadata_);
37371   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37372   if (from.has_name()) {
37373     name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
37374   }
37375   type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37376   if (from.has_type()) {
37377     type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
37378   }
37379   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37380   if (from.has_source()) {
37381     source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
37382   }
37383   meanfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37384   if (from.has_meanfile()) {
37385     meanfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.meanfile_);
37386   }
37387   det_crop_mode_.UnsafeSetDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get());
37388   if (from.has_det_crop_mode()) {
37389     det_crop_mode_.AssignWithDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), from.det_crop_mode_);
37390   }
37391   if (from.has_weight_filler()) {
37392     weight_filler_ = new ::opencv_caffe::FillerParameter(*from.weight_filler_);
37393   } else {
37394     weight_filler_ = NULL;
37395   }
37396   if (from.has_bias_filler()) {
37397     bias_filler_ = new ::opencv_caffe::FillerParameter(*from.bias_filler_);
37398   } else {
37399     bias_filler_ = NULL;
37400   }
37401   if (from.has_hdf5_output_param()) {
37402     hdf5_output_param_ = new ::opencv_caffe::HDF5OutputParameter(*from.hdf5_output_param_);
37403   } else {
37404     hdf5_output_param_ = NULL;
37405   }
37406   ::memcpy(&num_output_, &from.num_output_,
37407     static_cast<size_t>(reinterpret_cast<char*>(&det_fg_fraction_) -
37408     reinterpret_cast<char*>(&num_output_)) + sizeof(det_fg_fraction_));
37409   // @@protoc_insertion_point(copy_constructor:opencv_caffe.V0LayerParameter)
37410 }
37411 
SharedCtor()37412 void V0LayerParameter::SharedCtor() {
37413   name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37414   type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37415   source_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37416   meanfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37417   det_crop_mode_.UnsafeSetDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get());
37418   ::memset(&weight_filler_, 0, static_cast<size_t>(
37419       reinterpret_cast<char*>(&new_height_) -
37420       reinterpret_cast<char*>(&weight_filler_)) + sizeof(new_height_));
37421   concat_dim_ = 1u;
37422   biasterm_ = true;
37423   group_ = 1u;
37424   stride_ = 1u;
37425   dropout_ratio_ = 0.5f;
37426   local_size_ = 5u;
37427   alpha_ = 1;
37428   beta_ = 0.75f;
37429   scale_ = 1;
37430   k_ = 1;
37431   det_fg_threshold_ = 0.5f;
37432   det_bg_threshold_ = 0.5f;
37433   det_fg_fraction_ = 0.25f;
37434   _cached_size_ = 0;
37435 }
37436 
~V0LayerParameter()37437 V0LayerParameter::~V0LayerParameter() {
37438   // @@protoc_insertion_point(destructor:opencv_caffe.V0LayerParameter)
37439   SharedDtor();
37440 }
37441 
SharedDtor()37442 void V0LayerParameter::SharedDtor() {
37443   name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37444   type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37445   source_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37446   meanfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
37447   det_crop_mode_.DestroyNoArena(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get());
37448   if (this != internal_default_instance()) delete weight_filler_;
37449   if (this != internal_default_instance()) delete bias_filler_;
37450   if (this != internal_default_instance()) delete hdf5_output_param_;
37451 }
37452 
SetCachedSize(int size) const37453 void V0LayerParameter::SetCachedSize(int size) const {
37454   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
37455   _cached_size_ = size;
37456   GOOGLE_SAFE_CONCURRENT_WRITES_END();
37457 }
descriptor()37458 const ::google::protobuf::Descriptor* V0LayerParameter::descriptor() {
37459   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
37460   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
37461 }
37462 
default_instance()37463 const V0LayerParameter& V0LayerParameter::default_instance() {
37464   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsV0LayerParameter();
37465   return *internal_default_instance();
37466 }
37467 
New(::google::protobuf::Arena * arena) const37468 V0LayerParameter* V0LayerParameter::New(::google::protobuf::Arena* arena) const {
37469   V0LayerParameter* n = new V0LayerParameter;
37470   if (arena != NULL) {
37471     arena->Own(n);
37472   }
37473   return n;
37474 }
37475 
Clear()37476 void V0LayerParameter::Clear() {
37477 // @@protoc_insertion_point(message_clear_start:opencv_caffe.V0LayerParameter)
37478   ::google::protobuf::uint32 cached_has_bits = 0;
37479   // Prevent compiler warnings about cached_has_bits being unused
37480   (void) cached_has_bits;
37481 
37482   blobs_.Clear();
37483   blobs_lr_.Clear();
37484   weight_decay_.Clear();
37485   cached_has_bits = _has_bits_[0];
37486   if (cached_has_bits & 255u) {
37487     if (cached_has_bits & 0x00000001u) {
37488       GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
37489       (*name_.UnsafeRawStringPointer())->clear();
37490     }
37491     if (cached_has_bits & 0x00000002u) {
37492       GOOGLE_DCHECK(!type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
37493       (*type_.UnsafeRawStringPointer())->clear();
37494     }
37495     if (cached_has_bits & 0x00000004u) {
37496       GOOGLE_DCHECK(!source_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
37497       (*source_.UnsafeRawStringPointer())->clear();
37498     }
37499     if (cached_has_bits & 0x00000008u) {
37500       GOOGLE_DCHECK(!meanfile_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
37501       (*meanfile_.UnsafeRawStringPointer())->clear();
37502     }
37503     if (cached_has_bits & 0x00000010u) {
37504       GOOGLE_DCHECK(!det_crop_mode_.IsDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get()));
37505       (*det_crop_mode_.UnsafeRawStringPointer())->assign(*&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get());
37506     }
37507     if (cached_has_bits & 0x00000020u) {
37508       GOOGLE_DCHECK(weight_filler_ != NULL);
37509       weight_filler_->Clear();
37510     }
37511     if (cached_has_bits & 0x00000040u) {
37512       GOOGLE_DCHECK(bias_filler_ != NULL);
37513       bias_filler_->Clear();
37514     }
37515     if (cached_has_bits & 0x00000080u) {
37516       GOOGLE_DCHECK(hdf5_output_param_ != NULL);
37517       hdf5_output_param_->Clear();
37518     }
37519   }
37520   if (cached_has_bits & 65280u) {
37521     ::memset(&num_output_, 0, static_cast<size_t>(
37522         reinterpret_cast<char*>(&mirror_) -
37523         reinterpret_cast<char*>(&num_output_)) + sizeof(mirror_));
37524   }
37525   if (cached_has_bits & 16711680u) {
37526     ::memset(&shuffle_images_, 0, static_cast<size_t>(
37527         reinterpret_cast<char*>(&new_height_) -
37528         reinterpret_cast<char*>(&shuffle_images_)) + sizeof(new_height_));
37529     concat_dim_ = 1u;
37530     biasterm_ = true;
37531   }
37532   if (cached_has_bits & 4278190080u) {
37533     group_ = 1u;
37534     stride_ = 1u;
37535     dropout_ratio_ = 0.5f;
37536     local_size_ = 5u;
37537     alpha_ = 1;
37538     beta_ = 0.75f;
37539     scale_ = 1;
37540     k_ = 1;
37541   }
37542   cached_has_bits = _has_bits_[1];
37543   if (cached_has_bits & 7u) {
37544     det_fg_threshold_ = 0.5f;
37545     det_bg_threshold_ = 0.5f;
37546     det_fg_fraction_ = 0.25f;
37547   }
37548   _has_bits_.Clear();
37549   _internal_metadata_.Clear();
37550 }
37551 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)37552 bool V0LayerParameter::MergePartialFromCodedStream(
37553     ::google::protobuf::io::CodedInputStream* input) {
37554 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
37555   ::google::protobuf::uint32 tag;
37556   // @@protoc_insertion_point(parse_start:opencv_caffe.V0LayerParameter)
37557   for (;;) {
37558     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
37559     tag = p.first;
37560     if (!p.second) goto handle_unusual;
37561     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
37562       // optional string name = 1;
37563       case 1: {
37564         if (static_cast< ::google::protobuf::uint8>(tag) ==
37565             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
37566           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
37567                 input, this->mutable_name()));
37568           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
37569             this->name().data(), static_cast<int>(this->name().length()),
37570             ::google::protobuf::internal::WireFormat::PARSE,
37571             "opencv_caffe.V0LayerParameter.name");
37572         } else {
37573           goto handle_unusual;
37574         }
37575         break;
37576       }
37577 
37578       // optional string type = 2;
37579       case 2: {
37580         if (static_cast< ::google::protobuf::uint8>(tag) ==
37581             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
37582           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
37583                 input, this->mutable_type()));
37584           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
37585             this->type().data(), static_cast<int>(this->type().length()),
37586             ::google::protobuf::internal::WireFormat::PARSE,
37587             "opencv_caffe.V0LayerParameter.type");
37588         } else {
37589           goto handle_unusual;
37590         }
37591         break;
37592       }
37593 
37594       // optional uint32 num_output = 3;
37595       case 3: {
37596         if (static_cast< ::google::protobuf::uint8>(tag) ==
37597             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
37598           set_has_num_output();
37599           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37600                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37601                  input, &num_output_)));
37602         } else {
37603           goto handle_unusual;
37604         }
37605         break;
37606       }
37607 
37608       // optional bool biasterm = 4 [default = true];
37609       case 4: {
37610         if (static_cast< ::google::protobuf::uint8>(tag) ==
37611             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
37612           set_has_biasterm();
37613           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37614                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
37615                  input, &biasterm_)));
37616         } else {
37617           goto handle_unusual;
37618         }
37619         break;
37620       }
37621 
37622       // optional .opencv_caffe.FillerParameter weight_filler = 5;
37623       case 5: {
37624         if (static_cast< ::google::protobuf::uint8>(tag) ==
37625             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
37626           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
37627                input, mutable_weight_filler()));
37628         } else {
37629           goto handle_unusual;
37630         }
37631         break;
37632       }
37633 
37634       // optional .opencv_caffe.FillerParameter bias_filler = 6;
37635       case 6: {
37636         if (static_cast< ::google::protobuf::uint8>(tag) ==
37637             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
37638           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
37639                input, mutable_bias_filler()));
37640         } else {
37641           goto handle_unusual;
37642         }
37643         break;
37644       }
37645 
37646       // optional uint32 pad = 7 [default = 0];
37647       case 7: {
37648         if (static_cast< ::google::protobuf::uint8>(tag) ==
37649             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
37650           set_has_pad();
37651           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37652                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37653                  input, &pad_)));
37654         } else {
37655           goto handle_unusual;
37656         }
37657         break;
37658       }
37659 
37660       // optional uint32 kernelsize = 8;
37661       case 8: {
37662         if (static_cast< ::google::protobuf::uint8>(tag) ==
37663             static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
37664           set_has_kernelsize();
37665           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37666                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37667                  input, &kernelsize_)));
37668         } else {
37669           goto handle_unusual;
37670         }
37671         break;
37672       }
37673 
37674       // optional uint32 group = 9 [default = 1];
37675       case 9: {
37676         if (static_cast< ::google::protobuf::uint8>(tag) ==
37677             static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
37678           set_has_group();
37679           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37680                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37681                  input, &group_)));
37682         } else {
37683           goto handle_unusual;
37684         }
37685         break;
37686       }
37687 
37688       // optional uint32 stride = 10 [default = 1];
37689       case 10: {
37690         if (static_cast< ::google::protobuf::uint8>(tag) ==
37691             static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
37692           set_has_stride();
37693           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37694                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37695                  input, &stride_)));
37696         } else {
37697           goto handle_unusual;
37698         }
37699         break;
37700       }
37701 
37702       // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX];
37703       case 11: {
37704         if (static_cast< ::google::protobuf::uint8>(tag) ==
37705             static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
37706           int value;
37707           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37708                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
37709                  input, &value)));
37710           if (::opencv_caffe::V0LayerParameter_PoolMethod_IsValid(value)) {
37711             set_pool(static_cast< ::opencv_caffe::V0LayerParameter_PoolMethod >(value));
37712           } else {
37713             mutable_unknown_fields()->AddVarint(
37714                 11, static_cast< ::google::protobuf::uint64>(value));
37715           }
37716         } else {
37717           goto handle_unusual;
37718         }
37719         break;
37720       }
37721 
37722       // optional float dropout_ratio = 12 [default = 0.5];
37723       case 12: {
37724         if (static_cast< ::google::protobuf::uint8>(tag) ==
37725             static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
37726           set_has_dropout_ratio();
37727           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37728                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37729                  input, &dropout_ratio_)));
37730         } else {
37731           goto handle_unusual;
37732         }
37733         break;
37734       }
37735 
37736       // optional uint32 local_size = 13 [default = 5];
37737       case 13: {
37738         if (static_cast< ::google::protobuf::uint8>(tag) ==
37739             static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
37740           set_has_local_size();
37741           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37742                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37743                  input, &local_size_)));
37744         } else {
37745           goto handle_unusual;
37746         }
37747         break;
37748       }
37749 
37750       // optional float alpha = 14 [default = 1];
37751       case 14: {
37752         if (static_cast< ::google::protobuf::uint8>(tag) ==
37753             static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
37754           set_has_alpha();
37755           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37756                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37757                  input, &alpha_)));
37758         } else {
37759           goto handle_unusual;
37760         }
37761         break;
37762       }
37763 
37764       // optional float beta = 15 [default = 0.75];
37765       case 15: {
37766         if (static_cast< ::google::protobuf::uint8>(tag) ==
37767             static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) {
37768           set_has_beta();
37769           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37770                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37771                  input, &beta_)));
37772         } else {
37773           goto handle_unusual;
37774         }
37775         break;
37776       }
37777 
37778       // optional string source = 16;
37779       case 16: {
37780         if (static_cast< ::google::protobuf::uint8>(tag) ==
37781             static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
37782           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
37783                 input, this->mutable_source()));
37784           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
37785             this->source().data(), static_cast<int>(this->source().length()),
37786             ::google::protobuf::internal::WireFormat::PARSE,
37787             "opencv_caffe.V0LayerParameter.source");
37788         } else {
37789           goto handle_unusual;
37790         }
37791         break;
37792       }
37793 
37794       // optional float scale = 17 [default = 1];
37795       case 17: {
37796         if (static_cast< ::google::protobuf::uint8>(tag) ==
37797             static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) {
37798           set_has_scale();
37799           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37800                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37801                  input, &scale_)));
37802         } else {
37803           goto handle_unusual;
37804         }
37805         break;
37806       }
37807 
37808       // optional string meanfile = 18;
37809       case 18: {
37810         if (static_cast< ::google::protobuf::uint8>(tag) ==
37811             static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
37812           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
37813                 input, this->mutable_meanfile()));
37814           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
37815             this->meanfile().data(), static_cast<int>(this->meanfile().length()),
37816             ::google::protobuf::internal::WireFormat::PARSE,
37817             "opencv_caffe.V0LayerParameter.meanfile");
37818         } else {
37819           goto handle_unusual;
37820         }
37821         break;
37822       }
37823 
37824       // optional uint32 batchsize = 19;
37825       case 19: {
37826         if (static_cast< ::google::protobuf::uint8>(tag) ==
37827             static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
37828           set_has_batchsize();
37829           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37830                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37831                  input, &batchsize_)));
37832         } else {
37833           goto handle_unusual;
37834         }
37835         break;
37836       }
37837 
37838       // optional uint32 cropsize = 20 [default = 0];
37839       case 20: {
37840         if (static_cast< ::google::protobuf::uint8>(tag) ==
37841             static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
37842           set_has_cropsize();
37843           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37844                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37845                  input, &cropsize_)));
37846         } else {
37847           goto handle_unusual;
37848         }
37849         break;
37850       }
37851 
37852       // optional bool mirror = 21 [default = false];
37853       case 21: {
37854         if (static_cast< ::google::protobuf::uint8>(tag) ==
37855             static_cast< ::google::protobuf::uint8>(168u /* 168 & 0xFF */)) {
37856           set_has_mirror();
37857           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37858                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
37859                  input, &mirror_)));
37860         } else {
37861           goto handle_unusual;
37862         }
37863         break;
37864       }
37865 
37866       // optional float k = 22 [default = 1];
37867       case 22: {
37868         if (static_cast< ::google::protobuf::uint8>(tag) ==
37869             static_cast< ::google::protobuf::uint8>(181u /* 181 & 0xFF */)) {
37870           set_has_k();
37871           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37872                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37873                  input, &k_)));
37874         } else {
37875           goto handle_unusual;
37876         }
37877         break;
37878       }
37879 
37880       // repeated .opencv_caffe.BlobProto blobs = 50;
37881       case 50: {
37882         if (static_cast< ::google::protobuf::uint8>(tag) ==
37883             static_cast< ::google::protobuf::uint8>(146u /* 402 & 0xFF */)) {
37884           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_blobs()));
37885         } else {
37886           goto handle_unusual;
37887         }
37888         break;
37889       }
37890 
37891       // repeated float blobs_lr = 51;
37892       case 51: {
37893         if (static_cast< ::google::protobuf::uint8>(tag) ==
37894             static_cast< ::google::protobuf::uint8>(157u /* 413 & 0xFF */)) {
37895           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
37896                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37897                  2, 413u, input, this->mutable_blobs_lr())));
37898         } else if (
37899             static_cast< ::google::protobuf::uint8>(tag) ==
37900             static_cast< ::google::protobuf::uint8>(154u /* 410 & 0xFF */)) {
37901           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
37902                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37903                  input, this->mutable_blobs_lr())));
37904         } else {
37905           goto handle_unusual;
37906         }
37907         break;
37908       }
37909 
37910       // repeated float weight_decay = 52;
37911       case 52: {
37912         if (static_cast< ::google::protobuf::uint8>(tag) ==
37913             static_cast< ::google::protobuf::uint8>(165u /* 421 & 0xFF */)) {
37914           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
37915                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37916                  2, 421u, input, this->mutable_weight_decay())));
37917         } else if (
37918             static_cast< ::google::protobuf::uint8>(tag) ==
37919             static_cast< ::google::protobuf::uint8>(162u /* 418 & 0xFF */)) {
37920           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
37921                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37922                  input, this->mutable_weight_decay())));
37923         } else {
37924           goto handle_unusual;
37925         }
37926         break;
37927       }
37928 
37929       // optional uint32 rand_skip = 53 [default = 0];
37930       case 53: {
37931         if (static_cast< ::google::protobuf::uint8>(tag) ==
37932             static_cast< ::google::protobuf::uint8>(168u /* 424 & 0xFF */)) {
37933           set_has_rand_skip();
37934           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37935                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37936                  input, &rand_skip_)));
37937         } else {
37938           goto handle_unusual;
37939         }
37940         break;
37941       }
37942 
37943       // optional float det_fg_threshold = 54 [default = 0.5];
37944       case 54: {
37945         if (static_cast< ::google::protobuf::uint8>(tag) ==
37946             static_cast< ::google::protobuf::uint8>(181u /* 437 & 0xFF */)) {
37947           set_has_det_fg_threshold();
37948           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37949                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37950                  input, &det_fg_threshold_)));
37951         } else {
37952           goto handle_unusual;
37953         }
37954         break;
37955       }
37956 
37957       // optional float det_bg_threshold = 55 [default = 0.5];
37958       case 55: {
37959         if (static_cast< ::google::protobuf::uint8>(tag) ==
37960             static_cast< ::google::protobuf::uint8>(189u /* 445 & 0xFF */)) {
37961           set_has_det_bg_threshold();
37962           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37963                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37964                  input, &det_bg_threshold_)));
37965         } else {
37966           goto handle_unusual;
37967         }
37968         break;
37969       }
37970 
37971       // optional float det_fg_fraction = 56 [default = 0.25];
37972       case 56: {
37973         if (static_cast< ::google::protobuf::uint8>(tag) ==
37974             static_cast< ::google::protobuf::uint8>(197u /* 453 & 0xFF */)) {
37975           set_has_det_fg_fraction();
37976           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37977                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
37978                  input, &det_fg_fraction_)));
37979         } else {
37980           goto handle_unusual;
37981         }
37982         break;
37983       }
37984 
37985       // optional uint32 det_context_pad = 58 [default = 0];
37986       case 58: {
37987         if (static_cast< ::google::protobuf::uint8>(tag) ==
37988             static_cast< ::google::protobuf::uint8>(208u /* 464 & 0xFF */)) {
37989           set_has_det_context_pad();
37990           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
37991                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
37992                  input, &det_context_pad_)));
37993         } else {
37994           goto handle_unusual;
37995         }
37996         break;
37997       }
37998 
37999       // optional string det_crop_mode = 59 [default = "warp"];
38000       case 59: {
38001         if (static_cast< ::google::protobuf::uint8>(tag) ==
38002             static_cast< ::google::protobuf::uint8>(218u /* 474 & 0xFF */)) {
38003           DO_(::google::protobuf::internal::WireFormatLite::ReadString(
38004                 input, this->mutable_det_crop_mode()));
38005           ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38006             this->det_crop_mode().data(), static_cast<int>(this->det_crop_mode().length()),
38007             ::google::protobuf::internal::WireFormat::PARSE,
38008             "opencv_caffe.V0LayerParameter.det_crop_mode");
38009         } else {
38010           goto handle_unusual;
38011         }
38012         break;
38013       }
38014 
38015       // optional int32 new_num = 60 [default = 0];
38016       case 60: {
38017         if (static_cast< ::google::protobuf::uint8>(tag) ==
38018             static_cast< ::google::protobuf::uint8>(224u /* 480 & 0xFF */)) {
38019           set_has_new_num();
38020           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
38021                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
38022                  input, &new_num_)));
38023         } else {
38024           goto handle_unusual;
38025         }
38026         break;
38027       }
38028 
38029       // optional int32 new_channels = 61 [default = 0];
38030       case 61: {
38031         if (static_cast< ::google::protobuf::uint8>(tag) ==
38032             static_cast< ::google::protobuf::uint8>(232u /* 488 & 0xFF */)) {
38033           set_has_new_channels();
38034           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
38035                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
38036                  input, &new_channels_)));
38037         } else {
38038           goto handle_unusual;
38039         }
38040         break;
38041       }
38042 
38043       // optional int32 new_height = 62 [default = 0];
38044       case 62: {
38045         if (static_cast< ::google::protobuf::uint8>(tag) ==
38046             static_cast< ::google::protobuf::uint8>(240u /* 496 & 0xFF */)) {
38047           set_has_new_height();
38048           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
38049                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
38050                  input, &new_height_)));
38051         } else {
38052           goto handle_unusual;
38053         }
38054         break;
38055       }
38056 
38057       // optional int32 new_width = 63 [default = 0];
38058       case 63: {
38059         if (static_cast< ::google::protobuf::uint8>(tag) ==
38060             static_cast< ::google::protobuf::uint8>(248u /* 504 & 0xFF */)) {
38061           set_has_new_width();
38062           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
38063                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
38064                  input, &new_width_)));
38065         } else {
38066           goto handle_unusual;
38067         }
38068         break;
38069       }
38070 
38071       // optional bool shuffle_images = 64 [default = false];
38072       case 64: {
38073         if (static_cast< ::google::protobuf::uint8>(tag) ==
38074             static_cast< ::google::protobuf::uint8>(0u /* 512 & 0xFF */)) {
38075           set_has_shuffle_images();
38076           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
38077                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
38078                  input, &shuffle_images_)));
38079         } else {
38080           goto handle_unusual;
38081         }
38082         break;
38083       }
38084 
38085       // optional uint32 concat_dim = 65 [default = 1];
38086       case 65: {
38087         if (static_cast< ::google::protobuf::uint8>(tag) ==
38088             static_cast< ::google::protobuf::uint8>(8u /* 520 & 0xFF */)) {
38089           set_has_concat_dim();
38090           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
38091                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
38092                  input, &concat_dim_)));
38093         } else {
38094           goto handle_unusual;
38095         }
38096         break;
38097       }
38098 
38099       // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001;
38100       case 1001: {
38101         if (static_cast< ::google::protobuf::uint8>(tag) ==
38102             static_cast< ::google::protobuf::uint8>(74u /* 8010 & 0xFF */)) {
38103           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
38104                input, mutable_hdf5_output_param()));
38105         } else {
38106           goto handle_unusual;
38107         }
38108         break;
38109       }
38110 
38111       default: {
38112       handle_unusual:
38113         if (tag == 0) {
38114           goto success;
38115         }
38116         DO_(::google::protobuf::internal::WireFormat::SkipField(
38117               input, tag, _internal_metadata_.mutable_unknown_fields()));
38118         break;
38119       }
38120     }
38121   }
38122 success:
38123   // @@protoc_insertion_point(parse_success:opencv_caffe.V0LayerParameter)
38124   return true;
38125 failure:
38126   // @@protoc_insertion_point(parse_failure:opencv_caffe.V0LayerParameter)
38127   return false;
38128 #undef DO_
38129 }
38130 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const38131 void V0LayerParameter::SerializeWithCachedSizes(
38132     ::google::protobuf::io::CodedOutputStream* output) const {
38133   // @@protoc_insertion_point(serialize_start:opencv_caffe.V0LayerParameter)
38134   ::google::protobuf::uint32 cached_has_bits = 0;
38135   (void) cached_has_bits;
38136 
38137   cached_has_bits = _has_bits_[0];
38138   // optional string name = 1;
38139   if (cached_has_bits & 0x00000001u) {
38140     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38141       this->name().data(), static_cast<int>(this->name().length()),
38142       ::google::protobuf::internal::WireFormat::SERIALIZE,
38143       "opencv_caffe.V0LayerParameter.name");
38144     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
38145       1, this->name(), output);
38146   }
38147 
38148   // optional string type = 2;
38149   if (cached_has_bits & 0x00000002u) {
38150     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38151       this->type().data(), static_cast<int>(this->type().length()),
38152       ::google::protobuf::internal::WireFormat::SERIALIZE,
38153       "opencv_caffe.V0LayerParameter.type");
38154     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
38155       2, this->type(), output);
38156   }
38157 
38158   // optional uint32 num_output = 3;
38159   if (cached_has_bits & 0x00000100u) {
38160     ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->num_output(), output);
38161   }
38162 
38163   // optional bool biasterm = 4 [default = true];
38164   if (cached_has_bits & 0x00800000u) {
38165     ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->biasterm(), output);
38166   }
38167 
38168   // optional .opencv_caffe.FillerParameter weight_filler = 5;
38169   if (cached_has_bits & 0x00000020u) {
38170     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
38171       5, *this->weight_filler_, output);
38172   }
38173 
38174   // optional .opencv_caffe.FillerParameter bias_filler = 6;
38175   if (cached_has_bits & 0x00000040u) {
38176     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
38177       6, *this->bias_filler_, output);
38178   }
38179 
38180   // optional uint32 pad = 7 [default = 0];
38181   if (cached_has_bits & 0x00000200u) {
38182     ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->pad(), output);
38183   }
38184 
38185   // optional uint32 kernelsize = 8;
38186   if (cached_has_bits & 0x00000400u) {
38187     ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->kernelsize(), output);
38188   }
38189 
38190   // optional uint32 group = 9 [default = 1];
38191   if (cached_has_bits & 0x01000000u) {
38192     ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->group(), output);
38193   }
38194 
38195   // optional uint32 stride = 10 [default = 1];
38196   if (cached_has_bits & 0x02000000u) {
38197     ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->stride(), output);
38198   }
38199 
38200   // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX];
38201   if (cached_has_bits & 0x00000800u) {
38202     ::google::protobuf::internal::WireFormatLite::WriteEnum(
38203       11, this->pool(), output);
38204   }
38205 
38206   // optional float dropout_ratio = 12 [default = 0.5];
38207   if (cached_has_bits & 0x04000000u) {
38208     ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->dropout_ratio(), output);
38209   }
38210 
38211   // optional uint32 local_size = 13 [default = 5];
38212   if (cached_has_bits & 0x08000000u) {
38213     ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->local_size(), output);
38214   }
38215 
38216   // optional float alpha = 14 [default = 1];
38217   if (cached_has_bits & 0x10000000u) {
38218     ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->alpha(), output);
38219   }
38220 
38221   // optional float beta = 15 [default = 0.75];
38222   if (cached_has_bits & 0x20000000u) {
38223     ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->beta(), output);
38224   }
38225 
38226   // optional string source = 16;
38227   if (cached_has_bits & 0x00000004u) {
38228     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38229       this->source().data(), static_cast<int>(this->source().length()),
38230       ::google::protobuf::internal::WireFormat::SERIALIZE,
38231       "opencv_caffe.V0LayerParameter.source");
38232     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
38233       16, this->source(), output);
38234   }
38235 
38236   // optional float scale = 17 [default = 1];
38237   if (cached_has_bits & 0x40000000u) {
38238     ::google::protobuf::internal::WireFormatLite::WriteFloat(17, this->scale(), output);
38239   }
38240 
38241   // optional string meanfile = 18;
38242   if (cached_has_bits & 0x00000008u) {
38243     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38244       this->meanfile().data(), static_cast<int>(this->meanfile().length()),
38245       ::google::protobuf::internal::WireFormat::SERIALIZE,
38246       "opencv_caffe.V0LayerParameter.meanfile");
38247     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
38248       18, this->meanfile(), output);
38249   }
38250 
38251   // optional uint32 batchsize = 19;
38252   if (cached_has_bits & 0x00001000u) {
38253     ::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->batchsize(), output);
38254   }
38255 
38256   // optional uint32 cropsize = 20 [default = 0];
38257   if (cached_has_bits & 0x00002000u) {
38258     ::google::protobuf::internal::WireFormatLite::WriteUInt32(20, this->cropsize(), output);
38259   }
38260 
38261   // optional bool mirror = 21 [default = false];
38262   if (cached_has_bits & 0x00008000u) {
38263     ::google::protobuf::internal::WireFormatLite::WriteBool(21, this->mirror(), output);
38264   }
38265 
38266   // optional float k = 22 [default = 1];
38267   if (cached_has_bits & 0x80000000u) {
38268     ::google::protobuf::internal::WireFormatLite::WriteFloat(22, this->k(), output);
38269   }
38270 
38271   // repeated .opencv_caffe.BlobProto blobs = 50;
38272   for (unsigned int i = 0,
38273       n = static_cast<unsigned int>(this->blobs_size()); i < n; i++) {
38274     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
38275       50, this->blobs(static_cast<int>(i)), output);
38276   }
38277 
38278   // repeated float blobs_lr = 51;
38279   for (int i = 0, n = this->blobs_lr_size(); i < n; i++) {
38280     ::google::protobuf::internal::WireFormatLite::WriteFloat(
38281       51, this->blobs_lr(i), output);
38282   }
38283 
38284   // repeated float weight_decay = 52;
38285   for (int i = 0, n = this->weight_decay_size(); i < n; i++) {
38286     ::google::protobuf::internal::WireFormatLite::WriteFloat(
38287       52, this->weight_decay(i), output);
38288   }
38289 
38290   // optional uint32 rand_skip = 53 [default = 0];
38291   if (cached_has_bits & 0x00020000u) {
38292     ::google::protobuf::internal::WireFormatLite::WriteUInt32(53, this->rand_skip(), output);
38293   }
38294 
38295   cached_has_bits = _has_bits_[1];
38296   // optional float det_fg_threshold = 54 [default = 0.5];
38297   if (cached_has_bits & 0x00000001u) {
38298     ::google::protobuf::internal::WireFormatLite::WriteFloat(54, this->det_fg_threshold(), output);
38299   }
38300 
38301   // optional float det_bg_threshold = 55 [default = 0.5];
38302   if (cached_has_bits & 0x00000002u) {
38303     ::google::protobuf::internal::WireFormatLite::WriteFloat(55, this->det_bg_threshold(), output);
38304   }
38305 
38306   // optional float det_fg_fraction = 56 [default = 0.25];
38307   if (cached_has_bits & 0x00000004u) {
38308     ::google::protobuf::internal::WireFormatLite::WriteFloat(56, this->det_fg_fraction(), output);
38309   }
38310 
38311   cached_has_bits = _has_bits_[0];
38312   // optional uint32 det_context_pad = 58 [default = 0];
38313   if (cached_has_bits & 0x00040000u) {
38314     ::google::protobuf::internal::WireFormatLite::WriteUInt32(58, this->det_context_pad(), output);
38315   }
38316 
38317   // optional string det_crop_mode = 59 [default = "warp"];
38318   if (cached_has_bits & 0x00000010u) {
38319     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38320       this->det_crop_mode().data(), static_cast<int>(this->det_crop_mode().length()),
38321       ::google::protobuf::internal::WireFormat::SERIALIZE,
38322       "opencv_caffe.V0LayerParameter.det_crop_mode");
38323     ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
38324       59, this->det_crop_mode(), output);
38325   }
38326 
38327   // optional int32 new_num = 60 [default = 0];
38328   if (cached_has_bits & 0x00080000u) {
38329     ::google::protobuf::internal::WireFormatLite::WriteInt32(60, this->new_num(), output);
38330   }
38331 
38332   // optional int32 new_channels = 61 [default = 0];
38333   if (cached_has_bits & 0x00100000u) {
38334     ::google::protobuf::internal::WireFormatLite::WriteInt32(61, this->new_channels(), output);
38335   }
38336 
38337   // optional int32 new_height = 62 [default = 0];
38338   if (cached_has_bits & 0x00200000u) {
38339     ::google::protobuf::internal::WireFormatLite::WriteInt32(62, this->new_height(), output);
38340   }
38341 
38342   // optional int32 new_width = 63 [default = 0];
38343   if (cached_has_bits & 0x00004000u) {
38344     ::google::protobuf::internal::WireFormatLite::WriteInt32(63, this->new_width(), output);
38345   }
38346 
38347   // optional bool shuffle_images = 64 [default = false];
38348   if (cached_has_bits & 0x00010000u) {
38349     ::google::protobuf::internal::WireFormatLite::WriteBool(64, this->shuffle_images(), output);
38350   }
38351 
38352   // optional uint32 concat_dim = 65 [default = 1];
38353   if (cached_has_bits & 0x00400000u) {
38354     ::google::protobuf::internal::WireFormatLite::WriteUInt32(65, this->concat_dim(), output);
38355   }
38356 
38357   // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001;
38358   if (cached_has_bits & 0x00000080u) {
38359     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
38360       1001, *this->hdf5_output_param_, output);
38361   }
38362 
38363   if (_internal_metadata_.have_unknown_fields()) {
38364     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
38365         _internal_metadata_.unknown_fields(), output);
38366   }
38367   // @@protoc_insertion_point(serialize_end:opencv_caffe.V0LayerParameter)
38368 }
38369 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const38370 ::google::protobuf::uint8* V0LayerParameter::InternalSerializeWithCachedSizesToArray(
38371     bool deterministic, ::google::protobuf::uint8* target) const {
38372   (void)deterministic; // Unused
38373   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.V0LayerParameter)
38374   ::google::protobuf::uint32 cached_has_bits = 0;
38375   (void) cached_has_bits;
38376 
38377   cached_has_bits = _has_bits_[0];
38378   // optional string name = 1;
38379   if (cached_has_bits & 0x00000001u) {
38380     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38381       this->name().data(), static_cast<int>(this->name().length()),
38382       ::google::protobuf::internal::WireFormat::SERIALIZE,
38383       "opencv_caffe.V0LayerParameter.name");
38384     target =
38385       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
38386         1, this->name(), target);
38387   }
38388 
38389   // optional string type = 2;
38390   if (cached_has_bits & 0x00000002u) {
38391     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38392       this->type().data(), static_cast<int>(this->type().length()),
38393       ::google::protobuf::internal::WireFormat::SERIALIZE,
38394       "opencv_caffe.V0LayerParameter.type");
38395     target =
38396       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
38397         2, this->type(), target);
38398   }
38399 
38400   // optional uint32 num_output = 3;
38401   if (cached_has_bits & 0x00000100u) {
38402     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->num_output(), target);
38403   }
38404 
38405   // optional bool biasterm = 4 [default = true];
38406   if (cached_has_bits & 0x00800000u) {
38407     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->biasterm(), target);
38408   }
38409 
38410   // optional .opencv_caffe.FillerParameter weight_filler = 5;
38411   if (cached_has_bits & 0x00000020u) {
38412     target = ::google::protobuf::internal::WireFormatLite::
38413       InternalWriteMessageToArray(
38414         5, *this->weight_filler_, deterministic, target);
38415   }
38416 
38417   // optional .opencv_caffe.FillerParameter bias_filler = 6;
38418   if (cached_has_bits & 0x00000040u) {
38419     target = ::google::protobuf::internal::WireFormatLite::
38420       InternalWriteMessageToArray(
38421         6, *this->bias_filler_, deterministic, target);
38422   }
38423 
38424   // optional uint32 pad = 7 [default = 0];
38425   if (cached_has_bits & 0x00000200u) {
38426     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->pad(), target);
38427   }
38428 
38429   // optional uint32 kernelsize = 8;
38430   if (cached_has_bits & 0x00000400u) {
38431     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->kernelsize(), target);
38432   }
38433 
38434   // optional uint32 group = 9 [default = 1];
38435   if (cached_has_bits & 0x01000000u) {
38436     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->group(), target);
38437   }
38438 
38439   // optional uint32 stride = 10 [default = 1];
38440   if (cached_has_bits & 0x02000000u) {
38441     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->stride(), target);
38442   }
38443 
38444   // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX];
38445   if (cached_has_bits & 0x00000800u) {
38446     target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
38447       11, this->pool(), target);
38448   }
38449 
38450   // optional float dropout_ratio = 12 [default = 0.5];
38451   if (cached_has_bits & 0x04000000u) {
38452     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->dropout_ratio(), target);
38453   }
38454 
38455   // optional uint32 local_size = 13 [default = 5];
38456   if (cached_has_bits & 0x08000000u) {
38457     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->local_size(), target);
38458   }
38459 
38460   // optional float alpha = 14 [default = 1];
38461   if (cached_has_bits & 0x10000000u) {
38462     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->alpha(), target);
38463   }
38464 
38465   // optional float beta = 15 [default = 0.75];
38466   if (cached_has_bits & 0x20000000u) {
38467     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->beta(), target);
38468   }
38469 
38470   // optional string source = 16;
38471   if (cached_has_bits & 0x00000004u) {
38472     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38473       this->source().data(), static_cast<int>(this->source().length()),
38474       ::google::protobuf::internal::WireFormat::SERIALIZE,
38475       "opencv_caffe.V0LayerParameter.source");
38476     target =
38477       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
38478         16, this->source(), target);
38479   }
38480 
38481   // optional float scale = 17 [default = 1];
38482   if (cached_has_bits & 0x40000000u) {
38483     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(17, this->scale(), target);
38484   }
38485 
38486   // optional string meanfile = 18;
38487   if (cached_has_bits & 0x00000008u) {
38488     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38489       this->meanfile().data(), static_cast<int>(this->meanfile().length()),
38490       ::google::protobuf::internal::WireFormat::SERIALIZE,
38491       "opencv_caffe.V0LayerParameter.meanfile");
38492     target =
38493       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
38494         18, this->meanfile(), target);
38495   }
38496 
38497   // optional uint32 batchsize = 19;
38498   if (cached_has_bits & 0x00001000u) {
38499     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->batchsize(), target);
38500   }
38501 
38502   // optional uint32 cropsize = 20 [default = 0];
38503   if (cached_has_bits & 0x00002000u) {
38504     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(20, this->cropsize(), target);
38505   }
38506 
38507   // optional bool mirror = 21 [default = false];
38508   if (cached_has_bits & 0x00008000u) {
38509     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(21, this->mirror(), target);
38510   }
38511 
38512   // optional float k = 22 [default = 1];
38513   if (cached_has_bits & 0x80000000u) {
38514     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(22, this->k(), target);
38515   }
38516 
38517   // repeated .opencv_caffe.BlobProto blobs = 50;
38518   for (unsigned int i = 0,
38519       n = static_cast<unsigned int>(this->blobs_size()); i < n; i++) {
38520     target = ::google::protobuf::internal::WireFormatLite::
38521       InternalWriteMessageToArray(
38522         50, this->blobs(static_cast<int>(i)), deterministic, target);
38523   }
38524 
38525   // repeated float blobs_lr = 51;
38526   target = ::google::protobuf::internal::WireFormatLite::
38527     WriteFloatToArray(51, this->blobs_lr_, target);
38528 
38529   // repeated float weight_decay = 52;
38530   target = ::google::protobuf::internal::WireFormatLite::
38531     WriteFloatToArray(52, this->weight_decay_, target);
38532 
38533   // optional uint32 rand_skip = 53 [default = 0];
38534   if (cached_has_bits & 0x00020000u) {
38535     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(53, this->rand_skip(), target);
38536   }
38537 
38538   cached_has_bits = _has_bits_[1];
38539   // optional float det_fg_threshold = 54 [default = 0.5];
38540   if (cached_has_bits & 0x00000001u) {
38541     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(54, this->det_fg_threshold(), target);
38542   }
38543 
38544   // optional float det_bg_threshold = 55 [default = 0.5];
38545   if (cached_has_bits & 0x00000002u) {
38546     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(55, this->det_bg_threshold(), target);
38547   }
38548 
38549   // optional float det_fg_fraction = 56 [default = 0.25];
38550   if (cached_has_bits & 0x00000004u) {
38551     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(56, this->det_fg_fraction(), target);
38552   }
38553 
38554   cached_has_bits = _has_bits_[0];
38555   // optional uint32 det_context_pad = 58 [default = 0];
38556   if (cached_has_bits & 0x00040000u) {
38557     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(58, this->det_context_pad(), target);
38558   }
38559 
38560   // optional string det_crop_mode = 59 [default = "warp"];
38561   if (cached_has_bits & 0x00000010u) {
38562     ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
38563       this->det_crop_mode().data(), static_cast<int>(this->det_crop_mode().length()),
38564       ::google::protobuf::internal::WireFormat::SERIALIZE,
38565       "opencv_caffe.V0LayerParameter.det_crop_mode");
38566     target =
38567       ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
38568         59, this->det_crop_mode(), target);
38569   }
38570 
38571   // optional int32 new_num = 60 [default = 0];
38572   if (cached_has_bits & 0x00080000u) {
38573     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(60, this->new_num(), target);
38574   }
38575 
38576   // optional int32 new_channels = 61 [default = 0];
38577   if (cached_has_bits & 0x00100000u) {
38578     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(61, this->new_channels(), target);
38579   }
38580 
38581   // optional int32 new_height = 62 [default = 0];
38582   if (cached_has_bits & 0x00200000u) {
38583     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(62, this->new_height(), target);
38584   }
38585 
38586   // optional int32 new_width = 63 [default = 0];
38587   if (cached_has_bits & 0x00004000u) {
38588     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(63, this->new_width(), target);
38589   }
38590 
38591   // optional bool shuffle_images = 64 [default = false];
38592   if (cached_has_bits & 0x00010000u) {
38593     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(64, this->shuffle_images(), target);
38594   }
38595 
38596   // optional uint32 concat_dim = 65 [default = 1];
38597   if (cached_has_bits & 0x00400000u) {
38598     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(65, this->concat_dim(), target);
38599   }
38600 
38601   // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001;
38602   if (cached_has_bits & 0x00000080u) {
38603     target = ::google::protobuf::internal::WireFormatLite::
38604       InternalWriteMessageToArray(
38605         1001, *this->hdf5_output_param_, deterministic, target);
38606   }
38607 
38608   if (_internal_metadata_.have_unknown_fields()) {
38609     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
38610         _internal_metadata_.unknown_fields(), target);
38611   }
38612   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.V0LayerParameter)
38613   return target;
38614 }
38615 
ByteSizeLong() const38616 size_t V0LayerParameter::ByteSizeLong() const {
38617 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.V0LayerParameter)
38618   size_t total_size = 0;
38619 
38620   if (_internal_metadata_.have_unknown_fields()) {
38621     total_size +=
38622       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
38623         _internal_metadata_.unknown_fields());
38624   }
38625   // repeated .opencv_caffe.BlobProto blobs = 50;
38626   {
38627     unsigned int count = static_cast<unsigned int>(this->blobs_size());
38628     total_size += 2UL * count;
38629     for (unsigned int i = 0; i < count; i++) {
38630       total_size +=
38631         ::google::protobuf::internal::WireFormatLite::MessageSize(
38632           this->blobs(static_cast<int>(i)));
38633     }
38634   }
38635 
38636   // repeated float blobs_lr = 51;
38637   {
38638     unsigned int count = static_cast<unsigned int>(this->blobs_lr_size());
38639     size_t data_size = 4UL * count;
38640     total_size += 2 *
38641                   ::google::protobuf::internal::FromIntSize(this->blobs_lr_size());
38642     total_size += data_size;
38643   }
38644 
38645   // repeated float weight_decay = 52;
38646   {
38647     unsigned int count = static_cast<unsigned int>(this->weight_decay_size());
38648     size_t data_size = 4UL * count;
38649     total_size += 2 *
38650                   ::google::protobuf::internal::FromIntSize(this->weight_decay_size());
38651     total_size += data_size;
38652   }
38653 
38654   if (_has_bits_[0 / 32] & 255u) {
38655     // optional string name = 1;
38656     if (has_name()) {
38657       total_size += 1 +
38658         ::google::protobuf::internal::WireFormatLite::StringSize(
38659           this->name());
38660     }
38661 
38662     // optional string type = 2;
38663     if (has_type()) {
38664       total_size += 1 +
38665         ::google::protobuf::internal::WireFormatLite::StringSize(
38666           this->type());
38667     }
38668 
38669     // optional string source = 16;
38670     if (has_source()) {
38671       total_size += 2 +
38672         ::google::protobuf::internal::WireFormatLite::StringSize(
38673           this->source());
38674     }
38675 
38676     // optional string meanfile = 18;
38677     if (has_meanfile()) {
38678       total_size += 2 +
38679         ::google::protobuf::internal::WireFormatLite::StringSize(
38680           this->meanfile());
38681     }
38682 
38683     // optional string det_crop_mode = 59 [default = "warp"];
38684     if (has_det_crop_mode()) {
38685       total_size += 2 +
38686         ::google::protobuf::internal::WireFormatLite::StringSize(
38687           this->det_crop_mode());
38688     }
38689 
38690     // optional .opencv_caffe.FillerParameter weight_filler = 5;
38691     if (has_weight_filler()) {
38692       total_size += 1 +
38693         ::google::protobuf::internal::WireFormatLite::MessageSize(
38694           *this->weight_filler_);
38695     }
38696 
38697     // optional .opencv_caffe.FillerParameter bias_filler = 6;
38698     if (has_bias_filler()) {
38699       total_size += 1 +
38700         ::google::protobuf::internal::WireFormatLite::MessageSize(
38701           *this->bias_filler_);
38702     }
38703 
38704     // optional .opencv_caffe.HDF5OutputParameter hdf5_output_param = 1001;
38705     if (has_hdf5_output_param()) {
38706       total_size += 2 +
38707         ::google::protobuf::internal::WireFormatLite::MessageSize(
38708           *this->hdf5_output_param_);
38709     }
38710 
38711   }
38712   if (_has_bits_[8 / 32] & 65280u) {
38713     // optional uint32 num_output = 3;
38714     if (has_num_output()) {
38715       total_size += 1 +
38716         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38717           this->num_output());
38718     }
38719 
38720     // optional uint32 pad = 7 [default = 0];
38721     if (has_pad()) {
38722       total_size += 1 +
38723         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38724           this->pad());
38725     }
38726 
38727     // optional uint32 kernelsize = 8;
38728     if (has_kernelsize()) {
38729       total_size += 1 +
38730         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38731           this->kernelsize());
38732     }
38733 
38734     // optional .opencv_caffe.V0LayerParameter.PoolMethod pool = 11 [default = MAX];
38735     if (has_pool()) {
38736       total_size += 1 +
38737         ::google::protobuf::internal::WireFormatLite::EnumSize(this->pool());
38738     }
38739 
38740     // optional uint32 batchsize = 19;
38741     if (has_batchsize()) {
38742       total_size += 2 +
38743         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38744           this->batchsize());
38745     }
38746 
38747     // optional uint32 cropsize = 20 [default = 0];
38748     if (has_cropsize()) {
38749       total_size += 2 +
38750         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38751           this->cropsize());
38752     }
38753 
38754     // optional int32 new_width = 63 [default = 0];
38755     if (has_new_width()) {
38756       total_size += 2 +
38757         ::google::protobuf::internal::WireFormatLite::Int32Size(
38758           this->new_width());
38759     }
38760 
38761     // optional bool mirror = 21 [default = false];
38762     if (has_mirror()) {
38763       total_size += 2 + 1;
38764     }
38765 
38766   }
38767   if (_has_bits_[16 / 32] & 16711680u) {
38768     // optional bool shuffle_images = 64 [default = false];
38769     if (has_shuffle_images()) {
38770       total_size += 2 + 1;
38771     }
38772 
38773     // optional uint32 rand_skip = 53 [default = 0];
38774     if (has_rand_skip()) {
38775       total_size += 2 +
38776         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38777           this->rand_skip());
38778     }
38779 
38780     // optional uint32 det_context_pad = 58 [default = 0];
38781     if (has_det_context_pad()) {
38782       total_size += 2 +
38783         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38784           this->det_context_pad());
38785     }
38786 
38787     // optional int32 new_num = 60 [default = 0];
38788     if (has_new_num()) {
38789       total_size += 2 +
38790         ::google::protobuf::internal::WireFormatLite::Int32Size(
38791           this->new_num());
38792     }
38793 
38794     // optional int32 new_channels = 61 [default = 0];
38795     if (has_new_channels()) {
38796       total_size += 2 +
38797         ::google::protobuf::internal::WireFormatLite::Int32Size(
38798           this->new_channels());
38799     }
38800 
38801     // optional int32 new_height = 62 [default = 0];
38802     if (has_new_height()) {
38803       total_size += 2 +
38804         ::google::protobuf::internal::WireFormatLite::Int32Size(
38805           this->new_height());
38806     }
38807 
38808     // optional uint32 concat_dim = 65 [default = 1];
38809     if (has_concat_dim()) {
38810       total_size += 2 +
38811         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38812           this->concat_dim());
38813     }
38814 
38815     // optional bool biasterm = 4 [default = true];
38816     if (has_biasterm()) {
38817       total_size += 1 + 1;
38818     }
38819 
38820   }
38821   if (_has_bits_[24 / 32] & 4278190080u) {
38822     // optional uint32 group = 9 [default = 1];
38823     if (has_group()) {
38824       total_size += 1 +
38825         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38826           this->group());
38827     }
38828 
38829     // optional uint32 stride = 10 [default = 1];
38830     if (has_stride()) {
38831       total_size += 1 +
38832         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38833           this->stride());
38834     }
38835 
38836     // optional float dropout_ratio = 12 [default = 0.5];
38837     if (has_dropout_ratio()) {
38838       total_size += 1 + 4;
38839     }
38840 
38841     // optional uint32 local_size = 13 [default = 5];
38842     if (has_local_size()) {
38843       total_size += 1 +
38844         ::google::protobuf::internal::WireFormatLite::UInt32Size(
38845           this->local_size());
38846     }
38847 
38848     // optional float alpha = 14 [default = 1];
38849     if (has_alpha()) {
38850       total_size += 1 + 4;
38851     }
38852 
38853     // optional float beta = 15 [default = 0.75];
38854     if (has_beta()) {
38855       total_size += 1 + 4;
38856     }
38857 
38858     // optional float scale = 17 [default = 1];
38859     if (has_scale()) {
38860       total_size += 2 + 4;
38861     }
38862 
38863     // optional float k = 22 [default = 1];
38864     if (has_k()) {
38865       total_size += 2 + 4;
38866     }
38867 
38868   }
38869   if (_has_bits_[32 / 32] & 7u) {
38870     // optional float det_fg_threshold = 54 [default = 0.5];
38871     if (has_det_fg_threshold()) {
38872       total_size += 2 + 4;
38873     }
38874 
38875     // optional float det_bg_threshold = 55 [default = 0.5];
38876     if (has_det_bg_threshold()) {
38877       total_size += 2 + 4;
38878     }
38879 
38880     // optional float det_fg_fraction = 56 [default = 0.25];
38881     if (has_det_fg_fraction()) {
38882       total_size += 2 + 4;
38883     }
38884 
38885   }
38886   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
38887   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
38888   _cached_size_ = cached_size;
38889   GOOGLE_SAFE_CONCURRENT_WRITES_END();
38890   return total_size;
38891 }
38892 
MergeFrom(const::google::protobuf::Message & from)38893 void V0LayerParameter::MergeFrom(const ::google::protobuf::Message& from) {
38894 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.V0LayerParameter)
38895   GOOGLE_DCHECK_NE(&from, this);
38896   const V0LayerParameter* source =
38897       ::google::protobuf::internal::DynamicCastToGenerated<const V0LayerParameter>(
38898           &from);
38899   if (source == NULL) {
38900   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.V0LayerParameter)
38901     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
38902   } else {
38903   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.V0LayerParameter)
38904     MergeFrom(*source);
38905   }
38906 }
38907 
MergeFrom(const V0LayerParameter & from)38908 void V0LayerParameter::MergeFrom(const V0LayerParameter& from) {
38909 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.V0LayerParameter)
38910   GOOGLE_DCHECK_NE(&from, this);
38911   _internal_metadata_.MergeFrom(from._internal_metadata_);
38912   ::google::protobuf::uint32 cached_has_bits = 0;
38913   (void) cached_has_bits;
38914 
38915   blobs_.MergeFrom(from.blobs_);
38916   blobs_lr_.MergeFrom(from.blobs_lr_);
38917   weight_decay_.MergeFrom(from.weight_decay_);
38918   cached_has_bits = from._has_bits_[0];
38919   if (cached_has_bits & 255u) {
38920     if (cached_has_bits & 0x00000001u) {
38921       set_has_name();
38922       name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
38923     }
38924     if (cached_has_bits & 0x00000002u) {
38925       set_has_type();
38926       type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
38927     }
38928     if (cached_has_bits & 0x00000004u) {
38929       set_has_source();
38930       source_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_);
38931     }
38932     if (cached_has_bits & 0x00000008u) {
38933       set_has_meanfile();
38934       meanfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.meanfile_);
38935     }
38936     if (cached_has_bits & 0x00000010u) {
38937       set_has_det_crop_mode();
38938       det_crop_mode_.AssignWithDefault(&::opencv_caffe::V0LayerParameter::_default_det_crop_mode_.get(), from.det_crop_mode_);
38939     }
38940     if (cached_has_bits & 0x00000020u) {
38941       mutable_weight_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.weight_filler());
38942     }
38943     if (cached_has_bits & 0x00000040u) {
38944       mutable_bias_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.bias_filler());
38945     }
38946     if (cached_has_bits & 0x00000080u) {
38947       mutable_hdf5_output_param()->::opencv_caffe::HDF5OutputParameter::MergeFrom(from.hdf5_output_param());
38948     }
38949   }
38950   if (cached_has_bits & 65280u) {
38951     if (cached_has_bits & 0x00000100u) {
38952       num_output_ = from.num_output_;
38953     }
38954     if (cached_has_bits & 0x00000200u) {
38955       pad_ = from.pad_;
38956     }
38957     if (cached_has_bits & 0x00000400u) {
38958       kernelsize_ = from.kernelsize_;
38959     }
38960     if (cached_has_bits & 0x00000800u) {
38961       pool_ = from.pool_;
38962     }
38963     if (cached_has_bits & 0x00001000u) {
38964       batchsize_ = from.batchsize_;
38965     }
38966     if (cached_has_bits & 0x00002000u) {
38967       cropsize_ = from.cropsize_;
38968     }
38969     if (cached_has_bits & 0x00004000u) {
38970       new_width_ = from.new_width_;
38971     }
38972     if (cached_has_bits & 0x00008000u) {
38973       mirror_ = from.mirror_;
38974     }
38975     _has_bits_[0] |= cached_has_bits;
38976   }
38977   if (cached_has_bits & 16711680u) {
38978     if (cached_has_bits & 0x00010000u) {
38979       shuffle_images_ = from.shuffle_images_;
38980     }
38981     if (cached_has_bits & 0x00020000u) {
38982       rand_skip_ = from.rand_skip_;
38983     }
38984     if (cached_has_bits & 0x00040000u) {
38985       det_context_pad_ = from.det_context_pad_;
38986     }
38987     if (cached_has_bits & 0x00080000u) {
38988       new_num_ = from.new_num_;
38989     }
38990     if (cached_has_bits & 0x00100000u) {
38991       new_channels_ = from.new_channels_;
38992     }
38993     if (cached_has_bits & 0x00200000u) {
38994       new_height_ = from.new_height_;
38995     }
38996     if (cached_has_bits & 0x00400000u) {
38997       concat_dim_ = from.concat_dim_;
38998     }
38999     if (cached_has_bits & 0x00800000u) {
39000       biasterm_ = from.biasterm_;
39001     }
39002     _has_bits_[0] |= cached_has_bits;
39003   }
39004   if (cached_has_bits & 4278190080u) {
39005     if (cached_has_bits & 0x01000000u) {
39006       group_ = from.group_;
39007     }
39008     if (cached_has_bits & 0x02000000u) {
39009       stride_ = from.stride_;
39010     }
39011     if (cached_has_bits & 0x04000000u) {
39012       dropout_ratio_ = from.dropout_ratio_;
39013     }
39014     if (cached_has_bits & 0x08000000u) {
39015       local_size_ = from.local_size_;
39016     }
39017     if (cached_has_bits & 0x10000000u) {
39018       alpha_ = from.alpha_;
39019     }
39020     if (cached_has_bits & 0x20000000u) {
39021       beta_ = from.beta_;
39022     }
39023     if (cached_has_bits & 0x40000000u) {
39024       scale_ = from.scale_;
39025     }
39026     if (cached_has_bits & 0x80000000u) {
39027       k_ = from.k_;
39028     }
39029     _has_bits_[0] |= cached_has_bits;
39030   }
39031   cached_has_bits = from._has_bits_[1];
39032   if (cached_has_bits & 7u) {
39033     if (cached_has_bits & 0x00000001u) {
39034       det_fg_threshold_ = from.det_fg_threshold_;
39035     }
39036     if (cached_has_bits & 0x00000002u) {
39037       det_bg_threshold_ = from.det_bg_threshold_;
39038     }
39039     if (cached_has_bits & 0x00000004u) {
39040       det_fg_fraction_ = from.det_fg_fraction_;
39041     }
39042     _has_bits_[1] |= cached_has_bits;
39043   }
39044 }
39045 
CopyFrom(const::google::protobuf::Message & from)39046 void V0LayerParameter::CopyFrom(const ::google::protobuf::Message& from) {
39047 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.V0LayerParameter)
39048   if (&from == this) return;
39049   Clear();
39050   MergeFrom(from);
39051 }
39052 
CopyFrom(const V0LayerParameter & from)39053 void V0LayerParameter::CopyFrom(const V0LayerParameter& from) {
39054 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.V0LayerParameter)
39055   if (&from == this) return;
39056   Clear();
39057   MergeFrom(from);
39058 }
39059 
IsInitialized() const39060 bool V0LayerParameter::IsInitialized() const {
39061   return true;
39062 }
39063 
Swap(V0LayerParameter * other)39064 void V0LayerParameter::Swap(V0LayerParameter* other) {
39065   if (other == this) return;
39066   InternalSwap(other);
39067 }
InternalSwap(V0LayerParameter * other)39068 void V0LayerParameter::InternalSwap(V0LayerParameter* other) {
39069   using std::swap;
39070   blobs_.InternalSwap(&other->blobs_);
39071   blobs_lr_.InternalSwap(&other->blobs_lr_);
39072   weight_decay_.InternalSwap(&other->weight_decay_);
39073   name_.Swap(&other->name_);
39074   type_.Swap(&other->type_);
39075   source_.Swap(&other->source_);
39076   meanfile_.Swap(&other->meanfile_);
39077   det_crop_mode_.Swap(&other->det_crop_mode_);
39078   swap(weight_filler_, other->weight_filler_);
39079   swap(bias_filler_, other->bias_filler_);
39080   swap(hdf5_output_param_, other->hdf5_output_param_);
39081   swap(num_output_, other->num_output_);
39082   swap(pad_, other->pad_);
39083   swap(kernelsize_, other->kernelsize_);
39084   swap(pool_, other->pool_);
39085   swap(batchsize_, other->batchsize_);
39086   swap(cropsize_, other->cropsize_);
39087   swap(new_width_, other->new_width_);
39088   swap(mirror_, other->mirror_);
39089   swap(shuffle_images_, other->shuffle_images_);
39090   swap(rand_skip_, other->rand_skip_);
39091   swap(det_context_pad_, other->det_context_pad_);
39092   swap(new_num_, other->new_num_);
39093   swap(new_channels_, other->new_channels_);
39094   swap(new_height_, other->new_height_);
39095   swap(concat_dim_, other->concat_dim_);
39096   swap(biasterm_, other->biasterm_);
39097   swap(group_, other->group_);
39098   swap(stride_, other->stride_);
39099   swap(dropout_ratio_, other->dropout_ratio_);
39100   swap(local_size_, other->local_size_);
39101   swap(alpha_, other->alpha_);
39102   swap(beta_, other->beta_);
39103   swap(scale_, other->scale_);
39104   swap(k_, other->k_);
39105   swap(det_fg_threshold_, other->det_fg_threshold_);
39106   swap(det_bg_threshold_, other->det_bg_threshold_);
39107   swap(det_fg_fraction_, other->det_fg_fraction_);
39108   swap(_has_bits_[0], other->_has_bits_[0]);
39109   swap(_has_bits_[1], other->_has_bits_[1]);
39110   _internal_metadata_.Swap(&other->_internal_metadata_);
39111   swap(_cached_size_, other->_cached_size_);
39112 }
39113 
GetMetadata() const39114 ::google::protobuf::Metadata V0LayerParameter::GetMetadata() const {
39115   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
39116   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
39117 }
39118 
39119 
39120 // ===================================================================
39121 
InitAsDefaultInstance()39122 void PReLUParameter::InitAsDefaultInstance() {
39123   ::opencv_caffe::_PReLUParameter_default_instance_._instance.get_mutable()->filler_ = const_cast< ::opencv_caffe::FillerParameter*>(
39124       ::opencv_caffe::FillerParameter::internal_default_instance());
39125 }
39126 #if !defined(_MSC_VER) || _MSC_VER >= 1900
39127 const int PReLUParameter::kFillerFieldNumber;
39128 const int PReLUParameter::kChannelSharedFieldNumber;
39129 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
39130 
PReLUParameter()39131 PReLUParameter::PReLUParameter()
39132   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
39133   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
39134     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPReLUParameter();
39135   }
39136   SharedCtor();
39137   // @@protoc_insertion_point(constructor:opencv_caffe.PReLUParameter)
39138 }
PReLUParameter(const PReLUParameter & from)39139 PReLUParameter::PReLUParameter(const PReLUParameter& from)
39140   : ::google::protobuf::Message(),
39141       _internal_metadata_(NULL),
39142       _has_bits_(from._has_bits_),
39143       _cached_size_(0) {
39144   _internal_metadata_.MergeFrom(from._internal_metadata_);
39145   if (from.has_filler()) {
39146     filler_ = new ::opencv_caffe::FillerParameter(*from.filler_);
39147   } else {
39148     filler_ = NULL;
39149   }
39150   channel_shared_ = from.channel_shared_;
39151   // @@protoc_insertion_point(copy_constructor:opencv_caffe.PReLUParameter)
39152 }
39153 
SharedCtor()39154 void PReLUParameter::SharedCtor() {
39155   _cached_size_ = 0;
39156   ::memset(&filler_, 0, static_cast<size_t>(
39157       reinterpret_cast<char*>(&channel_shared_) -
39158       reinterpret_cast<char*>(&filler_)) + sizeof(channel_shared_));
39159 }
39160 
~PReLUParameter()39161 PReLUParameter::~PReLUParameter() {
39162   // @@protoc_insertion_point(destructor:opencv_caffe.PReLUParameter)
39163   SharedDtor();
39164 }
39165 
SharedDtor()39166 void PReLUParameter::SharedDtor() {
39167   if (this != internal_default_instance()) delete filler_;
39168 }
39169 
SetCachedSize(int size) const39170 void PReLUParameter::SetCachedSize(int size) const {
39171   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
39172   _cached_size_ = size;
39173   GOOGLE_SAFE_CONCURRENT_WRITES_END();
39174 }
descriptor()39175 const ::google::protobuf::Descriptor* PReLUParameter::descriptor() {
39176   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
39177   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
39178 }
39179 
default_instance()39180 const PReLUParameter& PReLUParameter::default_instance() {
39181   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPReLUParameter();
39182   return *internal_default_instance();
39183 }
39184 
New(::google::protobuf::Arena * arena) const39185 PReLUParameter* PReLUParameter::New(::google::protobuf::Arena* arena) const {
39186   PReLUParameter* n = new PReLUParameter;
39187   if (arena != NULL) {
39188     arena->Own(n);
39189   }
39190   return n;
39191 }
39192 
Clear()39193 void PReLUParameter::Clear() {
39194 // @@protoc_insertion_point(message_clear_start:opencv_caffe.PReLUParameter)
39195   ::google::protobuf::uint32 cached_has_bits = 0;
39196   // Prevent compiler warnings about cached_has_bits being unused
39197   (void) cached_has_bits;
39198 
39199   cached_has_bits = _has_bits_[0];
39200   if (cached_has_bits & 0x00000001u) {
39201     GOOGLE_DCHECK(filler_ != NULL);
39202     filler_->Clear();
39203   }
39204   channel_shared_ = false;
39205   _has_bits_.Clear();
39206   _internal_metadata_.Clear();
39207 }
39208 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)39209 bool PReLUParameter::MergePartialFromCodedStream(
39210     ::google::protobuf::io::CodedInputStream* input) {
39211 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
39212   ::google::protobuf::uint32 tag;
39213   // @@protoc_insertion_point(parse_start:opencv_caffe.PReLUParameter)
39214   for (;;) {
39215     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
39216     tag = p.first;
39217     if (!p.second) goto handle_unusual;
39218     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
39219       // optional .opencv_caffe.FillerParameter filler = 1;
39220       case 1: {
39221         if (static_cast< ::google::protobuf::uint8>(tag) ==
39222             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
39223           DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
39224                input, mutable_filler()));
39225         } else {
39226           goto handle_unusual;
39227         }
39228         break;
39229       }
39230 
39231       // optional bool channel_shared = 2 [default = false];
39232       case 2: {
39233         if (static_cast< ::google::protobuf::uint8>(tag) ==
39234             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
39235           set_has_channel_shared();
39236           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39237                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
39238                  input, &channel_shared_)));
39239         } else {
39240           goto handle_unusual;
39241         }
39242         break;
39243       }
39244 
39245       default: {
39246       handle_unusual:
39247         if (tag == 0) {
39248           goto success;
39249         }
39250         DO_(::google::protobuf::internal::WireFormat::SkipField(
39251               input, tag, _internal_metadata_.mutable_unknown_fields()));
39252         break;
39253       }
39254     }
39255   }
39256 success:
39257   // @@protoc_insertion_point(parse_success:opencv_caffe.PReLUParameter)
39258   return true;
39259 failure:
39260   // @@protoc_insertion_point(parse_failure:opencv_caffe.PReLUParameter)
39261   return false;
39262 #undef DO_
39263 }
39264 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const39265 void PReLUParameter::SerializeWithCachedSizes(
39266     ::google::protobuf::io::CodedOutputStream* output) const {
39267   // @@protoc_insertion_point(serialize_start:opencv_caffe.PReLUParameter)
39268   ::google::protobuf::uint32 cached_has_bits = 0;
39269   (void) cached_has_bits;
39270 
39271   cached_has_bits = _has_bits_[0];
39272   // optional .opencv_caffe.FillerParameter filler = 1;
39273   if (cached_has_bits & 0x00000001u) {
39274     ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
39275       1, *this->filler_, output);
39276   }
39277 
39278   // optional bool channel_shared = 2 [default = false];
39279   if (cached_has_bits & 0x00000002u) {
39280     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->channel_shared(), output);
39281   }
39282 
39283   if (_internal_metadata_.have_unknown_fields()) {
39284     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
39285         _internal_metadata_.unknown_fields(), output);
39286   }
39287   // @@protoc_insertion_point(serialize_end:opencv_caffe.PReLUParameter)
39288 }
39289 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const39290 ::google::protobuf::uint8* PReLUParameter::InternalSerializeWithCachedSizesToArray(
39291     bool deterministic, ::google::protobuf::uint8* target) const {
39292   (void)deterministic; // Unused
39293   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PReLUParameter)
39294   ::google::protobuf::uint32 cached_has_bits = 0;
39295   (void) cached_has_bits;
39296 
39297   cached_has_bits = _has_bits_[0];
39298   // optional .opencv_caffe.FillerParameter filler = 1;
39299   if (cached_has_bits & 0x00000001u) {
39300     target = ::google::protobuf::internal::WireFormatLite::
39301       InternalWriteMessageToArray(
39302         1, *this->filler_, deterministic, target);
39303   }
39304 
39305   // optional bool channel_shared = 2 [default = false];
39306   if (cached_has_bits & 0x00000002u) {
39307     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->channel_shared(), target);
39308   }
39309 
39310   if (_internal_metadata_.have_unknown_fields()) {
39311     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
39312         _internal_metadata_.unknown_fields(), target);
39313   }
39314   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PReLUParameter)
39315   return target;
39316 }
39317 
ByteSizeLong() const39318 size_t PReLUParameter::ByteSizeLong() const {
39319 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PReLUParameter)
39320   size_t total_size = 0;
39321 
39322   if (_internal_metadata_.have_unknown_fields()) {
39323     total_size +=
39324       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
39325         _internal_metadata_.unknown_fields());
39326   }
39327   if (_has_bits_[0 / 32] & 3u) {
39328     // optional .opencv_caffe.FillerParameter filler = 1;
39329     if (has_filler()) {
39330       total_size += 1 +
39331         ::google::protobuf::internal::WireFormatLite::MessageSize(
39332           *this->filler_);
39333     }
39334 
39335     // optional bool channel_shared = 2 [default = false];
39336     if (has_channel_shared()) {
39337       total_size += 1 + 1;
39338     }
39339 
39340   }
39341   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
39342   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
39343   _cached_size_ = cached_size;
39344   GOOGLE_SAFE_CONCURRENT_WRITES_END();
39345   return total_size;
39346 }
39347 
MergeFrom(const::google::protobuf::Message & from)39348 void PReLUParameter::MergeFrom(const ::google::protobuf::Message& from) {
39349 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PReLUParameter)
39350   GOOGLE_DCHECK_NE(&from, this);
39351   const PReLUParameter* source =
39352       ::google::protobuf::internal::DynamicCastToGenerated<const PReLUParameter>(
39353           &from);
39354   if (source == NULL) {
39355   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PReLUParameter)
39356     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
39357   } else {
39358   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PReLUParameter)
39359     MergeFrom(*source);
39360   }
39361 }
39362 
MergeFrom(const PReLUParameter & from)39363 void PReLUParameter::MergeFrom(const PReLUParameter& from) {
39364 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PReLUParameter)
39365   GOOGLE_DCHECK_NE(&from, this);
39366   _internal_metadata_.MergeFrom(from._internal_metadata_);
39367   ::google::protobuf::uint32 cached_has_bits = 0;
39368   (void) cached_has_bits;
39369 
39370   cached_has_bits = from._has_bits_[0];
39371   if (cached_has_bits & 3u) {
39372     if (cached_has_bits & 0x00000001u) {
39373       mutable_filler()->::opencv_caffe::FillerParameter::MergeFrom(from.filler());
39374     }
39375     if (cached_has_bits & 0x00000002u) {
39376       channel_shared_ = from.channel_shared_;
39377     }
39378     _has_bits_[0] |= cached_has_bits;
39379   }
39380 }
39381 
CopyFrom(const::google::protobuf::Message & from)39382 void PReLUParameter::CopyFrom(const ::google::protobuf::Message& from) {
39383 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PReLUParameter)
39384   if (&from == this) return;
39385   Clear();
39386   MergeFrom(from);
39387 }
39388 
CopyFrom(const PReLUParameter & from)39389 void PReLUParameter::CopyFrom(const PReLUParameter& from) {
39390 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PReLUParameter)
39391   if (&from == this) return;
39392   Clear();
39393   MergeFrom(from);
39394 }
39395 
IsInitialized() const39396 bool PReLUParameter::IsInitialized() const {
39397   return true;
39398 }
39399 
Swap(PReLUParameter * other)39400 void PReLUParameter::Swap(PReLUParameter* other) {
39401   if (other == this) return;
39402   InternalSwap(other);
39403 }
InternalSwap(PReLUParameter * other)39404 void PReLUParameter::InternalSwap(PReLUParameter* other) {
39405   using std::swap;
39406   swap(filler_, other->filler_);
39407   swap(channel_shared_, other->channel_shared_);
39408   swap(_has_bits_[0], other->_has_bits_[0]);
39409   _internal_metadata_.Swap(&other->_internal_metadata_);
39410   swap(_cached_size_, other->_cached_size_);
39411 }
39412 
GetMetadata() const39413 ::google::protobuf::Metadata PReLUParameter::GetMetadata() const {
39414   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
39415   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
39416 }
39417 
39418 
39419 // ===================================================================
39420 
InitAsDefaultInstance()39421 void NormalizedBBox::InitAsDefaultInstance() {
39422 }
39423 #if !defined(_MSC_VER) || _MSC_VER >= 1900
39424 const int NormalizedBBox::kXminFieldNumber;
39425 const int NormalizedBBox::kYminFieldNumber;
39426 const int NormalizedBBox::kXmaxFieldNumber;
39427 const int NormalizedBBox::kYmaxFieldNumber;
39428 const int NormalizedBBox::kLabelFieldNumber;
39429 const int NormalizedBBox::kDifficultFieldNumber;
39430 const int NormalizedBBox::kScoreFieldNumber;
39431 const int NormalizedBBox::kSizeFieldNumber;
39432 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
39433 
NormalizedBBox()39434 NormalizedBBox::NormalizedBBox()
39435   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
39436   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
39437     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizedBBox();
39438   }
39439   SharedCtor();
39440   // @@protoc_insertion_point(constructor:opencv_caffe.NormalizedBBox)
39441 }
NormalizedBBox(const NormalizedBBox & from)39442 NormalizedBBox::NormalizedBBox(const NormalizedBBox& from)
39443   : ::google::protobuf::Message(),
39444       _internal_metadata_(NULL),
39445       _has_bits_(from._has_bits_),
39446       _cached_size_(0) {
39447   _internal_metadata_.MergeFrom(from._internal_metadata_);
39448   ::memcpy(&xmin_, &from.xmin_,
39449     static_cast<size_t>(reinterpret_cast<char*>(&size_) -
39450     reinterpret_cast<char*>(&xmin_)) + sizeof(size_));
39451   // @@protoc_insertion_point(copy_constructor:opencv_caffe.NormalizedBBox)
39452 }
39453 
SharedCtor()39454 void NormalizedBBox::SharedCtor() {
39455   _cached_size_ = 0;
39456   ::memset(&xmin_, 0, static_cast<size_t>(
39457       reinterpret_cast<char*>(&size_) -
39458       reinterpret_cast<char*>(&xmin_)) + sizeof(size_));
39459 }
39460 
~NormalizedBBox()39461 NormalizedBBox::~NormalizedBBox() {
39462   // @@protoc_insertion_point(destructor:opencv_caffe.NormalizedBBox)
39463   SharedDtor();
39464 }
39465 
SharedDtor()39466 void NormalizedBBox::SharedDtor() {
39467 }
39468 
SetCachedSize(int size) const39469 void NormalizedBBox::SetCachedSize(int size) const {
39470   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
39471   _cached_size_ = size;
39472   GOOGLE_SAFE_CONCURRENT_WRITES_END();
39473 }
descriptor()39474 const ::google::protobuf::Descriptor* NormalizedBBox::descriptor() {
39475   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
39476   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
39477 }
39478 
default_instance()39479 const NormalizedBBox& NormalizedBBox::default_instance() {
39480   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsNormalizedBBox();
39481   return *internal_default_instance();
39482 }
39483 
New(::google::protobuf::Arena * arena) const39484 NormalizedBBox* NormalizedBBox::New(::google::protobuf::Arena* arena) const {
39485   NormalizedBBox* n = new NormalizedBBox;
39486   if (arena != NULL) {
39487     arena->Own(n);
39488   }
39489   return n;
39490 }
39491 
Clear()39492 void NormalizedBBox::Clear() {
39493 // @@protoc_insertion_point(message_clear_start:opencv_caffe.NormalizedBBox)
39494   ::google::protobuf::uint32 cached_has_bits = 0;
39495   // Prevent compiler warnings about cached_has_bits being unused
39496   (void) cached_has_bits;
39497 
39498   cached_has_bits = _has_bits_[0];
39499   if (cached_has_bits & 255u) {
39500     ::memset(&xmin_, 0, static_cast<size_t>(
39501         reinterpret_cast<char*>(&size_) -
39502         reinterpret_cast<char*>(&xmin_)) + sizeof(size_));
39503   }
39504   _has_bits_.Clear();
39505   _internal_metadata_.Clear();
39506 }
39507 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)39508 bool NormalizedBBox::MergePartialFromCodedStream(
39509     ::google::protobuf::io::CodedInputStream* input) {
39510 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
39511   ::google::protobuf::uint32 tag;
39512   // @@protoc_insertion_point(parse_start:opencv_caffe.NormalizedBBox)
39513   for (;;) {
39514     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
39515     tag = p.first;
39516     if (!p.second) goto handle_unusual;
39517     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
39518       // optional float xmin = 1;
39519       case 1: {
39520         if (static_cast< ::google::protobuf::uint8>(tag) ==
39521             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
39522           set_has_xmin();
39523           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39524                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
39525                  input, &xmin_)));
39526         } else {
39527           goto handle_unusual;
39528         }
39529         break;
39530       }
39531 
39532       // optional float ymin = 2;
39533       case 2: {
39534         if (static_cast< ::google::protobuf::uint8>(tag) ==
39535             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
39536           set_has_ymin();
39537           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39538                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
39539                  input, &ymin_)));
39540         } else {
39541           goto handle_unusual;
39542         }
39543         break;
39544       }
39545 
39546       // optional float xmax = 3;
39547       case 3: {
39548         if (static_cast< ::google::protobuf::uint8>(tag) ==
39549             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
39550           set_has_xmax();
39551           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39552                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
39553                  input, &xmax_)));
39554         } else {
39555           goto handle_unusual;
39556         }
39557         break;
39558       }
39559 
39560       // optional float ymax = 4;
39561       case 4: {
39562         if (static_cast< ::google::protobuf::uint8>(tag) ==
39563             static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
39564           set_has_ymax();
39565           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39566                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
39567                  input, &ymax_)));
39568         } else {
39569           goto handle_unusual;
39570         }
39571         break;
39572       }
39573 
39574       // optional int32 label = 5;
39575       case 5: {
39576         if (static_cast< ::google::protobuf::uint8>(tag) ==
39577             static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
39578           set_has_label();
39579           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39580                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
39581                  input, &label_)));
39582         } else {
39583           goto handle_unusual;
39584         }
39585         break;
39586       }
39587 
39588       // optional bool difficult = 6;
39589       case 6: {
39590         if (static_cast< ::google::protobuf::uint8>(tag) ==
39591             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
39592           set_has_difficult();
39593           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39594                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
39595                  input, &difficult_)));
39596         } else {
39597           goto handle_unusual;
39598         }
39599         break;
39600       }
39601 
39602       // optional float score = 7;
39603       case 7: {
39604         if (static_cast< ::google::protobuf::uint8>(tag) ==
39605             static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
39606           set_has_score();
39607           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39608                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
39609                  input, &score_)));
39610         } else {
39611           goto handle_unusual;
39612         }
39613         break;
39614       }
39615 
39616       // optional float size = 8;
39617       case 8: {
39618         if (static_cast< ::google::protobuf::uint8>(tag) ==
39619             static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
39620           set_has_size();
39621           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
39622                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
39623                  input, &size_)));
39624         } else {
39625           goto handle_unusual;
39626         }
39627         break;
39628       }
39629 
39630       default: {
39631       handle_unusual:
39632         if (tag == 0) {
39633           goto success;
39634         }
39635         DO_(::google::protobuf::internal::WireFormat::SkipField(
39636               input, tag, _internal_metadata_.mutable_unknown_fields()));
39637         break;
39638       }
39639     }
39640   }
39641 success:
39642   // @@protoc_insertion_point(parse_success:opencv_caffe.NormalizedBBox)
39643   return true;
39644 failure:
39645   // @@protoc_insertion_point(parse_failure:opencv_caffe.NormalizedBBox)
39646   return false;
39647 #undef DO_
39648 }
39649 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const39650 void NormalizedBBox::SerializeWithCachedSizes(
39651     ::google::protobuf::io::CodedOutputStream* output) const {
39652   // @@protoc_insertion_point(serialize_start:opencv_caffe.NormalizedBBox)
39653   ::google::protobuf::uint32 cached_has_bits = 0;
39654   (void) cached_has_bits;
39655 
39656   cached_has_bits = _has_bits_[0];
39657   // optional float xmin = 1;
39658   if (cached_has_bits & 0x00000001u) {
39659     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->xmin(), output);
39660   }
39661 
39662   // optional float ymin = 2;
39663   if (cached_has_bits & 0x00000002u) {
39664     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->ymin(), output);
39665   }
39666 
39667   // optional float xmax = 3;
39668   if (cached_has_bits & 0x00000004u) {
39669     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->xmax(), output);
39670   }
39671 
39672   // optional float ymax = 4;
39673   if (cached_has_bits & 0x00000008u) {
39674     ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->ymax(), output);
39675   }
39676 
39677   // optional int32 label = 5;
39678   if (cached_has_bits & 0x00000010u) {
39679     ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->label(), output);
39680   }
39681 
39682   // optional bool difficult = 6;
39683   if (cached_has_bits & 0x00000020u) {
39684     ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->difficult(), output);
39685   }
39686 
39687   // optional float score = 7;
39688   if (cached_has_bits & 0x00000040u) {
39689     ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->score(), output);
39690   }
39691 
39692   // optional float size = 8;
39693   if (cached_has_bits & 0x00000080u) {
39694     ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->size(), output);
39695   }
39696 
39697   if (_internal_metadata_.have_unknown_fields()) {
39698     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
39699         _internal_metadata_.unknown_fields(), output);
39700   }
39701   // @@protoc_insertion_point(serialize_end:opencv_caffe.NormalizedBBox)
39702 }
39703 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const39704 ::google::protobuf::uint8* NormalizedBBox::InternalSerializeWithCachedSizesToArray(
39705     bool deterministic, ::google::protobuf::uint8* target) const {
39706   (void)deterministic; // Unused
39707   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.NormalizedBBox)
39708   ::google::protobuf::uint32 cached_has_bits = 0;
39709   (void) cached_has_bits;
39710 
39711   cached_has_bits = _has_bits_[0];
39712   // optional float xmin = 1;
39713   if (cached_has_bits & 0x00000001u) {
39714     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->xmin(), target);
39715   }
39716 
39717   // optional float ymin = 2;
39718   if (cached_has_bits & 0x00000002u) {
39719     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->ymin(), target);
39720   }
39721 
39722   // optional float xmax = 3;
39723   if (cached_has_bits & 0x00000004u) {
39724     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->xmax(), target);
39725   }
39726 
39727   // optional float ymax = 4;
39728   if (cached_has_bits & 0x00000008u) {
39729     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->ymax(), target);
39730   }
39731 
39732   // optional int32 label = 5;
39733   if (cached_has_bits & 0x00000010u) {
39734     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->label(), target);
39735   }
39736 
39737   // optional bool difficult = 6;
39738   if (cached_has_bits & 0x00000020u) {
39739     target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->difficult(), target);
39740   }
39741 
39742   // optional float score = 7;
39743   if (cached_has_bits & 0x00000040u) {
39744     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->score(), target);
39745   }
39746 
39747   // optional float size = 8;
39748   if (cached_has_bits & 0x00000080u) {
39749     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->size(), target);
39750   }
39751 
39752   if (_internal_metadata_.have_unknown_fields()) {
39753     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
39754         _internal_metadata_.unknown_fields(), target);
39755   }
39756   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.NormalizedBBox)
39757   return target;
39758 }
39759 
ByteSizeLong() const39760 size_t NormalizedBBox::ByteSizeLong() const {
39761 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.NormalizedBBox)
39762   size_t total_size = 0;
39763 
39764   if (_internal_metadata_.have_unknown_fields()) {
39765     total_size +=
39766       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
39767         _internal_metadata_.unknown_fields());
39768   }
39769   if (_has_bits_[0 / 32] & 255u) {
39770     // optional float xmin = 1;
39771     if (has_xmin()) {
39772       total_size += 1 + 4;
39773     }
39774 
39775     // optional float ymin = 2;
39776     if (has_ymin()) {
39777       total_size += 1 + 4;
39778     }
39779 
39780     // optional float xmax = 3;
39781     if (has_xmax()) {
39782       total_size += 1 + 4;
39783     }
39784 
39785     // optional float ymax = 4;
39786     if (has_ymax()) {
39787       total_size += 1 + 4;
39788     }
39789 
39790     // optional int32 label = 5;
39791     if (has_label()) {
39792       total_size += 1 +
39793         ::google::protobuf::internal::WireFormatLite::Int32Size(
39794           this->label());
39795     }
39796 
39797     // optional bool difficult = 6;
39798     if (has_difficult()) {
39799       total_size += 1 + 1;
39800     }
39801 
39802     // optional float score = 7;
39803     if (has_score()) {
39804       total_size += 1 + 4;
39805     }
39806 
39807     // optional float size = 8;
39808     if (has_size()) {
39809       total_size += 1 + 4;
39810     }
39811 
39812   }
39813   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
39814   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
39815   _cached_size_ = cached_size;
39816   GOOGLE_SAFE_CONCURRENT_WRITES_END();
39817   return total_size;
39818 }
39819 
MergeFrom(const::google::protobuf::Message & from)39820 void NormalizedBBox::MergeFrom(const ::google::protobuf::Message& from) {
39821 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.NormalizedBBox)
39822   GOOGLE_DCHECK_NE(&from, this);
39823   const NormalizedBBox* source =
39824       ::google::protobuf::internal::DynamicCastToGenerated<const NormalizedBBox>(
39825           &from);
39826   if (source == NULL) {
39827   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.NormalizedBBox)
39828     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
39829   } else {
39830   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.NormalizedBBox)
39831     MergeFrom(*source);
39832   }
39833 }
39834 
MergeFrom(const NormalizedBBox & from)39835 void NormalizedBBox::MergeFrom(const NormalizedBBox& from) {
39836 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.NormalizedBBox)
39837   GOOGLE_DCHECK_NE(&from, this);
39838   _internal_metadata_.MergeFrom(from._internal_metadata_);
39839   ::google::protobuf::uint32 cached_has_bits = 0;
39840   (void) cached_has_bits;
39841 
39842   cached_has_bits = from._has_bits_[0];
39843   if (cached_has_bits & 255u) {
39844     if (cached_has_bits & 0x00000001u) {
39845       xmin_ = from.xmin_;
39846     }
39847     if (cached_has_bits & 0x00000002u) {
39848       ymin_ = from.ymin_;
39849     }
39850     if (cached_has_bits & 0x00000004u) {
39851       xmax_ = from.xmax_;
39852     }
39853     if (cached_has_bits & 0x00000008u) {
39854       ymax_ = from.ymax_;
39855     }
39856     if (cached_has_bits & 0x00000010u) {
39857       label_ = from.label_;
39858     }
39859     if (cached_has_bits & 0x00000020u) {
39860       difficult_ = from.difficult_;
39861     }
39862     if (cached_has_bits & 0x00000040u) {
39863       score_ = from.score_;
39864     }
39865     if (cached_has_bits & 0x00000080u) {
39866       size_ = from.size_;
39867     }
39868     _has_bits_[0] |= cached_has_bits;
39869   }
39870 }
39871 
CopyFrom(const::google::protobuf::Message & from)39872 void NormalizedBBox::CopyFrom(const ::google::protobuf::Message& from) {
39873 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.NormalizedBBox)
39874   if (&from == this) return;
39875   Clear();
39876   MergeFrom(from);
39877 }
39878 
CopyFrom(const NormalizedBBox & from)39879 void NormalizedBBox::CopyFrom(const NormalizedBBox& from) {
39880 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.NormalizedBBox)
39881   if (&from == this) return;
39882   Clear();
39883   MergeFrom(from);
39884 }
39885 
IsInitialized() const39886 bool NormalizedBBox::IsInitialized() const {
39887   return true;
39888 }
39889 
Swap(NormalizedBBox * other)39890 void NormalizedBBox::Swap(NormalizedBBox* other) {
39891   if (other == this) return;
39892   InternalSwap(other);
39893 }
InternalSwap(NormalizedBBox * other)39894 void NormalizedBBox::InternalSwap(NormalizedBBox* other) {
39895   using std::swap;
39896   swap(xmin_, other->xmin_);
39897   swap(ymin_, other->ymin_);
39898   swap(xmax_, other->xmax_);
39899   swap(ymax_, other->ymax_);
39900   swap(label_, other->label_);
39901   swap(difficult_, other->difficult_);
39902   swap(score_, other->score_);
39903   swap(size_, other->size_);
39904   swap(_has_bits_[0], other->_has_bits_[0]);
39905   _internal_metadata_.Swap(&other->_internal_metadata_);
39906   swap(_cached_size_, other->_cached_size_);
39907 }
39908 
GetMetadata() const39909 ::google::protobuf::Metadata NormalizedBBox::GetMetadata() const {
39910   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
39911   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
39912 }
39913 
39914 
39915 // ===================================================================
39916 
InitAsDefaultInstance()39917 void ROIPoolingParameter::InitAsDefaultInstance() {
39918 }
39919 #if !defined(_MSC_VER) || _MSC_VER >= 1900
39920 const int ROIPoolingParameter::kPooledHFieldNumber;
39921 const int ROIPoolingParameter::kPooledWFieldNumber;
39922 const int ROIPoolingParameter::kSpatialScaleFieldNumber;
39923 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
39924 
ROIPoolingParameter()39925 ROIPoolingParameter::ROIPoolingParameter()
39926   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
39927   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
39928     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsROIPoolingParameter();
39929   }
39930   SharedCtor();
39931   // @@protoc_insertion_point(constructor:opencv_caffe.ROIPoolingParameter)
39932 }
ROIPoolingParameter(const ROIPoolingParameter & from)39933 ROIPoolingParameter::ROIPoolingParameter(const ROIPoolingParameter& from)
39934   : ::google::protobuf::Message(),
39935       _internal_metadata_(NULL),
39936       _has_bits_(from._has_bits_),
39937       _cached_size_(0) {
39938   _internal_metadata_.MergeFrom(from._internal_metadata_);
39939   ::memcpy(&pooled_h_, &from.pooled_h_,
39940     static_cast<size_t>(reinterpret_cast<char*>(&spatial_scale_) -
39941     reinterpret_cast<char*>(&pooled_h_)) + sizeof(spatial_scale_));
39942   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ROIPoolingParameter)
39943 }
39944 
SharedCtor()39945 void ROIPoolingParameter::SharedCtor() {
39946   _cached_size_ = 0;
39947   ::memset(&pooled_h_, 0, static_cast<size_t>(
39948       reinterpret_cast<char*>(&pooled_w_) -
39949       reinterpret_cast<char*>(&pooled_h_)) + sizeof(pooled_w_));
39950   spatial_scale_ = 1;
39951 }
39952 
~ROIPoolingParameter()39953 ROIPoolingParameter::~ROIPoolingParameter() {
39954   // @@protoc_insertion_point(destructor:opencv_caffe.ROIPoolingParameter)
39955   SharedDtor();
39956 }
39957 
SharedDtor()39958 void ROIPoolingParameter::SharedDtor() {
39959 }
39960 
SetCachedSize(int size) const39961 void ROIPoolingParameter::SetCachedSize(int size) const {
39962   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
39963   _cached_size_ = size;
39964   GOOGLE_SAFE_CONCURRENT_WRITES_END();
39965 }
descriptor()39966 const ::google::protobuf::Descriptor* ROIPoolingParameter::descriptor() {
39967   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
39968   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
39969 }
39970 
default_instance()39971 const ROIPoolingParameter& ROIPoolingParameter::default_instance() {
39972   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsROIPoolingParameter();
39973   return *internal_default_instance();
39974 }
39975 
New(::google::protobuf::Arena * arena) const39976 ROIPoolingParameter* ROIPoolingParameter::New(::google::protobuf::Arena* arena) const {
39977   ROIPoolingParameter* n = new ROIPoolingParameter;
39978   if (arena != NULL) {
39979     arena->Own(n);
39980   }
39981   return n;
39982 }
39983 
Clear()39984 void ROIPoolingParameter::Clear() {
39985 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ROIPoolingParameter)
39986   ::google::protobuf::uint32 cached_has_bits = 0;
39987   // Prevent compiler warnings about cached_has_bits being unused
39988   (void) cached_has_bits;
39989 
39990   cached_has_bits = _has_bits_[0];
39991   if (cached_has_bits & 7u) {
39992     ::memset(&pooled_h_, 0, static_cast<size_t>(
39993         reinterpret_cast<char*>(&pooled_w_) -
39994         reinterpret_cast<char*>(&pooled_h_)) + sizeof(pooled_w_));
39995     spatial_scale_ = 1;
39996   }
39997   _has_bits_.Clear();
39998   _internal_metadata_.Clear();
39999 }
40000 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)40001 bool ROIPoolingParameter::MergePartialFromCodedStream(
40002     ::google::protobuf::io::CodedInputStream* input) {
40003 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
40004   ::google::protobuf::uint32 tag;
40005   // @@protoc_insertion_point(parse_start:opencv_caffe.ROIPoolingParameter)
40006   for (;;) {
40007     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
40008     tag = p.first;
40009     if (!p.second) goto handle_unusual;
40010     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
40011       // optional uint32 pooled_h = 1 [default = 0];
40012       case 1: {
40013         if (static_cast< ::google::protobuf::uint8>(tag) ==
40014             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
40015           set_has_pooled_h();
40016           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40017                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
40018                  input, &pooled_h_)));
40019         } else {
40020           goto handle_unusual;
40021         }
40022         break;
40023       }
40024 
40025       // optional uint32 pooled_w = 2 [default = 0];
40026       case 2: {
40027         if (static_cast< ::google::protobuf::uint8>(tag) ==
40028             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
40029           set_has_pooled_w();
40030           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40031                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
40032                  input, &pooled_w_)));
40033         } else {
40034           goto handle_unusual;
40035         }
40036         break;
40037       }
40038 
40039       // optional float spatial_scale = 3 [default = 1];
40040       case 3: {
40041         if (static_cast< ::google::protobuf::uint8>(tag) ==
40042             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
40043           set_has_spatial_scale();
40044           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40045                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
40046                  input, &spatial_scale_)));
40047         } else {
40048           goto handle_unusual;
40049         }
40050         break;
40051       }
40052 
40053       default: {
40054       handle_unusual:
40055         if (tag == 0) {
40056           goto success;
40057         }
40058         DO_(::google::protobuf::internal::WireFormat::SkipField(
40059               input, tag, _internal_metadata_.mutable_unknown_fields()));
40060         break;
40061       }
40062     }
40063   }
40064 success:
40065   // @@protoc_insertion_point(parse_success:opencv_caffe.ROIPoolingParameter)
40066   return true;
40067 failure:
40068   // @@protoc_insertion_point(parse_failure:opencv_caffe.ROIPoolingParameter)
40069   return false;
40070 #undef DO_
40071 }
40072 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const40073 void ROIPoolingParameter::SerializeWithCachedSizes(
40074     ::google::protobuf::io::CodedOutputStream* output) const {
40075   // @@protoc_insertion_point(serialize_start:opencv_caffe.ROIPoolingParameter)
40076   ::google::protobuf::uint32 cached_has_bits = 0;
40077   (void) cached_has_bits;
40078 
40079   cached_has_bits = _has_bits_[0];
40080   // optional uint32 pooled_h = 1 [default = 0];
40081   if (cached_has_bits & 0x00000001u) {
40082     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->pooled_h(), output);
40083   }
40084 
40085   // optional uint32 pooled_w = 2 [default = 0];
40086   if (cached_has_bits & 0x00000002u) {
40087     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pooled_w(), output);
40088   }
40089 
40090   // optional float spatial_scale = 3 [default = 1];
40091   if (cached_has_bits & 0x00000004u) {
40092     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->spatial_scale(), output);
40093   }
40094 
40095   if (_internal_metadata_.have_unknown_fields()) {
40096     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
40097         _internal_metadata_.unknown_fields(), output);
40098   }
40099   // @@protoc_insertion_point(serialize_end:opencv_caffe.ROIPoolingParameter)
40100 }
40101 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const40102 ::google::protobuf::uint8* ROIPoolingParameter::InternalSerializeWithCachedSizesToArray(
40103     bool deterministic, ::google::protobuf::uint8* target) const {
40104   (void)deterministic; // Unused
40105   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ROIPoolingParameter)
40106   ::google::protobuf::uint32 cached_has_bits = 0;
40107   (void) cached_has_bits;
40108 
40109   cached_has_bits = _has_bits_[0];
40110   // optional uint32 pooled_h = 1 [default = 0];
40111   if (cached_has_bits & 0x00000001u) {
40112     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->pooled_h(), target);
40113   }
40114 
40115   // optional uint32 pooled_w = 2 [default = 0];
40116   if (cached_has_bits & 0x00000002u) {
40117     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pooled_w(), target);
40118   }
40119 
40120   // optional float spatial_scale = 3 [default = 1];
40121   if (cached_has_bits & 0x00000004u) {
40122     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->spatial_scale(), target);
40123   }
40124 
40125   if (_internal_metadata_.have_unknown_fields()) {
40126     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
40127         _internal_metadata_.unknown_fields(), target);
40128   }
40129   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ROIPoolingParameter)
40130   return target;
40131 }
40132 
ByteSizeLong() const40133 size_t ROIPoolingParameter::ByteSizeLong() const {
40134 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ROIPoolingParameter)
40135   size_t total_size = 0;
40136 
40137   if (_internal_metadata_.have_unknown_fields()) {
40138     total_size +=
40139       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
40140         _internal_metadata_.unknown_fields());
40141   }
40142   if (_has_bits_[0 / 32] & 7u) {
40143     // optional uint32 pooled_h = 1 [default = 0];
40144     if (has_pooled_h()) {
40145       total_size += 1 +
40146         ::google::protobuf::internal::WireFormatLite::UInt32Size(
40147           this->pooled_h());
40148     }
40149 
40150     // optional uint32 pooled_w = 2 [default = 0];
40151     if (has_pooled_w()) {
40152       total_size += 1 +
40153         ::google::protobuf::internal::WireFormatLite::UInt32Size(
40154           this->pooled_w());
40155     }
40156 
40157     // optional float spatial_scale = 3 [default = 1];
40158     if (has_spatial_scale()) {
40159       total_size += 1 + 4;
40160     }
40161 
40162   }
40163   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
40164   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
40165   _cached_size_ = cached_size;
40166   GOOGLE_SAFE_CONCURRENT_WRITES_END();
40167   return total_size;
40168 }
40169 
MergeFrom(const::google::protobuf::Message & from)40170 void ROIPoolingParameter::MergeFrom(const ::google::protobuf::Message& from) {
40171 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ROIPoolingParameter)
40172   GOOGLE_DCHECK_NE(&from, this);
40173   const ROIPoolingParameter* source =
40174       ::google::protobuf::internal::DynamicCastToGenerated<const ROIPoolingParameter>(
40175           &from);
40176   if (source == NULL) {
40177   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ROIPoolingParameter)
40178     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
40179   } else {
40180   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ROIPoolingParameter)
40181     MergeFrom(*source);
40182   }
40183 }
40184 
MergeFrom(const ROIPoolingParameter & from)40185 void ROIPoolingParameter::MergeFrom(const ROIPoolingParameter& from) {
40186 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ROIPoolingParameter)
40187   GOOGLE_DCHECK_NE(&from, this);
40188   _internal_metadata_.MergeFrom(from._internal_metadata_);
40189   ::google::protobuf::uint32 cached_has_bits = 0;
40190   (void) cached_has_bits;
40191 
40192   cached_has_bits = from._has_bits_[0];
40193   if (cached_has_bits & 7u) {
40194     if (cached_has_bits & 0x00000001u) {
40195       pooled_h_ = from.pooled_h_;
40196     }
40197     if (cached_has_bits & 0x00000002u) {
40198       pooled_w_ = from.pooled_w_;
40199     }
40200     if (cached_has_bits & 0x00000004u) {
40201       spatial_scale_ = from.spatial_scale_;
40202     }
40203     _has_bits_[0] |= cached_has_bits;
40204   }
40205 }
40206 
CopyFrom(const::google::protobuf::Message & from)40207 void ROIPoolingParameter::CopyFrom(const ::google::protobuf::Message& from) {
40208 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ROIPoolingParameter)
40209   if (&from == this) return;
40210   Clear();
40211   MergeFrom(from);
40212 }
40213 
CopyFrom(const ROIPoolingParameter & from)40214 void ROIPoolingParameter::CopyFrom(const ROIPoolingParameter& from) {
40215 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ROIPoolingParameter)
40216   if (&from == this) return;
40217   Clear();
40218   MergeFrom(from);
40219 }
40220 
IsInitialized() const40221 bool ROIPoolingParameter::IsInitialized() const {
40222   return true;
40223 }
40224 
Swap(ROIPoolingParameter * other)40225 void ROIPoolingParameter::Swap(ROIPoolingParameter* other) {
40226   if (other == this) return;
40227   InternalSwap(other);
40228 }
InternalSwap(ROIPoolingParameter * other)40229 void ROIPoolingParameter::InternalSwap(ROIPoolingParameter* other) {
40230   using std::swap;
40231   swap(pooled_h_, other->pooled_h_);
40232   swap(pooled_w_, other->pooled_w_);
40233   swap(spatial_scale_, other->spatial_scale_);
40234   swap(_has_bits_[0], other->_has_bits_[0]);
40235   _internal_metadata_.Swap(&other->_internal_metadata_);
40236   swap(_cached_size_, other->_cached_size_);
40237 }
40238 
GetMetadata() const40239 ::google::protobuf::Metadata ROIPoolingParameter::GetMetadata() const {
40240   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
40241   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
40242 }
40243 
40244 
40245 // ===================================================================
40246 
InitAsDefaultInstance()40247 void ProposalParameter::InitAsDefaultInstance() {
40248 }
40249 #if !defined(_MSC_VER) || _MSC_VER >= 1900
40250 const int ProposalParameter::kFeatStrideFieldNumber;
40251 const int ProposalParameter::kBaseSizeFieldNumber;
40252 const int ProposalParameter::kMinSizeFieldNumber;
40253 const int ProposalParameter::kRatioFieldNumber;
40254 const int ProposalParameter::kScaleFieldNumber;
40255 const int ProposalParameter::kPreNmsTopnFieldNumber;
40256 const int ProposalParameter::kPostNmsTopnFieldNumber;
40257 const int ProposalParameter::kNmsThreshFieldNumber;
40258 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
40259 
ProposalParameter()40260 ProposalParameter::ProposalParameter()
40261   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
40262   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
40263     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsProposalParameter();
40264   }
40265   SharedCtor();
40266   // @@protoc_insertion_point(constructor:opencv_caffe.ProposalParameter)
40267 }
ProposalParameter(const ProposalParameter & from)40268 ProposalParameter::ProposalParameter(const ProposalParameter& from)
40269   : ::google::protobuf::Message(),
40270       _internal_metadata_(NULL),
40271       _has_bits_(from._has_bits_),
40272       _cached_size_(0),
40273       ratio_(from.ratio_),
40274       scale_(from.scale_) {
40275   _internal_metadata_.MergeFrom(from._internal_metadata_);
40276   ::memcpy(&feat_stride_, &from.feat_stride_,
40277     static_cast<size_t>(reinterpret_cast<char*>(&nms_thresh_) -
40278     reinterpret_cast<char*>(&feat_stride_)) + sizeof(nms_thresh_));
40279   // @@protoc_insertion_point(copy_constructor:opencv_caffe.ProposalParameter)
40280 }
40281 
SharedCtor()40282 void ProposalParameter::SharedCtor() {
40283   _cached_size_ = 0;
40284   feat_stride_ = 16u;
40285   base_size_ = 16u;
40286   min_size_ = 16u;
40287   pre_nms_topn_ = 6000u;
40288   post_nms_topn_ = 300u;
40289   nms_thresh_ = 0.7f;
40290 }
40291 
~ProposalParameter()40292 ProposalParameter::~ProposalParameter() {
40293   // @@protoc_insertion_point(destructor:opencv_caffe.ProposalParameter)
40294   SharedDtor();
40295 }
40296 
SharedDtor()40297 void ProposalParameter::SharedDtor() {
40298 }
40299 
SetCachedSize(int size) const40300 void ProposalParameter::SetCachedSize(int size) const {
40301   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
40302   _cached_size_ = size;
40303   GOOGLE_SAFE_CONCURRENT_WRITES_END();
40304 }
descriptor()40305 const ::google::protobuf::Descriptor* ProposalParameter::descriptor() {
40306   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
40307   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
40308 }
40309 
default_instance()40310 const ProposalParameter& ProposalParameter::default_instance() {
40311   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsProposalParameter();
40312   return *internal_default_instance();
40313 }
40314 
New(::google::protobuf::Arena * arena) const40315 ProposalParameter* ProposalParameter::New(::google::protobuf::Arena* arena) const {
40316   ProposalParameter* n = new ProposalParameter;
40317   if (arena != NULL) {
40318     arena->Own(n);
40319   }
40320   return n;
40321 }
40322 
Clear()40323 void ProposalParameter::Clear() {
40324 // @@protoc_insertion_point(message_clear_start:opencv_caffe.ProposalParameter)
40325   ::google::protobuf::uint32 cached_has_bits = 0;
40326   // Prevent compiler warnings about cached_has_bits being unused
40327   (void) cached_has_bits;
40328 
40329   ratio_.Clear();
40330   scale_.Clear();
40331   cached_has_bits = _has_bits_[0];
40332   if (cached_has_bits & 63u) {
40333     feat_stride_ = 16u;
40334     base_size_ = 16u;
40335     min_size_ = 16u;
40336     pre_nms_topn_ = 6000u;
40337     post_nms_topn_ = 300u;
40338     nms_thresh_ = 0.7f;
40339   }
40340   _has_bits_.Clear();
40341   _internal_metadata_.Clear();
40342 }
40343 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)40344 bool ProposalParameter::MergePartialFromCodedStream(
40345     ::google::protobuf::io::CodedInputStream* input) {
40346 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
40347   ::google::protobuf::uint32 tag;
40348   // @@protoc_insertion_point(parse_start:opencv_caffe.ProposalParameter)
40349   for (;;) {
40350     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
40351     tag = p.first;
40352     if (!p.second) goto handle_unusual;
40353     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
40354       // optional uint32 feat_stride = 1 [default = 16];
40355       case 1: {
40356         if (static_cast< ::google::protobuf::uint8>(tag) ==
40357             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
40358           set_has_feat_stride();
40359           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40360                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
40361                  input, &feat_stride_)));
40362         } else {
40363           goto handle_unusual;
40364         }
40365         break;
40366       }
40367 
40368       // optional uint32 base_size = 2 [default = 16];
40369       case 2: {
40370         if (static_cast< ::google::protobuf::uint8>(tag) ==
40371             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
40372           set_has_base_size();
40373           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40374                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
40375                  input, &base_size_)));
40376         } else {
40377           goto handle_unusual;
40378         }
40379         break;
40380       }
40381 
40382       // optional uint32 min_size = 3 [default = 16];
40383       case 3: {
40384         if (static_cast< ::google::protobuf::uint8>(tag) ==
40385             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
40386           set_has_min_size();
40387           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40388                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
40389                  input, &min_size_)));
40390         } else {
40391           goto handle_unusual;
40392         }
40393         break;
40394       }
40395 
40396       // repeated float ratio = 4;
40397       case 4: {
40398         if (static_cast< ::google::protobuf::uint8>(tag) ==
40399             static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
40400           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
40401                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
40402                  1, 37u, input, this->mutable_ratio())));
40403         } else if (
40404             static_cast< ::google::protobuf::uint8>(tag) ==
40405             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
40406           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
40407                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
40408                  input, this->mutable_ratio())));
40409         } else {
40410           goto handle_unusual;
40411         }
40412         break;
40413       }
40414 
40415       // repeated float scale = 5;
40416       case 5: {
40417         if (static_cast< ::google::protobuf::uint8>(tag) ==
40418             static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
40419           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
40420                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
40421                  1, 45u, input, this->mutable_scale())));
40422         } else if (
40423             static_cast< ::google::protobuf::uint8>(tag) ==
40424             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
40425           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
40426                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
40427                  input, this->mutable_scale())));
40428         } else {
40429           goto handle_unusual;
40430         }
40431         break;
40432       }
40433 
40434       // optional uint32 pre_nms_topn = 6 [default = 6000];
40435       case 6: {
40436         if (static_cast< ::google::protobuf::uint8>(tag) ==
40437             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
40438           set_has_pre_nms_topn();
40439           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40440                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
40441                  input, &pre_nms_topn_)));
40442         } else {
40443           goto handle_unusual;
40444         }
40445         break;
40446       }
40447 
40448       // optional uint32 post_nms_topn = 7 [default = 300];
40449       case 7: {
40450         if (static_cast< ::google::protobuf::uint8>(tag) ==
40451             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
40452           set_has_post_nms_topn();
40453           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40454                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
40455                  input, &post_nms_topn_)));
40456         } else {
40457           goto handle_unusual;
40458         }
40459         break;
40460       }
40461 
40462       // optional float nms_thresh = 8 [default = 0.7];
40463       case 8: {
40464         if (static_cast< ::google::protobuf::uint8>(tag) ==
40465             static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
40466           set_has_nms_thresh();
40467           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40468                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
40469                  input, &nms_thresh_)));
40470         } else {
40471           goto handle_unusual;
40472         }
40473         break;
40474       }
40475 
40476       default: {
40477       handle_unusual:
40478         if (tag == 0) {
40479           goto success;
40480         }
40481         DO_(::google::protobuf::internal::WireFormat::SkipField(
40482               input, tag, _internal_metadata_.mutable_unknown_fields()));
40483         break;
40484       }
40485     }
40486   }
40487 success:
40488   // @@protoc_insertion_point(parse_success:opencv_caffe.ProposalParameter)
40489   return true;
40490 failure:
40491   // @@protoc_insertion_point(parse_failure:opencv_caffe.ProposalParameter)
40492   return false;
40493 #undef DO_
40494 }
40495 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const40496 void ProposalParameter::SerializeWithCachedSizes(
40497     ::google::protobuf::io::CodedOutputStream* output) const {
40498   // @@protoc_insertion_point(serialize_start:opencv_caffe.ProposalParameter)
40499   ::google::protobuf::uint32 cached_has_bits = 0;
40500   (void) cached_has_bits;
40501 
40502   cached_has_bits = _has_bits_[0];
40503   // optional uint32 feat_stride = 1 [default = 16];
40504   if (cached_has_bits & 0x00000001u) {
40505     ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->feat_stride(), output);
40506   }
40507 
40508   // optional uint32 base_size = 2 [default = 16];
40509   if (cached_has_bits & 0x00000002u) {
40510     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->base_size(), output);
40511   }
40512 
40513   // optional uint32 min_size = 3 [default = 16];
40514   if (cached_has_bits & 0x00000004u) {
40515     ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->min_size(), output);
40516   }
40517 
40518   // repeated float ratio = 4;
40519   for (int i = 0, n = this->ratio_size(); i < n; i++) {
40520     ::google::protobuf::internal::WireFormatLite::WriteFloat(
40521       4, this->ratio(i), output);
40522   }
40523 
40524   // repeated float scale = 5;
40525   for (int i = 0, n = this->scale_size(); i < n; i++) {
40526     ::google::protobuf::internal::WireFormatLite::WriteFloat(
40527       5, this->scale(i), output);
40528   }
40529 
40530   // optional uint32 pre_nms_topn = 6 [default = 6000];
40531   if (cached_has_bits & 0x00000008u) {
40532     ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->pre_nms_topn(), output);
40533   }
40534 
40535   // optional uint32 post_nms_topn = 7 [default = 300];
40536   if (cached_has_bits & 0x00000010u) {
40537     ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->post_nms_topn(), output);
40538   }
40539 
40540   // optional float nms_thresh = 8 [default = 0.7];
40541   if (cached_has_bits & 0x00000020u) {
40542     ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->nms_thresh(), output);
40543   }
40544 
40545   if (_internal_metadata_.have_unknown_fields()) {
40546     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
40547         _internal_metadata_.unknown_fields(), output);
40548   }
40549   // @@protoc_insertion_point(serialize_end:opencv_caffe.ProposalParameter)
40550 }
40551 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const40552 ::google::protobuf::uint8* ProposalParameter::InternalSerializeWithCachedSizesToArray(
40553     bool deterministic, ::google::protobuf::uint8* target) const {
40554   (void)deterministic; // Unused
40555   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ProposalParameter)
40556   ::google::protobuf::uint32 cached_has_bits = 0;
40557   (void) cached_has_bits;
40558 
40559   cached_has_bits = _has_bits_[0];
40560   // optional uint32 feat_stride = 1 [default = 16];
40561   if (cached_has_bits & 0x00000001u) {
40562     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->feat_stride(), target);
40563   }
40564 
40565   // optional uint32 base_size = 2 [default = 16];
40566   if (cached_has_bits & 0x00000002u) {
40567     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->base_size(), target);
40568   }
40569 
40570   // optional uint32 min_size = 3 [default = 16];
40571   if (cached_has_bits & 0x00000004u) {
40572     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->min_size(), target);
40573   }
40574 
40575   // repeated float ratio = 4;
40576   target = ::google::protobuf::internal::WireFormatLite::
40577     WriteFloatToArray(4, this->ratio_, target);
40578 
40579   // repeated float scale = 5;
40580   target = ::google::protobuf::internal::WireFormatLite::
40581     WriteFloatToArray(5, this->scale_, target);
40582 
40583   // optional uint32 pre_nms_topn = 6 [default = 6000];
40584   if (cached_has_bits & 0x00000008u) {
40585     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->pre_nms_topn(), target);
40586   }
40587 
40588   // optional uint32 post_nms_topn = 7 [default = 300];
40589   if (cached_has_bits & 0x00000010u) {
40590     target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->post_nms_topn(), target);
40591   }
40592 
40593   // optional float nms_thresh = 8 [default = 0.7];
40594   if (cached_has_bits & 0x00000020u) {
40595     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->nms_thresh(), target);
40596   }
40597 
40598   if (_internal_metadata_.have_unknown_fields()) {
40599     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
40600         _internal_metadata_.unknown_fields(), target);
40601   }
40602   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ProposalParameter)
40603   return target;
40604 }
40605 
ByteSizeLong() const40606 size_t ProposalParameter::ByteSizeLong() const {
40607 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ProposalParameter)
40608   size_t total_size = 0;
40609 
40610   if (_internal_metadata_.have_unknown_fields()) {
40611     total_size +=
40612       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
40613         _internal_metadata_.unknown_fields());
40614   }
40615   // repeated float ratio = 4;
40616   {
40617     unsigned int count = static_cast<unsigned int>(this->ratio_size());
40618     size_t data_size = 4UL * count;
40619     total_size += 1 *
40620                   ::google::protobuf::internal::FromIntSize(this->ratio_size());
40621     total_size += data_size;
40622   }
40623 
40624   // repeated float scale = 5;
40625   {
40626     unsigned int count = static_cast<unsigned int>(this->scale_size());
40627     size_t data_size = 4UL * count;
40628     total_size += 1 *
40629                   ::google::protobuf::internal::FromIntSize(this->scale_size());
40630     total_size += data_size;
40631   }
40632 
40633   if (_has_bits_[0 / 32] & 63u) {
40634     // optional uint32 feat_stride = 1 [default = 16];
40635     if (has_feat_stride()) {
40636       total_size += 1 +
40637         ::google::protobuf::internal::WireFormatLite::UInt32Size(
40638           this->feat_stride());
40639     }
40640 
40641     // optional uint32 base_size = 2 [default = 16];
40642     if (has_base_size()) {
40643       total_size += 1 +
40644         ::google::protobuf::internal::WireFormatLite::UInt32Size(
40645           this->base_size());
40646     }
40647 
40648     // optional uint32 min_size = 3 [default = 16];
40649     if (has_min_size()) {
40650       total_size += 1 +
40651         ::google::protobuf::internal::WireFormatLite::UInt32Size(
40652           this->min_size());
40653     }
40654 
40655     // optional uint32 pre_nms_topn = 6 [default = 6000];
40656     if (has_pre_nms_topn()) {
40657       total_size += 1 +
40658         ::google::protobuf::internal::WireFormatLite::UInt32Size(
40659           this->pre_nms_topn());
40660     }
40661 
40662     // optional uint32 post_nms_topn = 7 [default = 300];
40663     if (has_post_nms_topn()) {
40664       total_size += 1 +
40665         ::google::protobuf::internal::WireFormatLite::UInt32Size(
40666           this->post_nms_topn());
40667     }
40668 
40669     // optional float nms_thresh = 8 [default = 0.7];
40670     if (has_nms_thresh()) {
40671       total_size += 1 + 4;
40672     }
40673 
40674   }
40675   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
40676   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
40677   _cached_size_ = cached_size;
40678   GOOGLE_SAFE_CONCURRENT_WRITES_END();
40679   return total_size;
40680 }
40681 
MergeFrom(const::google::protobuf::Message & from)40682 void ProposalParameter::MergeFrom(const ::google::protobuf::Message& from) {
40683 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ProposalParameter)
40684   GOOGLE_DCHECK_NE(&from, this);
40685   const ProposalParameter* source =
40686       ::google::protobuf::internal::DynamicCastToGenerated<const ProposalParameter>(
40687           &from);
40688   if (source == NULL) {
40689   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ProposalParameter)
40690     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
40691   } else {
40692   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ProposalParameter)
40693     MergeFrom(*source);
40694   }
40695 }
40696 
MergeFrom(const ProposalParameter & from)40697 void ProposalParameter::MergeFrom(const ProposalParameter& from) {
40698 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ProposalParameter)
40699   GOOGLE_DCHECK_NE(&from, this);
40700   _internal_metadata_.MergeFrom(from._internal_metadata_);
40701   ::google::protobuf::uint32 cached_has_bits = 0;
40702   (void) cached_has_bits;
40703 
40704   ratio_.MergeFrom(from.ratio_);
40705   scale_.MergeFrom(from.scale_);
40706   cached_has_bits = from._has_bits_[0];
40707   if (cached_has_bits & 63u) {
40708     if (cached_has_bits & 0x00000001u) {
40709       feat_stride_ = from.feat_stride_;
40710     }
40711     if (cached_has_bits & 0x00000002u) {
40712       base_size_ = from.base_size_;
40713     }
40714     if (cached_has_bits & 0x00000004u) {
40715       min_size_ = from.min_size_;
40716     }
40717     if (cached_has_bits & 0x00000008u) {
40718       pre_nms_topn_ = from.pre_nms_topn_;
40719     }
40720     if (cached_has_bits & 0x00000010u) {
40721       post_nms_topn_ = from.post_nms_topn_;
40722     }
40723     if (cached_has_bits & 0x00000020u) {
40724       nms_thresh_ = from.nms_thresh_;
40725     }
40726     _has_bits_[0] |= cached_has_bits;
40727   }
40728 }
40729 
CopyFrom(const::google::protobuf::Message & from)40730 void ProposalParameter::CopyFrom(const ::google::protobuf::Message& from) {
40731 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ProposalParameter)
40732   if (&from == this) return;
40733   Clear();
40734   MergeFrom(from);
40735 }
40736 
CopyFrom(const ProposalParameter & from)40737 void ProposalParameter::CopyFrom(const ProposalParameter& from) {
40738 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ProposalParameter)
40739   if (&from == this) return;
40740   Clear();
40741   MergeFrom(from);
40742 }
40743 
IsInitialized() const40744 bool ProposalParameter::IsInitialized() const {
40745   return true;
40746 }
40747 
Swap(ProposalParameter * other)40748 void ProposalParameter::Swap(ProposalParameter* other) {
40749   if (other == this) return;
40750   InternalSwap(other);
40751 }
InternalSwap(ProposalParameter * other)40752 void ProposalParameter::InternalSwap(ProposalParameter* other) {
40753   using std::swap;
40754   ratio_.InternalSwap(&other->ratio_);
40755   scale_.InternalSwap(&other->scale_);
40756   swap(feat_stride_, other->feat_stride_);
40757   swap(base_size_, other->base_size_);
40758   swap(min_size_, other->min_size_);
40759   swap(pre_nms_topn_, other->pre_nms_topn_);
40760   swap(post_nms_topn_, other->post_nms_topn_);
40761   swap(nms_thresh_, other->nms_thresh_);
40762   swap(_has_bits_[0], other->_has_bits_[0]);
40763   _internal_metadata_.Swap(&other->_internal_metadata_);
40764   swap(_cached_size_, other->_cached_size_);
40765 }
40766 
GetMetadata() const40767 ::google::protobuf::Metadata ProposalParameter::GetMetadata() const {
40768   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
40769   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
40770 }
40771 
40772 
40773 // ===================================================================
40774 
InitAsDefaultInstance()40775 void PSROIPoolingParameter::InitAsDefaultInstance() {
40776 }
40777 #if !defined(_MSC_VER) || _MSC_VER >= 1900
40778 const int PSROIPoolingParameter::kSpatialScaleFieldNumber;
40779 const int PSROIPoolingParameter::kOutputDimFieldNumber;
40780 const int PSROIPoolingParameter::kGroupSizeFieldNumber;
40781 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
40782 
PSROIPoolingParameter()40783 PSROIPoolingParameter::PSROIPoolingParameter()
40784   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
40785   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
40786     ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPSROIPoolingParameter();
40787   }
40788   SharedCtor();
40789   // @@protoc_insertion_point(constructor:opencv_caffe.PSROIPoolingParameter)
40790 }
PSROIPoolingParameter(const PSROIPoolingParameter & from)40791 PSROIPoolingParameter::PSROIPoolingParameter(const PSROIPoolingParameter& from)
40792   : ::google::protobuf::Message(),
40793       _internal_metadata_(NULL),
40794       _has_bits_(from._has_bits_),
40795       _cached_size_(0) {
40796   _internal_metadata_.MergeFrom(from._internal_metadata_);
40797   ::memcpy(&spatial_scale_, &from.spatial_scale_,
40798     static_cast<size_t>(reinterpret_cast<char*>(&group_size_) -
40799     reinterpret_cast<char*>(&spatial_scale_)) + sizeof(group_size_));
40800   // @@protoc_insertion_point(copy_constructor:opencv_caffe.PSROIPoolingParameter)
40801 }
40802 
SharedCtor()40803 void PSROIPoolingParameter::SharedCtor() {
40804   _cached_size_ = 0;
40805   ::memset(&spatial_scale_, 0, static_cast<size_t>(
40806       reinterpret_cast<char*>(&group_size_) -
40807       reinterpret_cast<char*>(&spatial_scale_)) + sizeof(group_size_));
40808 }
40809 
~PSROIPoolingParameter()40810 PSROIPoolingParameter::~PSROIPoolingParameter() {
40811   // @@protoc_insertion_point(destructor:opencv_caffe.PSROIPoolingParameter)
40812   SharedDtor();
40813 }
40814 
SharedDtor()40815 void PSROIPoolingParameter::SharedDtor() {
40816 }
40817 
SetCachedSize(int size) const40818 void PSROIPoolingParameter::SetCachedSize(int size) const {
40819   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
40820   _cached_size_ = size;
40821   GOOGLE_SAFE_CONCURRENT_WRITES_END();
40822 }
descriptor()40823 const ::google::protobuf::Descriptor* PSROIPoolingParameter::descriptor() {
40824   ::protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
40825   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
40826 }
40827 
default_instance()40828 const PSROIPoolingParameter& PSROIPoolingParameter::default_instance() {
40829   ::protobuf_opencv_2dcaffe_2eproto::InitDefaultsPSROIPoolingParameter();
40830   return *internal_default_instance();
40831 }
40832 
New(::google::protobuf::Arena * arena) const40833 PSROIPoolingParameter* PSROIPoolingParameter::New(::google::protobuf::Arena* arena) const {
40834   PSROIPoolingParameter* n = new PSROIPoolingParameter;
40835   if (arena != NULL) {
40836     arena->Own(n);
40837   }
40838   return n;
40839 }
40840 
Clear()40841 void PSROIPoolingParameter::Clear() {
40842 // @@protoc_insertion_point(message_clear_start:opencv_caffe.PSROIPoolingParameter)
40843   ::google::protobuf::uint32 cached_has_bits = 0;
40844   // Prevent compiler warnings about cached_has_bits being unused
40845   (void) cached_has_bits;
40846 
40847   cached_has_bits = _has_bits_[0];
40848   if (cached_has_bits & 7u) {
40849     ::memset(&spatial_scale_, 0, static_cast<size_t>(
40850         reinterpret_cast<char*>(&group_size_) -
40851         reinterpret_cast<char*>(&spatial_scale_)) + sizeof(group_size_));
40852   }
40853   _has_bits_.Clear();
40854   _internal_metadata_.Clear();
40855 }
40856 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)40857 bool PSROIPoolingParameter::MergePartialFromCodedStream(
40858     ::google::protobuf::io::CodedInputStream* input) {
40859 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
40860   ::google::protobuf::uint32 tag;
40861   // @@protoc_insertion_point(parse_start:opencv_caffe.PSROIPoolingParameter)
40862   for (;;) {
40863     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
40864     tag = p.first;
40865     if (!p.second) goto handle_unusual;
40866     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
40867       // required float spatial_scale = 1;
40868       case 1: {
40869         if (static_cast< ::google::protobuf::uint8>(tag) ==
40870             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
40871           set_has_spatial_scale();
40872           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40873                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
40874                  input, &spatial_scale_)));
40875         } else {
40876           goto handle_unusual;
40877         }
40878         break;
40879       }
40880 
40881       // required int32 output_dim = 2;
40882       case 2: {
40883         if (static_cast< ::google::protobuf::uint8>(tag) ==
40884             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
40885           set_has_output_dim();
40886           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40887                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
40888                  input, &output_dim_)));
40889         } else {
40890           goto handle_unusual;
40891         }
40892         break;
40893       }
40894 
40895       // required int32 group_size = 3;
40896       case 3: {
40897         if (static_cast< ::google::protobuf::uint8>(tag) ==
40898             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
40899           set_has_group_size();
40900           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
40901                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
40902                  input, &group_size_)));
40903         } else {
40904           goto handle_unusual;
40905         }
40906         break;
40907       }
40908 
40909       default: {
40910       handle_unusual:
40911         if (tag == 0) {
40912           goto success;
40913         }
40914         DO_(::google::protobuf::internal::WireFormat::SkipField(
40915               input, tag, _internal_metadata_.mutable_unknown_fields()));
40916         break;
40917       }
40918     }
40919   }
40920 success:
40921   // @@protoc_insertion_point(parse_success:opencv_caffe.PSROIPoolingParameter)
40922   return true;
40923 failure:
40924   // @@protoc_insertion_point(parse_failure:opencv_caffe.PSROIPoolingParameter)
40925   return false;
40926 #undef DO_
40927 }
40928 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const40929 void PSROIPoolingParameter::SerializeWithCachedSizes(
40930     ::google::protobuf::io::CodedOutputStream* output) const {
40931   // @@protoc_insertion_point(serialize_start:opencv_caffe.PSROIPoolingParameter)
40932   ::google::protobuf::uint32 cached_has_bits = 0;
40933   (void) cached_has_bits;
40934 
40935   cached_has_bits = _has_bits_[0];
40936   // required float spatial_scale = 1;
40937   if (cached_has_bits & 0x00000001u) {
40938     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->spatial_scale(), output);
40939   }
40940 
40941   // required int32 output_dim = 2;
40942   if (cached_has_bits & 0x00000002u) {
40943     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->output_dim(), output);
40944   }
40945 
40946   // required int32 group_size = 3;
40947   if (cached_has_bits & 0x00000004u) {
40948     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->group_size(), output);
40949   }
40950 
40951   if (_internal_metadata_.have_unknown_fields()) {
40952     ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
40953         _internal_metadata_.unknown_fields(), output);
40954   }
40955   // @@protoc_insertion_point(serialize_end:opencv_caffe.PSROIPoolingParameter)
40956 }
40957 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const40958 ::google::protobuf::uint8* PSROIPoolingParameter::InternalSerializeWithCachedSizesToArray(
40959     bool deterministic, ::google::protobuf::uint8* target) const {
40960   (void)deterministic; // Unused
40961   // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.PSROIPoolingParameter)
40962   ::google::protobuf::uint32 cached_has_bits = 0;
40963   (void) cached_has_bits;
40964 
40965   cached_has_bits = _has_bits_[0];
40966   // required float spatial_scale = 1;
40967   if (cached_has_bits & 0x00000001u) {
40968     target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->spatial_scale(), target);
40969   }
40970 
40971   // required int32 output_dim = 2;
40972   if (cached_has_bits & 0x00000002u) {
40973     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->output_dim(), target);
40974   }
40975 
40976   // required int32 group_size = 3;
40977   if (cached_has_bits & 0x00000004u) {
40978     target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->group_size(), target);
40979   }
40980 
40981   if (_internal_metadata_.have_unknown_fields()) {
40982     target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
40983         _internal_metadata_.unknown_fields(), target);
40984   }
40985   // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.PSROIPoolingParameter)
40986   return target;
40987 }
40988 
RequiredFieldsByteSizeFallback() const40989 size_t PSROIPoolingParameter::RequiredFieldsByteSizeFallback() const {
40990 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:opencv_caffe.PSROIPoolingParameter)
40991   size_t total_size = 0;
40992 
40993   if (has_spatial_scale()) {
40994     // required float spatial_scale = 1;
40995     total_size += 1 + 4;
40996   }
40997 
40998   if (has_output_dim()) {
40999     // required int32 output_dim = 2;
41000     total_size += 1 +
41001       ::google::protobuf::internal::WireFormatLite::Int32Size(
41002         this->output_dim());
41003   }
41004 
41005   if (has_group_size()) {
41006     // required int32 group_size = 3;
41007     total_size += 1 +
41008       ::google::protobuf::internal::WireFormatLite::Int32Size(
41009         this->group_size());
41010   }
41011 
41012   return total_size;
41013 }
ByteSizeLong() const41014 size_t PSROIPoolingParameter::ByteSizeLong() const {
41015 // @@protoc_insertion_point(message_byte_size_start:opencv_caffe.PSROIPoolingParameter)
41016   size_t total_size = 0;
41017 
41018   if (_internal_metadata_.have_unknown_fields()) {
41019     total_size +=
41020       ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
41021         _internal_metadata_.unknown_fields());
41022   }
41023   if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) {  // All required fields are present.
41024     // required float spatial_scale = 1;
41025     total_size += 1 + 4;
41026 
41027     // required int32 output_dim = 2;
41028     total_size += 1 +
41029       ::google::protobuf::internal::WireFormatLite::Int32Size(
41030         this->output_dim());
41031 
41032     // required int32 group_size = 3;
41033     total_size += 1 +
41034       ::google::protobuf::internal::WireFormatLite::Int32Size(
41035         this->group_size());
41036 
41037   } else {
41038     total_size += RequiredFieldsByteSizeFallback();
41039   }
41040   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
41041   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
41042   _cached_size_ = cached_size;
41043   GOOGLE_SAFE_CONCURRENT_WRITES_END();
41044   return total_size;
41045 }
41046 
MergeFrom(const::google::protobuf::Message & from)41047 void PSROIPoolingParameter::MergeFrom(const ::google::protobuf::Message& from) {
41048 // @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.PSROIPoolingParameter)
41049   GOOGLE_DCHECK_NE(&from, this);
41050   const PSROIPoolingParameter* source =
41051       ::google::protobuf::internal::DynamicCastToGenerated<const PSROIPoolingParameter>(
41052           &from);
41053   if (source == NULL) {
41054   // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.PSROIPoolingParameter)
41055     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
41056   } else {
41057   // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.PSROIPoolingParameter)
41058     MergeFrom(*source);
41059   }
41060 }
41061 
MergeFrom(const PSROIPoolingParameter & from)41062 void PSROIPoolingParameter::MergeFrom(const PSROIPoolingParameter& from) {
41063 // @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.PSROIPoolingParameter)
41064   GOOGLE_DCHECK_NE(&from, this);
41065   _internal_metadata_.MergeFrom(from._internal_metadata_);
41066   ::google::protobuf::uint32 cached_has_bits = 0;
41067   (void) cached_has_bits;
41068 
41069   cached_has_bits = from._has_bits_[0];
41070   if (cached_has_bits & 7u) {
41071     if (cached_has_bits & 0x00000001u) {
41072       spatial_scale_ = from.spatial_scale_;
41073     }
41074     if (cached_has_bits & 0x00000002u) {
41075       output_dim_ = from.output_dim_;
41076     }
41077     if (cached_has_bits & 0x00000004u) {
41078       group_size_ = from.group_size_;
41079     }
41080     _has_bits_[0] |= cached_has_bits;
41081   }
41082 }
41083 
CopyFrom(const::google::protobuf::Message & from)41084 void PSROIPoolingParameter::CopyFrom(const ::google::protobuf::Message& from) {
41085 // @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.PSROIPoolingParameter)
41086   if (&from == this) return;
41087   Clear();
41088   MergeFrom(from);
41089 }
41090 
CopyFrom(const PSROIPoolingParameter & from)41091 void PSROIPoolingParameter::CopyFrom(const PSROIPoolingParameter& from) {
41092 // @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.PSROIPoolingParameter)
41093   if (&from == this) return;
41094   Clear();
41095   MergeFrom(from);
41096 }
41097 
IsInitialized() const41098 bool PSROIPoolingParameter::IsInitialized() const {
41099   if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
41100   return true;
41101 }
41102 
Swap(PSROIPoolingParameter * other)41103 void PSROIPoolingParameter::Swap(PSROIPoolingParameter* other) {
41104   if (other == this) return;
41105   InternalSwap(other);
41106 }
InternalSwap(PSROIPoolingParameter * other)41107 void PSROIPoolingParameter::InternalSwap(PSROIPoolingParameter* other) {
41108   using std::swap;
41109   swap(spatial_scale_, other->spatial_scale_);
41110   swap(output_dim_, other->output_dim_);
41111   swap(group_size_, other->group_size_);
41112   swap(_has_bits_[0], other->_has_bits_[0]);
41113   _internal_metadata_.Swap(&other->_internal_metadata_);
41114   swap(_cached_size_, other->_cached_size_);
41115 }
41116 
GetMetadata() const41117 ::google::protobuf::Metadata PSROIPoolingParameter::GetMetadata() const {
41118   protobuf_opencv_2dcaffe_2eproto::protobuf_AssignDescriptorsOnce();
41119   return ::protobuf_opencv_2dcaffe_2eproto::file_level_metadata[kIndexInFileMessages];
41120 }
41121 
41122 
41123 // @@protoc_insertion_point(namespace_scope)
41124 }  // namespace opencv_caffe
41125 
41126 // @@protoc_insertion_point(global_scope)
41127