ImageService.pb.cc 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // NO CHECKED-IN PROTOBUF GENCODE
  3. // source: ImageService.proto
  4. // Protobuf C++ Version: 5.29.0
  5. #include "ImageService.pb.h"
  6. #include <algorithm>
  7. #include <type_traits>
  8. #include "google/protobuf/io/coded_stream.h"
  9. #include "google/protobuf/generated_message_tctable_impl.h"
  10. #include "google/protobuf/extension_set.h"
  11. #include "google/protobuf/generated_message_util.h"
  12. #include "google/protobuf/wire_format_lite.h"
  13. #include "google/protobuf/descriptor.h"
  14. #include "google/protobuf/generated_message_reflection.h"
  15. #include "google/protobuf/reflection_ops.h"
  16. #include "google/protobuf/wire_format.h"
  17. // @@protoc_insertion_point(includes)
  18. // Must be included last.
  19. #include "google/protobuf/port_def.inc"
  20. PROTOBUF_PRAGMA_INIT_SEG
  21. namespace _pb = ::google::protobuf;
  22. namespace _pbi = ::google::protobuf::internal;
  23. namespace _fl = ::google::protobuf::internal::field_layout;
  24. namespace R360 {
  25. template <typename>
  26. PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized)
  27. #if defined(PROTOBUF_CUSTOM_VTABLE)
  28. : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){}
  29. #else // PROTOBUF_CUSTOM_VTABLE
  30. : ::google::protobuf::internal::ZeroFieldsBase() {
  31. }
  32. #endif // PROTOBUF_CUSTOM_VTABLE
  33. struct EmptyDefaultTypeInternal {
  34. PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  35. ~EmptyDefaultTypeInternal() {}
  36. union {
  37. Empty _instance;
  38. };
  39. };
  40. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  41. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_;
  42. inline constexpr Alarm::Impl_::Impl_(
  43. ::_pbi::ConstantInitialized) noexcept
  44. : x_{0u},
  45. y_{0u},
  46. w_{0u},
  47. h_{0u},
  48. score_{0},
  49. type_{static_cast< ::R360::AlarmType >(0)},
  50. _cached_size_{0} {}
  51. template <typename>
  52. PROTOBUF_CONSTEXPR Alarm::Alarm(::_pbi::ConstantInitialized)
  53. #if defined(PROTOBUF_CUSTOM_VTABLE)
  54. : ::google::protobuf::Message(_class_data_.base()),
  55. #else // PROTOBUF_CUSTOM_VTABLE
  56. : ::google::protobuf::Message(),
  57. #endif // PROTOBUF_CUSTOM_VTABLE
  58. _impl_(::_pbi::ConstantInitialized()) {
  59. }
  60. struct AlarmDefaultTypeInternal {
  61. PROTOBUF_CONSTEXPR AlarmDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  62. ~AlarmDefaultTypeInternal() {}
  63. union {
  64. Alarm _instance;
  65. };
  66. };
  67. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  68. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlarmDefaultTypeInternal _Alarm_default_instance_;
  69. inline constexpr EmbeddedData::Impl_::Impl_(
  70. ::_pbi::ConstantInitialized) noexcept
  71. : alarm_{},
  72. image_(
  73. &::google::protobuf::internal::fixed_address_empty_string,
  74. ::_pbi::ConstantInitialized()),
  75. degree_{::uint64_t{0u}},
  76. usb_camera_index_{0u},
  77. _cached_size_{0} {}
  78. template <typename>
  79. PROTOBUF_CONSTEXPR EmbeddedData::EmbeddedData(::_pbi::ConstantInitialized)
  80. #if defined(PROTOBUF_CUSTOM_VTABLE)
  81. : ::google::protobuf::Message(_class_data_.base()),
  82. #else // PROTOBUF_CUSTOM_VTABLE
  83. : ::google::protobuf::Message(),
  84. #endif // PROTOBUF_CUSTOM_VTABLE
  85. _impl_(::_pbi::ConstantInitialized()) {
  86. }
  87. struct EmbeddedDataDefaultTypeInternal {
  88. PROTOBUF_CONSTEXPR EmbeddedDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  89. ~EmbeddedDataDefaultTypeInternal() {}
  90. union {
  91. EmbeddedData _instance;
  92. };
  93. };
  94. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  95. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmbeddedDataDefaultTypeInternal _EmbeddedData_default_instance_;
  96. inline constexpr DataList::Impl_::Impl_(
  97. ::_pbi::ConstantInitialized) noexcept
  98. : data_{},
  99. _cached_size_{0} {}
  100. template <typename>
  101. PROTOBUF_CONSTEXPR DataList::DataList(::_pbi::ConstantInitialized)
  102. #if defined(PROTOBUF_CUSTOM_VTABLE)
  103. : ::google::protobuf::Message(_class_data_.base()),
  104. #else // PROTOBUF_CUSTOM_VTABLE
  105. : ::google::protobuf::Message(),
  106. #endif // PROTOBUF_CUSTOM_VTABLE
  107. _impl_(::_pbi::ConstantInitialized()) {
  108. }
  109. struct DataListDefaultTypeInternal {
  110. PROTOBUF_CONSTEXPR DataListDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  111. ~DataListDefaultTypeInternal() {}
  112. union {
  113. DataList _instance;
  114. };
  115. };
  116. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  117. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataListDefaultTypeInternal _DataList_default_instance_;
  118. } // namespace R360
  119. static const ::_pb::EnumDescriptor* file_level_enum_descriptors_ImageService_2eproto[1];
  120. static constexpr const ::_pb::ServiceDescriptor**
  121. file_level_service_descriptors_ImageService_2eproto = nullptr;
  122. const ::uint32_t
  123. TableStruct_ImageService_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
  124. protodesc_cold) = {
  125. ~0u, // no _has_bits_
  126. PROTOBUF_FIELD_OFFSET(::R360::Empty, _internal_metadata_),
  127. ~0u, // no _extensions_
  128. ~0u, // no _oneof_case_
  129. ~0u, // no _weak_field_map_
  130. ~0u, // no _inlined_string_donated_
  131. ~0u, // no _split_
  132. ~0u, // no sizeof(Split)
  133. ~0u, // no _has_bits_
  134. PROTOBUF_FIELD_OFFSET(::R360::DataList, _internal_metadata_),
  135. ~0u, // no _extensions_
  136. ~0u, // no _oneof_case_
  137. ~0u, // no _weak_field_map_
  138. ~0u, // no _inlined_string_donated_
  139. ~0u, // no _split_
  140. ~0u, // no sizeof(Split)
  141. PROTOBUF_FIELD_OFFSET(::R360::DataList, _impl_.data_),
  142. ~0u, // no _has_bits_
  143. PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _internal_metadata_),
  144. ~0u, // no _extensions_
  145. ~0u, // no _oneof_case_
  146. ~0u, // no _weak_field_map_
  147. ~0u, // no _inlined_string_donated_
  148. ~0u, // no _split_
  149. ~0u, // no sizeof(Split)
  150. PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _impl_.usb_camera_index_),
  151. PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _impl_.image_),
  152. PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _impl_.degree_),
  153. PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _impl_.alarm_),
  154. ~0u, // no _has_bits_
  155. PROTOBUF_FIELD_OFFSET(::R360::Alarm, _internal_metadata_),
  156. ~0u, // no _extensions_
  157. ~0u, // no _oneof_case_
  158. ~0u, // no _weak_field_map_
  159. ~0u, // no _inlined_string_donated_
  160. ~0u, // no _split_
  161. ~0u, // no sizeof(Split)
  162. PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.x_),
  163. PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.y_),
  164. PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.w_),
  165. PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.h_),
  166. PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.score_),
  167. PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.type_),
  168. };
  169. static const ::_pbi::MigrationSchema
  170. schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  171. {0, -1, -1, sizeof(::R360::Empty)},
  172. {8, -1, -1, sizeof(::R360::DataList)},
  173. {17, -1, -1, sizeof(::R360::EmbeddedData)},
  174. {29, -1, -1, sizeof(::R360::Alarm)},
  175. };
  176. static const ::_pb::Message* const file_default_instances[] = {
  177. &::R360::_Empty_default_instance_._instance,
  178. &::R360::_DataList_default_instance_._instance,
  179. &::R360::_EmbeddedData_default_instance_._instance,
  180. &::R360::_Alarm_default_instance_._instance,
  181. };
  182. const char descriptor_table_protodef_ImageService_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
  183. protodesc_cold) = {
  184. "\n\022ImageService.proto\022\004R360\"\007\n\005Empty\",\n\010D"
  185. "ataList\022 \n\004data\030\001 \003(\0132\022.R360.EmbeddedDat"
  186. "a\"c\n\014EmbeddedData\022\030\n\020usb_camera_index\030\001 "
  187. "\001(\r\022\r\n\005image\030\002 \001(\014\022\016\n\006degree\030\003 \001(\004\022\032\n\005al"
  188. "arm\030\004 \003(\0132\013.R360.Alarm\"a\n\005Alarm\022\t\n\001x\030\001 \001"
  189. "(\r\022\t\n\001y\030\002 \001(\r\022\t\n\001w\030\003 \001(\r\022\t\n\001h\030\004 \001(\r\022\r\n\005s"
  190. "core\030\005 \001(\002\022\035\n\004type\030\006 \001(\0162\017.R360.AlarmTyp"
  191. "e*\024\n\tAlarmType\022\007\n\003UAV\020\0002s\n\016MessageServic"
  192. "e\0220\n\017R360SendMessage\022\016.R360.DataList\032\013.R"
  193. "360.Empty(\001\022/\n\016R360GetMessage\022\013.R360.Emp"
  194. "ty\032\016.R360.DataList0\001b\006proto3"
  195. };
  196. static ::absl::once_flag descriptor_table_ImageService_2eproto_once;
  197. PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ImageService_2eproto = {
  198. false,
  199. false,
  200. 428,
  201. descriptor_table_protodef_ImageService_2eproto,
  202. "ImageService.proto",
  203. &descriptor_table_ImageService_2eproto_once,
  204. nullptr,
  205. 0,
  206. 4,
  207. schemas,
  208. file_default_instances,
  209. TableStruct_ImageService_2eproto::offsets,
  210. file_level_enum_descriptors_ImageService_2eproto,
  211. file_level_service_descriptors_ImageService_2eproto,
  212. };
  213. namespace R360 {
  214. const ::google::protobuf::EnumDescriptor* AlarmType_descriptor() {
  215. ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ImageService_2eproto);
  216. return file_level_enum_descriptors_ImageService_2eproto[0];
  217. }
  218. PROTOBUF_CONSTINIT const uint32_t AlarmType_internal_data_[] = {
  219. 65536u, 0u, };
  220. bool AlarmType_IsValid(int value) {
  221. return 0 <= value && value <= 0;
  222. }
  223. // ===================================================================
  224. class Empty::_Internal {
  225. public:
  226. };
  227. Empty::Empty(::google::protobuf::Arena* arena)
  228. #if defined(PROTOBUF_CUSTOM_VTABLE)
  229. : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) {
  230. #else // PROTOBUF_CUSTOM_VTABLE
  231. : ::google::protobuf::internal::ZeroFieldsBase(arena) {
  232. #endif // PROTOBUF_CUSTOM_VTABLE
  233. // @@protoc_insertion_point(arena_constructor:R360.Empty)
  234. }
  235. Empty::Empty(
  236. ::google::protobuf::Arena* arena,
  237. const Empty& from)
  238. #if defined(PROTOBUF_CUSTOM_VTABLE)
  239. : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) {
  240. #else // PROTOBUF_CUSTOM_VTABLE
  241. : ::google::protobuf::internal::ZeroFieldsBase(arena) {
  242. #endif // PROTOBUF_CUSTOM_VTABLE
  243. Empty* const _this = this;
  244. (void)_this;
  245. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  246. from._internal_metadata_);
  247. // @@protoc_insertion_point(copy_constructor:R360.Empty)
  248. }
  249. inline void* Empty::PlacementNew_(const void*, void* mem,
  250. ::google::protobuf::Arena* arena) {
  251. return ::new (mem) Empty(arena);
  252. }
  253. constexpr auto Empty::InternalNewImpl_() {
  254. return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty),
  255. alignof(Empty));
  256. }
  257. PROTOBUF_CONSTINIT
  258. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  259. const ::google::protobuf::internal::ClassDataFull Empty::_class_data_ = {
  260. ::google::protobuf::internal::ClassData{
  261. &_Empty_default_instance_._instance,
  262. &_table_.header,
  263. nullptr, // OnDemandRegisterArenaDtor
  264. nullptr, // IsInitialized
  265. &Empty::MergeImpl,
  266. ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl<Empty>(),
  267. #if defined(PROTOBUF_CUSTOM_VTABLE)
  268. &Empty::SharedDtor,
  269. ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl<Empty>(), &Empty::ByteSizeLong,
  270. &Empty::_InternalSerialize,
  271. #endif // PROTOBUF_CUSTOM_VTABLE
  272. PROTOBUF_FIELD_OFFSET(Empty, _impl_._cached_size_),
  273. false,
  274. },
  275. &Empty::kDescriptorMethods,
  276. &descriptor_table_ImageService_2eproto,
  277. nullptr, // tracker
  278. };
  279. const ::google::protobuf::internal::ClassData* Empty::GetClassData() const {
  280. ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  281. ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  282. return _class_data_.base();
  283. }
  284. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  285. const ::_pbi::TcParseTable<0, 0, 0, 0, 2> Empty::_table_ = {
  286. {
  287. 0, // no _has_bits_
  288. 0, // no _extensions_
  289. 0, 0, // max_field_number, fast_idx_mask
  290. offsetof(decltype(_table_), field_lookup_table),
  291. 4294967295, // skipmap
  292. offsetof(decltype(_table_), field_names), // no field_entries
  293. 0, // num_field_entries
  294. 0, // num_aux_entries
  295. offsetof(decltype(_table_), field_names), // no aux_entries
  296. _class_data_.base(),
  297. nullptr, // post_loop_handler
  298. ::_pbi::TcParser::GenericFallback, // fallback
  299. #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
  300. ::_pbi::TcParser::GetTable<::R360::Empty>(), // to_prefetch
  301. #endif // PROTOBUF_PREFETCH_PARSE_TABLE
  302. }, {{
  303. {::_pbi::TcParser::MiniParse, {}},
  304. }}, {{
  305. 65535, 65535
  306. }},
  307. // no field_entries, or aux_entries
  308. {{
  309. }},
  310. };
  311. ::google::protobuf::Metadata Empty::GetMetadata() const {
  312. return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full());
  313. }
  314. // ===================================================================
  315. class DataList::_Internal {
  316. public:
  317. };
  318. DataList::DataList(::google::protobuf::Arena* arena)
  319. #if defined(PROTOBUF_CUSTOM_VTABLE)
  320. : ::google::protobuf::Message(arena, _class_data_.base()) {
  321. #else // PROTOBUF_CUSTOM_VTABLE
  322. : ::google::protobuf::Message(arena) {
  323. #endif // PROTOBUF_CUSTOM_VTABLE
  324. SharedCtor(arena);
  325. // @@protoc_insertion_point(arena_constructor:R360.DataList)
  326. }
  327. inline PROTOBUF_NDEBUG_INLINE DataList::Impl_::Impl_(
  328. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  329. const Impl_& from, const ::R360::DataList& from_msg)
  330. : data_{visibility, arena, from.data_},
  331. _cached_size_{0} {}
  332. DataList::DataList(
  333. ::google::protobuf::Arena* arena,
  334. const DataList& from)
  335. #if defined(PROTOBUF_CUSTOM_VTABLE)
  336. : ::google::protobuf::Message(arena, _class_data_.base()) {
  337. #else // PROTOBUF_CUSTOM_VTABLE
  338. : ::google::protobuf::Message(arena) {
  339. #endif // PROTOBUF_CUSTOM_VTABLE
  340. DataList* const _this = this;
  341. (void)_this;
  342. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  343. from._internal_metadata_);
  344. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  345. // @@protoc_insertion_point(copy_constructor:R360.DataList)
  346. }
  347. inline PROTOBUF_NDEBUG_INLINE DataList::Impl_::Impl_(
  348. ::google::protobuf::internal::InternalVisibility visibility,
  349. ::google::protobuf::Arena* arena)
  350. : data_{visibility, arena},
  351. _cached_size_{0} {}
  352. inline void DataList::SharedCtor(::_pb::Arena* arena) {
  353. new (&_impl_) Impl_(internal_visibility(), arena);
  354. }
  355. DataList::~DataList() {
  356. // @@protoc_insertion_point(destructor:R360.DataList)
  357. SharedDtor(*this);
  358. }
  359. inline void DataList::SharedDtor(MessageLite& self) {
  360. DataList& this_ = static_cast<DataList&>(self);
  361. this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  362. ABSL_DCHECK(this_.GetArena() == nullptr);
  363. this_._impl_.~Impl_();
  364. }
  365. inline void* DataList::PlacementNew_(const void*, void* mem,
  366. ::google::protobuf::Arena* arena) {
  367. return ::new (mem) DataList(arena);
  368. }
  369. constexpr auto DataList::InternalNewImpl_() {
  370. constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
  371. PROTOBUF_FIELD_OFFSET(DataList, _impl_.data_) +
  372. decltype(DataList::_impl_.data_)::
  373. InternalGetArenaOffset(
  374. ::google::protobuf::Message::internal_visibility()),
  375. });
  376. if (arena_bits.has_value()) {
  377. return ::google::protobuf::internal::MessageCreator::ZeroInit(
  378. sizeof(DataList), alignof(DataList), *arena_bits);
  379. } else {
  380. return ::google::protobuf::internal::MessageCreator(&DataList::PlacementNew_,
  381. sizeof(DataList),
  382. alignof(DataList));
  383. }
  384. }
  385. PROTOBUF_CONSTINIT
  386. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  387. const ::google::protobuf::internal::ClassDataFull DataList::_class_data_ = {
  388. ::google::protobuf::internal::ClassData{
  389. &_DataList_default_instance_._instance,
  390. &_table_.header,
  391. nullptr, // OnDemandRegisterArenaDtor
  392. nullptr, // IsInitialized
  393. &DataList::MergeImpl,
  394. ::google::protobuf::Message::GetNewImpl<DataList>(),
  395. #if defined(PROTOBUF_CUSTOM_VTABLE)
  396. &DataList::SharedDtor,
  397. ::google::protobuf::Message::GetClearImpl<DataList>(), &DataList::ByteSizeLong,
  398. &DataList::_InternalSerialize,
  399. #endif // PROTOBUF_CUSTOM_VTABLE
  400. PROTOBUF_FIELD_OFFSET(DataList, _impl_._cached_size_),
  401. false,
  402. },
  403. &DataList::kDescriptorMethods,
  404. &descriptor_table_ImageService_2eproto,
  405. nullptr, // tracker
  406. };
  407. const ::google::protobuf::internal::ClassData* DataList::GetClassData() const {
  408. ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  409. ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  410. return _class_data_.base();
  411. }
  412. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  413. const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DataList::_table_ = {
  414. {
  415. 0, // no _has_bits_
  416. 0, // no _extensions_
  417. 1, 0, // max_field_number, fast_idx_mask
  418. offsetof(decltype(_table_), field_lookup_table),
  419. 4294967294, // skipmap
  420. offsetof(decltype(_table_), field_entries),
  421. 1, // num_field_entries
  422. 1, // num_aux_entries
  423. offsetof(decltype(_table_), aux_entries),
  424. _class_data_.base(),
  425. nullptr, // post_loop_handler
  426. ::_pbi::TcParser::GenericFallback, // fallback
  427. #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
  428. ::_pbi::TcParser::GetTable<::R360::DataList>(), // to_prefetch
  429. #endif // PROTOBUF_PREFETCH_PARSE_TABLE
  430. }, {{
  431. // repeated .R360.EmbeddedData data = 1;
  432. {::_pbi::TcParser::FastMtR1,
  433. {10, 63, 0, PROTOBUF_FIELD_OFFSET(DataList, _impl_.data_)}},
  434. }}, {{
  435. 65535, 65535
  436. }}, {{
  437. // repeated .R360.EmbeddedData data = 1;
  438. {PROTOBUF_FIELD_OFFSET(DataList, _impl_.data_), 0, 0,
  439. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  440. }}, {{
  441. {::_pbi::TcParser::GetTable<::R360::EmbeddedData>()},
  442. }}, {{
  443. }},
  444. };
  445. PROTOBUF_NOINLINE void DataList::Clear() {
  446. // @@protoc_insertion_point(message_clear_start:R360.DataList)
  447. ::google::protobuf::internal::TSanWrite(&_impl_);
  448. ::uint32_t cached_has_bits = 0;
  449. // Prevent compiler warnings about cached_has_bits being unused
  450. (void) cached_has_bits;
  451. _impl_.data_.Clear();
  452. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  453. }
  454. #if defined(PROTOBUF_CUSTOM_VTABLE)
  455. ::uint8_t* DataList::_InternalSerialize(
  456. const MessageLite& base, ::uint8_t* target,
  457. ::google::protobuf::io::EpsCopyOutputStream* stream) {
  458. const DataList& this_ = static_cast<const DataList&>(base);
  459. #else // PROTOBUF_CUSTOM_VTABLE
  460. ::uint8_t* DataList::_InternalSerialize(
  461. ::uint8_t* target,
  462. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  463. const DataList& this_ = *this;
  464. #endif // PROTOBUF_CUSTOM_VTABLE
  465. // @@protoc_insertion_point(serialize_to_array_start:R360.DataList)
  466. ::uint32_t cached_has_bits = 0;
  467. (void)cached_has_bits;
  468. // repeated .R360.EmbeddedData data = 1;
  469. for (unsigned i = 0, n = static_cast<unsigned>(
  470. this_._internal_data_size());
  471. i < n; i++) {
  472. const auto& repfield = this_._internal_data().Get(i);
  473. target =
  474. ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  475. 1, repfield, repfield.GetCachedSize(),
  476. target, stream);
  477. }
  478. if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  479. target =
  480. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  481. this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  482. }
  483. // @@protoc_insertion_point(serialize_to_array_end:R360.DataList)
  484. return target;
  485. }
  486. #if defined(PROTOBUF_CUSTOM_VTABLE)
  487. ::size_t DataList::ByteSizeLong(const MessageLite& base) {
  488. const DataList& this_ = static_cast<const DataList&>(base);
  489. #else // PROTOBUF_CUSTOM_VTABLE
  490. ::size_t DataList::ByteSizeLong() const {
  491. const DataList& this_ = *this;
  492. #endif // PROTOBUF_CUSTOM_VTABLE
  493. // @@protoc_insertion_point(message_byte_size_start:R360.DataList)
  494. ::size_t total_size = 0;
  495. ::uint32_t cached_has_bits = 0;
  496. // Prevent compiler warnings about cached_has_bits being unused
  497. (void)cached_has_bits;
  498. ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  499. {
  500. // repeated .R360.EmbeddedData data = 1;
  501. {
  502. total_size += 1UL * this_._internal_data_size();
  503. for (const auto& msg : this_._internal_data()) {
  504. total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  505. }
  506. }
  507. }
  508. return this_.MaybeComputeUnknownFieldsSize(total_size,
  509. &this_._impl_._cached_size_);
  510. }
  511. void DataList::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
  512. auto* const _this = static_cast<DataList*>(&to_msg);
  513. auto& from = static_cast<const DataList&>(from_msg);
  514. // @@protoc_insertion_point(class_specific_merge_from_start:R360.DataList)
  515. ABSL_DCHECK_NE(&from, _this);
  516. ::uint32_t cached_has_bits = 0;
  517. (void) cached_has_bits;
  518. _this->_internal_mutable_data()->MergeFrom(
  519. from._internal_data());
  520. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  521. }
  522. void DataList::CopyFrom(const DataList& from) {
  523. // @@protoc_insertion_point(class_specific_copy_from_start:R360.DataList)
  524. if (&from == this) return;
  525. Clear();
  526. MergeFrom(from);
  527. }
  528. void DataList::InternalSwap(DataList* PROTOBUF_RESTRICT other) {
  529. using std::swap;
  530. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  531. _impl_.data_.InternalSwap(&other->_impl_.data_);
  532. }
  533. ::google::protobuf::Metadata DataList::GetMetadata() const {
  534. return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
  535. }
  536. // ===================================================================
  537. class EmbeddedData::_Internal {
  538. public:
  539. };
  540. EmbeddedData::EmbeddedData(::google::protobuf::Arena* arena)
  541. #if defined(PROTOBUF_CUSTOM_VTABLE)
  542. : ::google::protobuf::Message(arena, _class_data_.base()) {
  543. #else // PROTOBUF_CUSTOM_VTABLE
  544. : ::google::protobuf::Message(arena) {
  545. #endif // PROTOBUF_CUSTOM_VTABLE
  546. SharedCtor(arena);
  547. // @@protoc_insertion_point(arena_constructor:R360.EmbeddedData)
  548. }
  549. inline PROTOBUF_NDEBUG_INLINE EmbeddedData::Impl_::Impl_(
  550. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  551. const Impl_& from, const ::R360::EmbeddedData& from_msg)
  552. : alarm_{visibility, arena, from.alarm_},
  553. image_(arena, from.image_),
  554. _cached_size_{0} {}
  555. EmbeddedData::EmbeddedData(
  556. ::google::protobuf::Arena* arena,
  557. const EmbeddedData& from)
  558. #if defined(PROTOBUF_CUSTOM_VTABLE)
  559. : ::google::protobuf::Message(arena, _class_data_.base()) {
  560. #else // PROTOBUF_CUSTOM_VTABLE
  561. : ::google::protobuf::Message(arena) {
  562. #endif // PROTOBUF_CUSTOM_VTABLE
  563. EmbeddedData* const _this = this;
  564. (void)_this;
  565. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  566. from._internal_metadata_);
  567. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  568. ::memcpy(reinterpret_cast<char *>(&_impl_) +
  569. offsetof(Impl_, degree_),
  570. reinterpret_cast<const char *>(&from._impl_) +
  571. offsetof(Impl_, degree_),
  572. offsetof(Impl_, usb_camera_index_) -
  573. offsetof(Impl_, degree_) +
  574. sizeof(Impl_::usb_camera_index_));
  575. // @@protoc_insertion_point(copy_constructor:R360.EmbeddedData)
  576. }
  577. inline PROTOBUF_NDEBUG_INLINE EmbeddedData::Impl_::Impl_(
  578. ::google::protobuf::internal::InternalVisibility visibility,
  579. ::google::protobuf::Arena* arena)
  580. : alarm_{visibility, arena},
  581. image_(arena),
  582. _cached_size_{0} {}
  583. inline void EmbeddedData::SharedCtor(::_pb::Arena* arena) {
  584. new (&_impl_) Impl_(internal_visibility(), arena);
  585. ::memset(reinterpret_cast<char *>(&_impl_) +
  586. offsetof(Impl_, degree_),
  587. 0,
  588. offsetof(Impl_, usb_camera_index_) -
  589. offsetof(Impl_, degree_) +
  590. sizeof(Impl_::usb_camera_index_));
  591. }
  592. EmbeddedData::~EmbeddedData() {
  593. // @@protoc_insertion_point(destructor:R360.EmbeddedData)
  594. SharedDtor(*this);
  595. }
  596. inline void EmbeddedData::SharedDtor(MessageLite& self) {
  597. EmbeddedData& this_ = static_cast<EmbeddedData&>(self);
  598. this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  599. ABSL_DCHECK(this_.GetArena() == nullptr);
  600. this_._impl_.image_.Destroy();
  601. this_._impl_.~Impl_();
  602. }
  603. inline void* EmbeddedData::PlacementNew_(const void*, void* mem,
  604. ::google::protobuf::Arena* arena) {
  605. return ::new (mem) EmbeddedData(arena);
  606. }
  607. constexpr auto EmbeddedData::InternalNewImpl_() {
  608. constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
  609. PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.alarm_) +
  610. decltype(EmbeddedData::_impl_.alarm_)::
  611. InternalGetArenaOffset(
  612. ::google::protobuf::Message::internal_visibility()),
  613. });
  614. if (arena_bits.has_value()) {
  615. return ::google::protobuf::internal::MessageCreator::CopyInit(
  616. sizeof(EmbeddedData), alignof(EmbeddedData), *arena_bits);
  617. } else {
  618. return ::google::protobuf::internal::MessageCreator(&EmbeddedData::PlacementNew_,
  619. sizeof(EmbeddedData),
  620. alignof(EmbeddedData));
  621. }
  622. }
  623. PROTOBUF_CONSTINIT
  624. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  625. const ::google::protobuf::internal::ClassDataFull EmbeddedData::_class_data_ = {
  626. ::google::protobuf::internal::ClassData{
  627. &_EmbeddedData_default_instance_._instance,
  628. &_table_.header,
  629. nullptr, // OnDemandRegisterArenaDtor
  630. nullptr, // IsInitialized
  631. &EmbeddedData::MergeImpl,
  632. ::google::protobuf::Message::GetNewImpl<EmbeddedData>(),
  633. #if defined(PROTOBUF_CUSTOM_VTABLE)
  634. &EmbeddedData::SharedDtor,
  635. ::google::protobuf::Message::GetClearImpl<EmbeddedData>(), &EmbeddedData::ByteSizeLong,
  636. &EmbeddedData::_InternalSerialize,
  637. #endif // PROTOBUF_CUSTOM_VTABLE
  638. PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_._cached_size_),
  639. false,
  640. },
  641. &EmbeddedData::kDescriptorMethods,
  642. &descriptor_table_ImageService_2eproto,
  643. nullptr, // tracker
  644. };
  645. const ::google::protobuf::internal::ClassData* EmbeddedData::GetClassData() const {
  646. ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  647. ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  648. return _class_data_.base();
  649. }
  650. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  651. const ::_pbi::TcParseTable<2, 4, 1, 0, 2> EmbeddedData::_table_ = {
  652. {
  653. 0, // no _has_bits_
  654. 0, // no _extensions_
  655. 4, 24, // max_field_number, fast_idx_mask
  656. offsetof(decltype(_table_), field_lookup_table),
  657. 4294967280, // skipmap
  658. offsetof(decltype(_table_), field_entries),
  659. 4, // num_field_entries
  660. 1, // num_aux_entries
  661. offsetof(decltype(_table_), aux_entries),
  662. _class_data_.base(),
  663. nullptr, // post_loop_handler
  664. ::_pbi::TcParser::GenericFallback, // fallback
  665. #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
  666. ::_pbi::TcParser::GetTable<::R360::EmbeddedData>(), // to_prefetch
  667. #endif // PROTOBUF_PREFETCH_PARSE_TABLE
  668. }, {{
  669. // repeated .R360.Alarm alarm = 4;
  670. {::_pbi::TcParser::FastMtR1,
  671. {34, 63, 0, PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.alarm_)}},
  672. // uint32 usb_camera_index = 1;
  673. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EmbeddedData, _impl_.usb_camera_index_), 63>(),
  674. {8, 63, 0, PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.usb_camera_index_)}},
  675. // bytes image = 2;
  676. {::_pbi::TcParser::FastBS1,
  677. {18, 63, 0, PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.image_)}},
  678. // uint64 degree = 3;
  679. {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(EmbeddedData, _impl_.degree_), 63>(),
  680. {24, 63, 0, PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.degree_)}},
  681. }}, {{
  682. 65535, 65535
  683. }}, {{
  684. // uint32 usb_camera_index = 1;
  685. {PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.usb_camera_index_), 0, 0,
  686. (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
  687. // bytes image = 2;
  688. {PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.image_), 0, 0,
  689. (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
  690. // uint64 degree = 3;
  691. {PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.degree_), 0, 0,
  692. (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
  693. // repeated .R360.Alarm alarm = 4;
  694. {PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.alarm_), 0, 0,
  695. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  696. }}, {{
  697. {::_pbi::TcParser::GetTable<::R360::Alarm>()},
  698. }}, {{
  699. }},
  700. };
  701. PROTOBUF_NOINLINE void EmbeddedData::Clear() {
  702. // @@protoc_insertion_point(message_clear_start:R360.EmbeddedData)
  703. ::google::protobuf::internal::TSanWrite(&_impl_);
  704. ::uint32_t cached_has_bits = 0;
  705. // Prevent compiler warnings about cached_has_bits being unused
  706. (void) cached_has_bits;
  707. _impl_.alarm_.Clear();
  708. _impl_.image_.ClearToEmpty();
  709. ::memset(&_impl_.degree_, 0, static_cast<::size_t>(
  710. reinterpret_cast<char*>(&_impl_.usb_camera_index_) -
  711. reinterpret_cast<char*>(&_impl_.degree_)) + sizeof(_impl_.usb_camera_index_));
  712. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  713. }
  714. #if defined(PROTOBUF_CUSTOM_VTABLE)
  715. ::uint8_t* EmbeddedData::_InternalSerialize(
  716. const MessageLite& base, ::uint8_t* target,
  717. ::google::protobuf::io::EpsCopyOutputStream* stream) {
  718. const EmbeddedData& this_ = static_cast<const EmbeddedData&>(base);
  719. #else // PROTOBUF_CUSTOM_VTABLE
  720. ::uint8_t* EmbeddedData::_InternalSerialize(
  721. ::uint8_t* target,
  722. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  723. const EmbeddedData& this_ = *this;
  724. #endif // PROTOBUF_CUSTOM_VTABLE
  725. // @@protoc_insertion_point(serialize_to_array_start:R360.EmbeddedData)
  726. ::uint32_t cached_has_bits = 0;
  727. (void)cached_has_bits;
  728. // uint32 usb_camera_index = 1;
  729. if (this_._internal_usb_camera_index() != 0) {
  730. target = stream->EnsureSpace(target);
  731. target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
  732. 1, this_._internal_usb_camera_index(), target);
  733. }
  734. // bytes image = 2;
  735. if (!this_._internal_image().empty()) {
  736. const std::string& _s = this_._internal_image();
  737. target = stream->WriteBytesMaybeAliased(2, _s, target);
  738. }
  739. // uint64 degree = 3;
  740. if (this_._internal_degree() != 0) {
  741. target = stream->EnsureSpace(target);
  742. target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
  743. 3, this_._internal_degree(), target);
  744. }
  745. // repeated .R360.Alarm alarm = 4;
  746. for (unsigned i = 0, n = static_cast<unsigned>(
  747. this_._internal_alarm_size());
  748. i < n; i++) {
  749. const auto& repfield = this_._internal_alarm().Get(i);
  750. target =
  751. ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  752. 4, repfield, repfield.GetCachedSize(),
  753. target, stream);
  754. }
  755. if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  756. target =
  757. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  758. this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  759. }
  760. // @@protoc_insertion_point(serialize_to_array_end:R360.EmbeddedData)
  761. return target;
  762. }
  763. #if defined(PROTOBUF_CUSTOM_VTABLE)
  764. ::size_t EmbeddedData::ByteSizeLong(const MessageLite& base) {
  765. const EmbeddedData& this_ = static_cast<const EmbeddedData&>(base);
  766. #else // PROTOBUF_CUSTOM_VTABLE
  767. ::size_t EmbeddedData::ByteSizeLong() const {
  768. const EmbeddedData& this_ = *this;
  769. #endif // PROTOBUF_CUSTOM_VTABLE
  770. // @@protoc_insertion_point(message_byte_size_start:R360.EmbeddedData)
  771. ::size_t total_size = 0;
  772. ::uint32_t cached_has_bits = 0;
  773. // Prevent compiler warnings about cached_has_bits being unused
  774. (void)cached_has_bits;
  775. ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  776. {
  777. // repeated .R360.Alarm alarm = 4;
  778. {
  779. total_size += 1UL * this_._internal_alarm_size();
  780. for (const auto& msg : this_._internal_alarm()) {
  781. total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  782. }
  783. }
  784. }
  785. {
  786. // bytes image = 2;
  787. if (!this_._internal_image().empty()) {
  788. total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  789. this_._internal_image());
  790. }
  791. // uint64 degree = 3;
  792. if (this_._internal_degree() != 0) {
  793. total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
  794. this_._internal_degree());
  795. }
  796. // uint32 usb_camera_index = 1;
  797. if (this_._internal_usb_camera_index() != 0) {
  798. total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
  799. this_._internal_usb_camera_index());
  800. }
  801. }
  802. return this_.MaybeComputeUnknownFieldsSize(total_size,
  803. &this_._impl_._cached_size_);
  804. }
  805. void EmbeddedData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
  806. auto* const _this = static_cast<EmbeddedData*>(&to_msg);
  807. auto& from = static_cast<const EmbeddedData&>(from_msg);
  808. // @@protoc_insertion_point(class_specific_merge_from_start:R360.EmbeddedData)
  809. ABSL_DCHECK_NE(&from, _this);
  810. ::uint32_t cached_has_bits = 0;
  811. (void) cached_has_bits;
  812. _this->_internal_mutable_alarm()->MergeFrom(
  813. from._internal_alarm());
  814. if (!from._internal_image().empty()) {
  815. _this->_internal_set_image(from._internal_image());
  816. }
  817. if (from._internal_degree() != 0) {
  818. _this->_impl_.degree_ = from._impl_.degree_;
  819. }
  820. if (from._internal_usb_camera_index() != 0) {
  821. _this->_impl_.usb_camera_index_ = from._impl_.usb_camera_index_;
  822. }
  823. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  824. }
  825. void EmbeddedData::CopyFrom(const EmbeddedData& from) {
  826. // @@protoc_insertion_point(class_specific_copy_from_start:R360.EmbeddedData)
  827. if (&from == this) return;
  828. Clear();
  829. MergeFrom(from);
  830. }
  831. void EmbeddedData::InternalSwap(EmbeddedData* PROTOBUF_RESTRICT other) {
  832. using std::swap;
  833. auto* arena = GetArena();
  834. ABSL_DCHECK_EQ(arena, other->GetArena());
  835. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  836. _impl_.alarm_.InternalSwap(&other->_impl_.alarm_);
  837. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.image_, &other->_impl_.image_, arena);
  838. ::google::protobuf::internal::memswap<
  839. PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.usb_camera_index_)
  840. + sizeof(EmbeddedData::_impl_.usb_camera_index_)
  841. - PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.degree_)>(
  842. reinterpret_cast<char*>(&_impl_.degree_),
  843. reinterpret_cast<char*>(&other->_impl_.degree_));
  844. }
  845. ::google::protobuf::Metadata EmbeddedData::GetMetadata() const {
  846. return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
  847. }
  848. // ===================================================================
  849. class Alarm::_Internal {
  850. public:
  851. };
  852. Alarm::Alarm(::google::protobuf::Arena* arena)
  853. #if defined(PROTOBUF_CUSTOM_VTABLE)
  854. : ::google::protobuf::Message(arena, _class_data_.base()) {
  855. #else // PROTOBUF_CUSTOM_VTABLE
  856. : ::google::protobuf::Message(arena) {
  857. #endif // PROTOBUF_CUSTOM_VTABLE
  858. SharedCtor(arena);
  859. // @@protoc_insertion_point(arena_constructor:R360.Alarm)
  860. }
  861. Alarm::Alarm(
  862. ::google::protobuf::Arena* arena, const Alarm& from)
  863. : Alarm(arena) {
  864. MergeFrom(from);
  865. }
  866. inline PROTOBUF_NDEBUG_INLINE Alarm::Impl_::Impl_(
  867. ::google::protobuf::internal::InternalVisibility visibility,
  868. ::google::protobuf::Arena* arena)
  869. : _cached_size_{0} {}
  870. inline void Alarm::SharedCtor(::_pb::Arena* arena) {
  871. new (&_impl_) Impl_(internal_visibility(), arena);
  872. ::memset(reinterpret_cast<char *>(&_impl_) +
  873. offsetof(Impl_, x_),
  874. 0,
  875. offsetof(Impl_, type_) -
  876. offsetof(Impl_, x_) +
  877. sizeof(Impl_::type_));
  878. }
  879. Alarm::~Alarm() {
  880. // @@protoc_insertion_point(destructor:R360.Alarm)
  881. SharedDtor(*this);
  882. }
  883. inline void Alarm::SharedDtor(MessageLite& self) {
  884. Alarm& this_ = static_cast<Alarm&>(self);
  885. this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  886. ABSL_DCHECK(this_.GetArena() == nullptr);
  887. this_._impl_.~Impl_();
  888. }
  889. inline void* Alarm::PlacementNew_(const void*, void* mem,
  890. ::google::protobuf::Arena* arena) {
  891. return ::new (mem) Alarm(arena);
  892. }
  893. constexpr auto Alarm::InternalNewImpl_() {
  894. return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Alarm),
  895. alignof(Alarm));
  896. }
  897. PROTOBUF_CONSTINIT
  898. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  899. const ::google::protobuf::internal::ClassDataFull Alarm::_class_data_ = {
  900. ::google::protobuf::internal::ClassData{
  901. &_Alarm_default_instance_._instance,
  902. &_table_.header,
  903. nullptr, // OnDemandRegisterArenaDtor
  904. nullptr, // IsInitialized
  905. &Alarm::MergeImpl,
  906. ::google::protobuf::Message::GetNewImpl<Alarm>(),
  907. #if defined(PROTOBUF_CUSTOM_VTABLE)
  908. &Alarm::SharedDtor,
  909. ::google::protobuf::Message::GetClearImpl<Alarm>(), &Alarm::ByteSizeLong,
  910. &Alarm::_InternalSerialize,
  911. #endif // PROTOBUF_CUSTOM_VTABLE
  912. PROTOBUF_FIELD_OFFSET(Alarm, _impl_._cached_size_),
  913. false,
  914. },
  915. &Alarm::kDescriptorMethods,
  916. &descriptor_table_ImageService_2eproto,
  917. nullptr, // tracker
  918. };
  919. const ::google::protobuf::internal::ClassData* Alarm::GetClassData() const {
  920. ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
  921. ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
  922. return _class_data_.base();
  923. }
  924. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  925. const ::_pbi::TcParseTable<3, 6, 0, 0, 2> Alarm::_table_ = {
  926. {
  927. 0, // no _has_bits_
  928. 0, // no _extensions_
  929. 6, 56, // max_field_number, fast_idx_mask
  930. offsetof(decltype(_table_), field_lookup_table),
  931. 4294967232, // skipmap
  932. offsetof(decltype(_table_), field_entries),
  933. 6, // num_field_entries
  934. 0, // num_aux_entries
  935. offsetof(decltype(_table_), field_names), // no aux_entries
  936. _class_data_.base(),
  937. nullptr, // post_loop_handler
  938. ::_pbi::TcParser::GenericFallback, // fallback
  939. #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
  940. ::_pbi::TcParser::GetTable<::R360::Alarm>(), // to_prefetch
  941. #endif // PROTOBUF_PREFETCH_PARSE_TABLE
  942. }, {{
  943. {::_pbi::TcParser::MiniParse, {}},
  944. // uint32 x = 1;
  945. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.x_), 63>(),
  946. {8, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.x_)}},
  947. // uint32 y = 2;
  948. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.y_), 63>(),
  949. {16, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.y_)}},
  950. // uint32 w = 3;
  951. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.w_), 63>(),
  952. {24, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.w_)}},
  953. // uint32 h = 4;
  954. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.h_), 63>(),
  955. {32, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.h_)}},
  956. // float score = 5;
  957. {::_pbi::TcParser::FastF32S1,
  958. {45, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.score_)}},
  959. // .R360.AlarmType type = 6;
  960. {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.type_), 63>(),
  961. {48, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.type_)}},
  962. {::_pbi::TcParser::MiniParse, {}},
  963. }}, {{
  964. 65535, 65535
  965. }}, {{
  966. // uint32 x = 1;
  967. {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.x_), 0, 0,
  968. (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
  969. // uint32 y = 2;
  970. {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.y_), 0, 0,
  971. (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
  972. // uint32 w = 3;
  973. {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.w_), 0, 0,
  974. (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
  975. // uint32 h = 4;
  976. {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.h_), 0, 0,
  977. (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
  978. // float score = 5;
  979. {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.score_), 0, 0,
  980. (0 | ::_fl::kFcSingular | ::_fl::kFloat)},
  981. // .R360.AlarmType type = 6;
  982. {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.type_), 0, 0,
  983. (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
  984. }},
  985. // no aux_entries
  986. {{
  987. }},
  988. };
  989. PROTOBUF_NOINLINE void Alarm::Clear() {
  990. // @@protoc_insertion_point(message_clear_start:R360.Alarm)
  991. ::google::protobuf::internal::TSanWrite(&_impl_);
  992. ::uint32_t cached_has_bits = 0;
  993. // Prevent compiler warnings about cached_has_bits being unused
  994. (void) cached_has_bits;
  995. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  996. reinterpret_cast<char*>(&_impl_.type_) -
  997. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.type_));
  998. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  999. }
  1000. #if defined(PROTOBUF_CUSTOM_VTABLE)
  1001. ::uint8_t* Alarm::_InternalSerialize(
  1002. const MessageLite& base, ::uint8_t* target,
  1003. ::google::protobuf::io::EpsCopyOutputStream* stream) {
  1004. const Alarm& this_ = static_cast<const Alarm&>(base);
  1005. #else // PROTOBUF_CUSTOM_VTABLE
  1006. ::uint8_t* Alarm::_InternalSerialize(
  1007. ::uint8_t* target,
  1008. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1009. const Alarm& this_ = *this;
  1010. #endif // PROTOBUF_CUSTOM_VTABLE
  1011. // @@protoc_insertion_point(serialize_to_array_start:R360.Alarm)
  1012. ::uint32_t cached_has_bits = 0;
  1013. (void)cached_has_bits;
  1014. // uint32 x = 1;
  1015. if (this_._internal_x() != 0) {
  1016. target = stream->EnsureSpace(target);
  1017. target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
  1018. 1, this_._internal_x(), target);
  1019. }
  1020. // uint32 y = 2;
  1021. if (this_._internal_y() != 0) {
  1022. target = stream->EnsureSpace(target);
  1023. target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
  1024. 2, this_._internal_y(), target);
  1025. }
  1026. // uint32 w = 3;
  1027. if (this_._internal_w() != 0) {
  1028. target = stream->EnsureSpace(target);
  1029. target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
  1030. 3, this_._internal_w(), target);
  1031. }
  1032. // uint32 h = 4;
  1033. if (this_._internal_h() != 0) {
  1034. target = stream->EnsureSpace(target);
  1035. target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
  1036. 4, this_._internal_h(), target);
  1037. }
  1038. // float score = 5;
  1039. if (::absl::bit_cast<::uint32_t>(this_._internal_score()) != 0) {
  1040. target = stream->EnsureSpace(target);
  1041. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1042. 5, this_._internal_score(), target);
  1043. }
  1044. // .R360.AlarmType type = 6;
  1045. if (this_._internal_type() != 0) {
  1046. target = stream->EnsureSpace(target);
  1047. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1048. 6, this_._internal_type(), target);
  1049. }
  1050. if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
  1051. target =
  1052. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1053. this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1054. }
  1055. // @@protoc_insertion_point(serialize_to_array_end:R360.Alarm)
  1056. return target;
  1057. }
  1058. #if defined(PROTOBUF_CUSTOM_VTABLE)
  1059. ::size_t Alarm::ByteSizeLong(const MessageLite& base) {
  1060. const Alarm& this_ = static_cast<const Alarm&>(base);
  1061. #else // PROTOBUF_CUSTOM_VTABLE
  1062. ::size_t Alarm::ByteSizeLong() const {
  1063. const Alarm& this_ = *this;
  1064. #endif // PROTOBUF_CUSTOM_VTABLE
  1065. // @@protoc_insertion_point(message_byte_size_start:R360.Alarm)
  1066. ::size_t total_size = 0;
  1067. ::uint32_t cached_has_bits = 0;
  1068. // Prevent compiler warnings about cached_has_bits being unused
  1069. (void)cached_has_bits;
  1070. ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  1071. {
  1072. // uint32 x = 1;
  1073. if (this_._internal_x() != 0) {
  1074. total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
  1075. this_._internal_x());
  1076. }
  1077. // uint32 y = 2;
  1078. if (this_._internal_y() != 0) {
  1079. total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
  1080. this_._internal_y());
  1081. }
  1082. // uint32 w = 3;
  1083. if (this_._internal_w() != 0) {
  1084. total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
  1085. this_._internal_w());
  1086. }
  1087. // uint32 h = 4;
  1088. if (this_._internal_h() != 0) {
  1089. total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
  1090. this_._internal_h());
  1091. }
  1092. // float score = 5;
  1093. if (::absl::bit_cast<::uint32_t>(this_._internal_score()) != 0) {
  1094. total_size += 5;
  1095. }
  1096. // .R360.AlarmType type = 6;
  1097. if (this_._internal_type() != 0) {
  1098. total_size += 1 +
  1099. ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
  1100. }
  1101. }
  1102. return this_.MaybeComputeUnknownFieldsSize(total_size,
  1103. &this_._impl_._cached_size_);
  1104. }
  1105. void Alarm::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
  1106. auto* const _this = static_cast<Alarm*>(&to_msg);
  1107. auto& from = static_cast<const Alarm&>(from_msg);
  1108. // @@protoc_insertion_point(class_specific_merge_from_start:R360.Alarm)
  1109. ABSL_DCHECK_NE(&from, _this);
  1110. ::uint32_t cached_has_bits = 0;
  1111. (void) cached_has_bits;
  1112. if (from._internal_x() != 0) {
  1113. _this->_impl_.x_ = from._impl_.x_;
  1114. }
  1115. if (from._internal_y() != 0) {
  1116. _this->_impl_.y_ = from._impl_.y_;
  1117. }
  1118. if (from._internal_w() != 0) {
  1119. _this->_impl_.w_ = from._impl_.w_;
  1120. }
  1121. if (from._internal_h() != 0) {
  1122. _this->_impl_.h_ = from._impl_.h_;
  1123. }
  1124. if (::absl::bit_cast<::uint32_t>(from._internal_score()) != 0) {
  1125. _this->_impl_.score_ = from._impl_.score_;
  1126. }
  1127. if (from._internal_type() != 0) {
  1128. _this->_impl_.type_ = from._impl_.type_;
  1129. }
  1130. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1131. }
  1132. void Alarm::CopyFrom(const Alarm& from) {
  1133. // @@protoc_insertion_point(class_specific_copy_from_start:R360.Alarm)
  1134. if (&from == this) return;
  1135. Clear();
  1136. MergeFrom(from);
  1137. }
  1138. void Alarm::InternalSwap(Alarm* PROTOBUF_RESTRICT other) {
  1139. using std::swap;
  1140. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1141. ::google::protobuf::internal::memswap<
  1142. PROTOBUF_FIELD_OFFSET(Alarm, _impl_.type_)
  1143. + sizeof(Alarm::_impl_.type_)
  1144. - PROTOBUF_FIELD_OFFSET(Alarm, _impl_.x_)>(
  1145. reinterpret_cast<char*>(&_impl_.x_),
  1146. reinterpret_cast<char*>(&other->_impl_.x_));
  1147. }
  1148. ::google::protobuf::Metadata Alarm::GetMetadata() const {
  1149. return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
  1150. }
  1151. // @@protoc_insertion_point(namespace_scope)
  1152. } // namespace R360
  1153. namespace google {
  1154. namespace protobuf {
  1155. } // namespace protobuf
  1156. } // namespace google
  1157. // @@protoc_insertion_point(global_scope)
  1158. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
  1159. _static_init2_ PROTOBUF_UNUSED =
  1160. (::_pbi::AddDescriptors(&descriptor_table_ImageService_2eproto),
  1161. ::std::false_type{});
  1162. #include "google/protobuf/port_undef.inc"