| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // NO CHECKED-IN PROTOBUF GENCODE
- // source: device/v3/device-c.proto
- // Protobuf C++ Version: 5.27.1
- #include "device/v3/device-c.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/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 Device {
- namespace V3 {
- inline constexpr OpenRequest::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : deviceuri_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- devicegroup_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR OpenRequest::OpenRequest(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct OpenRequestDefaultTypeInternal {
- PROTOBUF_CONSTEXPR OpenRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~OpenRequestDefaultTypeInternal() {}
- union {
- OpenRequest _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenRequestDefaultTypeInternal _OpenRequest_default_instance_;
- inline constexpr OpenReply::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : message_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- retcode_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- retcontext_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR OpenReply::OpenReply(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct OpenReplyDefaultTypeInternal {
- PROTOBUF_CONSTEXPR OpenReplyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~OpenReplyDefaultTypeInternal() {}
- union {
- OpenReply _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OpenReplyDefaultTypeInternal _OpenReply_default_instance_;
- inline constexpr DoResponse::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : deviceuri_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- retcode_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- reqname_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- respresult_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- reqtransaction_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- retcontext_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR DoResponse::DoResponse(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct DoResponseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR DoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~DoResponseDefaultTypeInternal() {}
- union {
- DoResponse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoResponseDefaultTypeInternal _DoResponse_default_instance_;
- inline constexpr DoRequest::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : deviceuri_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- reqname_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- reqparam_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- reqtransaction_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- reqclientid_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR DoRequest::DoRequest(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct DoRequestDefaultTypeInternal {
- PROTOBUF_CONSTEXPR DoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~DoRequestDefaultTypeInternal() {}
- union {
- DoRequest _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoRequestDefaultTypeInternal _DoRequest_default_instance_;
- } // namespace V3
- } // namespace Device
- static constexpr const ::_pb::EnumDescriptor**
- file_level_enum_descriptors_device_2fv3_2fdevice_2dc_2eproto = nullptr;
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_device_2fv3_2fdevice_2dc_2eproto = nullptr;
- const ::uint32_t
- TableStruct_device_2fv3_2fdevice_2dc_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
- protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::Device::V3::OpenRequest, _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(::Device::V3::OpenRequest, _impl_.deviceuri_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::OpenRequest, _impl_.devicegroup_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::Device::V3::OpenReply, _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(::Device::V3::OpenReply, _impl_.message_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::OpenReply, _impl_.retcode_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::OpenReply, _impl_.retcontext_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoRequest, _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(::Device::V3::DoRequest, _impl_.deviceuri_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoRequest, _impl_.reqname_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoRequest, _impl_.reqparam_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoRequest, _impl_.reqtransaction_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoRequest, _impl_.reqclientid_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoResponse, _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(::Device::V3::DoResponse, _impl_.deviceuri_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoResponse, _impl_.retcode_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoResponse, _impl_.reqname_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoResponse, _impl_.respresult_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoResponse, _impl_.reqtransaction_),
- PROTOBUF_FIELD_OFFSET(::Device::V3::DoResponse, _impl_.retcontext_),
- };
- static const ::_pbi::MigrationSchema
- schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- {0, -1, -1, sizeof(::Device::V3::OpenRequest)},
- {10, -1, -1, sizeof(::Device::V3::OpenReply)},
- {21, -1, -1, sizeof(::Device::V3::DoRequest)},
- {34, -1, -1, sizeof(::Device::V3::DoResponse)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::Device::V3::_OpenRequest_default_instance_._instance,
- &::Device::V3::_OpenReply_default_instance_._instance,
- &::Device::V3::_DoRequest_default_instance_._instance,
- &::Device::V3::_DoResponse_default_instance_._instance,
- };
- const char descriptor_table_protodef_device_2fv3_2fdevice_2dc_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
- protodesc_cold) = {
- "\n\030device/v3/device-c.proto\022\tDevice.V3\"5\n"
- "\013OpenRequest\022\021\n\tdeviceUri\030\001 \001(\t\022\023\n\013devic"
- "eGroup\030\002 \001(\t\"A\n\tOpenReply\022\017\n\007message\030\001 \001"
- "(\t\022\017\n\007retCode\030\002 \001(\t\022\022\n\nretContext\030\003 \001(\t\""
- "n\n\tDoRequest\022\021\n\tdeviceUri\030\001 \001(\t\022\017\n\007reqNa"
- "me\030\002 \001(\t\022\020\n\010reqParam\030\003 \001(\t\022\026\n\016reqTransac"
- "tion\030\004 \001(\t\022\023\n\013reqClientID\030\005 \001(\t\"\201\001\n\nDoRe"
- "sponse\022\021\n\tdeviceUri\030\001 \001(\t\022\017\n\007retCode\030\002 \001"
- "(\t\022\017\n\007reqName\030\003 \001(\t\022\022\n\nrespResult\030\004 \001(\t\022"
- "\026\n\016reqTransaction\030\005 \001(\t\022\022\n\nretContext\030\006 "
- "\001(\t2\375\003\n\006Device\0226\n\004Open\022\026.Device.V3.OpenR"
- "equest\032\024.Device.V3.OpenReply\"\000\0227\n\005Close\022"
- "\026.Device.V3.OpenRequest\032\024.Device.V3.Open"
- "Reply\"\000\0224\n\003Get\022\024.Device.V3.DoRequest\032\025.D"
- "evice.V3.DoResponse\"\000\0224\n\003Set\022\024.Device.V3"
- ".DoRequest\032\025.Device.V3.DoResponse\"\000\0227\n\006U"
- "pdate\022\024.Device.V3.DoRequest\032\025.Device.V3."
- "DoResponse\"\000\0224\n\003Add\022\024.Device.V3.DoReques"
- "t\032\025.Device.V3.DoResponse\"\000\0224\n\003Del\022\024.Devi"
- "ce.V3.DoRequest\032\025.Device.V3.DoResponse\"\000"
- "\0227\n\006Action\022\024.Device.V3.DoRequest\032\025.Devic"
- "e.V3.DoResponse\"\000\0228\n\007Message\022\024.Device.V3"
- ".DoRequest\032\025.Device.V3.DoResponse\"\000b\006pro"
- "to3"
- };
- static ::absl::once_flag descriptor_table_device_2fv3_2fdevice_2dc_2eproto_once;
- PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_device_2fv3_2fdevice_2dc_2eproto = {
- false,
- false,
- 923,
- descriptor_table_protodef_device_2fv3_2fdevice_2dc_2eproto,
- "device/v3/device-c.proto",
- &descriptor_table_device_2fv3_2fdevice_2dc_2eproto_once,
- nullptr,
- 0,
- 4,
- schemas,
- file_default_instances,
- TableStruct_device_2fv3_2fdevice_2dc_2eproto::offsets,
- file_level_enum_descriptors_device_2fv3_2fdevice_2dc_2eproto,
- file_level_service_descriptors_device_2fv3_2fdevice_2dc_2eproto,
- };
- namespace Device {
- namespace V3 {
- // ===================================================================
- class OpenRequest::_Internal {
- public:
- };
- OpenRequest::OpenRequest(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:Device.V3.OpenRequest)
- }
- inline PROTOBUF_NDEBUG_INLINE OpenRequest::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from, const ::Device::V3::OpenRequest& from_msg)
- : deviceuri_(arena, from.deviceuri_),
- devicegroup_(arena, from.devicegroup_),
- _cached_size_{0} {}
- OpenRequest::OpenRequest(
- ::google::protobuf::Arena* arena,
- const OpenRequest& from)
- : ::google::protobuf::Message(arena) {
- OpenRequest* 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:Device.V3.OpenRequest)
- }
- inline PROTOBUF_NDEBUG_INLINE OpenRequest::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : deviceuri_(arena),
- devicegroup_(arena),
- _cached_size_{0} {}
- inline void OpenRequest::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- OpenRequest::~OpenRequest() {
- // @@protoc_insertion_point(destructor:Device.V3.OpenRequest)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void OpenRequest::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.deviceuri_.Destroy();
- _impl_.devicegroup_.Destroy();
- _impl_.~Impl_();
- }
- const ::google::protobuf::MessageLite::ClassData*
- OpenRequest::GetClassData() const {
- PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
- ClassDataFull _data_ = {
- {
- &_table_.header,
- nullptr, // OnDemandRegisterArenaDtor
- nullptr, // IsInitialized
- PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_._cached_size_),
- false,
- },
- &OpenRequest::MergeImpl,
- &OpenRequest::kDescriptorMethods,
- &descriptor_table_device_2fv3_2fdevice_2dc_2eproto,
- nullptr, // tracker
- };
- ::google::protobuf::internal::PrefetchToLocalCache(&_data_);
- ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table);
- return _data_.base();
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<1, 2, 0, 50, 2> OpenRequest::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 2, 8, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967292, // skipmap
- offsetof(decltype(_table_), field_entries),
- 2, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- &_OpenRequest_default_instance_._instance,
- nullptr, // post_loop_handler
- ::_pbi::TcParser::GenericFallback, // fallback
- #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
- ::_pbi::TcParser::GetTable<::Device::V3::OpenRequest>(), // to_prefetch
- #endif // PROTOBUF_PREFETCH_PARSE_TABLE
- }, {{
- // string deviceGroup = 2;
- {::_pbi::TcParser::FastUS1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_.devicegroup_)}},
- // string deviceUri = 1;
- {::_pbi::TcParser::FastUS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_.deviceuri_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // string deviceUri = 1;
- {PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_.deviceuri_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string deviceGroup = 2;
- {PROTOBUF_FIELD_OFFSET(OpenRequest, _impl_.devicegroup_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- }},
- // no aux_entries
- {{
- "\25\11\13\0\0\0\0\0"
- "Device.V3.OpenRequest"
- "deviceUri"
- "deviceGroup"
- }},
- };
- PROTOBUF_NOINLINE void OpenRequest::Clear() {
- // @@protoc_insertion_point(message_clear_start:Device.V3.OpenRequest)
- ::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_.deviceuri_.ClearToEmpty();
- _impl_.devicegroup_.ClearToEmpty();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- ::uint8_t* OpenRequest::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:Device.V3.OpenRequest)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string deviceUri = 1;
- if (!this->_internal_deviceuri().empty()) {
- const std::string& _s = this->_internal_deviceuri();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.OpenRequest.deviceUri");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // string deviceGroup = 2;
- if (!this->_internal_devicegroup().empty()) {
- const std::string& _s = this->_internal_devicegroup();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.OpenRequest.deviceGroup");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Device.V3.OpenRequest)
- return target;
- }
- ::size_t OpenRequest::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Device.V3.OpenRequest)
- ::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(reinterpret_cast<const void*>(this));
- // string deviceUri = 1;
- if (!this->_internal_deviceuri().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_deviceuri());
- }
- // string deviceGroup = 2;
- if (!this->_internal_devicegroup().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_devicegroup());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- void OpenRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
- auto* const _this = static_cast<OpenRequest*>(&to_msg);
- auto& from = static_cast<const OpenRequest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:Device.V3.OpenRequest)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_deviceuri().empty()) {
- _this->_internal_set_deviceuri(from._internal_deviceuri());
- }
- if (!from._internal_devicegroup().empty()) {
- _this->_internal_set_devicegroup(from._internal_devicegroup());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void OpenRequest::CopyFrom(const OpenRequest& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Device.V3.OpenRequest)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void OpenRequest::InternalSwap(OpenRequest* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.deviceuri_, &other->_impl_.deviceuri_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.devicegroup_, &other->_impl_.devicegroup_, arena);
- }
- ::google::protobuf::Metadata OpenRequest::GetMetadata() const {
- return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
- }
- // ===================================================================
- class OpenReply::_Internal {
- public:
- };
- OpenReply::OpenReply(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:Device.V3.OpenReply)
- }
- inline PROTOBUF_NDEBUG_INLINE OpenReply::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from, const ::Device::V3::OpenReply& from_msg)
- : message_(arena, from.message_),
- retcode_(arena, from.retcode_),
- retcontext_(arena, from.retcontext_),
- _cached_size_{0} {}
- OpenReply::OpenReply(
- ::google::protobuf::Arena* arena,
- const OpenReply& from)
- : ::google::protobuf::Message(arena) {
- OpenReply* 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:Device.V3.OpenReply)
- }
- inline PROTOBUF_NDEBUG_INLINE OpenReply::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : message_(arena),
- retcode_(arena),
- retcontext_(arena),
- _cached_size_{0} {}
- inline void OpenReply::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- OpenReply::~OpenReply() {
- // @@protoc_insertion_point(destructor:Device.V3.OpenReply)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void OpenReply::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.message_.Destroy();
- _impl_.retcode_.Destroy();
- _impl_.retcontext_.Destroy();
- _impl_.~Impl_();
- }
- const ::google::protobuf::MessageLite::ClassData*
- OpenReply::GetClassData() const {
- PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
- ClassDataFull _data_ = {
- {
- &_table_.header,
- nullptr, // OnDemandRegisterArenaDtor
- nullptr, // IsInitialized
- PROTOBUF_FIELD_OFFSET(OpenReply, _impl_._cached_size_),
- false,
- },
- &OpenReply::MergeImpl,
- &OpenReply::kDescriptorMethods,
- &descriptor_table_device_2fv3_2fdevice_2dc_2eproto,
- nullptr, // tracker
- };
- ::google::protobuf::internal::PrefetchToLocalCache(&_data_);
- ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table);
- return _data_.base();
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<2, 3, 0, 52, 2> OpenReply::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 3, 24, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967288, // skipmap
- offsetof(decltype(_table_), field_entries),
- 3, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- &_OpenReply_default_instance_._instance,
- nullptr, // post_loop_handler
- ::_pbi::TcParser::GenericFallback, // fallback
- #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
- ::_pbi::TcParser::GetTable<::Device::V3::OpenReply>(), // to_prefetch
- #endif // PROTOBUF_PREFETCH_PARSE_TABLE
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- // string message = 1;
- {::_pbi::TcParser::FastUS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(OpenReply, _impl_.message_)}},
- // string retCode = 2;
- {::_pbi::TcParser::FastUS1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(OpenReply, _impl_.retcode_)}},
- // string retContext = 3;
- {::_pbi::TcParser::FastUS1,
- {26, 63, 0, PROTOBUF_FIELD_OFFSET(OpenReply, _impl_.retcontext_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // string message = 1;
- {PROTOBUF_FIELD_OFFSET(OpenReply, _impl_.message_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string retCode = 2;
- {PROTOBUF_FIELD_OFFSET(OpenReply, _impl_.retcode_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string retContext = 3;
- {PROTOBUF_FIELD_OFFSET(OpenReply, _impl_.retcontext_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- }},
- // no aux_entries
- {{
- "\23\7\7\12\0\0\0\0"
- "Device.V3.OpenReply"
- "message"
- "retCode"
- "retContext"
- }},
- };
- PROTOBUF_NOINLINE void OpenReply::Clear() {
- // @@protoc_insertion_point(message_clear_start:Device.V3.OpenReply)
- ::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_.message_.ClearToEmpty();
- _impl_.retcode_.ClearToEmpty();
- _impl_.retcontext_.ClearToEmpty();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- ::uint8_t* OpenReply::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:Device.V3.OpenReply)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string message = 1;
- if (!this->_internal_message().empty()) {
- const std::string& _s = this->_internal_message();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.OpenReply.message");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // string retCode = 2;
- if (!this->_internal_retcode().empty()) {
- const std::string& _s = this->_internal_retcode();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.OpenReply.retCode");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- // string retContext = 3;
- if (!this->_internal_retcontext().empty()) {
- const std::string& _s = this->_internal_retcontext();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.OpenReply.retContext");
- target = stream->WriteStringMaybeAliased(3, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Device.V3.OpenReply)
- return target;
- }
- ::size_t OpenReply::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Device.V3.OpenReply)
- ::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(reinterpret_cast<const void*>(this));
- // string message = 1;
- if (!this->_internal_message().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_message());
- }
- // string retCode = 2;
- if (!this->_internal_retcode().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_retcode());
- }
- // string retContext = 3;
- if (!this->_internal_retcontext().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_retcontext());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- void OpenReply::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
- auto* const _this = static_cast<OpenReply*>(&to_msg);
- auto& from = static_cast<const OpenReply&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:Device.V3.OpenReply)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_message().empty()) {
- _this->_internal_set_message(from._internal_message());
- }
- if (!from._internal_retcode().empty()) {
- _this->_internal_set_retcode(from._internal_retcode());
- }
- if (!from._internal_retcontext().empty()) {
- _this->_internal_set_retcontext(from._internal_retcontext());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void OpenReply::CopyFrom(const OpenReply& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Device.V3.OpenReply)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void OpenReply::InternalSwap(OpenReply* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.retcode_, &other->_impl_.retcode_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.retcontext_, &other->_impl_.retcontext_, arena);
- }
- ::google::protobuf::Metadata OpenReply::GetMetadata() const {
- return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
- }
- // ===================================================================
- class DoRequest::_Internal {
- public:
- };
- DoRequest::DoRequest(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:Device.V3.DoRequest)
- }
- inline PROTOBUF_NDEBUG_INLINE DoRequest::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from, const ::Device::V3::DoRequest& from_msg)
- : deviceuri_(arena, from.deviceuri_),
- reqname_(arena, from.reqname_),
- reqparam_(arena, from.reqparam_),
- reqtransaction_(arena, from.reqtransaction_),
- reqclientid_(arena, from.reqclientid_),
- _cached_size_{0} {}
- DoRequest::DoRequest(
- ::google::protobuf::Arena* arena,
- const DoRequest& from)
- : ::google::protobuf::Message(arena) {
- DoRequest* 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:Device.V3.DoRequest)
- }
- inline PROTOBUF_NDEBUG_INLINE DoRequest::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : deviceuri_(arena),
- reqname_(arena),
- reqparam_(arena),
- reqtransaction_(arena),
- reqclientid_(arena),
- _cached_size_{0} {}
- inline void DoRequest::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- DoRequest::~DoRequest() {
- // @@protoc_insertion_point(destructor:Device.V3.DoRequest)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void DoRequest::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.deviceuri_.Destroy();
- _impl_.reqname_.Destroy();
- _impl_.reqparam_.Destroy();
- _impl_.reqtransaction_.Destroy();
- _impl_.reqclientid_.Destroy();
- _impl_.~Impl_();
- }
- const ::google::protobuf::MessageLite::ClassData*
- DoRequest::GetClassData() const {
- PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
- ClassDataFull _data_ = {
- {
- &_table_.header,
- nullptr, // OnDemandRegisterArenaDtor
- nullptr, // IsInitialized
- PROTOBUF_FIELD_OFFSET(DoRequest, _impl_._cached_size_),
- false,
- },
- &DoRequest::MergeImpl,
- &DoRequest::kDescriptorMethods,
- &descriptor_table_device_2fv3_2fdevice_2dc_2eproto,
- nullptr, // tracker
- };
- ::google::protobuf::internal::PrefetchToLocalCache(&_data_);
- ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table);
- return _data_.base();
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<3, 5, 0, 77, 2> DoRequest::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 5, 56, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967264, // skipmap
- offsetof(decltype(_table_), field_entries),
- 5, // num_field_entries
- 0, // num_aux_entries
- offsetof(decltype(_table_), field_names), // no aux_entries
- &_DoRequest_default_instance_._instance,
- nullptr, // post_loop_handler
- ::_pbi::TcParser::GenericFallback, // fallback
- #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
- ::_pbi::TcParser::GetTable<::Device::V3::DoRequest>(), // to_prefetch
- #endif // PROTOBUF_PREFETCH_PARSE_TABLE
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- // string deviceUri = 1;
- {::_pbi::TcParser::FastUS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.deviceuri_)}},
- // string reqName = 2;
- {::_pbi::TcParser::FastUS1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.reqname_)}},
- // string reqParam = 3;
- {::_pbi::TcParser::FastUS1,
- {26, 63, 0, PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.reqparam_)}},
- // string reqTransaction = 4;
- {::_pbi::TcParser::FastUS1,
- {34, 63, 0, PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.reqtransaction_)}},
- // string reqClientID = 5;
- {::_pbi::TcParser::FastUS1,
- {42, 63, 0, PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.reqclientid_)}},
- {::_pbi::TcParser::MiniParse, {}},
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // string deviceUri = 1;
- {PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.deviceuri_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string reqName = 2;
- {PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.reqname_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string reqParam = 3;
- {PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.reqparam_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string reqTransaction = 4;
- {PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.reqtransaction_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string reqClientID = 5;
- {PROTOBUF_FIELD_OFFSET(DoRequest, _impl_.reqclientid_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- }},
- // no aux_entries
- {{
- "\23\11\7\10\16\13\0\0"
- "Device.V3.DoRequest"
- "deviceUri"
- "reqName"
- "reqParam"
- "reqTransaction"
- "reqClientID"
- }},
- };
- PROTOBUF_NOINLINE void DoRequest::Clear() {
- // @@protoc_insertion_point(message_clear_start:Device.V3.DoRequest)
- ::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_.deviceuri_.ClearToEmpty();
- _impl_.reqname_.ClearToEmpty();
- _impl_.reqparam_.ClearToEmpty();
- _impl_.reqtransaction_.ClearToEmpty();
- _impl_.reqclientid_.ClearToEmpty();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- ::uint8_t* DoRequest::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:Device.V3.DoRequest)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string deviceUri = 1;
- if (!this->_internal_deviceuri().empty()) {
- const std::string& _s = this->_internal_deviceuri();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoRequest.deviceUri");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // string reqName = 2;
- if (!this->_internal_reqname().empty()) {
- const std::string& _s = this->_internal_reqname();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoRequest.reqName");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- // string reqParam = 3;
- if (!this->_internal_reqparam().empty()) {
- const std::string& _s = this->_internal_reqparam();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoRequest.reqParam");
- target = stream->WriteStringMaybeAliased(3, _s, target);
- }
- // string reqTransaction = 4;
- if (!this->_internal_reqtransaction().empty()) {
- const std::string& _s = this->_internal_reqtransaction();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoRequest.reqTransaction");
- target = stream->WriteStringMaybeAliased(4, _s, target);
- }
- // string reqClientID = 5;
- if (!this->_internal_reqclientid().empty()) {
- const std::string& _s = this->_internal_reqclientid();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoRequest.reqClientID");
- target = stream->WriteStringMaybeAliased(5, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Device.V3.DoRequest)
- return target;
- }
- ::size_t DoRequest::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Device.V3.DoRequest)
- ::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(reinterpret_cast<const void*>(this));
- // string deviceUri = 1;
- if (!this->_internal_deviceuri().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_deviceuri());
- }
- // string reqName = 2;
- if (!this->_internal_reqname().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_reqname());
- }
- // string reqParam = 3;
- if (!this->_internal_reqparam().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_reqparam());
- }
- // string reqTransaction = 4;
- if (!this->_internal_reqtransaction().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_reqtransaction());
- }
- // string reqClientID = 5;
- if (!this->_internal_reqclientid().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_reqclientid());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- void DoRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
- auto* const _this = static_cast<DoRequest*>(&to_msg);
- auto& from = static_cast<const DoRequest&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:Device.V3.DoRequest)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_deviceuri().empty()) {
- _this->_internal_set_deviceuri(from._internal_deviceuri());
- }
- if (!from._internal_reqname().empty()) {
- _this->_internal_set_reqname(from._internal_reqname());
- }
- if (!from._internal_reqparam().empty()) {
- _this->_internal_set_reqparam(from._internal_reqparam());
- }
- if (!from._internal_reqtransaction().empty()) {
- _this->_internal_set_reqtransaction(from._internal_reqtransaction());
- }
- if (!from._internal_reqclientid().empty()) {
- _this->_internal_set_reqclientid(from._internal_reqclientid());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void DoRequest::CopyFrom(const DoRequest& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Device.V3.DoRequest)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DoRequest::InternalSwap(DoRequest* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.deviceuri_, &other->_impl_.deviceuri_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reqname_, &other->_impl_.reqname_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reqparam_, &other->_impl_.reqparam_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reqtransaction_, &other->_impl_.reqtransaction_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reqclientid_, &other->_impl_.reqclientid_, arena);
- }
- ::google::protobuf::Metadata DoRequest::GetMetadata() const {
- return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
- }
- // ===================================================================
- class DoResponse::_Internal {
- public:
- };
- DoResponse::DoResponse(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:Device.V3.DoResponse)
- }
- inline PROTOBUF_NDEBUG_INLINE DoResponse::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from, const ::Device::V3::DoResponse& from_msg)
- : deviceuri_(arena, from.deviceuri_),
- retcode_(arena, from.retcode_),
- reqname_(arena, from.reqname_),
- respresult_(arena, from.respresult_),
- reqtransaction_(arena, from.reqtransaction_),
- retcontext_(arena, from.retcontext_),
- _cached_size_{0} {}
- DoResponse::DoResponse(
- ::google::protobuf::Arena* arena,
- const DoResponse& from)
- : ::google::protobuf::Message(arena) {
- DoResponse* 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:Device.V3.DoResponse)
- }
- inline PROTOBUF_NDEBUG_INLINE DoResponse::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : deviceuri_(arena),
- retcode_(arena),
- reqname_(arena),
- respresult_(arena),
- reqtransaction_(arena),
- retcontext_(arena),
- _cached_size_{0} {}
- inline void DoResponse::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- DoResponse::~DoResponse() {
- // @@protoc_insertion_point(destructor:Device.V3.DoResponse)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void DoResponse::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.deviceuri_.Destroy();
- _impl_.retcode_.Destroy();
- _impl_.reqname_.Destroy();
- _impl_.respresult_.Destroy();
- _impl_.reqtransaction_.Destroy();
- _impl_.retcontext_.Destroy();
- _impl_.~Impl_();
- }
- const ::google::protobuf::MessageLite::ClassData*
- DoResponse::GetClassData() const {
- PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite::
- ClassDataFull _data_ = {
- {
- &_table_.header,
- nullptr, // OnDemandRegisterArenaDtor
- nullptr, // IsInitialized
- PROTOBUF_FIELD_OFFSET(DoResponse, _impl_._cached_size_),
- false,
- },
- &DoResponse::MergeImpl,
- &DoResponse::kDescriptorMethods,
- &descriptor_table_device_2fv3_2fdevice_2dc_2eproto,
- nullptr, // tracker
- };
- ::google::protobuf::internal::PrefetchToLocalCache(&_data_);
- ::google::protobuf::internal::PrefetchToLocalCache(_data_.tc_table);
- return _data_.base();
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<3, 6, 0, 86, 2> DoResponse::_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
- &_DoResponse_default_instance_._instance,
- nullptr, // post_loop_handler
- ::_pbi::TcParser::GenericFallback, // fallback
- #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
- ::_pbi::TcParser::GetTable<::Device::V3::DoResponse>(), // to_prefetch
- #endif // PROTOBUF_PREFETCH_PARSE_TABLE
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- // string deviceUri = 1;
- {::_pbi::TcParser::FastUS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.deviceuri_)}},
- // string retCode = 2;
- {::_pbi::TcParser::FastUS1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.retcode_)}},
- // string reqName = 3;
- {::_pbi::TcParser::FastUS1,
- {26, 63, 0, PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.reqname_)}},
- // string respResult = 4;
- {::_pbi::TcParser::FastUS1,
- {34, 63, 0, PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.respresult_)}},
- // string reqTransaction = 5;
- {::_pbi::TcParser::FastUS1,
- {42, 63, 0, PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.reqtransaction_)}},
- // string retContext = 6;
- {::_pbi::TcParser::FastUS1,
- {50, 63, 0, PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.retcontext_)}},
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // string deviceUri = 1;
- {PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.deviceuri_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string retCode = 2;
- {PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.retcode_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string reqName = 3;
- {PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.reqname_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string respResult = 4;
- {PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.respresult_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string reqTransaction = 5;
- {PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.reqtransaction_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // string retContext = 6;
- {PROTOBUF_FIELD_OFFSET(DoResponse, _impl_.retcontext_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- }},
- // no aux_entries
- {{
- "\24\11\7\7\12\16\12\0"
- "Device.V3.DoResponse"
- "deviceUri"
- "retCode"
- "reqName"
- "respResult"
- "reqTransaction"
- "retContext"
- }},
- };
- PROTOBUF_NOINLINE void DoResponse::Clear() {
- // @@protoc_insertion_point(message_clear_start:Device.V3.DoResponse)
- ::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_.deviceuri_.ClearToEmpty();
- _impl_.retcode_.ClearToEmpty();
- _impl_.reqname_.ClearToEmpty();
- _impl_.respresult_.ClearToEmpty();
- _impl_.reqtransaction_.ClearToEmpty();
- _impl_.retcontext_.ClearToEmpty();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- ::uint8_t* DoResponse::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:Device.V3.DoResponse)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string deviceUri = 1;
- if (!this->_internal_deviceuri().empty()) {
- const std::string& _s = this->_internal_deviceuri();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoResponse.deviceUri");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // string retCode = 2;
- if (!this->_internal_retcode().empty()) {
- const std::string& _s = this->_internal_retcode();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoResponse.retCode");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- // string reqName = 3;
- if (!this->_internal_reqname().empty()) {
- const std::string& _s = this->_internal_reqname();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoResponse.reqName");
- target = stream->WriteStringMaybeAliased(3, _s, target);
- }
- // string respResult = 4;
- if (!this->_internal_respresult().empty()) {
- const std::string& _s = this->_internal_respresult();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoResponse.respResult");
- target = stream->WriteStringMaybeAliased(4, _s, target);
- }
- // string reqTransaction = 5;
- if (!this->_internal_reqtransaction().empty()) {
- const std::string& _s = this->_internal_reqtransaction();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoResponse.reqTransaction");
- target = stream->WriteStringMaybeAliased(5, _s, target);
- }
- // string retContext = 6;
- if (!this->_internal_retcontext().empty()) {
- const std::string& _s = this->_internal_retcontext();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Device.V3.DoResponse.retContext");
- target = stream->WriteStringMaybeAliased(6, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Device.V3.DoResponse)
- return target;
- }
- ::size_t DoResponse::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Device.V3.DoResponse)
- ::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(reinterpret_cast<const void*>(this));
- // string deviceUri = 1;
- if (!this->_internal_deviceuri().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_deviceuri());
- }
- // string retCode = 2;
- if (!this->_internal_retcode().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_retcode());
- }
- // string reqName = 3;
- if (!this->_internal_reqname().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_reqname());
- }
- // string respResult = 4;
- if (!this->_internal_respresult().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_respresult());
- }
- // string reqTransaction = 5;
- if (!this->_internal_reqtransaction().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_reqtransaction());
- }
- // string retContext = 6;
- if (!this->_internal_retcontext().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_retcontext());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- void DoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
- auto* const _this = static_cast<DoResponse*>(&to_msg);
- auto& from = static_cast<const DoResponse&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:Device.V3.DoResponse)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_deviceuri().empty()) {
- _this->_internal_set_deviceuri(from._internal_deviceuri());
- }
- if (!from._internal_retcode().empty()) {
- _this->_internal_set_retcode(from._internal_retcode());
- }
- if (!from._internal_reqname().empty()) {
- _this->_internal_set_reqname(from._internal_reqname());
- }
- if (!from._internal_respresult().empty()) {
- _this->_internal_set_respresult(from._internal_respresult());
- }
- if (!from._internal_reqtransaction().empty()) {
- _this->_internal_set_reqtransaction(from._internal_reqtransaction());
- }
- if (!from._internal_retcontext().empty()) {
- _this->_internal_set_retcontext(from._internal_retcontext());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void DoResponse::CopyFrom(const DoResponse& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Device.V3.DoResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DoResponse::InternalSwap(DoResponse* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.deviceuri_, &other->_impl_.deviceuri_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.retcode_, &other->_impl_.retcode_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reqname_, &other->_impl_.reqname_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.respresult_, &other->_impl_.respresult_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reqtransaction_, &other->_impl_.reqtransaction_, arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.retcontext_, &other->_impl_.retcontext_, arena);
- }
- ::google::protobuf::Metadata DoResponse::GetMetadata() const {
- return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace V3
- } // namespace Device
- 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_device_2fv3_2fdevice_2dc_2eproto),
- ::std::false_type{});
- #include "google/protobuf/port_undef.inc"
|