123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // NO CHECKED-IN PROTOBUF GENCODE
- // source: ImageService.proto
- // Protobuf C++ Version: 5.29.0
- #include "ImageService.pb.h"
- #include <algorithm>
- #include <type_traits>
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/generated_message_tctable_impl.h"
- #include "google/protobuf/extension_set.h"
- #include "google/protobuf/generated_message_util.h"
- #include "google/protobuf/wire_format_lite.h"
- #include "google/protobuf/descriptor.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/reflection_ops.h"
- #include "google/protobuf/wire_format.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- PROTOBUF_PRAGMA_INIT_SEG
- namespace _pb = ::google::protobuf;
- namespace _pbi = ::google::protobuf::internal;
- namespace _fl = ::google::protobuf::internal::field_layout;
- namespace R360 {
- template <typename>
- PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){}
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::internal::ZeroFieldsBase() {
- }
- #endif // PROTOBUF_CUSTOM_VTABLE
- struct EmptyDefaultTypeInternal {
- PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~EmptyDefaultTypeInternal() {}
- union {
- Empty _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_;
- inline constexpr Alarm::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : x_{0u},
- y_{0u},
- w_{0u},
- h_{0u},
- score_{0},
- type_{static_cast< ::R360::AlarmType >(0)},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR Alarm::Alarm(::_pbi::ConstantInitialized)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::Message(_class_data_.base()),
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::Message(),
- #endif // PROTOBUF_CUSTOM_VTABLE
- _impl_(::_pbi::ConstantInitialized()) {
- }
- struct AlarmDefaultTypeInternal {
- PROTOBUF_CONSTEXPR AlarmDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~AlarmDefaultTypeInternal() {}
- union {
- Alarm _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlarmDefaultTypeInternal _Alarm_default_instance_;
- inline constexpr EmbeddedData::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : alarm_{},
- image_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- degree_{::uint64_t{0u}},
- usb_camera_index_{0u},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR EmbeddedData::EmbeddedData(::_pbi::ConstantInitialized)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::Message(_class_data_.base()),
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::Message(),
- #endif // PROTOBUF_CUSTOM_VTABLE
- _impl_(::_pbi::ConstantInitialized()) {
- }
- struct EmbeddedDataDefaultTypeInternal {
- PROTOBUF_CONSTEXPR EmbeddedDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~EmbeddedDataDefaultTypeInternal() {}
- union {
- EmbeddedData _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmbeddedDataDefaultTypeInternal _EmbeddedData_default_instance_;
- inline constexpr DataList::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : data_{},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR DataList::DataList(::_pbi::ConstantInitialized)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::Message(_class_data_.base()),
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::Message(),
- #endif // PROTOBUF_CUSTOM_VTABLE
- _impl_(::_pbi::ConstantInitialized()) {
- }
- struct DataListDefaultTypeInternal {
- PROTOBUF_CONSTEXPR DataListDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~DataListDefaultTypeInternal() {}
- union {
- DataList _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataListDefaultTypeInternal _DataList_default_instance_;
- } // namespace R360
- static const ::_pb::EnumDescriptor* file_level_enum_descriptors_ImageService_2eproto[1];
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_ImageService_2eproto = nullptr;
- const ::uint32_t
- TableStruct_ImageService_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
- protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::R360::Empty, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::R360::DataList, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::R360::DataList, _impl_.data_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _impl_.usb_camera_index_),
- PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _impl_.image_),
- PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _impl_.degree_),
- PROTOBUF_FIELD_OFFSET(::R360::EmbeddedData, _impl_.alarm_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::R360::Alarm, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.w_),
- PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.h_),
- PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.score_),
- PROTOBUF_FIELD_OFFSET(::R360::Alarm, _impl_.type_),
- };
- static const ::_pbi::MigrationSchema
- schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- {0, -1, -1, sizeof(::R360::Empty)},
- {8, -1, -1, sizeof(::R360::DataList)},
- {17, -1, -1, sizeof(::R360::EmbeddedData)},
- {29, -1, -1, sizeof(::R360::Alarm)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::R360::_Empty_default_instance_._instance,
- &::R360::_DataList_default_instance_._instance,
- &::R360::_EmbeddedData_default_instance_._instance,
- &::R360::_Alarm_default_instance_._instance,
- };
- const char descriptor_table_protodef_ImageService_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
- protodesc_cold) = {
- "\n\022ImageService.proto\022\004R360\"\007\n\005Empty\",\n\010D"
- "ataList\022 \n\004data\030\001 \003(\0132\022.R360.EmbeddedDat"
- "a\"c\n\014EmbeddedData\022\030\n\020usb_camera_index\030\001 "
- "\001(\r\022\r\n\005image\030\002 \001(\014\022\016\n\006degree\030\003 \001(\004\022\032\n\005al"
- "arm\030\004 \003(\0132\013.R360.Alarm\"a\n\005Alarm\022\t\n\001x\030\001 \001"
- "(\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"
- "core\030\005 \001(\002\022\035\n\004type\030\006 \001(\0162\017.R360.AlarmTyp"
- "e*\024\n\tAlarmType\022\007\n\003UAV\020\0002s\n\016MessageServic"
- "e\0220\n\017R360SendMessage\022\016.R360.DataList\032\013.R"
- "360.Empty(\001\022/\n\016R360GetMessage\022\013.R360.Emp"
- "ty\032\016.R360.DataList0\001b\006proto3"
- };
- static ::absl::once_flag descriptor_table_ImageService_2eproto_once;
- PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ImageService_2eproto = {
- false,
- false,
- 428,
- descriptor_table_protodef_ImageService_2eproto,
- "ImageService.proto",
- &descriptor_table_ImageService_2eproto_once,
- nullptr,
- 0,
- 4,
- schemas,
- file_default_instances,
- TableStruct_ImageService_2eproto::offsets,
- file_level_enum_descriptors_ImageService_2eproto,
- file_level_service_descriptors_ImageService_2eproto,
- };
- namespace R360 {
- const ::google::protobuf::EnumDescriptor* AlarmType_descriptor() {
- ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ImageService_2eproto);
- return file_level_enum_descriptors_ImageService_2eproto[0];
- }
- PROTOBUF_CONSTINIT const uint32_t AlarmType_internal_data_[] = {
- 65536u, 0u, };
- bool AlarmType_IsValid(int value) {
- return 0 <= value && value <= 0;
- }
- // ===================================================================
- class Empty::_Internal {
- public:
- };
- Empty::Empty(::google::protobuf::Arena* arena)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) {
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::internal::ZeroFieldsBase(arena) {
- #endif // PROTOBUF_CUSTOM_VTABLE
- // @@protoc_insertion_point(arena_constructor:R360.Empty)
- }
- Empty::Empty(
- ::google::protobuf::Arena* arena,
- const Empty& from)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) {
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::internal::ZeroFieldsBase(arena) {
- #endif // PROTOBUF_CUSTOM_VTABLE
- Empty* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:R360.Empty)
- }
- inline void* Empty::PlacementNew_(const void*, void* mem,
- ::google::protobuf::Arena* arena) {
- return ::new (mem) Empty(arena);
- }
- constexpr auto Empty::InternalNewImpl_() {
- return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty),
- alignof(Empty));
- }
- PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::google::protobuf::internal::ClassDataFull Empty::_class_data_ = {
- ::google::protobuf::internal::ClassData{
- &_Empty_default_instance_._instance,
- &_table_.header,
- nullptr, // OnDemandRegisterArenaDtor
- nullptr, // IsInitialized
- &Empty::MergeImpl,
- ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl<Empty>(),
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- &Empty::SharedDtor,
- ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl<Empty>(), &Empty::ByteSizeLong,
- &Empty::_InternalSerialize,
- #endif // PROTOBUF_CUSTOM_VTABLE
- PROTOBUF_FIELD_OFFSET(Empty, _impl_._cached_size_),
- false,
- },
- &Empty::kDescriptorMethods,
- &descriptor_table_ImageService_2eproto,
- nullptr, // tracker
- };
- const ::google::protobuf::internal::ClassData* Empty::GetClassData() const {
- ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
- ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
- return _class_data_.base();
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 0, 0, 0, 2> Empty::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 0, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967295, // skipmap
- offsetof(decltype(_table_), field_names), // no field_entries
- 0, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- _class_data_.base(),
- nullptr, // post_loop_handler
- ::_pbi::TcParser::GenericFallback, // fallback
- #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
- ::_pbi::TcParser::GetTable<::R360::Empty>(), // to_prefetch
- #endif // PROTOBUF_PREFETCH_PARSE_TABLE
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }},
- // no field_entries, or aux_entries
- {{
- }},
- };
- ::google::protobuf::Metadata Empty::GetMetadata() const {
- return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full());
- }
- // ===================================================================
- class DataList::_Internal {
- public:
- };
- DataList::DataList(::google::protobuf::Arena* arena)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::Message(arena, _class_data_.base()) {
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::Message(arena) {
- #endif // PROTOBUF_CUSTOM_VTABLE
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:R360.DataList)
- }
- inline PROTOBUF_NDEBUG_INLINE DataList::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from, const ::R360::DataList& from_msg)
- : data_{visibility, arena, from.data_},
- _cached_size_{0} {}
- DataList::DataList(
- ::google::protobuf::Arena* arena,
- const DataList& from)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::Message(arena, _class_data_.base()) {
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::Message(arena) {
- #endif // PROTOBUF_CUSTOM_VTABLE
- DataList* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
- // @@protoc_insertion_point(copy_constructor:R360.DataList)
- }
- inline PROTOBUF_NDEBUG_INLINE DataList::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : data_{visibility, arena},
- _cached_size_{0} {}
- inline void DataList::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- DataList::~DataList() {
- // @@protoc_insertion_point(destructor:R360.DataList)
- SharedDtor(*this);
- }
- inline void DataList::SharedDtor(MessageLite& self) {
- DataList& this_ = static_cast<DataList&>(self);
- this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- ABSL_DCHECK(this_.GetArena() == nullptr);
- this_._impl_.~Impl_();
- }
- inline void* DataList::PlacementNew_(const void*, void* mem,
- ::google::protobuf::Arena* arena) {
- return ::new (mem) DataList(arena);
- }
- constexpr auto DataList::InternalNewImpl_() {
- constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
- PROTOBUF_FIELD_OFFSET(DataList, _impl_.data_) +
- decltype(DataList::_impl_.data_)::
- InternalGetArenaOffset(
- ::google::protobuf::Message::internal_visibility()),
- });
- if (arena_bits.has_value()) {
- return ::google::protobuf::internal::MessageCreator::ZeroInit(
- sizeof(DataList), alignof(DataList), *arena_bits);
- } else {
- return ::google::protobuf::internal::MessageCreator(&DataList::PlacementNew_,
- sizeof(DataList),
- alignof(DataList));
- }
- }
- PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::google::protobuf::internal::ClassDataFull DataList::_class_data_ = {
- ::google::protobuf::internal::ClassData{
- &_DataList_default_instance_._instance,
- &_table_.header,
- nullptr, // OnDemandRegisterArenaDtor
- nullptr, // IsInitialized
- &DataList::MergeImpl,
- ::google::protobuf::Message::GetNewImpl<DataList>(),
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- &DataList::SharedDtor,
- ::google::protobuf::Message::GetClearImpl<DataList>(), &DataList::ByteSizeLong,
- &DataList::_InternalSerialize,
- #endif // PROTOBUF_CUSTOM_VTABLE
- PROTOBUF_FIELD_OFFSET(DataList, _impl_._cached_size_),
- false,
- },
- &DataList::kDescriptorMethods,
- &descriptor_table_ImageService_2eproto,
- nullptr, // tracker
- };
- const ::google::protobuf::internal::ClassData* DataList::GetClassData() const {
- ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
- ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
- return _class_data_.base();
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> DataList::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- _class_data_.base(),
- nullptr, // post_loop_handler
- ::_pbi::TcParser::GenericFallback, // fallback
- #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
- ::_pbi::TcParser::GetTable<::R360::DataList>(), // to_prefetch
- #endif // PROTOBUF_PREFETCH_PARSE_TABLE
- }, {{
- // repeated .R360.EmbeddedData data = 1;
- {::_pbi::TcParser::FastMtR1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(DataList, _impl_.data_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // repeated .R360.EmbeddedData data = 1;
- {PROTOBUF_FIELD_OFFSET(DataList, _impl_.data_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::R360::EmbeddedData>()},
- }}, {{
- }},
- };
- PROTOBUF_NOINLINE void DataList::Clear() {
- // @@protoc_insertion_point(message_clear_start:R360.DataList)
- ::google::protobuf::internal::TSanWrite(&_impl_);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.data_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- ::uint8_t* DataList::_InternalSerialize(
- const MessageLite& base, ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) {
- const DataList& this_ = static_cast<const DataList&>(base);
- #else // PROTOBUF_CUSTOM_VTABLE
- ::uint8_t* DataList::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- const DataList& this_ = *this;
- #endif // PROTOBUF_CUSTOM_VTABLE
- // @@protoc_insertion_point(serialize_to_array_start:R360.DataList)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // repeated .R360.EmbeddedData data = 1;
- for (unsigned i = 0, n = static_cast<unsigned>(
- this_._internal_data_size());
- i < n; i++) {
- const auto& repfield = this_._internal_data().Get(i);
- target =
- ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 1, repfield, repfield.GetCachedSize(),
- target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:R360.DataList)
- return target;
- }
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- ::size_t DataList::ByteSizeLong(const MessageLite& base) {
- const DataList& this_ = static_cast<const DataList&>(base);
- #else // PROTOBUF_CUSTOM_VTABLE
- ::size_t DataList::ByteSizeLong() const {
- const DataList& this_ = *this;
- #endif // PROTOBUF_CUSTOM_VTABLE
- // @@protoc_insertion_point(message_byte_size_start:R360.DataList)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
- ::_pbi::Prefetch5LinesFrom7Lines(&this_);
- {
- // repeated .R360.EmbeddedData data = 1;
- {
- total_size += 1UL * this_._internal_data_size();
- for (const auto& msg : this_._internal_data()) {
- total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- }
- }
- return this_.MaybeComputeUnknownFieldsSize(total_size,
- &this_._impl_._cached_size_);
- }
- void DataList::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
- auto* const _this = static_cast<DataList*>(&to_msg);
- auto& from = static_cast<const DataList&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:R360.DataList)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_data()->MergeFrom(
- from._internal_data());
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void DataList::CopyFrom(const DataList& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:R360.DataList)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DataList::InternalSwap(DataList* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.data_.InternalSwap(&other->_impl_.data_);
- }
- ::google::protobuf::Metadata DataList::GetMetadata() const {
- return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
- }
- // ===================================================================
- class EmbeddedData::_Internal {
- public:
- };
- EmbeddedData::EmbeddedData(::google::protobuf::Arena* arena)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::Message(arena, _class_data_.base()) {
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::Message(arena) {
- #endif // PROTOBUF_CUSTOM_VTABLE
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:R360.EmbeddedData)
- }
- inline PROTOBUF_NDEBUG_INLINE EmbeddedData::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from, const ::R360::EmbeddedData& from_msg)
- : alarm_{visibility, arena, from.alarm_},
- image_(arena, from.image_),
- _cached_size_{0} {}
- EmbeddedData::EmbeddedData(
- ::google::protobuf::Arena* arena,
- const EmbeddedData& from)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::Message(arena, _class_data_.base()) {
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::Message(arena) {
- #endif // PROTOBUF_CUSTOM_VTABLE
- EmbeddedData* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
- ::memcpy(reinterpret_cast<char *>(&_impl_) +
- offsetof(Impl_, degree_),
- reinterpret_cast<const char *>(&from._impl_) +
- offsetof(Impl_, degree_),
- offsetof(Impl_, usb_camera_index_) -
- offsetof(Impl_, degree_) +
- sizeof(Impl_::usb_camera_index_));
- // @@protoc_insertion_point(copy_constructor:R360.EmbeddedData)
- }
- inline PROTOBUF_NDEBUG_INLINE EmbeddedData::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : alarm_{visibility, arena},
- image_(arena),
- _cached_size_{0} {}
- inline void EmbeddedData::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- ::memset(reinterpret_cast<char *>(&_impl_) +
- offsetof(Impl_, degree_),
- 0,
- offsetof(Impl_, usb_camera_index_) -
- offsetof(Impl_, degree_) +
- sizeof(Impl_::usb_camera_index_));
- }
- EmbeddedData::~EmbeddedData() {
- // @@protoc_insertion_point(destructor:R360.EmbeddedData)
- SharedDtor(*this);
- }
- inline void EmbeddedData::SharedDtor(MessageLite& self) {
- EmbeddedData& this_ = static_cast<EmbeddedData&>(self);
- this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- ABSL_DCHECK(this_.GetArena() == nullptr);
- this_._impl_.image_.Destroy();
- this_._impl_.~Impl_();
- }
- inline void* EmbeddedData::PlacementNew_(const void*, void* mem,
- ::google::protobuf::Arena* arena) {
- return ::new (mem) EmbeddedData(arena);
- }
- constexpr auto EmbeddedData::InternalNewImpl_() {
- constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
- PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.alarm_) +
- decltype(EmbeddedData::_impl_.alarm_)::
- InternalGetArenaOffset(
- ::google::protobuf::Message::internal_visibility()),
- });
- if (arena_bits.has_value()) {
- return ::google::protobuf::internal::MessageCreator::CopyInit(
- sizeof(EmbeddedData), alignof(EmbeddedData), *arena_bits);
- } else {
- return ::google::protobuf::internal::MessageCreator(&EmbeddedData::PlacementNew_,
- sizeof(EmbeddedData),
- alignof(EmbeddedData));
- }
- }
- PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::google::protobuf::internal::ClassDataFull EmbeddedData::_class_data_ = {
- ::google::protobuf::internal::ClassData{
- &_EmbeddedData_default_instance_._instance,
- &_table_.header,
- nullptr, // OnDemandRegisterArenaDtor
- nullptr, // IsInitialized
- &EmbeddedData::MergeImpl,
- ::google::protobuf::Message::GetNewImpl<EmbeddedData>(),
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- &EmbeddedData::SharedDtor,
- ::google::protobuf::Message::GetClearImpl<EmbeddedData>(), &EmbeddedData::ByteSizeLong,
- &EmbeddedData::_InternalSerialize,
- #endif // PROTOBUF_CUSTOM_VTABLE
- PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_._cached_size_),
- false,
- },
- &EmbeddedData::kDescriptorMethods,
- &descriptor_table_ImageService_2eproto,
- nullptr, // tracker
- };
- const ::google::protobuf::internal::ClassData* EmbeddedData::GetClassData() const {
- ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
- ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
- return _class_data_.base();
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<2, 4, 1, 0, 2> EmbeddedData::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 4, 24, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967280, // skipmap
- offsetof(decltype(_table_), field_entries),
- 4, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- _class_data_.base(),
- nullptr, // post_loop_handler
- ::_pbi::TcParser::GenericFallback, // fallback
- #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
- ::_pbi::TcParser::GetTable<::R360::EmbeddedData>(), // to_prefetch
- #endif // PROTOBUF_PREFETCH_PARSE_TABLE
- }, {{
- // repeated .R360.Alarm alarm = 4;
- {::_pbi::TcParser::FastMtR1,
- {34, 63, 0, PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.alarm_)}},
- // uint32 usb_camera_index = 1;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EmbeddedData, _impl_.usb_camera_index_), 63>(),
- {8, 63, 0, PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.usb_camera_index_)}},
- // bytes image = 2;
- {::_pbi::TcParser::FastBS1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.image_)}},
- // uint64 degree = 3;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(EmbeddedData, _impl_.degree_), 63>(),
- {24, 63, 0, PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.degree_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // uint32 usb_camera_index = 1;
- {PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.usb_camera_index_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
- // bytes image = 2;
- {PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.image_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
- // uint64 degree = 3;
- {PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.degree_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUInt64)},
- // repeated .R360.Alarm alarm = 4;
- {PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.alarm_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::R360::Alarm>()},
- }}, {{
- }},
- };
- PROTOBUF_NOINLINE void EmbeddedData::Clear() {
- // @@protoc_insertion_point(message_clear_start:R360.EmbeddedData)
- ::google::protobuf::internal::TSanWrite(&_impl_);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.alarm_.Clear();
- _impl_.image_.ClearToEmpty();
- ::memset(&_impl_.degree_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.usb_camera_index_) -
- reinterpret_cast<char*>(&_impl_.degree_)) + sizeof(_impl_.usb_camera_index_));
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- ::uint8_t* EmbeddedData::_InternalSerialize(
- const MessageLite& base, ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) {
- const EmbeddedData& this_ = static_cast<const EmbeddedData&>(base);
- #else // PROTOBUF_CUSTOM_VTABLE
- ::uint8_t* EmbeddedData::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- const EmbeddedData& this_ = *this;
- #endif // PROTOBUF_CUSTOM_VTABLE
- // @@protoc_insertion_point(serialize_to_array_start:R360.EmbeddedData)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // uint32 usb_camera_index = 1;
- if (this_._internal_usb_camera_index() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
- 1, this_._internal_usb_camera_index(), target);
- }
- // bytes image = 2;
- if (!this_._internal_image().empty()) {
- const std::string& _s = this_._internal_image();
- target = stream->WriteBytesMaybeAliased(2, _s, target);
- }
- // uint64 degree = 3;
- if (this_._internal_degree() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
- 3, this_._internal_degree(), target);
- }
- // repeated .R360.Alarm alarm = 4;
- for (unsigned i = 0, n = static_cast<unsigned>(
- this_._internal_alarm_size());
- i < n; i++) {
- const auto& repfield = this_._internal_alarm().Get(i);
- target =
- ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 4, repfield, repfield.GetCachedSize(),
- target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:R360.EmbeddedData)
- return target;
- }
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- ::size_t EmbeddedData::ByteSizeLong(const MessageLite& base) {
- const EmbeddedData& this_ = static_cast<const EmbeddedData&>(base);
- #else // PROTOBUF_CUSTOM_VTABLE
- ::size_t EmbeddedData::ByteSizeLong() const {
- const EmbeddedData& this_ = *this;
- #endif // PROTOBUF_CUSTOM_VTABLE
- // @@protoc_insertion_point(message_byte_size_start:R360.EmbeddedData)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
- ::_pbi::Prefetch5LinesFrom7Lines(&this_);
- {
- // repeated .R360.Alarm alarm = 4;
- {
- total_size += 1UL * this_._internal_alarm_size();
- for (const auto& msg : this_._internal_alarm()) {
- total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- }
- }
- {
- // bytes image = 2;
- if (!this_._internal_image().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
- this_._internal_image());
- }
- // uint64 degree = 3;
- if (this_._internal_degree() != 0) {
- total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
- this_._internal_degree());
- }
- // uint32 usb_camera_index = 1;
- if (this_._internal_usb_camera_index() != 0) {
- total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
- this_._internal_usb_camera_index());
- }
- }
- return this_.MaybeComputeUnknownFieldsSize(total_size,
- &this_._impl_._cached_size_);
- }
- void EmbeddedData::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
- auto* const _this = static_cast<EmbeddedData*>(&to_msg);
- auto& from = static_cast<const EmbeddedData&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:R360.EmbeddedData)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_alarm()->MergeFrom(
- from._internal_alarm());
- if (!from._internal_image().empty()) {
- _this->_internal_set_image(from._internal_image());
- }
- if (from._internal_degree() != 0) {
- _this->_impl_.degree_ = from._impl_.degree_;
- }
- if (from._internal_usb_camera_index() != 0) {
- _this->_impl_.usb_camera_index_ = from._impl_.usb_camera_index_;
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void EmbeddedData::CopyFrom(const EmbeddedData& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:R360.EmbeddedData)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void EmbeddedData::InternalSwap(EmbeddedData* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.alarm_.InternalSwap(&other->_impl_.alarm_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.image_, &other->_impl_.image_, arena);
- ::google::protobuf::internal::memswap<
- PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.usb_camera_index_)
- + sizeof(EmbeddedData::_impl_.usb_camera_index_)
- - PROTOBUF_FIELD_OFFSET(EmbeddedData, _impl_.degree_)>(
- reinterpret_cast<char*>(&_impl_.degree_),
- reinterpret_cast<char*>(&other->_impl_.degree_));
- }
- ::google::protobuf::Metadata EmbeddedData::GetMetadata() const {
- return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
- }
- // ===================================================================
- class Alarm::_Internal {
- public:
- };
- Alarm::Alarm(::google::protobuf::Arena* arena)
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- : ::google::protobuf::Message(arena, _class_data_.base()) {
- #else // PROTOBUF_CUSTOM_VTABLE
- : ::google::protobuf::Message(arena) {
- #endif // PROTOBUF_CUSTOM_VTABLE
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:R360.Alarm)
- }
- Alarm::Alarm(
- ::google::protobuf::Arena* arena, const Alarm& from)
- : Alarm(arena) {
- MergeFrom(from);
- }
- inline PROTOBUF_NDEBUG_INLINE Alarm::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0} {}
- inline void Alarm::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- ::memset(reinterpret_cast<char *>(&_impl_) +
- offsetof(Impl_, x_),
- 0,
- offsetof(Impl_, type_) -
- offsetof(Impl_, x_) +
- sizeof(Impl_::type_));
- }
- Alarm::~Alarm() {
- // @@protoc_insertion_point(destructor:R360.Alarm)
- SharedDtor(*this);
- }
- inline void Alarm::SharedDtor(MessageLite& self) {
- Alarm& this_ = static_cast<Alarm&>(self);
- this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- ABSL_DCHECK(this_.GetArena() == nullptr);
- this_._impl_.~Impl_();
- }
- inline void* Alarm::PlacementNew_(const void*, void* mem,
- ::google::protobuf::Arena* arena) {
- return ::new (mem) Alarm(arena);
- }
- constexpr auto Alarm::InternalNewImpl_() {
- return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Alarm),
- alignof(Alarm));
- }
- PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::google::protobuf::internal::ClassDataFull Alarm::_class_data_ = {
- ::google::protobuf::internal::ClassData{
- &_Alarm_default_instance_._instance,
- &_table_.header,
- nullptr, // OnDemandRegisterArenaDtor
- nullptr, // IsInitialized
- &Alarm::MergeImpl,
- ::google::protobuf::Message::GetNewImpl<Alarm>(),
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- &Alarm::SharedDtor,
- ::google::protobuf::Message::GetClearImpl<Alarm>(), &Alarm::ByteSizeLong,
- &Alarm::_InternalSerialize,
- #endif // PROTOBUF_CUSTOM_VTABLE
- PROTOBUF_FIELD_OFFSET(Alarm, _impl_._cached_size_),
- false,
- },
- &Alarm::kDescriptorMethods,
- &descriptor_table_ImageService_2eproto,
- nullptr, // tracker
- };
- const ::google::protobuf::internal::ClassData* Alarm::GetClassData() const {
- ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
- ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
- return _class_data_.base();
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<3, 6, 0, 0, 2> Alarm::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 6, 56, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967232, // skipmap
- offsetof(decltype(_table_), field_entries),
- 6, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- _class_data_.base(),
- nullptr, // post_loop_handler
- ::_pbi::TcParser::GenericFallback, // fallback
- #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
- ::_pbi::TcParser::GetTable<::R360::Alarm>(), // to_prefetch
- #endif // PROTOBUF_PREFETCH_PARSE_TABLE
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- // uint32 x = 1;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.x_), 63>(),
- {8, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.x_)}},
- // uint32 y = 2;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.y_), 63>(),
- {16, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.y_)}},
- // uint32 w = 3;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.w_), 63>(),
- {24, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.w_)}},
- // uint32 h = 4;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.h_), 63>(),
- {32, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.h_)}},
- // float score = 5;
- {::_pbi::TcParser::FastF32S1,
- {45, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.score_)}},
- // .R360.AlarmType type = 6;
- {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Alarm, _impl_.type_), 63>(),
- {48, 63, 0, PROTOBUF_FIELD_OFFSET(Alarm, _impl_.type_)}},
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // uint32 x = 1;
- {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.x_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
- // uint32 y = 2;
- {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.y_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
- // uint32 w = 3;
- {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.w_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
- // uint32 h = 4;
- {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.h_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUInt32)},
- // float score = 5;
- {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.score_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kFloat)},
- // .R360.AlarmType type = 6;
- {PROTOBUF_FIELD_OFFSET(Alarm, _impl_.type_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
- }},
- // no aux_entries
- {{
- }},
- };
- PROTOBUF_NOINLINE void Alarm::Clear() {
- // @@protoc_insertion_point(message_clear_start:R360.Alarm)
- ::google::protobuf::internal::TSanWrite(&_impl_);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.type_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.type_));
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- ::uint8_t* Alarm::_InternalSerialize(
- const MessageLite& base, ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) {
- const Alarm& this_ = static_cast<const Alarm&>(base);
- #else // PROTOBUF_CUSTOM_VTABLE
- ::uint8_t* Alarm::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- const Alarm& this_ = *this;
- #endif // PROTOBUF_CUSTOM_VTABLE
- // @@protoc_insertion_point(serialize_to_array_start:R360.Alarm)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // uint32 x = 1;
- if (this_._internal_x() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
- 1, this_._internal_x(), target);
- }
- // uint32 y = 2;
- if (this_._internal_y() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
- 2, this_._internal_y(), target);
- }
- // uint32 w = 3;
- if (this_._internal_w() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
- 3, this_._internal_w(), target);
- }
- // uint32 h = 4;
- if (this_._internal_h() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
- 4, this_._internal_h(), target);
- }
- // float score = 5;
- if (::absl::bit_cast<::uint32_t>(this_._internal_score()) != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 5, this_._internal_score(), target);
- }
- // .R360.AlarmType type = 6;
- if (this_._internal_type() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 6, this_._internal_type(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:R360.Alarm)
- return target;
- }
- #if defined(PROTOBUF_CUSTOM_VTABLE)
- ::size_t Alarm::ByteSizeLong(const MessageLite& base) {
- const Alarm& this_ = static_cast<const Alarm&>(base);
- #else // PROTOBUF_CUSTOM_VTABLE
- ::size_t Alarm::ByteSizeLong() const {
- const Alarm& this_ = *this;
- #endif // PROTOBUF_CUSTOM_VTABLE
- // @@protoc_insertion_point(message_byte_size_start:R360.Alarm)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void)cached_has_bits;
- ::_pbi::Prefetch5LinesFrom7Lines(&this_);
- {
- // uint32 x = 1;
- if (this_._internal_x() != 0) {
- total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
- this_._internal_x());
- }
- // uint32 y = 2;
- if (this_._internal_y() != 0) {
- total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
- this_._internal_y());
- }
- // uint32 w = 3;
- if (this_._internal_w() != 0) {
- total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
- this_._internal_w());
- }
- // uint32 h = 4;
- if (this_._internal_h() != 0) {
- total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
- this_._internal_h());
- }
- // float score = 5;
- if (::absl::bit_cast<::uint32_t>(this_._internal_score()) != 0) {
- total_size += 5;
- }
- // .R360.AlarmType type = 6;
- if (this_._internal_type() != 0) {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
- }
- }
- return this_.MaybeComputeUnknownFieldsSize(total_size,
- &this_._impl_._cached_size_);
- }
- void Alarm::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
- auto* const _this = static_cast<Alarm*>(&to_msg);
- auto& from = static_cast<const Alarm&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:R360.Alarm)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_x() != 0) {
- _this->_impl_.x_ = from._impl_.x_;
- }
- if (from._internal_y() != 0) {
- _this->_impl_.y_ = from._impl_.y_;
- }
- if (from._internal_w() != 0) {
- _this->_impl_.w_ = from._impl_.w_;
- }
- if (from._internal_h() != 0) {
- _this->_impl_.h_ = from._impl_.h_;
- }
- if (::absl::bit_cast<::uint32_t>(from._internal_score()) != 0) {
- _this->_impl_.score_ = from._impl_.score_;
- }
- if (from._internal_type() != 0) {
- _this->_impl_.type_ = from._impl_.type_;
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Alarm::CopyFrom(const Alarm& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:R360.Alarm)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Alarm::InternalSwap(Alarm* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::google::protobuf::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Alarm, _impl_.type_)
- + sizeof(Alarm::_impl_.type_)
- - PROTOBUF_FIELD_OFFSET(Alarm, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_));
- }
- ::google::protobuf::Metadata Alarm::GetMetadata() const {
- return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace R360
- namespace google {
- namespace protobuf {
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
- _static_init2_ PROTOBUF_UNUSED =
- (::_pbi::AddDescriptors(&descriptor_table_ImageService_2eproto),
- ::std::false_type{});
- #include "google/protobuf/port_undef.inc"
|