op_def.pb.cc 85 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: op_def.proto
  3. #include "op_def.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace opencv_tensorflow {
  16. constexpr OpDef_ArgDef::OpDef_ArgDef(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  19. , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  20. , type_attr_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  21. , number_attr_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  22. , type_list_attr_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  23. , type_(0)
  24. , is_ref_(false){}
  25. struct OpDef_ArgDefDefaultTypeInternal {
  26. constexpr OpDef_ArgDefDefaultTypeInternal()
  27. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  28. ~OpDef_ArgDefDefaultTypeInternal() {}
  29. union {
  30. OpDef_ArgDef _instance;
  31. };
  32. };
  33. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpDef_ArgDefDefaultTypeInternal _OpDef_ArgDef_default_instance_;
  34. constexpr OpDef_AttrDef::OpDef_AttrDef(
  35. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  36. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  37. , type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  38. , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  39. , default_value_(nullptr)
  40. , allowed_values_(nullptr)
  41. , minimum_(int64_t{0})
  42. , has_minimum_(false){}
  43. struct OpDef_AttrDefDefaultTypeInternal {
  44. constexpr OpDef_AttrDefDefaultTypeInternal()
  45. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  46. ~OpDef_AttrDefDefaultTypeInternal() {}
  47. union {
  48. OpDef_AttrDef _instance;
  49. };
  50. };
  51. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpDef_AttrDefDefaultTypeInternal _OpDef_AttrDef_default_instance_;
  52. constexpr OpDef::OpDef(
  53. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  54. : input_arg_()
  55. , output_arg_()
  56. , attr_()
  57. , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  58. , summary_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  59. , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  60. , deprecation_(nullptr)
  61. , is_commutative_(false)
  62. , is_aggregate_(false)
  63. , is_stateful_(false)
  64. , allows_uninitialized_input_(false){}
  65. struct OpDefDefaultTypeInternal {
  66. constexpr OpDefDefaultTypeInternal()
  67. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  68. ~OpDefDefaultTypeInternal() {}
  69. union {
  70. OpDef _instance;
  71. };
  72. };
  73. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpDefDefaultTypeInternal _OpDef_default_instance_;
  74. constexpr OpDeprecation::OpDeprecation(
  75. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  76. : explanation_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  77. , version_(0){}
  78. struct OpDeprecationDefaultTypeInternal {
  79. constexpr OpDeprecationDefaultTypeInternal()
  80. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  81. ~OpDeprecationDefaultTypeInternal() {}
  82. union {
  83. OpDeprecation _instance;
  84. };
  85. };
  86. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpDeprecationDefaultTypeInternal _OpDeprecation_default_instance_;
  87. constexpr OpList::OpList(
  88. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  89. : op_(){}
  90. struct OpListDefaultTypeInternal {
  91. constexpr OpListDefaultTypeInternal()
  92. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  93. ~OpListDefaultTypeInternal() {}
  94. union {
  95. OpList _instance;
  96. };
  97. };
  98. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OpListDefaultTypeInternal _OpList_default_instance_;
  99. } // namespace opencv_tensorflow
  100. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_op_5fdef_2eproto[5];
  101. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_op_5fdef_2eproto = nullptr;
  102. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_op_5fdef_2eproto = nullptr;
  103. const uint32_t TableStruct_op_5fdef_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  104. ~0u, // no _has_bits_
  105. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, _internal_metadata_),
  106. ~0u, // no _extensions_
  107. ~0u, // no _oneof_case_
  108. ~0u, // no _weak_field_map_
  109. ~0u, // no _inlined_string_donated_
  110. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, name_),
  111. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, description_),
  112. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_),
  113. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_attr_),
  114. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, number_attr_),
  115. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, type_list_attr_),
  116. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_ArgDef, is_ref_),
  117. ~0u, // no _has_bits_
  118. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, _internal_metadata_),
  119. ~0u, // no _extensions_
  120. ~0u, // no _oneof_case_
  121. ~0u, // no _weak_field_map_
  122. ~0u, // no _inlined_string_donated_
  123. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, name_),
  124. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, type_),
  125. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, default_value_),
  126. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, description_),
  127. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, has_minimum_),
  128. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, minimum_),
  129. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef_AttrDef, allowed_values_),
  130. ~0u, // no _has_bits_
  131. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, _internal_metadata_),
  132. ~0u, // no _extensions_
  133. ~0u, // no _oneof_case_
  134. ~0u, // no _weak_field_map_
  135. ~0u, // no _inlined_string_donated_
  136. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, name_),
  137. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, input_arg_),
  138. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, output_arg_),
  139. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, attr_),
  140. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, deprecation_),
  141. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, summary_),
  142. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, description_),
  143. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_commutative_),
  144. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_aggregate_),
  145. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, is_stateful_),
  146. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDef, allows_uninitialized_input_),
  147. ~0u, // no _has_bits_
  148. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, _internal_metadata_),
  149. ~0u, // no _extensions_
  150. ~0u, // no _oneof_case_
  151. ~0u, // no _weak_field_map_
  152. ~0u, // no _inlined_string_donated_
  153. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, version_),
  154. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpDeprecation, explanation_),
  155. ~0u, // no _has_bits_
  156. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpList, _internal_metadata_),
  157. ~0u, // no _extensions_
  158. ~0u, // no _oneof_case_
  159. ~0u, // no _weak_field_map_
  160. ~0u, // no _inlined_string_donated_
  161. PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::OpList, op_),
  162. };
  163. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  164. { 0, -1, -1, sizeof(::opencv_tensorflow::OpDef_ArgDef)},
  165. { 13, -1, -1, sizeof(::opencv_tensorflow::OpDef_AttrDef)},
  166. { 26, -1, -1, sizeof(::opencv_tensorflow::OpDef)},
  167. { 43, -1, -1, sizeof(::opencv_tensorflow::OpDeprecation)},
  168. { 51, -1, -1, sizeof(::opencv_tensorflow::OpList)},
  169. };
  170. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  171. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpDef_ArgDef_default_instance_),
  172. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpDef_AttrDef_default_instance_),
  173. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpDef_default_instance_),
  174. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpDeprecation_default_instance_),
  175. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_OpList_default_instance_),
  176. };
  177. const char descriptor_table_protodef_op_5fdef_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  178. "\n\014op_def.proto\022\021opencv_tensorflow\032\020attr_"
  179. "value.proto\032\013types.proto\"\351\005\n\005OpDef\022\014\n\004na"
  180. "me\030\001 \001(\t\0222\n\tinput_arg\030\002 \003(\0132\037.opencv_ten"
  181. "sorflow.OpDef.ArgDef\0223\n\noutput_arg\030\003 \003(\013"
  182. "2\037.opencv_tensorflow.OpDef.ArgDef\022.\n\004att"
  183. "r\030\004 \003(\0132 .opencv_tensorflow.OpDef.AttrDe"
  184. "f\0225\n\013deprecation\030\010 \001(\0132 .opencv_tensorfl"
  185. "ow.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023\n\013des"
  186. "cription\030\006 \001(\t\022\026\n\016is_commutative\030\022 \001(\010\022\024"
  187. "\n\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful\030\021 \001("
  188. "\010\022\"\n\032allows_uninitialized_input\030\023 \001(\010\032\246\001"
  189. "\n\006ArgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 "
  190. "\001(\t\022)\n\004type\030\003 \001(\0162\033.opencv_tensorflow.Da"
  191. "taType\022\021\n\ttype_attr\030\004 \001(\t\022\023\n\013number_attr"
  192. "\030\005 \001(\t\022\026\n\016type_list_attr\030\006 \001(\t\022\016\n\006is_ref"
  193. "\030\020 \001(\010\032\313\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type"
  194. "\030\002 \001(\t\0223\n\rdefault_value\030\003 \001(\0132\034.opencv_t"
  195. "ensorflow.AttrValue\022\023\n\013description\030\004 \001(\t"
  196. "\022\023\n\013has_minimum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\0224"
  197. "\n\016allowed_values\030\007 \001(\0132\034.opencv_tensorfl"
  198. "ow.AttrValue\"5\n\rOpDeprecation\022\017\n\007version"
  199. "\030\001 \001(\005\022\023\n\013explanation\030\002 \001(\t\".\n\006OpList\022$\n"
  200. "\002op\030\001 \003(\0132\030.opencv_tensorflow.OpDefB,\n\030o"
  201. "rg.tensorflow.frameworkB\013OpDefProtosP\001\370\001"
  202. "\001b\006proto3"
  203. ;
  204. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_op_5fdef_2eproto_deps[2] = {
  205. &::descriptor_table_attr_5fvalue_2eproto,
  206. &::descriptor_table_types_2eproto,
  207. };
  208. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_op_5fdef_2eproto_once;
  209. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_op_5fdef_2eproto = {
  210. false, false, 969, descriptor_table_protodef_op_5fdef_2eproto, "op_def.proto",
  211. &descriptor_table_op_5fdef_2eproto_once, descriptor_table_op_5fdef_2eproto_deps, 2, 5,
  212. schemas, file_default_instances, TableStruct_op_5fdef_2eproto::offsets,
  213. file_level_metadata_op_5fdef_2eproto, file_level_enum_descriptors_op_5fdef_2eproto, file_level_service_descriptors_op_5fdef_2eproto,
  214. };
  215. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_op_5fdef_2eproto_getter() {
  216. return &descriptor_table_op_5fdef_2eproto;
  217. }
  218. // Force running AddDescriptors() at dynamic initialization time.
  219. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_op_5fdef_2eproto(&descriptor_table_op_5fdef_2eproto);
  220. namespace opencv_tensorflow {
  221. // ===================================================================
  222. class OpDef_ArgDef::_Internal {
  223. public:
  224. };
  225. OpDef_ArgDef::OpDef_ArgDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  226. bool is_message_owned)
  227. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  228. SharedCtor();
  229. if (!is_message_owned) {
  230. RegisterArenaDtor(arena);
  231. }
  232. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef.ArgDef)
  233. }
  234. OpDef_ArgDef::OpDef_ArgDef(const OpDef_ArgDef& from)
  235. : ::PROTOBUF_NAMESPACE_ID::Message() {
  236. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  237. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  238. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  239. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  240. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  241. if (!from._internal_name().empty()) {
  242. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  243. GetArenaForAllocation());
  244. }
  245. description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  246. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  247. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  248. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  249. if (!from._internal_description().empty()) {
  250. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(),
  251. GetArenaForAllocation());
  252. }
  253. type_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  254. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  255. type_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  256. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  257. if (!from._internal_type_attr().empty()) {
  258. type_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type_attr(),
  259. GetArenaForAllocation());
  260. }
  261. number_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  262. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  263. number_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  264. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  265. if (!from._internal_number_attr().empty()) {
  266. number_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_number_attr(),
  267. GetArenaForAllocation());
  268. }
  269. type_list_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  270. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  271. type_list_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  272. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  273. if (!from._internal_type_list_attr().empty()) {
  274. type_list_attr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type_list_attr(),
  275. GetArenaForAllocation());
  276. }
  277. ::memcpy(&type_, &from.type_,
  278. static_cast<size_t>(reinterpret_cast<char*>(&is_ref_) -
  279. reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
  280. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef.ArgDef)
  281. }
  282. inline void OpDef_ArgDef::SharedCtor() {
  283. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  284. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  285. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  286. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  287. description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  288. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  289. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  290. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  291. type_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  292. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  293. type_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  294. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  295. number_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  296. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  297. number_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  298. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  299. type_list_attr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  300. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  301. type_list_attr_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  302. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  303. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  304. reinterpret_cast<char*>(&type_) - reinterpret_cast<char*>(this)),
  305. 0, static_cast<size_t>(reinterpret_cast<char*>(&is_ref_) -
  306. reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
  307. }
  308. OpDef_ArgDef::~OpDef_ArgDef() {
  309. // @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef.ArgDef)
  310. if (GetArenaForAllocation() != nullptr) return;
  311. SharedDtor();
  312. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  313. }
  314. inline void OpDef_ArgDef::SharedDtor() {
  315. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  316. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  317. description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  318. type_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  319. number_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  320. type_list_attr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  321. }
  322. void OpDef_ArgDef::ArenaDtor(void* object) {
  323. OpDef_ArgDef* _this = reinterpret_cast< OpDef_ArgDef* >(object);
  324. (void)_this;
  325. }
  326. void OpDef_ArgDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  327. }
  328. void OpDef_ArgDef::SetCachedSize(int size) const {
  329. _cached_size_.Set(size);
  330. }
  331. void OpDef_ArgDef::Clear() {
  332. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef.ArgDef)
  333. uint32_t cached_has_bits = 0;
  334. // Prevent compiler warnings about cached_has_bits being unused
  335. (void) cached_has_bits;
  336. name_.ClearToEmpty();
  337. description_.ClearToEmpty();
  338. type_attr_.ClearToEmpty();
  339. number_attr_.ClearToEmpty();
  340. type_list_attr_.ClearToEmpty();
  341. ::memset(&type_, 0, static_cast<size_t>(
  342. reinterpret_cast<char*>(&is_ref_) -
  343. reinterpret_cast<char*>(&type_)) + sizeof(is_ref_));
  344. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  345. }
  346. const char* OpDef_ArgDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  347. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  348. while (!ctx->Done(&ptr)) {
  349. uint32_t tag;
  350. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  351. switch (tag >> 3) {
  352. // string name = 1;
  353. case 1:
  354. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  355. auto str = _internal_mutable_name();
  356. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  357. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.name"));
  358. CHK_(ptr);
  359. } else
  360. goto handle_unusual;
  361. continue;
  362. // string description = 2;
  363. case 2:
  364. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  365. auto str = _internal_mutable_description();
  366. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  367. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.description"));
  368. CHK_(ptr);
  369. } else
  370. goto handle_unusual;
  371. continue;
  372. // .opencv_tensorflow.DataType type = 3;
  373. case 3:
  374. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  375. uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  376. CHK_(ptr);
  377. _internal_set_type(static_cast<::opencv_tensorflow::DataType>(val));
  378. } else
  379. goto handle_unusual;
  380. continue;
  381. // string type_attr = 4;
  382. case 4:
  383. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  384. auto str = _internal_mutable_type_attr();
  385. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  386. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.type_attr"));
  387. CHK_(ptr);
  388. } else
  389. goto handle_unusual;
  390. continue;
  391. // string number_attr = 5;
  392. case 5:
  393. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
  394. auto str = _internal_mutable_number_attr();
  395. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  396. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.number_attr"));
  397. CHK_(ptr);
  398. } else
  399. goto handle_unusual;
  400. continue;
  401. // string type_list_attr = 6;
  402. case 6:
  403. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  404. auto str = _internal_mutable_type_list_attr();
  405. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  406. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.ArgDef.type_list_attr"));
  407. CHK_(ptr);
  408. } else
  409. goto handle_unusual;
  410. continue;
  411. // bool is_ref = 16;
  412. case 16:
  413. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  414. is_ref_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  415. CHK_(ptr);
  416. } else
  417. goto handle_unusual;
  418. continue;
  419. default:
  420. goto handle_unusual;
  421. } // switch
  422. handle_unusual:
  423. if ((tag == 0) || ((tag & 7) == 4)) {
  424. CHK_(ptr);
  425. ctx->SetLastTag(tag);
  426. goto message_done;
  427. }
  428. ptr = UnknownFieldParse(
  429. tag,
  430. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  431. ptr, ctx);
  432. CHK_(ptr != nullptr);
  433. } // while
  434. message_done:
  435. return ptr;
  436. failure:
  437. ptr = nullptr;
  438. goto message_done;
  439. #undef CHK_
  440. }
  441. uint8_t* OpDef_ArgDef::_InternalSerialize(
  442. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  443. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef.ArgDef)
  444. uint32_t cached_has_bits = 0;
  445. (void) cached_has_bits;
  446. // string name = 1;
  447. if (!this->_internal_name().empty()) {
  448. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  449. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  450. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  451. "opencv_tensorflow.OpDef.ArgDef.name");
  452. target = stream->WriteStringMaybeAliased(
  453. 1, this->_internal_name(), target);
  454. }
  455. // string description = 2;
  456. if (!this->_internal_description().empty()) {
  457. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  458. this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
  459. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  460. "opencv_tensorflow.OpDef.ArgDef.description");
  461. target = stream->WriteStringMaybeAliased(
  462. 2, this->_internal_description(), target);
  463. }
  464. // .opencv_tensorflow.DataType type = 3;
  465. if (this->_internal_type() != 0) {
  466. target = stream->EnsureSpace(target);
  467. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  468. 3, this->_internal_type(), target);
  469. }
  470. // string type_attr = 4;
  471. if (!this->_internal_type_attr().empty()) {
  472. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  473. this->_internal_type_attr().data(), static_cast<int>(this->_internal_type_attr().length()),
  474. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  475. "opencv_tensorflow.OpDef.ArgDef.type_attr");
  476. target = stream->WriteStringMaybeAliased(
  477. 4, this->_internal_type_attr(), target);
  478. }
  479. // string number_attr = 5;
  480. if (!this->_internal_number_attr().empty()) {
  481. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  482. this->_internal_number_attr().data(), static_cast<int>(this->_internal_number_attr().length()),
  483. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  484. "opencv_tensorflow.OpDef.ArgDef.number_attr");
  485. target = stream->WriteStringMaybeAliased(
  486. 5, this->_internal_number_attr(), target);
  487. }
  488. // string type_list_attr = 6;
  489. if (!this->_internal_type_list_attr().empty()) {
  490. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  491. this->_internal_type_list_attr().data(), static_cast<int>(this->_internal_type_list_attr().length()),
  492. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  493. "opencv_tensorflow.OpDef.ArgDef.type_list_attr");
  494. target = stream->WriteStringMaybeAliased(
  495. 6, this->_internal_type_list_attr(), target);
  496. }
  497. // bool is_ref = 16;
  498. if (this->_internal_is_ref() != 0) {
  499. target = stream->EnsureSpace(target);
  500. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_is_ref(), target);
  501. }
  502. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  503. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  504. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  505. }
  506. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef.ArgDef)
  507. return target;
  508. }
  509. size_t OpDef_ArgDef::ByteSizeLong() const {
  510. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef.ArgDef)
  511. size_t total_size = 0;
  512. uint32_t cached_has_bits = 0;
  513. // Prevent compiler warnings about cached_has_bits being unused
  514. (void) cached_has_bits;
  515. // string name = 1;
  516. if (!this->_internal_name().empty()) {
  517. total_size += 1 +
  518. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  519. this->_internal_name());
  520. }
  521. // string description = 2;
  522. if (!this->_internal_description().empty()) {
  523. total_size += 1 +
  524. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  525. this->_internal_description());
  526. }
  527. // string type_attr = 4;
  528. if (!this->_internal_type_attr().empty()) {
  529. total_size += 1 +
  530. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  531. this->_internal_type_attr());
  532. }
  533. // string number_attr = 5;
  534. if (!this->_internal_number_attr().empty()) {
  535. total_size += 1 +
  536. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  537. this->_internal_number_attr());
  538. }
  539. // string type_list_attr = 6;
  540. if (!this->_internal_type_list_attr().empty()) {
  541. total_size += 1 +
  542. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  543. this->_internal_type_list_attr());
  544. }
  545. // .opencv_tensorflow.DataType type = 3;
  546. if (this->_internal_type() != 0) {
  547. total_size += 1 +
  548. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
  549. }
  550. // bool is_ref = 16;
  551. if (this->_internal_is_ref() != 0) {
  552. total_size += 2 + 1;
  553. }
  554. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  555. }
  556. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpDef_ArgDef::_class_data_ = {
  557. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  558. OpDef_ArgDef::MergeImpl
  559. };
  560. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpDef_ArgDef::GetClassData() const { return &_class_data_; }
  561. void OpDef_ArgDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  562. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  563. static_cast<OpDef_ArgDef *>(to)->MergeFrom(
  564. static_cast<const OpDef_ArgDef &>(from));
  565. }
  566. void OpDef_ArgDef::MergeFrom(const OpDef_ArgDef& from) {
  567. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef.ArgDef)
  568. GOOGLE_DCHECK_NE(&from, this);
  569. uint32_t cached_has_bits = 0;
  570. (void) cached_has_bits;
  571. if (!from._internal_name().empty()) {
  572. _internal_set_name(from._internal_name());
  573. }
  574. if (!from._internal_description().empty()) {
  575. _internal_set_description(from._internal_description());
  576. }
  577. if (!from._internal_type_attr().empty()) {
  578. _internal_set_type_attr(from._internal_type_attr());
  579. }
  580. if (!from._internal_number_attr().empty()) {
  581. _internal_set_number_attr(from._internal_number_attr());
  582. }
  583. if (!from._internal_type_list_attr().empty()) {
  584. _internal_set_type_list_attr(from._internal_type_list_attr());
  585. }
  586. if (from._internal_type() != 0) {
  587. _internal_set_type(from._internal_type());
  588. }
  589. if (from._internal_is_ref() != 0) {
  590. _internal_set_is_ref(from._internal_is_ref());
  591. }
  592. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  593. }
  594. void OpDef_ArgDef::CopyFrom(const OpDef_ArgDef& from) {
  595. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef.ArgDef)
  596. if (&from == this) return;
  597. Clear();
  598. MergeFrom(from);
  599. }
  600. bool OpDef_ArgDef::IsInitialized() const {
  601. return true;
  602. }
  603. void OpDef_ArgDef::InternalSwap(OpDef_ArgDef* other) {
  604. using std::swap;
  605. auto* lhs_arena = GetArenaForAllocation();
  606. auto* rhs_arena = other->GetArenaForAllocation();
  607. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  608. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  609. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  610. &name_, lhs_arena,
  611. &other->name_, rhs_arena
  612. );
  613. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  614. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  615. &description_, lhs_arena,
  616. &other->description_, rhs_arena
  617. );
  618. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  619. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  620. &type_attr_, lhs_arena,
  621. &other->type_attr_, rhs_arena
  622. );
  623. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  624. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  625. &number_attr_, lhs_arena,
  626. &other->number_attr_, rhs_arena
  627. );
  628. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  629. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  630. &type_list_attr_, lhs_arena,
  631. &other->type_list_attr_, rhs_arena
  632. );
  633. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  634. PROTOBUF_FIELD_OFFSET(OpDef_ArgDef, is_ref_)
  635. + sizeof(OpDef_ArgDef::is_ref_)
  636. - PROTOBUF_FIELD_OFFSET(OpDef_ArgDef, type_)>(
  637. reinterpret_cast<char*>(&type_),
  638. reinterpret_cast<char*>(&other->type_));
  639. }
  640. ::PROTOBUF_NAMESPACE_ID::Metadata OpDef_ArgDef::GetMetadata() const {
  641. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  642. &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
  643. file_level_metadata_op_5fdef_2eproto[0]);
  644. }
  645. // ===================================================================
  646. class OpDef_AttrDef::_Internal {
  647. public:
  648. static const ::opencv_tensorflow::AttrValue& default_value(const OpDef_AttrDef* msg);
  649. static const ::opencv_tensorflow::AttrValue& allowed_values(const OpDef_AttrDef* msg);
  650. };
  651. const ::opencv_tensorflow::AttrValue&
  652. OpDef_AttrDef::_Internal::default_value(const OpDef_AttrDef* msg) {
  653. return *msg->default_value_;
  654. }
  655. const ::opencv_tensorflow::AttrValue&
  656. OpDef_AttrDef::_Internal::allowed_values(const OpDef_AttrDef* msg) {
  657. return *msg->allowed_values_;
  658. }
  659. void OpDef_AttrDef::clear_default_value() {
  660. if (GetArenaForAllocation() == nullptr && default_value_ != nullptr) {
  661. delete default_value_;
  662. }
  663. default_value_ = nullptr;
  664. }
  665. void OpDef_AttrDef::clear_allowed_values() {
  666. if (GetArenaForAllocation() == nullptr && allowed_values_ != nullptr) {
  667. delete allowed_values_;
  668. }
  669. allowed_values_ = nullptr;
  670. }
  671. OpDef_AttrDef::OpDef_AttrDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  672. bool is_message_owned)
  673. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  674. SharedCtor();
  675. if (!is_message_owned) {
  676. RegisterArenaDtor(arena);
  677. }
  678. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef.AttrDef)
  679. }
  680. OpDef_AttrDef::OpDef_AttrDef(const OpDef_AttrDef& from)
  681. : ::PROTOBUF_NAMESPACE_ID::Message() {
  682. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  683. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  684. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  685. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  686. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  687. if (!from._internal_name().empty()) {
  688. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  689. GetArenaForAllocation());
  690. }
  691. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  692. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  693. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  694. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  695. if (!from._internal_type().empty()) {
  696. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  697. GetArenaForAllocation());
  698. }
  699. description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  700. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  701. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  702. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  703. if (!from._internal_description().empty()) {
  704. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(),
  705. GetArenaForAllocation());
  706. }
  707. if (from._internal_has_default_value()) {
  708. default_value_ = new ::opencv_tensorflow::AttrValue(*from.default_value_);
  709. } else {
  710. default_value_ = nullptr;
  711. }
  712. if (from._internal_has_allowed_values()) {
  713. allowed_values_ = new ::opencv_tensorflow::AttrValue(*from.allowed_values_);
  714. } else {
  715. allowed_values_ = nullptr;
  716. }
  717. ::memcpy(&minimum_, &from.minimum_,
  718. static_cast<size_t>(reinterpret_cast<char*>(&has_minimum_) -
  719. reinterpret_cast<char*>(&minimum_)) + sizeof(has_minimum_));
  720. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef.AttrDef)
  721. }
  722. inline void OpDef_AttrDef::SharedCtor() {
  723. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  724. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  725. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  726. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  727. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  728. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  729. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  730. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  731. description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  732. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  733. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  734. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  735. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  736. reinterpret_cast<char*>(&default_value_) - reinterpret_cast<char*>(this)),
  737. 0, static_cast<size_t>(reinterpret_cast<char*>(&has_minimum_) -
  738. reinterpret_cast<char*>(&default_value_)) + sizeof(has_minimum_));
  739. }
  740. OpDef_AttrDef::~OpDef_AttrDef() {
  741. // @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef.AttrDef)
  742. if (GetArenaForAllocation() != nullptr) return;
  743. SharedDtor();
  744. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  745. }
  746. inline void OpDef_AttrDef::SharedDtor() {
  747. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  748. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  749. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  750. description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  751. if (this != internal_default_instance()) delete default_value_;
  752. if (this != internal_default_instance()) delete allowed_values_;
  753. }
  754. void OpDef_AttrDef::ArenaDtor(void* object) {
  755. OpDef_AttrDef* _this = reinterpret_cast< OpDef_AttrDef* >(object);
  756. (void)_this;
  757. }
  758. void OpDef_AttrDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  759. }
  760. void OpDef_AttrDef::SetCachedSize(int size) const {
  761. _cached_size_.Set(size);
  762. }
  763. void OpDef_AttrDef::Clear() {
  764. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef.AttrDef)
  765. uint32_t cached_has_bits = 0;
  766. // Prevent compiler warnings about cached_has_bits being unused
  767. (void) cached_has_bits;
  768. name_.ClearToEmpty();
  769. type_.ClearToEmpty();
  770. description_.ClearToEmpty();
  771. if (GetArenaForAllocation() == nullptr && default_value_ != nullptr) {
  772. delete default_value_;
  773. }
  774. default_value_ = nullptr;
  775. if (GetArenaForAllocation() == nullptr && allowed_values_ != nullptr) {
  776. delete allowed_values_;
  777. }
  778. allowed_values_ = nullptr;
  779. ::memset(&minimum_, 0, static_cast<size_t>(
  780. reinterpret_cast<char*>(&has_minimum_) -
  781. reinterpret_cast<char*>(&minimum_)) + sizeof(has_minimum_));
  782. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  783. }
  784. const char* OpDef_AttrDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  785. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  786. while (!ctx->Done(&ptr)) {
  787. uint32_t tag;
  788. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  789. switch (tag >> 3) {
  790. // string name = 1;
  791. case 1:
  792. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  793. auto str = _internal_mutable_name();
  794. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  795. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.AttrDef.name"));
  796. CHK_(ptr);
  797. } else
  798. goto handle_unusual;
  799. continue;
  800. // string type = 2;
  801. case 2:
  802. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  803. auto str = _internal_mutable_type();
  804. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  805. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.AttrDef.type"));
  806. CHK_(ptr);
  807. } else
  808. goto handle_unusual;
  809. continue;
  810. // .opencv_tensorflow.AttrValue default_value = 3;
  811. case 3:
  812. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  813. ptr = ctx->ParseMessage(_internal_mutable_default_value(), ptr);
  814. CHK_(ptr);
  815. } else
  816. goto handle_unusual;
  817. continue;
  818. // string description = 4;
  819. case 4:
  820. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  821. auto str = _internal_mutable_description();
  822. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  823. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.AttrDef.description"));
  824. CHK_(ptr);
  825. } else
  826. goto handle_unusual;
  827. continue;
  828. // bool has_minimum = 5;
  829. case 5:
  830. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  831. has_minimum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  832. CHK_(ptr);
  833. } else
  834. goto handle_unusual;
  835. continue;
  836. // int64 minimum = 6;
  837. case 6:
  838. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
  839. minimum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  840. CHK_(ptr);
  841. } else
  842. goto handle_unusual;
  843. continue;
  844. // .opencv_tensorflow.AttrValue allowed_values = 7;
  845. case 7:
  846. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
  847. ptr = ctx->ParseMessage(_internal_mutable_allowed_values(), ptr);
  848. CHK_(ptr);
  849. } else
  850. goto handle_unusual;
  851. continue;
  852. default:
  853. goto handle_unusual;
  854. } // switch
  855. handle_unusual:
  856. if ((tag == 0) || ((tag & 7) == 4)) {
  857. CHK_(ptr);
  858. ctx->SetLastTag(tag);
  859. goto message_done;
  860. }
  861. ptr = UnknownFieldParse(
  862. tag,
  863. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  864. ptr, ctx);
  865. CHK_(ptr != nullptr);
  866. } // while
  867. message_done:
  868. return ptr;
  869. failure:
  870. ptr = nullptr;
  871. goto message_done;
  872. #undef CHK_
  873. }
  874. uint8_t* OpDef_AttrDef::_InternalSerialize(
  875. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  876. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef.AttrDef)
  877. uint32_t cached_has_bits = 0;
  878. (void) cached_has_bits;
  879. // string name = 1;
  880. if (!this->_internal_name().empty()) {
  881. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  882. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  883. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  884. "opencv_tensorflow.OpDef.AttrDef.name");
  885. target = stream->WriteStringMaybeAliased(
  886. 1, this->_internal_name(), target);
  887. }
  888. // string type = 2;
  889. if (!this->_internal_type().empty()) {
  890. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  891. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  892. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  893. "opencv_tensorflow.OpDef.AttrDef.type");
  894. target = stream->WriteStringMaybeAliased(
  895. 2, this->_internal_type(), target);
  896. }
  897. // .opencv_tensorflow.AttrValue default_value = 3;
  898. if (this->_internal_has_default_value()) {
  899. target = stream->EnsureSpace(target);
  900. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  901. InternalWriteMessage(
  902. 3, _Internal::default_value(this), target, stream);
  903. }
  904. // string description = 4;
  905. if (!this->_internal_description().empty()) {
  906. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  907. this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
  908. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  909. "opencv_tensorflow.OpDef.AttrDef.description");
  910. target = stream->WriteStringMaybeAliased(
  911. 4, this->_internal_description(), target);
  912. }
  913. // bool has_minimum = 5;
  914. if (this->_internal_has_minimum() != 0) {
  915. target = stream->EnsureSpace(target);
  916. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_has_minimum(), target);
  917. }
  918. // int64 minimum = 6;
  919. if (this->_internal_minimum() != 0) {
  920. target = stream->EnsureSpace(target);
  921. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_minimum(), target);
  922. }
  923. // .opencv_tensorflow.AttrValue allowed_values = 7;
  924. if (this->_internal_has_allowed_values()) {
  925. target = stream->EnsureSpace(target);
  926. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  927. InternalWriteMessage(
  928. 7, _Internal::allowed_values(this), target, stream);
  929. }
  930. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  931. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  932. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  933. }
  934. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef.AttrDef)
  935. return target;
  936. }
  937. size_t OpDef_AttrDef::ByteSizeLong() const {
  938. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef.AttrDef)
  939. size_t total_size = 0;
  940. uint32_t cached_has_bits = 0;
  941. // Prevent compiler warnings about cached_has_bits being unused
  942. (void) cached_has_bits;
  943. // string name = 1;
  944. if (!this->_internal_name().empty()) {
  945. total_size += 1 +
  946. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  947. this->_internal_name());
  948. }
  949. // string type = 2;
  950. if (!this->_internal_type().empty()) {
  951. total_size += 1 +
  952. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  953. this->_internal_type());
  954. }
  955. // string description = 4;
  956. if (!this->_internal_description().empty()) {
  957. total_size += 1 +
  958. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  959. this->_internal_description());
  960. }
  961. // .opencv_tensorflow.AttrValue default_value = 3;
  962. if (this->_internal_has_default_value()) {
  963. total_size += 1 +
  964. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  965. *default_value_);
  966. }
  967. // .opencv_tensorflow.AttrValue allowed_values = 7;
  968. if (this->_internal_has_allowed_values()) {
  969. total_size += 1 +
  970. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  971. *allowed_values_);
  972. }
  973. // int64 minimum = 6;
  974. if (this->_internal_minimum() != 0) {
  975. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_minimum());
  976. }
  977. // bool has_minimum = 5;
  978. if (this->_internal_has_minimum() != 0) {
  979. total_size += 1 + 1;
  980. }
  981. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  982. }
  983. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpDef_AttrDef::_class_data_ = {
  984. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  985. OpDef_AttrDef::MergeImpl
  986. };
  987. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpDef_AttrDef::GetClassData() const { return &_class_data_; }
  988. void OpDef_AttrDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  989. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  990. static_cast<OpDef_AttrDef *>(to)->MergeFrom(
  991. static_cast<const OpDef_AttrDef &>(from));
  992. }
  993. void OpDef_AttrDef::MergeFrom(const OpDef_AttrDef& from) {
  994. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef.AttrDef)
  995. GOOGLE_DCHECK_NE(&from, this);
  996. uint32_t cached_has_bits = 0;
  997. (void) cached_has_bits;
  998. if (!from._internal_name().empty()) {
  999. _internal_set_name(from._internal_name());
  1000. }
  1001. if (!from._internal_type().empty()) {
  1002. _internal_set_type(from._internal_type());
  1003. }
  1004. if (!from._internal_description().empty()) {
  1005. _internal_set_description(from._internal_description());
  1006. }
  1007. if (from._internal_has_default_value()) {
  1008. _internal_mutable_default_value()->::opencv_tensorflow::AttrValue::MergeFrom(from._internal_default_value());
  1009. }
  1010. if (from._internal_has_allowed_values()) {
  1011. _internal_mutable_allowed_values()->::opencv_tensorflow::AttrValue::MergeFrom(from._internal_allowed_values());
  1012. }
  1013. if (from._internal_minimum() != 0) {
  1014. _internal_set_minimum(from._internal_minimum());
  1015. }
  1016. if (from._internal_has_minimum() != 0) {
  1017. _internal_set_has_minimum(from._internal_has_minimum());
  1018. }
  1019. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1020. }
  1021. void OpDef_AttrDef::CopyFrom(const OpDef_AttrDef& from) {
  1022. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef.AttrDef)
  1023. if (&from == this) return;
  1024. Clear();
  1025. MergeFrom(from);
  1026. }
  1027. bool OpDef_AttrDef::IsInitialized() const {
  1028. return true;
  1029. }
  1030. void OpDef_AttrDef::InternalSwap(OpDef_AttrDef* other) {
  1031. using std::swap;
  1032. auto* lhs_arena = GetArenaForAllocation();
  1033. auto* rhs_arena = other->GetArenaForAllocation();
  1034. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1035. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1036. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1037. &name_, lhs_arena,
  1038. &other->name_, rhs_arena
  1039. );
  1040. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1041. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1042. &type_, lhs_arena,
  1043. &other->type_, rhs_arena
  1044. );
  1045. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1046. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1047. &description_, lhs_arena,
  1048. &other->description_, rhs_arena
  1049. );
  1050. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1051. PROTOBUF_FIELD_OFFSET(OpDef_AttrDef, has_minimum_)
  1052. + sizeof(OpDef_AttrDef::has_minimum_)
  1053. - PROTOBUF_FIELD_OFFSET(OpDef_AttrDef, default_value_)>(
  1054. reinterpret_cast<char*>(&default_value_),
  1055. reinterpret_cast<char*>(&other->default_value_));
  1056. }
  1057. ::PROTOBUF_NAMESPACE_ID::Metadata OpDef_AttrDef::GetMetadata() const {
  1058. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1059. &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
  1060. file_level_metadata_op_5fdef_2eproto[1]);
  1061. }
  1062. // ===================================================================
  1063. class OpDef::_Internal {
  1064. public:
  1065. static const ::opencv_tensorflow::OpDeprecation& deprecation(const OpDef* msg);
  1066. };
  1067. const ::opencv_tensorflow::OpDeprecation&
  1068. OpDef::_Internal::deprecation(const OpDef* msg) {
  1069. return *msg->deprecation_;
  1070. }
  1071. OpDef::OpDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1072. bool is_message_owned)
  1073. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  1074. input_arg_(arena),
  1075. output_arg_(arena),
  1076. attr_(arena) {
  1077. SharedCtor();
  1078. if (!is_message_owned) {
  1079. RegisterArenaDtor(arena);
  1080. }
  1081. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDef)
  1082. }
  1083. OpDef::OpDef(const OpDef& from)
  1084. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1085. input_arg_(from.input_arg_),
  1086. output_arg_(from.output_arg_),
  1087. attr_(from.attr_) {
  1088. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1089. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1090. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1091. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1092. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1093. if (!from._internal_name().empty()) {
  1094. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  1095. GetArenaForAllocation());
  1096. }
  1097. summary_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1098. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1099. summary_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1100. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1101. if (!from._internal_summary().empty()) {
  1102. summary_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_summary(),
  1103. GetArenaForAllocation());
  1104. }
  1105. description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1106. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1107. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1108. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1109. if (!from._internal_description().empty()) {
  1110. description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(),
  1111. GetArenaForAllocation());
  1112. }
  1113. if (from._internal_has_deprecation()) {
  1114. deprecation_ = new ::opencv_tensorflow::OpDeprecation(*from.deprecation_);
  1115. } else {
  1116. deprecation_ = nullptr;
  1117. }
  1118. ::memcpy(&is_commutative_, &from.is_commutative_,
  1119. static_cast<size_t>(reinterpret_cast<char*>(&allows_uninitialized_input_) -
  1120. reinterpret_cast<char*>(&is_commutative_)) + sizeof(allows_uninitialized_input_));
  1121. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDef)
  1122. }
  1123. inline void OpDef::SharedCtor() {
  1124. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1125. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1126. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1127. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1128. summary_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1129. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1130. summary_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1131. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1132. description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1133. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1134. description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1135. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1136. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1137. reinterpret_cast<char*>(&deprecation_) - reinterpret_cast<char*>(this)),
  1138. 0, static_cast<size_t>(reinterpret_cast<char*>(&allows_uninitialized_input_) -
  1139. reinterpret_cast<char*>(&deprecation_)) + sizeof(allows_uninitialized_input_));
  1140. }
  1141. OpDef::~OpDef() {
  1142. // @@protoc_insertion_point(destructor:opencv_tensorflow.OpDef)
  1143. if (GetArenaForAllocation() != nullptr) return;
  1144. SharedDtor();
  1145. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1146. }
  1147. inline void OpDef::SharedDtor() {
  1148. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1149. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1150. summary_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1151. description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1152. if (this != internal_default_instance()) delete deprecation_;
  1153. }
  1154. void OpDef::ArenaDtor(void* object) {
  1155. OpDef* _this = reinterpret_cast< OpDef* >(object);
  1156. (void)_this;
  1157. }
  1158. void OpDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1159. }
  1160. void OpDef::SetCachedSize(int size) const {
  1161. _cached_size_.Set(size);
  1162. }
  1163. void OpDef::Clear() {
  1164. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDef)
  1165. uint32_t cached_has_bits = 0;
  1166. // Prevent compiler warnings about cached_has_bits being unused
  1167. (void) cached_has_bits;
  1168. input_arg_.Clear();
  1169. output_arg_.Clear();
  1170. attr_.Clear();
  1171. name_.ClearToEmpty();
  1172. summary_.ClearToEmpty();
  1173. description_.ClearToEmpty();
  1174. if (GetArenaForAllocation() == nullptr && deprecation_ != nullptr) {
  1175. delete deprecation_;
  1176. }
  1177. deprecation_ = nullptr;
  1178. ::memset(&is_commutative_, 0, static_cast<size_t>(
  1179. reinterpret_cast<char*>(&allows_uninitialized_input_) -
  1180. reinterpret_cast<char*>(&is_commutative_)) + sizeof(allows_uninitialized_input_));
  1181. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1182. }
  1183. const char* OpDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1184. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1185. while (!ctx->Done(&ptr)) {
  1186. uint32_t tag;
  1187. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1188. switch (tag >> 3) {
  1189. // string name = 1;
  1190. case 1:
  1191. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  1192. auto str = _internal_mutable_name();
  1193. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1194. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.name"));
  1195. CHK_(ptr);
  1196. } else
  1197. goto handle_unusual;
  1198. continue;
  1199. // repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
  1200. case 2:
  1201. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  1202. ptr -= 1;
  1203. do {
  1204. ptr += 1;
  1205. ptr = ctx->ParseMessage(_internal_add_input_arg(), ptr);
  1206. CHK_(ptr);
  1207. if (!ctx->DataAvailable(ptr)) break;
  1208. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  1209. } else
  1210. goto handle_unusual;
  1211. continue;
  1212. // repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
  1213. case 3:
  1214. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  1215. ptr -= 1;
  1216. do {
  1217. ptr += 1;
  1218. ptr = ctx->ParseMessage(_internal_add_output_arg(), ptr);
  1219. CHK_(ptr);
  1220. if (!ctx->DataAvailable(ptr)) break;
  1221. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
  1222. } else
  1223. goto handle_unusual;
  1224. continue;
  1225. // repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
  1226. case 4:
  1227. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  1228. ptr -= 1;
  1229. do {
  1230. ptr += 1;
  1231. ptr = ctx->ParseMessage(_internal_add_attr(), ptr);
  1232. CHK_(ptr);
  1233. if (!ctx->DataAvailable(ptr)) break;
  1234. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
  1235. } else
  1236. goto handle_unusual;
  1237. continue;
  1238. // string summary = 5;
  1239. case 5:
  1240. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
  1241. auto str = _internal_mutable_summary();
  1242. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1243. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.summary"));
  1244. CHK_(ptr);
  1245. } else
  1246. goto handle_unusual;
  1247. continue;
  1248. // string description = 6;
  1249. case 6:
  1250. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  1251. auto str = _internal_mutable_description();
  1252. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1253. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDef.description"));
  1254. CHK_(ptr);
  1255. } else
  1256. goto handle_unusual;
  1257. continue;
  1258. // .opencv_tensorflow.OpDeprecation deprecation = 8;
  1259. case 8:
  1260. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
  1261. ptr = ctx->ParseMessage(_internal_mutable_deprecation(), ptr);
  1262. CHK_(ptr);
  1263. } else
  1264. goto handle_unusual;
  1265. continue;
  1266. // bool is_aggregate = 16;
  1267. case 16:
  1268. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) {
  1269. is_aggregate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1270. CHK_(ptr);
  1271. } else
  1272. goto handle_unusual;
  1273. continue;
  1274. // bool is_stateful = 17;
  1275. case 17:
  1276. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) {
  1277. is_stateful_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1278. CHK_(ptr);
  1279. } else
  1280. goto handle_unusual;
  1281. continue;
  1282. // bool is_commutative = 18;
  1283. case 18:
  1284. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) {
  1285. is_commutative_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1286. CHK_(ptr);
  1287. } else
  1288. goto handle_unusual;
  1289. continue;
  1290. // bool allows_uninitialized_input = 19;
  1291. case 19:
  1292. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) {
  1293. allows_uninitialized_input_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  1294. CHK_(ptr);
  1295. } else
  1296. goto handle_unusual;
  1297. continue;
  1298. default:
  1299. goto handle_unusual;
  1300. } // switch
  1301. handle_unusual:
  1302. if ((tag == 0) || ((tag & 7) == 4)) {
  1303. CHK_(ptr);
  1304. ctx->SetLastTag(tag);
  1305. goto message_done;
  1306. }
  1307. ptr = UnknownFieldParse(
  1308. tag,
  1309. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1310. ptr, ctx);
  1311. CHK_(ptr != nullptr);
  1312. } // while
  1313. message_done:
  1314. return ptr;
  1315. failure:
  1316. ptr = nullptr;
  1317. goto message_done;
  1318. #undef CHK_
  1319. }
  1320. uint8_t* OpDef::_InternalSerialize(
  1321. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1322. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDef)
  1323. uint32_t cached_has_bits = 0;
  1324. (void) cached_has_bits;
  1325. // string name = 1;
  1326. if (!this->_internal_name().empty()) {
  1327. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1328. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  1329. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1330. "opencv_tensorflow.OpDef.name");
  1331. target = stream->WriteStringMaybeAliased(
  1332. 1, this->_internal_name(), target);
  1333. }
  1334. // repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
  1335. for (unsigned int i = 0,
  1336. n = static_cast<unsigned int>(this->_internal_input_arg_size()); i < n; i++) {
  1337. target = stream->EnsureSpace(target);
  1338. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1339. InternalWriteMessage(2, this->_internal_input_arg(i), target, stream);
  1340. }
  1341. // repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
  1342. for (unsigned int i = 0,
  1343. n = static_cast<unsigned int>(this->_internal_output_arg_size()); i < n; i++) {
  1344. target = stream->EnsureSpace(target);
  1345. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1346. InternalWriteMessage(3, this->_internal_output_arg(i), target, stream);
  1347. }
  1348. // repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
  1349. for (unsigned int i = 0,
  1350. n = static_cast<unsigned int>(this->_internal_attr_size()); i < n; i++) {
  1351. target = stream->EnsureSpace(target);
  1352. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1353. InternalWriteMessage(4, this->_internal_attr(i), target, stream);
  1354. }
  1355. // string summary = 5;
  1356. if (!this->_internal_summary().empty()) {
  1357. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1358. this->_internal_summary().data(), static_cast<int>(this->_internal_summary().length()),
  1359. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1360. "opencv_tensorflow.OpDef.summary");
  1361. target = stream->WriteStringMaybeAliased(
  1362. 5, this->_internal_summary(), target);
  1363. }
  1364. // string description = 6;
  1365. if (!this->_internal_description().empty()) {
  1366. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1367. this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
  1368. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1369. "opencv_tensorflow.OpDef.description");
  1370. target = stream->WriteStringMaybeAliased(
  1371. 6, this->_internal_description(), target);
  1372. }
  1373. // .opencv_tensorflow.OpDeprecation deprecation = 8;
  1374. if (this->_internal_has_deprecation()) {
  1375. target = stream->EnsureSpace(target);
  1376. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1377. InternalWriteMessage(
  1378. 8, _Internal::deprecation(this), target, stream);
  1379. }
  1380. // bool is_aggregate = 16;
  1381. if (this->_internal_is_aggregate() != 0) {
  1382. target = stream->EnsureSpace(target);
  1383. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_is_aggregate(), target);
  1384. }
  1385. // bool is_stateful = 17;
  1386. if (this->_internal_is_stateful() != 0) {
  1387. target = stream->EnsureSpace(target);
  1388. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_is_stateful(), target);
  1389. }
  1390. // bool is_commutative = 18;
  1391. if (this->_internal_is_commutative() != 0) {
  1392. target = stream->EnsureSpace(target);
  1393. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(18, this->_internal_is_commutative(), target);
  1394. }
  1395. // bool allows_uninitialized_input = 19;
  1396. if (this->_internal_allows_uninitialized_input() != 0) {
  1397. target = stream->EnsureSpace(target);
  1398. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(19, this->_internal_allows_uninitialized_input(), target);
  1399. }
  1400. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1401. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1402. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1403. }
  1404. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDef)
  1405. return target;
  1406. }
  1407. size_t OpDef::ByteSizeLong() const {
  1408. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDef)
  1409. size_t total_size = 0;
  1410. uint32_t cached_has_bits = 0;
  1411. // Prevent compiler warnings about cached_has_bits being unused
  1412. (void) cached_has_bits;
  1413. // repeated .opencv_tensorflow.OpDef.ArgDef input_arg = 2;
  1414. total_size += 1UL * this->_internal_input_arg_size();
  1415. for (const auto& msg : this->input_arg_) {
  1416. total_size +=
  1417. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1418. }
  1419. // repeated .opencv_tensorflow.OpDef.ArgDef output_arg = 3;
  1420. total_size += 1UL * this->_internal_output_arg_size();
  1421. for (const auto& msg : this->output_arg_) {
  1422. total_size +=
  1423. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1424. }
  1425. // repeated .opencv_tensorflow.OpDef.AttrDef attr = 4;
  1426. total_size += 1UL * this->_internal_attr_size();
  1427. for (const auto& msg : this->attr_) {
  1428. total_size +=
  1429. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1430. }
  1431. // string name = 1;
  1432. if (!this->_internal_name().empty()) {
  1433. total_size += 1 +
  1434. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1435. this->_internal_name());
  1436. }
  1437. // string summary = 5;
  1438. if (!this->_internal_summary().empty()) {
  1439. total_size += 1 +
  1440. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1441. this->_internal_summary());
  1442. }
  1443. // string description = 6;
  1444. if (!this->_internal_description().empty()) {
  1445. total_size += 1 +
  1446. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1447. this->_internal_description());
  1448. }
  1449. // .opencv_tensorflow.OpDeprecation deprecation = 8;
  1450. if (this->_internal_has_deprecation()) {
  1451. total_size += 1 +
  1452. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  1453. *deprecation_);
  1454. }
  1455. // bool is_commutative = 18;
  1456. if (this->_internal_is_commutative() != 0) {
  1457. total_size += 2 + 1;
  1458. }
  1459. // bool is_aggregate = 16;
  1460. if (this->_internal_is_aggregate() != 0) {
  1461. total_size += 2 + 1;
  1462. }
  1463. // bool is_stateful = 17;
  1464. if (this->_internal_is_stateful() != 0) {
  1465. total_size += 2 + 1;
  1466. }
  1467. // bool allows_uninitialized_input = 19;
  1468. if (this->_internal_allows_uninitialized_input() != 0) {
  1469. total_size += 2 + 1;
  1470. }
  1471. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1472. }
  1473. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpDef::_class_data_ = {
  1474. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1475. OpDef::MergeImpl
  1476. };
  1477. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpDef::GetClassData() const { return &_class_data_; }
  1478. void OpDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1479. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1480. static_cast<OpDef *>(to)->MergeFrom(
  1481. static_cast<const OpDef &>(from));
  1482. }
  1483. void OpDef::MergeFrom(const OpDef& from) {
  1484. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDef)
  1485. GOOGLE_DCHECK_NE(&from, this);
  1486. uint32_t cached_has_bits = 0;
  1487. (void) cached_has_bits;
  1488. input_arg_.MergeFrom(from.input_arg_);
  1489. output_arg_.MergeFrom(from.output_arg_);
  1490. attr_.MergeFrom(from.attr_);
  1491. if (!from._internal_name().empty()) {
  1492. _internal_set_name(from._internal_name());
  1493. }
  1494. if (!from._internal_summary().empty()) {
  1495. _internal_set_summary(from._internal_summary());
  1496. }
  1497. if (!from._internal_description().empty()) {
  1498. _internal_set_description(from._internal_description());
  1499. }
  1500. if (from._internal_has_deprecation()) {
  1501. _internal_mutable_deprecation()->::opencv_tensorflow::OpDeprecation::MergeFrom(from._internal_deprecation());
  1502. }
  1503. if (from._internal_is_commutative() != 0) {
  1504. _internal_set_is_commutative(from._internal_is_commutative());
  1505. }
  1506. if (from._internal_is_aggregate() != 0) {
  1507. _internal_set_is_aggregate(from._internal_is_aggregate());
  1508. }
  1509. if (from._internal_is_stateful() != 0) {
  1510. _internal_set_is_stateful(from._internal_is_stateful());
  1511. }
  1512. if (from._internal_allows_uninitialized_input() != 0) {
  1513. _internal_set_allows_uninitialized_input(from._internal_allows_uninitialized_input());
  1514. }
  1515. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1516. }
  1517. void OpDef::CopyFrom(const OpDef& from) {
  1518. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDef)
  1519. if (&from == this) return;
  1520. Clear();
  1521. MergeFrom(from);
  1522. }
  1523. bool OpDef::IsInitialized() const {
  1524. return true;
  1525. }
  1526. void OpDef::InternalSwap(OpDef* other) {
  1527. using std::swap;
  1528. auto* lhs_arena = GetArenaForAllocation();
  1529. auto* rhs_arena = other->GetArenaForAllocation();
  1530. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1531. input_arg_.InternalSwap(&other->input_arg_);
  1532. output_arg_.InternalSwap(&other->output_arg_);
  1533. attr_.InternalSwap(&other->attr_);
  1534. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1535. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1536. &name_, lhs_arena,
  1537. &other->name_, rhs_arena
  1538. );
  1539. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1540. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1541. &summary_, lhs_arena,
  1542. &other->summary_, rhs_arena
  1543. );
  1544. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1545. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1546. &description_, lhs_arena,
  1547. &other->description_, rhs_arena
  1548. );
  1549. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1550. PROTOBUF_FIELD_OFFSET(OpDef, allows_uninitialized_input_)
  1551. + sizeof(OpDef::allows_uninitialized_input_)
  1552. - PROTOBUF_FIELD_OFFSET(OpDef, deprecation_)>(
  1553. reinterpret_cast<char*>(&deprecation_),
  1554. reinterpret_cast<char*>(&other->deprecation_));
  1555. }
  1556. ::PROTOBUF_NAMESPACE_ID::Metadata OpDef::GetMetadata() const {
  1557. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1558. &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
  1559. file_level_metadata_op_5fdef_2eproto[2]);
  1560. }
  1561. // ===================================================================
  1562. class OpDeprecation::_Internal {
  1563. public:
  1564. };
  1565. OpDeprecation::OpDeprecation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1566. bool is_message_owned)
  1567. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1568. SharedCtor();
  1569. if (!is_message_owned) {
  1570. RegisterArenaDtor(arena);
  1571. }
  1572. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpDeprecation)
  1573. }
  1574. OpDeprecation::OpDeprecation(const OpDeprecation& from)
  1575. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1576. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1577. explanation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1578. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1579. explanation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1580. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1581. if (!from._internal_explanation().empty()) {
  1582. explanation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_explanation(),
  1583. GetArenaForAllocation());
  1584. }
  1585. version_ = from.version_;
  1586. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpDeprecation)
  1587. }
  1588. inline void OpDeprecation::SharedCtor() {
  1589. explanation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1590. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1591. explanation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1592. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1593. version_ = 0;
  1594. }
  1595. OpDeprecation::~OpDeprecation() {
  1596. // @@protoc_insertion_point(destructor:opencv_tensorflow.OpDeprecation)
  1597. if (GetArenaForAllocation() != nullptr) return;
  1598. SharedDtor();
  1599. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1600. }
  1601. inline void OpDeprecation::SharedDtor() {
  1602. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1603. explanation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1604. }
  1605. void OpDeprecation::ArenaDtor(void* object) {
  1606. OpDeprecation* _this = reinterpret_cast< OpDeprecation* >(object);
  1607. (void)_this;
  1608. }
  1609. void OpDeprecation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1610. }
  1611. void OpDeprecation::SetCachedSize(int size) const {
  1612. _cached_size_.Set(size);
  1613. }
  1614. void OpDeprecation::Clear() {
  1615. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpDeprecation)
  1616. uint32_t cached_has_bits = 0;
  1617. // Prevent compiler warnings about cached_has_bits being unused
  1618. (void) cached_has_bits;
  1619. explanation_.ClearToEmpty();
  1620. version_ = 0;
  1621. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1622. }
  1623. const char* OpDeprecation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1624. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1625. while (!ctx->Done(&ptr)) {
  1626. uint32_t tag;
  1627. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1628. switch (tag >> 3) {
  1629. // int32 version = 1;
  1630. case 1:
  1631. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1632. version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1633. CHK_(ptr);
  1634. } else
  1635. goto handle_unusual;
  1636. continue;
  1637. // string explanation = 2;
  1638. case 2:
  1639. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  1640. auto str = _internal_mutable_explanation();
  1641. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1642. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.OpDeprecation.explanation"));
  1643. CHK_(ptr);
  1644. } else
  1645. goto handle_unusual;
  1646. continue;
  1647. default:
  1648. goto handle_unusual;
  1649. } // switch
  1650. handle_unusual:
  1651. if ((tag == 0) || ((tag & 7) == 4)) {
  1652. CHK_(ptr);
  1653. ctx->SetLastTag(tag);
  1654. goto message_done;
  1655. }
  1656. ptr = UnknownFieldParse(
  1657. tag,
  1658. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1659. ptr, ctx);
  1660. CHK_(ptr != nullptr);
  1661. } // while
  1662. message_done:
  1663. return ptr;
  1664. failure:
  1665. ptr = nullptr;
  1666. goto message_done;
  1667. #undef CHK_
  1668. }
  1669. uint8_t* OpDeprecation::_InternalSerialize(
  1670. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1671. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpDeprecation)
  1672. uint32_t cached_has_bits = 0;
  1673. (void) cached_has_bits;
  1674. // int32 version = 1;
  1675. if (this->_internal_version() != 0) {
  1676. target = stream->EnsureSpace(target);
  1677. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_version(), target);
  1678. }
  1679. // string explanation = 2;
  1680. if (!this->_internal_explanation().empty()) {
  1681. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1682. this->_internal_explanation().data(), static_cast<int>(this->_internal_explanation().length()),
  1683. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1684. "opencv_tensorflow.OpDeprecation.explanation");
  1685. target = stream->WriteStringMaybeAliased(
  1686. 2, this->_internal_explanation(), target);
  1687. }
  1688. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1689. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1690. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1691. }
  1692. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpDeprecation)
  1693. return target;
  1694. }
  1695. size_t OpDeprecation::ByteSizeLong() const {
  1696. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpDeprecation)
  1697. size_t total_size = 0;
  1698. uint32_t cached_has_bits = 0;
  1699. // Prevent compiler warnings about cached_has_bits being unused
  1700. (void) cached_has_bits;
  1701. // string explanation = 2;
  1702. if (!this->_internal_explanation().empty()) {
  1703. total_size += 1 +
  1704. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1705. this->_internal_explanation());
  1706. }
  1707. // int32 version = 1;
  1708. if (this->_internal_version() != 0) {
  1709. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_version());
  1710. }
  1711. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1712. }
  1713. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpDeprecation::_class_data_ = {
  1714. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1715. OpDeprecation::MergeImpl
  1716. };
  1717. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpDeprecation::GetClassData() const { return &_class_data_; }
  1718. void OpDeprecation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1719. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1720. static_cast<OpDeprecation *>(to)->MergeFrom(
  1721. static_cast<const OpDeprecation &>(from));
  1722. }
  1723. void OpDeprecation::MergeFrom(const OpDeprecation& from) {
  1724. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpDeprecation)
  1725. GOOGLE_DCHECK_NE(&from, this);
  1726. uint32_t cached_has_bits = 0;
  1727. (void) cached_has_bits;
  1728. if (!from._internal_explanation().empty()) {
  1729. _internal_set_explanation(from._internal_explanation());
  1730. }
  1731. if (from._internal_version() != 0) {
  1732. _internal_set_version(from._internal_version());
  1733. }
  1734. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1735. }
  1736. void OpDeprecation::CopyFrom(const OpDeprecation& from) {
  1737. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpDeprecation)
  1738. if (&from == this) return;
  1739. Clear();
  1740. MergeFrom(from);
  1741. }
  1742. bool OpDeprecation::IsInitialized() const {
  1743. return true;
  1744. }
  1745. void OpDeprecation::InternalSwap(OpDeprecation* other) {
  1746. using std::swap;
  1747. auto* lhs_arena = GetArenaForAllocation();
  1748. auto* rhs_arena = other->GetArenaForAllocation();
  1749. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1750. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1751. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1752. &explanation_, lhs_arena,
  1753. &other->explanation_, rhs_arena
  1754. );
  1755. swap(version_, other->version_);
  1756. }
  1757. ::PROTOBUF_NAMESPACE_ID::Metadata OpDeprecation::GetMetadata() const {
  1758. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1759. &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
  1760. file_level_metadata_op_5fdef_2eproto[3]);
  1761. }
  1762. // ===================================================================
  1763. class OpList::_Internal {
  1764. public:
  1765. };
  1766. OpList::OpList(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1767. bool is_message_owned)
  1768. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  1769. op_(arena) {
  1770. SharedCtor();
  1771. if (!is_message_owned) {
  1772. RegisterArenaDtor(arena);
  1773. }
  1774. // @@protoc_insertion_point(arena_constructor:opencv_tensorflow.OpList)
  1775. }
  1776. OpList::OpList(const OpList& from)
  1777. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1778. op_(from.op_) {
  1779. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1780. // @@protoc_insertion_point(copy_constructor:opencv_tensorflow.OpList)
  1781. }
  1782. inline void OpList::SharedCtor() {
  1783. }
  1784. OpList::~OpList() {
  1785. // @@protoc_insertion_point(destructor:opencv_tensorflow.OpList)
  1786. if (GetArenaForAllocation() != nullptr) return;
  1787. SharedDtor();
  1788. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1789. }
  1790. inline void OpList::SharedDtor() {
  1791. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1792. }
  1793. void OpList::ArenaDtor(void* object) {
  1794. OpList* _this = reinterpret_cast< OpList* >(object);
  1795. (void)_this;
  1796. }
  1797. void OpList::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1798. }
  1799. void OpList::SetCachedSize(int size) const {
  1800. _cached_size_.Set(size);
  1801. }
  1802. void OpList::Clear() {
  1803. // @@protoc_insertion_point(message_clear_start:opencv_tensorflow.OpList)
  1804. uint32_t cached_has_bits = 0;
  1805. // Prevent compiler warnings about cached_has_bits being unused
  1806. (void) cached_has_bits;
  1807. op_.Clear();
  1808. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1809. }
  1810. const char* OpList::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1811. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1812. while (!ctx->Done(&ptr)) {
  1813. uint32_t tag;
  1814. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1815. switch (tag >> 3) {
  1816. // repeated .opencv_tensorflow.OpDef op = 1;
  1817. case 1:
  1818. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  1819. ptr -= 1;
  1820. do {
  1821. ptr += 1;
  1822. ptr = ctx->ParseMessage(_internal_add_op(), ptr);
  1823. CHK_(ptr);
  1824. if (!ctx->DataAvailable(ptr)) break;
  1825. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  1826. } else
  1827. goto handle_unusual;
  1828. continue;
  1829. default:
  1830. goto handle_unusual;
  1831. } // switch
  1832. handle_unusual:
  1833. if ((tag == 0) || ((tag & 7) == 4)) {
  1834. CHK_(ptr);
  1835. ctx->SetLastTag(tag);
  1836. goto message_done;
  1837. }
  1838. ptr = UnknownFieldParse(
  1839. tag,
  1840. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1841. ptr, ctx);
  1842. CHK_(ptr != nullptr);
  1843. } // while
  1844. message_done:
  1845. return ptr;
  1846. failure:
  1847. ptr = nullptr;
  1848. goto message_done;
  1849. #undef CHK_
  1850. }
  1851. uint8_t* OpList::_InternalSerialize(
  1852. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1853. // @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.OpList)
  1854. uint32_t cached_has_bits = 0;
  1855. (void) cached_has_bits;
  1856. // repeated .opencv_tensorflow.OpDef op = 1;
  1857. for (unsigned int i = 0,
  1858. n = static_cast<unsigned int>(this->_internal_op_size()); i < n; i++) {
  1859. target = stream->EnsureSpace(target);
  1860. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1861. InternalWriteMessage(1, this->_internal_op(i), target, stream);
  1862. }
  1863. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1864. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1865. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1866. }
  1867. // @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.OpList)
  1868. return target;
  1869. }
  1870. size_t OpList::ByteSizeLong() const {
  1871. // @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.OpList)
  1872. size_t total_size = 0;
  1873. uint32_t cached_has_bits = 0;
  1874. // Prevent compiler warnings about cached_has_bits being unused
  1875. (void) cached_has_bits;
  1876. // repeated .opencv_tensorflow.OpDef op = 1;
  1877. total_size += 1UL * this->_internal_op_size();
  1878. for (const auto& msg : this->op_) {
  1879. total_size +=
  1880. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1881. }
  1882. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1883. }
  1884. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OpList::_class_data_ = {
  1885. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1886. OpList::MergeImpl
  1887. };
  1888. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OpList::GetClassData() const { return &_class_data_; }
  1889. void OpList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1890. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1891. static_cast<OpList *>(to)->MergeFrom(
  1892. static_cast<const OpList &>(from));
  1893. }
  1894. void OpList::MergeFrom(const OpList& from) {
  1895. // @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.OpList)
  1896. GOOGLE_DCHECK_NE(&from, this);
  1897. uint32_t cached_has_bits = 0;
  1898. (void) cached_has_bits;
  1899. op_.MergeFrom(from.op_);
  1900. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1901. }
  1902. void OpList::CopyFrom(const OpList& from) {
  1903. // @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.OpList)
  1904. if (&from == this) return;
  1905. Clear();
  1906. MergeFrom(from);
  1907. }
  1908. bool OpList::IsInitialized() const {
  1909. return true;
  1910. }
  1911. void OpList::InternalSwap(OpList* other) {
  1912. using std::swap;
  1913. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1914. op_.InternalSwap(&other->op_);
  1915. }
  1916. ::PROTOBUF_NAMESPACE_ID::Metadata OpList::GetMetadata() const {
  1917. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1918. &descriptor_table_op_5fdef_2eproto_getter, &descriptor_table_op_5fdef_2eproto_once,
  1919. file_level_metadata_op_5fdef_2eproto[4]);
  1920. }
  1921. // @@protoc_insertion_point(namespace_scope)
  1922. } // namespace opencv_tensorflow
  1923. PROTOBUF_NAMESPACE_OPEN
  1924. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpDef_ArgDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpDef_ArgDef >(Arena* arena) {
  1925. return Arena::CreateMessageInternal< ::opencv_tensorflow::OpDef_ArgDef >(arena);
  1926. }
  1927. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpDef_AttrDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpDef_AttrDef >(Arena* arena) {
  1928. return Arena::CreateMessageInternal< ::opencv_tensorflow::OpDef_AttrDef >(arena);
  1929. }
  1930. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpDef >(Arena* arena) {
  1931. return Arena::CreateMessageInternal< ::opencv_tensorflow::OpDef >(arena);
  1932. }
  1933. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpDeprecation* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpDeprecation >(Arena* arena) {
  1934. return Arena::CreateMessageInternal< ::opencv_tensorflow::OpDeprecation >(arena);
  1935. }
  1936. template<> PROTOBUF_NOINLINE ::opencv_tensorflow::OpList* Arena::CreateMaybeMessage< ::opencv_tensorflow::OpList >(Arena* arena) {
  1937. return Arena::CreateMessageInternal< ::opencv_tensorflow::OpList >(arena);
  1938. }
  1939. PROTOBUF_NAMESPACE_CLOSE
  1940. // @@protoc_insertion_point(global_scope)
  1941. #include <google/protobuf/port_undef.inc>