// Generated by the protocol buffer compiler. DO NOT EDIT! // source: commsg.proto #include "commsg.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include PROTOBUF_PRAGMA_INIT_SEG namespace protomsg { constexpr SdkmsgWithTask::SdkmsgWithTask( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : ipcid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , sdktype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , sdkdata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} struct SdkmsgWithTaskDefaultTypeInternal { constexpr SdkmsgWithTaskDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~SdkmsgWithTaskDefaultTypeInternal() {} union { SdkmsgWithTask _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SdkmsgWithTaskDefaultTypeInternal _SdkmsgWithTask_default_instance_; constexpr TaskLabel::TaskLabel( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : sdkinfos_() , taskid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , taskname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , index_(0){} struct TaskLabelDefaultTypeInternal { constexpr TaskLabelDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~TaskLabelDefaultTypeInternal() {} union { TaskLabel _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TaskLabelDefaultTypeInternal _TaskLabel_default_instance_; constexpr SdkMessage::SdkMessage( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : cid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , caddr_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , tasklab_(nullptr) , push_(nullptr){} struct SdkMessageDefaultTypeInternal { constexpr SdkMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~SdkMessageDefaultTypeInternal() {} union { SdkMessage _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SdkMessageDefaultTypeInternal _SdkMessage_default_instance_; constexpr recvmsg::recvmsg( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , addr_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , picdata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} struct recvmsgDefaultTypeInternal { constexpr recvmsgDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~recvmsgDefaultTypeInternal() {} union { recvmsg _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT recvmsgDefaultTypeInternal _recvmsg_default_instance_; constexpr RuleMessage::RuleMessage( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : taskid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , taskname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , msgtype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , sdkmsg_(nullptr) , alarmmsg_(nullptr){} struct RuleMessageDefaultTypeInternal { constexpr RuleMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~RuleMessageDefaultTypeInternal() {} union { RuleMessage _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RuleMessageDefaultTypeInternal _RuleMessage_default_instance_; } // namespace protomsg static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_commsg_2eproto[5]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_commsg_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_commsg_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_commsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protomsg::SdkmsgWithTask, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::protomsg::SdkmsgWithTask, ipcid_), PROTOBUF_FIELD_OFFSET(::protomsg::SdkmsgWithTask, sdktype_), PROTOBUF_FIELD_OFFSET(::protomsg::SdkmsgWithTask, sdkdata_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protomsg::TaskLabel, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::protomsg::TaskLabel, taskid_), PROTOBUF_FIELD_OFFSET(::protomsg::TaskLabel, taskname_), PROTOBUF_FIELD_OFFSET(::protomsg::TaskLabel, sdkinfos_), PROTOBUF_FIELD_OFFSET(::protomsg::TaskLabel, index_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protomsg::SdkMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::protomsg::SdkMessage, cid_), PROTOBUF_FIELD_OFFSET(::protomsg::SdkMessage, caddr_), PROTOBUF_FIELD_OFFSET(::protomsg::SdkMessage, tasklab_), PROTOBUF_FIELD_OFFSET(::protomsg::SdkMessage, data_), PROTOBUF_FIELD_OFFSET(::protomsg::SdkMessage, push_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protomsg::recvmsg, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::protomsg::recvmsg, id_), PROTOBUF_FIELD_OFFSET(::protomsg::recvmsg, addr_), PROTOBUF_FIELD_OFFSET(::protomsg::recvmsg, picdata_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::protomsg::RuleMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::protomsg::RuleMessage, taskid_), PROTOBUF_FIELD_OFFSET(::protomsg::RuleMessage, taskname_), PROTOBUF_FIELD_OFFSET(::protomsg::RuleMessage, msgtype_), PROTOBUF_FIELD_OFFSET(::protomsg::RuleMessage, sdkmsg_), PROTOBUF_FIELD_OFFSET(::protomsg::RuleMessage, alarmmsg_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::protomsg::SdkmsgWithTask)}, { 8, -1, sizeof(::protomsg::TaskLabel)}, { 17, -1, sizeof(::protomsg::SdkMessage)}, { 27, -1, sizeof(::protomsg::recvmsg)}, { 35, -1, sizeof(::protomsg::RuleMessage)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::protomsg::_SdkmsgWithTask_default_instance_), reinterpret_cast(&::protomsg::_TaskLabel_default_instance_), reinterpret_cast(&::protomsg::_SdkMessage_default_instance_), reinterpret_cast(&::protomsg::_recvmsg_default_instance_), reinterpret_cast(&::protomsg::_RuleMessage_default_instance_), }; const char descriptor_table_protodef_commsg_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\014commsg.proto\022\010protomsg\032\016protomsg.proto" "\032\013alarm.proto\"A\n\016SdkmsgWithTask\022\r\n\005ipcid" "\030\001 \001(\t\022\017\n\007sdktype\030\002 \001(\t\022\017\n\007sdkdata\030\004 \001(\014" "\"h\n\tTaskLabel\022\016\n\006taskid\030\001 \001(\t\022\020\n\010tasknam" "e\030\002 \001(\t\022*\n\010sdkinfos\030\003 \003(\0132\030.protomsg.Sdk" "msgWithTask\022\r\n\005index\030\004 \001(\005\"\200\001\n\nSdkMessag" "e\022\013\n\003cid\030\001 \001(\t\022\r\n\005caddr\030\002 \001(\t\022$\n\007tasklab" "\030\003 \001(\0132\023.protomsg.TaskLabel\022\014\n\004data\030\004 \001(" "\014\022\"\n\004push\030\005 \001(\0132\024.protomsg.PushAttach\"4\n" "\007recvmsg\022\n\n\002id\030\001 \001(\t\022\014\n\004addr\030\002 \001(\t\022\017\n\007pi" "cdata\030\003 \001(\014\"\220\001\n\013RuleMessage\022\016\n\006taskid\030\001 " "\001(\t\022\020\n\010taskname\030\002 \001(\t\022\017\n\007msgtype\030\003 \001(\t\022$" "\n\006sdkmsg\030\004 \001(\0132\024.protomsg.SdkMessage\022(\n\010" "alarmmsg\030\005 \001(\0132\026.protomsg.AlarmMessageb\006" "proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_commsg_2eproto_deps[2] = { &::descriptor_table_alarm_2eproto, &::descriptor_table_protomsg_2eproto, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_commsg_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_commsg_2eproto = { false, false, 566, descriptor_table_protodef_commsg_2eproto, "commsg.proto", &descriptor_table_commsg_2eproto_once, descriptor_table_commsg_2eproto_deps, 2, 5, schemas, file_default_instances, TableStruct_commsg_2eproto::offsets, file_level_metadata_commsg_2eproto, file_level_enum_descriptors_commsg_2eproto, file_level_service_descriptors_commsg_2eproto, }; PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_commsg_2eproto_getter() { return &descriptor_table_commsg_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_commsg_2eproto(&descriptor_table_commsg_2eproto); namespace protomsg { // =================================================================== class SdkmsgWithTask::_Internal { public: }; SdkmsgWithTask::SdkmsgWithTask(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:protomsg.SdkmsgWithTask) } SdkmsgWithTask::SdkmsgWithTask(const SdkmsgWithTask& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ipcid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_ipcid().empty()) { ipcid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ipcid(), GetArenaForAllocation()); } sdktype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_sdktype().empty()) { sdktype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdktype(), GetArenaForAllocation()); } sdkdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_sdkdata().empty()) { sdkdata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdkdata(), GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:protomsg.SdkmsgWithTask) } inline void SdkmsgWithTask::SharedCtor() { ipcid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); sdktype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); sdkdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } SdkmsgWithTask::~SdkmsgWithTask() { // @@protoc_insertion_point(destructor:protomsg.SdkmsgWithTask) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SdkmsgWithTask::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); ipcid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); sdktype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); sdkdata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void SdkmsgWithTask::ArenaDtor(void* object) { SdkmsgWithTask* _this = reinterpret_cast< SdkmsgWithTask* >(object); (void)_this; } void SdkmsgWithTask::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void SdkmsgWithTask::SetCachedSize(int size) const { _cached_size_.Set(size); } void SdkmsgWithTask::Clear() { // @@protoc_insertion_point(message_clear_start:protomsg.SdkmsgWithTask) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; ipcid_.ClearToEmpty(); sdktype_.ClearToEmpty(); sdkdata_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SdkmsgWithTask::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string ipcid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_ipcid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.SdkmsgWithTask.ipcid")); CHK_(ptr); } else goto handle_unusual; continue; // string sdktype = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_sdktype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.SdkmsgWithTask.sdktype")); CHK_(ptr); } else goto handle_unusual; continue; // bytes sdkdata = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_sdkdata(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* SdkmsgWithTask::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:protomsg.SdkmsgWithTask) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string ipcid = 1; if (!this->_internal_ipcid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_ipcid().data(), static_cast(this->_internal_ipcid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.SdkmsgWithTask.ipcid"); target = stream->WriteStringMaybeAliased( 1, this->_internal_ipcid(), target); } // string sdktype = 2; if (!this->_internal_sdktype().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_sdktype().data(), static_cast(this->_internal_sdktype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.SdkmsgWithTask.sdktype"); target = stream->WriteStringMaybeAliased( 2, this->_internal_sdktype(), target); } // bytes sdkdata = 4; if (!this->_internal_sdkdata().empty()) { target = stream->WriteBytesMaybeAliased( 4, this->_internal_sdkdata(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:protomsg.SdkmsgWithTask) return target; } size_t SdkmsgWithTask::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protomsg.SdkmsgWithTask) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string ipcid = 1; if (!this->_internal_ipcid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_ipcid()); } // string sdktype = 2; if (!this->_internal_sdktype().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sdktype()); } // bytes sdkdata = 4; if (!this->_internal_sdkdata().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_sdkdata()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SdkmsgWithTask::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SdkmsgWithTask::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SdkmsgWithTask::GetClassData() const { return &_class_data_; } void SdkmsgWithTask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast(to)->MergeFrom( static_cast(from)); } void SdkmsgWithTask::MergeFrom(const SdkmsgWithTask& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protomsg.SdkmsgWithTask) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_ipcid().empty()) { _internal_set_ipcid(from._internal_ipcid()); } if (!from._internal_sdktype().empty()) { _internal_set_sdktype(from._internal_sdktype()); } if (!from._internal_sdkdata().empty()) { _internal_set_sdkdata(from._internal_sdkdata()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SdkmsgWithTask::CopyFrom(const SdkmsgWithTask& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protomsg.SdkmsgWithTask) if (&from == this) return; Clear(); MergeFrom(from); } bool SdkmsgWithTask::IsInitialized() const { return true; } void SdkmsgWithTask::InternalSwap(SdkmsgWithTask* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &ipcid_, GetArenaForAllocation(), &other->ipcid_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &sdktype_, GetArenaForAllocation(), &other->sdktype_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &sdkdata_, GetArenaForAllocation(), &other->sdkdata_, other->GetArenaForAllocation() ); } ::PROTOBUF_NAMESPACE_ID::Metadata SdkmsgWithTask::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_commsg_2eproto_getter, &descriptor_table_commsg_2eproto_once, file_level_metadata_commsg_2eproto[0]); } // =================================================================== class TaskLabel::_Internal { public: }; TaskLabel::TaskLabel(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), sdkinfos_(arena) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:protomsg.TaskLabel) } TaskLabel::TaskLabel(const TaskLabel& from) : ::PROTOBUF_NAMESPACE_ID::Message(), sdkinfos_(from.sdkinfos_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); taskid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_taskid().empty()) { taskid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_taskid(), GetArenaForAllocation()); } taskname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_taskname().empty()) { taskname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_taskname(), GetArenaForAllocation()); } index_ = from.index_; // @@protoc_insertion_point(copy_constructor:protomsg.TaskLabel) } inline void TaskLabel::SharedCtor() { taskid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); taskname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); index_ = 0; } TaskLabel::~TaskLabel() { // @@protoc_insertion_point(destructor:protomsg.TaskLabel) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void TaskLabel::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); taskid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); taskname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void TaskLabel::ArenaDtor(void* object) { TaskLabel* _this = reinterpret_cast< TaskLabel* >(object); (void)_this; } void TaskLabel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void TaskLabel::SetCachedSize(int size) const { _cached_size_.Set(size); } void TaskLabel::Clear() { // @@protoc_insertion_point(message_clear_start:protomsg.TaskLabel) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; sdkinfos_.Clear(); taskid_.ClearToEmpty(); taskname_.ClearToEmpty(); index_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TaskLabel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string taskid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_taskid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.TaskLabel.taskid")); CHK_(ptr); } else goto handle_unusual; continue; // string taskname = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_taskname(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.TaskLabel.taskname")); CHK_(ptr); } else goto handle_unusual; continue; // repeated .protomsg.SdkmsgWithTask sdkinfos = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_sdkinfos(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); } else goto handle_unusual; continue; // int32 index = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* TaskLabel::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:protomsg.TaskLabel) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string taskid = 1; if (!this->_internal_taskid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_taskid().data(), static_cast(this->_internal_taskid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.TaskLabel.taskid"); target = stream->WriteStringMaybeAliased( 1, this->_internal_taskid(), target); } // string taskname = 2; if (!this->_internal_taskname().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_taskname().data(), static_cast(this->_internal_taskname().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.TaskLabel.taskname"); target = stream->WriteStringMaybeAliased( 2, this->_internal_taskname(), target); } // repeated .protomsg.SdkmsgWithTask sdkinfos = 3; for (unsigned int i = 0, n = static_cast(this->_internal_sdkinfos_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(3, this->_internal_sdkinfos(i), target, stream); } // int32 index = 4; if (this->_internal_index() != 0) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_index(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:protomsg.TaskLabel) return target; } size_t TaskLabel::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protomsg.TaskLabel) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .protomsg.SdkmsgWithTask sdkinfos = 3; total_size += 1UL * this->_internal_sdkinfos_size(); for (const auto& msg : this->sdkinfos_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // string taskid = 1; if (!this->_internal_taskid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_taskid()); } // string taskname = 2; if (!this->_internal_taskname().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_taskname()); } // int32 index = 4; if (this->_internal_index() != 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_index()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TaskLabel::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, TaskLabel::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TaskLabel::GetClassData() const { return &_class_data_; } void TaskLabel::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast(to)->MergeFrom( static_cast(from)); } void TaskLabel::MergeFrom(const TaskLabel& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protomsg.TaskLabel) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; sdkinfos_.MergeFrom(from.sdkinfos_); if (!from._internal_taskid().empty()) { _internal_set_taskid(from._internal_taskid()); } if (!from._internal_taskname().empty()) { _internal_set_taskname(from._internal_taskname()); } if (from._internal_index() != 0) { _internal_set_index(from._internal_index()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TaskLabel::CopyFrom(const TaskLabel& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protomsg.TaskLabel) if (&from == this) return; Clear(); MergeFrom(from); } bool TaskLabel::IsInitialized() const { return true; } void TaskLabel::InternalSwap(TaskLabel* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); sdkinfos_.InternalSwap(&other->sdkinfos_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &taskid_, GetArenaForAllocation(), &other->taskid_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &taskname_, GetArenaForAllocation(), &other->taskname_, other->GetArenaForAllocation() ); swap(index_, other->index_); } ::PROTOBUF_NAMESPACE_ID::Metadata TaskLabel::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_commsg_2eproto_getter, &descriptor_table_commsg_2eproto_once, file_level_metadata_commsg_2eproto[1]); } // =================================================================== class SdkMessage::_Internal { public: static const ::protomsg::TaskLabel& tasklab(const SdkMessage* msg); static const ::protomsg::PushAttach& push(const SdkMessage* msg); }; const ::protomsg::TaskLabel& SdkMessage::_Internal::tasklab(const SdkMessage* msg) { return *msg->tasklab_; } const ::protomsg::PushAttach& SdkMessage::_Internal::push(const SdkMessage* msg) { return *msg->push_; } void SdkMessage::clear_push() { if (GetArenaForAllocation() == nullptr && push_ != nullptr) { delete push_; } push_ = nullptr; } SdkMessage::SdkMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:protomsg.SdkMessage) } SdkMessage::SdkMessage(const SdkMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); cid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_cid().empty()) { cid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_cid(), GetArenaForAllocation()); } caddr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_caddr().empty()) { caddr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caddr(), GetArenaForAllocation()); } data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_data().empty()) { data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(), GetArenaForAllocation()); } if (from._internal_has_tasklab()) { tasklab_ = new ::protomsg::TaskLabel(*from.tasklab_); } else { tasklab_ = nullptr; } if (from._internal_has_push()) { push_ = new ::protomsg::PushAttach(*from.push_); } else { push_ = nullptr; } // @@protoc_insertion_point(copy_constructor:protomsg.SdkMessage) } inline void SdkMessage::SharedCtor() { cid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); caddr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&tasklab_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&push_) - reinterpret_cast(&tasklab_)) + sizeof(push_)); } SdkMessage::~SdkMessage() { // @@protoc_insertion_point(destructor:protomsg.SdkMessage) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SdkMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); cid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); caddr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete tasklab_; if (this != internal_default_instance()) delete push_; } void SdkMessage::ArenaDtor(void* object) { SdkMessage* _this = reinterpret_cast< SdkMessage* >(object); (void)_this; } void SdkMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void SdkMessage::SetCachedSize(int size) const { _cached_size_.Set(size); } void SdkMessage::Clear() { // @@protoc_insertion_point(message_clear_start:protomsg.SdkMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cid_.ClearToEmpty(); caddr_.ClearToEmpty(); data_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && tasklab_ != nullptr) { delete tasklab_; } tasklab_ = nullptr; if (GetArenaForAllocation() == nullptr && push_ != nullptr) { delete push_; } push_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SdkMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string cid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_cid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.SdkMessage.cid")); CHK_(ptr); } else goto handle_unusual; continue; // string caddr = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_caddr(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.SdkMessage.caddr")); CHK_(ptr); } else goto handle_unusual; continue; // .protomsg.TaskLabel tasklab = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_tasklab(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // bytes data = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_data(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // .protomsg.PushAttach push = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_push(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* SdkMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:protomsg.SdkMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string cid = 1; if (!this->_internal_cid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_cid().data(), static_cast(this->_internal_cid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.SdkMessage.cid"); target = stream->WriteStringMaybeAliased( 1, this->_internal_cid(), target); } // string caddr = 2; if (!this->_internal_caddr().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_caddr().data(), static_cast(this->_internal_caddr().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.SdkMessage.caddr"); target = stream->WriteStringMaybeAliased( 2, this->_internal_caddr(), target); } // .protomsg.TaskLabel tasklab = 3; if (this->_internal_has_tasklab()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 3, _Internal::tasklab(this), target, stream); } // bytes data = 4; if (!this->_internal_data().empty()) { target = stream->WriteBytesMaybeAliased( 4, this->_internal_data(), target); } // .protomsg.PushAttach push = 5; if (this->_internal_has_push()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 5, _Internal::push(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:protomsg.SdkMessage) return target; } size_t SdkMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protomsg.SdkMessage) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string cid = 1; if (!this->_internal_cid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_cid()); } // string caddr = 2; if (!this->_internal_caddr().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_caddr()); } // bytes data = 4; if (!this->_internal_data().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_data()); } // .protomsg.TaskLabel tasklab = 3; if (this->_internal_has_tasklab()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *tasklab_); } // .protomsg.PushAttach push = 5; if (this->_internal_has_push()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *push_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SdkMessage::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, SdkMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SdkMessage::GetClassData() const { return &_class_data_; } void SdkMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast(to)->MergeFrom( static_cast(from)); } void SdkMessage::MergeFrom(const SdkMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protomsg.SdkMessage) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_cid().empty()) { _internal_set_cid(from._internal_cid()); } if (!from._internal_caddr().empty()) { _internal_set_caddr(from._internal_caddr()); } if (!from._internal_data().empty()) { _internal_set_data(from._internal_data()); } if (from._internal_has_tasklab()) { _internal_mutable_tasklab()->::protomsg::TaskLabel::MergeFrom(from._internal_tasklab()); } if (from._internal_has_push()) { _internal_mutable_push()->::protomsg::PushAttach::MergeFrom(from._internal_push()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SdkMessage::CopyFrom(const SdkMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protomsg.SdkMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool SdkMessage::IsInitialized() const { return true; } void SdkMessage::InternalSwap(SdkMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &cid_, GetArenaForAllocation(), &other->cid_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &caddr_, GetArenaForAllocation(), &other->caddr_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &data_, GetArenaForAllocation(), &other->data_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SdkMessage, push_) + sizeof(SdkMessage::push_) - PROTOBUF_FIELD_OFFSET(SdkMessage, tasklab_)>( reinterpret_cast(&tasklab_), reinterpret_cast(&other->tasklab_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SdkMessage::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_commsg_2eproto_getter, &descriptor_table_commsg_2eproto_once, file_level_metadata_commsg_2eproto[2]); } // =================================================================== class recvmsg::_Internal { public: }; recvmsg::recvmsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:protomsg.recvmsg) } recvmsg::recvmsg(const recvmsg& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_id().empty()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArenaForAllocation()); } addr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_addr().empty()) { addr_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_addr(), GetArenaForAllocation()); } picdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_picdata().empty()) { picdata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_picdata(), GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:protomsg.recvmsg) } inline void recvmsg::SharedCtor() { id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); addr_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); picdata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } recvmsg::~recvmsg() { // @@protoc_insertion_point(destructor:protomsg.recvmsg) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void recvmsg::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); addr_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); picdata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void recvmsg::ArenaDtor(void* object) { recvmsg* _this = reinterpret_cast< recvmsg* >(object); (void)_this; } void recvmsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void recvmsg::SetCachedSize(int size) const { _cached_size_.Set(size); } void recvmsg::Clear() { // @@protoc_insertion_point(message_clear_start:protomsg.recvmsg) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; id_.ClearToEmpty(); addr_.ClearToEmpty(); picdata_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* recvmsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.recvmsg.id")); CHK_(ptr); } else goto handle_unusual; continue; // string addr = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_addr(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.recvmsg.addr")); CHK_(ptr); } else goto handle_unusual; continue; // bytes picdata = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_picdata(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* recvmsg::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:protomsg.recvmsg) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string id = 1; if (!this->_internal_id().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.recvmsg.id"); target = stream->WriteStringMaybeAliased( 1, this->_internal_id(), target); } // string addr = 2; if (!this->_internal_addr().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_addr().data(), static_cast(this->_internal_addr().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.recvmsg.addr"); target = stream->WriteStringMaybeAliased( 2, this->_internal_addr(), target); } // bytes picdata = 3; if (!this->_internal_picdata().empty()) { target = stream->WriteBytesMaybeAliased( 3, this->_internal_picdata(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:protomsg.recvmsg) return target; } size_t recvmsg::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protomsg.recvmsg) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string id = 1; if (!this->_internal_id().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_id()); } // string addr = 2; if (!this->_internal_addr().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_addr()); } // bytes picdata = 3; if (!this->_internal_picdata().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_picdata()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData recvmsg::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, recvmsg::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*recvmsg::GetClassData() const { return &_class_data_; } void recvmsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast(to)->MergeFrom( static_cast(from)); } void recvmsg::MergeFrom(const recvmsg& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protomsg.recvmsg) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_id().empty()) { _internal_set_id(from._internal_id()); } if (!from._internal_addr().empty()) { _internal_set_addr(from._internal_addr()); } if (!from._internal_picdata().empty()) { _internal_set_picdata(from._internal_picdata()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void recvmsg::CopyFrom(const recvmsg& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protomsg.recvmsg) if (&from == this) return; Clear(); MergeFrom(from); } bool recvmsg::IsInitialized() const { return true; } void recvmsg::InternalSwap(recvmsg* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &id_, GetArenaForAllocation(), &other->id_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &addr_, GetArenaForAllocation(), &other->addr_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &picdata_, GetArenaForAllocation(), &other->picdata_, other->GetArenaForAllocation() ); } ::PROTOBUF_NAMESPACE_ID::Metadata recvmsg::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_commsg_2eproto_getter, &descriptor_table_commsg_2eproto_once, file_level_metadata_commsg_2eproto[3]); } // =================================================================== class RuleMessage::_Internal { public: static const ::protomsg::SdkMessage& sdkmsg(const RuleMessage* msg); static const ::protomsg::AlarmMessage& alarmmsg(const RuleMessage* msg); }; const ::protomsg::SdkMessage& RuleMessage::_Internal::sdkmsg(const RuleMessage* msg) { return *msg->sdkmsg_; } const ::protomsg::AlarmMessage& RuleMessage::_Internal::alarmmsg(const RuleMessage* msg) { return *msg->alarmmsg_; } void RuleMessage::clear_alarmmsg() { if (GetArenaForAllocation() == nullptr && alarmmsg_ != nullptr) { delete alarmmsg_; } alarmmsg_ = nullptr; } RuleMessage::RuleMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); if (!is_message_owned) { RegisterArenaDtor(arena); } // @@protoc_insertion_point(arena_constructor:protomsg.RuleMessage) } RuleMessage::RuleMessage(const RuleMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); taskid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_taskid().empty()) { taskid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_taskid(), GetArenaForAllocation()); } taskname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_taskname().empty()) { taskname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_taskname(), GetArenaForAllocation()); } msgtype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_msgtype().empty()) { msgtype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_msgtype(), GetArenaForAllocation()); } if (from._internal_has_sdkmsg()) { sdkmsg_ = new ::protomsg::SdkMessage(*from.sdkmsg_); } else { sdkmsg_ = nullptr; } if (from._internal_has_alarmmsg()) { alarmmsg_ = new ::protomsg::AlarmMessage(*from.alarmmsg_); } else { alarmmsg_ = nullptr; } // @@protoc_insertion_point(copy_constructor:protomsg.RuleMessage) } inline void RuleMessage::SharedCtor() { taskid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); taskname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); msgtype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&sdkmsg_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&alarmmsg_) - reinterpret_cast(&sdkmsg_)) + sizeof(alarmmsg_)); } RuleMessage::~RuleMessage() { // @@protoc_insertion_point(destructor:protomsg.RuleMessage) if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void RuleMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); taskid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); taskname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); msgtype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete sdkmsg_; if (this != internal_default_instance()) delete alarmmsg_; } void RuleMessage::ArenaDtor(void* object) { RuleMessage* _this = reinterpret_cast< RuleMessage* >(object); (void)_this; } void RuleMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void RuleMessage::SetCachedSize(int size) const { _cached_size_.Set(size); } void RuleMessage::Clear() { // @@protoc_insertion_point(message_clear_start:protomsg.RuleMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; taskid_.ClearToEmpty(); taskname_.ClearToEmpty(); msgtype_.ClearToEmpty(); if (GetArenaForAllocation() == nullptr && sdkmsg_ != nullptr) { delete sdkmsg_; } sdkmsg_ = nullptr; if (GetArenaForAllocation() == nullptr && alarmmsg_ != nullptr) { delete alarmmsg_; } alarmmsg_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* RuleMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); switch (tag >> 3) { // string taskid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_taskid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.RuleMessage.taskid")); CHK_(ptr); } else goto handle_unusual; continue; // string taskname = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_taskname(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.RuleMessage.taskname")); CHK_(ptr); } else goto handle_unusual; continue; // string msgtype = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_msgtype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protomsg.RuleMessage.msgtype")); CHK_(ptr); } else goto handle_unusual; continue; // .protomsg.SdkMessage sdkmsg = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_sdkmsg(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .protomsg.AlarmMessage alarmmsg = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_alarmmsg(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* RuleMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:protomsg.RuleMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string taskid = 1; if (!this->_internal_taskid().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_taskid().data(), static_cast(this->_internal_taskid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.RuleMessage.taskid"); target = stream->WriteStringMaybeAliased( 1, this->_internal_taskid(), target); } // string taskname = 2; if (!this->_internal_taskname().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_taskname().data(), static_cast(this->_internal_taskname().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.RuleMessage.taskname"); target = stream->WriteStringMaybeAliased( 2, this->_internal_taskname(), target); } // string msgtype = 3; if (!this->_internal_msgtype().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_msgtype().data(), static_cast(this->_internal_msgtype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "protomsg.RuleMessage.msgtype"); target = stream->WriteStringMaybeAliased( 3, this->_internal_msgtype(), target); } // .protomsg.SdkMessage sdkmsg = 4; if (this->_internal_has_sdkmsg()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 4, _Internal::sdkmsg(this), target, stream); } // .protomsg.AlarmMessage alarmmsg = 5; if (this->_internal_has_alarmmsg()) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 5, _Internal::alarmmsg(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:protomsg.RuleMessage) return target; } size_t RuleMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protomsg.RuleMessage) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string taskid = 1; if (!this->_internal_taskid().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_taskid()); } // string taskname = 2; if (!this->_internal_taskname().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_taskname()); } // string msgtype = 3; if (!this->_internal_msgtype().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_msgtype()); } // .protomsg.SdkMessage sdkmsg = 4; if (this->_internal_has_sdkmsg()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *sdkmsg_); } // .protomsg.AlarmMessage alarmmsg = 5; if (this->_internal_has_alarmmsg()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *alarmmsg_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RuleMessage::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, RuleMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RuleMessage::GetClassData() const { return &_class_data_; } void RuleMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from) { static_cast(to)->MergeFrom( static_cast(from)); } void RuleMessage::MergeFrom(const RuleMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protomsg.RuleMessage) GOOGLE_DCHECK_NE(&from, this); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_taskid().empty()) { _internal_set_taskid(from._internal_taskid()); } if (!from._internal_taskname().empty()) { _internal_set_taskname(from._internal_taskname()); } if (!from._internal_msgtype().empty()) { _internal_set_msgtype(from._internal_msgtype()); } if (from._internal_has_sdkmsg()) { _internal_mutable_sdkmsg()->::protomsg::SdkMessage::MergeFrom(from._internal_sdkmsg()); } if (from._internal_has_alarmmsg()) { _internal_mutable_alarmmsg()->::protomsg::AlarmMessage::MergeFrom(from._internal_alarmmsg()); } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RuleMessage::CopyFrom(const RuleMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protomsg.RuleMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool RuleMessage::IsInitialized() const { return true; } void RuleMessage::InternalSwap(RuleMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &taskid_, GetArenaForAllocation(), &other->taskid_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &taskname_, GetArenaForAllocation(), &other->taskname_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), &msgtype_, GetArenaForAllocation(), &other->msgtype_, other->GetArenaForAllocation() ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(RuleMessage, alarmmsg_) + sizeof(RuleMessage::alarmmsg_) - PROTOBUF_FIELD_OFFSET(RuleMessage, sdkmsg_)>( reinterpret_cast(&sdkmsg_), reinterpret_cast(&other->sdkmsg_)); } ::PROTOBUF_NAMESPACE_ID::Metadata RuleMessage::GetMetadata() const { return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( &descriptor_table_commsg_2eproto_getter, &descriptor_table_commsg_2eproto_once, file_level_metadata_commsg_2eproto[4]); } // @@protoc_insertion_point(namespace_scope) } // namespace protomsg PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::protomsg::SdkmsgWithTask* Arena::CreateMaybeMessage< ::protomsg::SdkmsgWithTask >(Arena* arena) { return Arena::CreateMessageInternal< ::protomsg::SdkmsgWithTask >(arena); } template<> PROTOBUF_NOINLINE ::protomsg::TaskLabel* Arena::CreateMaybeMessage< ::protomsg::TaskLabel >(Arena* arena) { return Arena::CreateMessageInternal< ::protomsg::TaskLabel >(arena); } template<> PROTOBUF_NOINLINE ::protomsg::SdkMessage* Arena::CreateMaybeMessage< ::protomsg::SdkMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::protomsg::SdkMessage >(arena); } template<> PROTOBUF_NOINLINE ::protomsg::recvmsg* Arena::CreateMaybeMessage< ::protomsg::recvmsg >(Arena* arena) { return Arena::CreateMessageInternal< ::protomsg::recvmsg >(arena); } template<> PROTOBUF_NOINLINE ::protomsg::RuleMessage* Arena::CreateMaybeMessage< ::protomsg::RuleMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::protomsg::RuleMessage >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include