// Generated by the protocol buffer compiler. DO NOT EDIT! // source: OpcMessage.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "OpcMessage.pb.h" #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace kbd_idlfile { namespace { const ::google::protobuf::Descriptor* AiPointInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* AiPointInfo_reflection_ = NULL; const ::google::protobuf::Descriptor* DiPointInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* DiPointInfo_reflection_ = NULL; const ::google::protobuf::Descriptor* PiPointInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* PiPointInfo_reflection_ = NULL; const ::google::protobuf::Descriptor* MiPointInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* MiPointInfo_reflection_ = NULL; const ::google::protobuf::Descriptor* RequestPointInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* RequestPointInfo_reflection_ = NULL; const ::google::protobuf::Descriptor* ReplyPointInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* ReplyPointInfo_reflection_ = NULL; const ::google::protobuf::EnumDescriptor* enTypeMessage_descriptor_ = NULL; } // namespace void protobuf_AssignDesc_OpcMessage_2eproto() { protobuf_AddDesc_OpcMessage_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "OpcMessage.proto"); GOOGLE_CHECK(file != NULL); AiPointInfo_descriptor_ = file->message_type(0); static const int AiPointInfo_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AiPointInfo, strpointtag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AiPointInfo, strpointdesc_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AiPointInfo, npointtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AiPointInfo, dvalue_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AiPointInfo, nstatus_), }; AiPointInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( AiPointInfo_descriptor_, AiPointInfo::default_instance_, AiPointInfo_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AiPointInfo, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AiPointInfo, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AiPointInfo)); DiPointInfo_descriptor_ = file->message_type(1); static const int DiPointInfo_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DiPointInfo, strpointtag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DiPointInfo, strpointdesc_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DiPointInfo, npointtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DiPointInfo, nvalue_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DiPointInfo, nstatus_), }; DiPointInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( DiPointInfo_descriptor_, DiPointInfo::default_instance_, DiPointInfo_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DiPointInfo, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DiPointInfo, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(DiPointInfo)); PiPointInfo_descriptor_ = file->message_type(2); static const int PiPointInfo_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PiPointInfo, strpointtag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PiPointInfo, strpointdesc_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PiPointInfo, npointtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PiPointInfo, dvalue_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PiPointInfo, nstatus_), }; PiPointInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( PiPointInfo_descriptor_, PiPointInfo::default_instance_, PiPointInfo_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PiPointInfo, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PiPointInfo, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(PiPointInfo)); MiPointInfo_descriptor_ = file->message_type(3); static const int MiPointInfo_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiPointInfo, strpointtag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiPointInfo, strpointdesc_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiPointInfo, npointtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiPointInfo, nvalue_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiPointInfo, nstatus_), }; MiPointInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( MiPointInfo_descriptor_, MiPointInfo::default_instance_, MiPointInfo_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiPointInfo, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MiPointInfo, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(MiPointInfo)); RequestPointInfo_descriptor_ = file->message_type(4); static const int RequestPointInfo_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestPointInfo, strgrouptag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestPointInfo, ndomainid_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestPointInfo, nsubsystemid_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestPointInfo, ntime_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestPointInfo, strhostname_), }; RequestPointInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( RequestPointInfo_descriptor_, RequestPointInfo::default_instance_, RequestPointInfo_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestPointInfo, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestPointInfo, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(RequestPointInfo)); ReplyPointInfo_descriptor_ = file->message_type(5); static const int ReplyPointInfo_offsets_[9] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, strgrouptag_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, aiinfo_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, piinfo_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, miinfo_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, diinfo_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, ndomainid_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, nsubsystemid_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, ntime_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, strhostname_), }; ReplyPointInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( ReplyPointInfo_descriptor_, ReplyPointInfo::default_instance_, ReplyPointInfo_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReplyPointInfo, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ReplyPointInfo)); enTypeMessage_descriptor_ = file->enum_type(0); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); inline void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_OpcMessage_2eproto); } void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( AiPointInfo_descriptor_, &AiPointInfo::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( DiPointInfo_descriptor_, &DiPointInfo::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( PiPointInfo_descriptor_, &PiPointInfo::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( MiPointInfo_descriptor_, &MiPointInfo::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( RequestPointInfo_descriptor_, &RequestPointInfo::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( ReplyPointInfo_descriptor_, &ReplyPointInfo::default_instance()); } } // namespace void protobuf_ShutdownFile_OpcMessage_2eproto() { delete AiPointInfo::default_instance_; delete AiPointInfo_reflection_; delete DiPointInfo::default_instance_; delete DiPointInfo_reflection_; delete PiPointInfo::default_instance_; delete PiPointInfo_reflection_; delete MiPointInfo::default_instance_; delete MiPointInfo_reflection_; delete RequestPointInfo::default_instance_; delete RequestPointInfo_reflection_; delete ReplyPointInfo::default_instance_; delete ReplyPointInfo_reflection_; } void protobuf_AddDesc_OpcMessage_2eproto() { static bool already_here = false; if (already_here) return; already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\020OpcMessage.proto\022\013kbd_idlfile\"m\n\013AiPoi" "ntInfo\022\023\n\013strPointTag\030\001 \002(\t\022\024\n\014strPointD" "esc\030\002 \001(\t\022\022\n\nnPointType\030\003 \002(\005\022\016\n\006dValue\030" "\004 \002(\001\022\017\n\007nStatus\030\005 \002(\005\"m\n\013DiPointInfo\022\023\n" "\013strPointTag\030\001 \002(\t\022\024\n\014strPointDesc\030\002 \001(\t" "\022\022\n\nnPointType\030\003 \002(\005\022\016\n\006nValue\030\004 \002(\005\022\017\n\007" "nStatus\030\005 \002(\005\"m\n\013PiPointInfo\022\023\n\013strPoint" "Tag\030\001 \002(\t\022\024\n\014strPointDesc\030\002 \001(\t\022\022\n\nnPoin" "tType\030\003 \002(\005\022\016\n\006dValue\030\004 \002(\001\022\017\n\007nStatus\030\005" " \002(\005\"m\n\013MiPointInfo\022\023\n\013strPointTag\030\001 \002(\t" "\022\024\n\014strPointDesc\030\002 \001(\t\022\022\n\nnPointType\030\003 \002" "(\005\022\016\n\006nValue\030\004 \002(\005\022\017\n\007nStatus\030\005 \002(\005\"t\n\020R" "equestPointInfo\022\023\n\013strGroupTag\030\001 \002(\t\022\021\n\t" "nDomainId\030\002 \002(\005\022\024\n\014nSubSystemId\030\003 \002(\005\022\r\n" "\005nTime\030\004 \001(\004\022\023\n\013strHostName\030\005 \002(\t\"\232\002\n\016Re" "plyPointInfo\022\023\n\013strGroupTag\030\001 \002(\t\022(\n\006aiI" "nfo\030\002 \003(\0132\030.kbd_idlfile.AiPointInfo\022(\n\006p" "iInfo\030\003 \003(\0132\030.kbd_idlfile.PiPointInfo\022(\n" "\006miInfo\030\004 \003(\0132\030.kbd_idlfile.MiPointInfo\022" "(\n\006diInfo\030\005 \003(\0132\030.kbd_idlfile.DiPointInf" "o\022\021\n\tnDomainId\030\006 \002(\005\022\024\n\014nSubSystemId\030\007 \002" "(\005\022\r\n\005nTime\030\010 \001(\004\022\023\n\013strHostName\030\t \002(\t*P" "\n\renTypeMessage\022\037\n\033MT_TOOLS_REQUEST_POIN" "T_DATA\020\001\022\036\n\032MT_SERVER_REPLY_POINT_DATA\020\002", 960); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "OpcMessage.proto", &protobuf_RegisterTypes); AiPointInfo::default_instance_ = new AiPointInfo(); DiPointInfo::default_instance_ = new DiPointInfo(); PiPointInfo::default_instance_ = new PiPointInfo(); MiPointInfo::default_instance_ = new MiPointInfo(); RequestPointInfo::default_instance_ = new RequestPointInfo(); ReplyPointInfo::default_instance_ = new ReplyPointInfo(); AiPointInfo::default_instance_->InitAsDefaultInstance(); DiPointInfo::default_instance_->InitAsDefaultInstance(); PiPointInfo::default_instance_->InitAsDefaultInstance(); MiPointInfo::default_instance_->InitAsDefaultInstance(); RequestPointInfo::default_instance_->InitAsDefaultInstance(); ReplyPointInfo::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_OpcMessage_2eproto); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_OpcMessage_2eproto { StaticDescriptorInitializer_OpcMessage_2eproto() { protobuf_AddDesc_OpcMessage_2eproto(); } } static_descriptor_initializer_OpcMessage_2eproto_; const ::google::protobuf::EnumDescriptor* enTypeMessage_descriptor() { protobuf_AssignDescriptorsOnce(); return enTypeMessage_descriptor_; } bool enTypeMessage_IsValid(int value) { switch(value) { case 1: case 2: return true; default: return false; } } // =================================================================== #ifndef _MSC_VER const int AiPointInfo::kStrPointTagFieldNumber; const int AiPointInfo::kStrPointDescFieldNumber; const int AiPointInfo::kNPointTypeFieldNumber; const int AiPointInfo::kDValueFieldNumber; const int AiPointInfo::kNStatusFieldNumber; #endif // !_MSC_VER AiPointInfo::AiPointInfo() : ::google::protobuf::Message() { SharedCtor(); // @@protoc_insertion_point(constructor:kbd_idlfile.AiPointInfo) } void AiPointInfo::InitAsDefaultInstance() { } AiPointInfo::AiPointInfo(const AiPointInfo& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:kbd_idlfile.AiPointInfo) } void AiPointInfo::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; strpointtag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); strpointdesc_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); npointtype_ = 0; dvalue_ = 0; nstatus_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } AiPointInfo::~AiPointInfo() { // @@protoc_insertion_point(destructor:kbd_idlfile.AiPointInfo) SharedDtor(); } void AiPointInfo::SharedDtor() { if (strpointtag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strpointtag_; } if (strpointdesc_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strpointdesc_; } if (this != default_instance_) { } } void AiPointInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* AiPointInfo::descriptor() { protobuf_AssignDescriptorsOnce(); return AiPointInfo_descriptor_; } const AiPointInfo& AiPointInfo::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_OpcMessage_2eproto(); return *default_instance_; } AiPointInfo* AiPointInfo::default_instance_ = NULL; AiPointInfo* AiPointInfo::New() const { return new AiPointInfo; } void AiPointInfo::Clear() { #define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ &reinterpret_cast(16)->f) - \ reinterpret_cast(16)) #define ZR_(first, last) do { \ size_t f = OFFSET_OF_FIELD_(first); \ size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ ::memset(&first, 0, n); \ } while (0) if (_has_bits_[0 / 32] & 31) { ZR_(dvalue_, nstatus_); if (has_strpointtag()) { if (strpointtag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strpointtag_->clear(); } } if (has_strpointdesc()) { if (strpointdesc_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strpointdesc_->clear(); } } } #undef OFFSET_OF_FIELD_ #undef ZR_ ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool AiPointInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:kbd_idlfile.AiPointInfo) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string strPointTag = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strpointtag())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::PARSE, "strpointtag"); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_strPointDesc; break; } // optional string strPointDesc = 2; case 2: { if (tag == 18) { parse_strPointDesc: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strpointdesc())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::PARSE, "strpointdesc"); } else { goto handle_unusual; } if (input->ExpectTag(24)) goto parse_nPointType; break; } // required int32 nPointType = 3; case 3: { if (tag == 24) { parse_nPointType: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &npointtype_))); set_has_npointtype(); } else { goto handle_unusual; } if (input->ExpectTag(33)) goto parse_dValue; break; } // required double dValue = 4; case 4: { if (tag == 33) { parse_dValue: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &dvalue_))); set_has_dvalue(); } else { goto handle_unusual; } if (input->ExpectTag(40)) goto parse_nStatus; break; } // required int32 nStatus = 5; case 5: { if (tag == 40) { parse_nStatus: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &nstatus_))); set_has_nstatus(); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:kbd_idlfile.AiPointInfo) return true; failure: // @@protoc_insertion_point(parse_failure:kbd_idlfile.AiPointInfo) return false; #undef DO_ } void AiPointInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:kbd_idlfile.AiPointInfo) // required string strPointTag = 1; if (has_strpointtag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointtag"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->strpointtag(), output); } // optional string strPointDesc = 2; if (has_strpointdesc()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointdesc"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->strpointdesc(), output); } // required int32 nPointType = 3; if (has_npointtype()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->npointtype(), output); } // required double dValue = 4; if (has_dvalue()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->dvalue(), output); } // required int32 nStatus = 5; if (has_nstatus()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->nstatus(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:kbd_idlfile.AiPointInfo) } ::google::protobuf::uint8* AiPointInfo::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.AiPointInfo) // required string strPointTag = 1; if (has_strpointtag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointtag"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->strpointtag(), target); } // optional string strPointDesc = 2; if (has_strpointdesc()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointdesc"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->strpointdesc(), target); } // required int32 nPointType = 3; if (has_npointtype()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->npointtype(), target); } // required double dValue = 4; if (has_dvalue()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->dvalue(), target); } // required int32 nStatus = 5; if (has_nstatus()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->nstatus(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.AiPointInfo) return target; } int AiPointInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string strPointTag = 1; if (has_strpointtag()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strpointtag()); } // optional string strPointDesc = 2; if (has_strpointdesc()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strpointdesc()); } // required int32 nPointType = 3; if (has_npointtype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->npointtype()); } // required double dValue = 4; if (has_dvalue()) { total_size += 1 + 8; } // required int32 nStatus = 5; if (has_nstatus()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->nstatus()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void AiPointInfo::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const AiPointInfo* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void AiPointInfo::MergeFrom(const AiPointInfo& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_strpointtag()) { set_strpointtag(from.strpointtag()); } if (from.has_strpointdesc()) { set_strpointdesc(from.strpointdesc()); } if (from.has_npointtype()) { set_npointtype(from.npointtype()); } if (from.has_dvalue()) { set_dvalue(from.dvalue()); } if (from.has_nstatus()) { set_nstatus(from.nstatus()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void AiPointInfo::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void AiPointInfo::CopyFrom(const AiPointInfo& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool AiPointInfo::IsInitialized() const { if ((_has_bits_[0] & 0x0000001d) != 0x0000001d) return false; return true; } void AiPointInfo::Swap(AiPointInfo* other) { if (other != this) { std::swap(strpointtag_, other->strpointtag_); std::swap(strpointdesc_, other->strpointdesc_); std::swap(npointtype_, other->npointtype_); std::swap(dvalue_, other->dvalue_); std::swap(nstatus_, other->nstatus_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata AiPointInfo::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = AiPointInfo_descriptor_; metadata.reflection = AiPointInfo_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int DiPointInfo::kStrPointTagFieldNumber; const int DiPointInfo::kStrPointDescFieldNumber; const int DiPointInfo::kNPointTypeFieldNumber; const int DiPointInfo::kNValueFieldNumber; const int DiPointInfo::kNStatusFieldNumber; #endif // !_MSC_VER DiPointInfo::DiPointInfo() : ::google::protobuf::Message() { SharedCtor(); // @@protoc_insertion_point(constructor:kbd_idlfile.DiPointInfo) } void DiPointInfo::InitAsDefaultInstance() { } DiPointInfo::DiPointInfo(const DiPointInfo& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:kbd_idlfile.DiPointInfo) } void DiPointInfo::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; strpointtag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); strpointdesc_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); npointtype_ = 0; nvalue_ = 0; nstatus_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } DiPointInfo::~DiPointInfo() { // @@protoc_insertion_point(destructor:kbd_idlfile.DiPointInfo) SharedDtor(); } void DiPointInfo::SharedDtor() { if (strpointtag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strpointtag_; } if (strpointdesc_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strpointdesc_; } if (this != default_instance_) { } } void DiPointInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* DiPointInfo::descriptor() { protobuf_AssignDescriptorsOnce(); return DiPointInfo_descriptor_; } const DiPointInfo& DiPointInfo::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_OpcMessage_2eproto(); return *default_instance_; } DiPointInfo* DiPointInfo::default_instance_ = NULL; DiPointInfo* DiPointInfo::New() const { return new DiPointInfo; } void DiPointInfo::Clear() { #define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ &reinterpret_cast(16)->f) - \ reinterpret_cast(16)) #define ZR_(first, last) do { \ size_t f = OFFSET_OF_FIELD_(first); \ size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ ::memset(&first, 0, n); \ } while (0) if (_has_bits_[0 / 32] & 31) { ZR_(npointtype_, nstatus_); if (has_strpointtag()) { if (strpointtag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strpointtag_->clear(); } } if (has_strpointdesc()) { if (strpointdesc_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strpointdesc_->clear(); } } } #undef OFFSET_OF_FIELD_ #undef ZR_ ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool DiPointInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:kbd_idlfile.DiPointInfo) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string strPointTag = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strpointtag())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::PARSE, "strpointtag"); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_strPointDesc; break; } // optional string strPointDesc = 2; case 2: { if (tag == 18) { parse_strPointDesc: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strpointdesc())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::PARSE, "strpointdesc"); } else { goto handle_unusual; } if (input->ExpectTag(24)) goto parse_nPointType; break; } // required int32 nPointType = 3; case 3: { if (tag == 24) { parse_nPointType: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &npointtype_))); set_has_npointtype(); } else { goto handle_unusual; } if (input->ExpectTag(32)) goto parse_nValue; break; } // required int32 nValue = 4; case 4: { if (tag == 32) { parse_nValue: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &nvalue_))); set_has_nvalue(); } else { goto handle_unusual; } if (input->ExpectTag(40)) goto parse_nStatus; break; } // required int32 nStatus = 5; case 5: { if (tag == 40) { parse_nStatus: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &nstatus_))); set_has_nstatus(); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:kbd_idlfile.DiPointInfo) return true; failure: // @@protoc_insertion_point(parse_failure:kbd_idlfile.DiPointInfo) return false; #undef DO_ } void DiPointInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:kbd_idlfile.DiPointInfo) // required string strPointTag = 1; if (has_strpointtag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointtag"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->strpointtag(), output); } // optional string strPointDesc = 2; if (has_strpointdesc()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointdesc"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->strpointdesc(), output); } // required int32 nPointType = 3; if (has_npointtype()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->npointtype(), output); } // required int32 nValue = 4; if (has_nvalue()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->nvalue(), output); } // required int32 nStatus = 5; if (has_nstatus()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->nstatus(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:kbd_idlfile.DiPointInfo) } ::google::protobuf::uint8* DiPointInfo::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.DiPointInfo) // required string strPointTag = 1; if (has_strpointtag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointtag"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->strpointtag(), target); } // optional string strPointDesc = 2; if (has_strpointdesc()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointdesc"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->strpointdesc(), target); } // required int32 nPointType = 3; if (has_npointtype()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->npointtype(), target); } // required int32 nValue = 4; if (has_nvalue()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->nvalue(), target); } // required int32 nStatus = 5; if (has_nstatus()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->nstatus(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.DiPointInfo) return target; } int DiPointInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string strPointTag = 1; if (has_strpointtag()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strpointtag()); } // optional string strPointDesc = 2; if (has_strpointdesc()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strpointdesc()); } // required int32 nPointType = 3; if (has_npointtype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->npointtype()); } // required int32 nValue = 4; if (has_nvalue()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->nvalue()); } // required int32 nStatus = 5; if (has_nstatus()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->nstatus()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void DiPointInfo::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const DiPointInfo* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void DiPointInfo::MergeFrom(const DiPointInfo& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_strpointtag()) { set_strpointtag(from.strpointtag()); } if (from.has_strpointdesc()) { set_strpointdesc(from.strpointdesc()); } if (from.has_npointtype()) { set_npointtype(from.npointtype()); } if (from.has_nvalue()) { set_nvalue(from.nvalue()); } if (from.has_nstatus()) { set_nstatus(from.nstatus()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void DiPointInfo::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void DiPointInfo::CopyFrom(const DiPointInfo& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool DiPointInfo::IsInitialized() const { if ((_has_bits_[0] & 0x0000001d) != 0x0000001d) return false; return true; } void DiPointInfo::Swap(DiPointInfo* other) { if (other != this) { std::swap(strpointtag_, other->strpointtag_); std::swap(strpointdesc_, other->strpointdesc_); std::swap(npointtype_, other->npointtype_); std::swap(nvalue_, other->nvalue_); std::swap(nstatus_, other->nstatus_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata DiPointInfo::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = DiPointInfo_descriptor_; metadata.reflection = DiPointInfo_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int PiPointInfo::kStrPointTagFieldNumber; const int PiPointInfo::kStrPointDescFieldNumber; const int PiPointInfo::kNPointTypeFieldNumber; const int PiPointInfo::kDValueFieldNumber; const int PiPointInfo::kNStatusFieldNumber; #endif // !_MSC_VER PiPointInfo::PiPointInfo() : ::google::protobuf::Message() { SharedCtor(); // @@protoc_insertion_point(constructor:kbd_idlfile.PiPointInfo) } void PiPointInfo::InitAsDefaultInstance() { } PiPointInfo::PiPointInfo(const PiPointInfo& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:kbd_idlfile.PiPointInfo) } void PiPointInfo::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; strpointtag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); strpointdesc_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); npointtype_ = 0; dvalue_ = 0; nstatus_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } PiPointInfo::~PiPointInfo() { // @@protoc_insertion_point(destructor:kbd_idlfile.PiPointInfo) SharedDtor(); } void PiPointInfo::SharedDtor() { if (strpointtag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strpointtag_; } if (strpointdesc_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strpointdesc_; } if (this != default_instance_) { } } void PiPointInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* PiPointInfo::descriptor() { protobuf_AssignDescriptorsOnce(); return PiPointInfo_descriptor_; } const PiPointInfo& PiPointInfo::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_OpcMessage_2eproto(); return *default_instance_; } PiPointInfo* PiPointInfo::default_instance_ = NULL; PiPointInfo* PiPointInfo::New() const { return new PiPointInfo; } void PiPointInfo::Clear() { #define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ &reinterpret_cast(16)->f) - \ reinterpret_cast(16)) #define ZR_(first, last) do { \ size_t f = OFFSET_OF_FIELD_(first); \ size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ ::memset(&first, 0, n); \ } while (0) if (_has_bits_[0 / 32] & 31) { ZR_(dvalue_, nstatus_); if (has_strpointtag()) { if (strpointtag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strpointtag_->clear(); } } if (has_strpointdesc()) { if (strpointdesc_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strpointdesc_->clear(); } } } #undef OFFSET_OF_FIELD_ #undef ZR_ ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool PiPointInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:kbd_idlfile.PiPointInfo) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string strPointTag = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strpointtag())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::PARSE, "strpointtag"); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_strPointDesc; break; } // optional string strPointDesc = 2; case 2: { if (tag == 18) { parse_strPointDesc: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strpointdesc())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::PARSE, "strpointdesc"); } else { goto handle_unusual; } if (input->ExpectTag(24)) goto parse_nPointType; break; } // required int32 nPointType = 3; case 3: { if (tag == 24) { parse_nPointType: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &npointtype_))); set_has_npointtype(); } else { goto handle_unusual; } if (input->ExpectTag(33)) goto parse_dValue; break; } // required double dValue = 4; case 4: { if (tag == 33) { parse_dValue: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &dvalue_))); set_has_dvalue(); } else { goto handle_unusual; } if (input->ExpectTag(40)) goto parse_nStatus; break; } // required int32 nStatus = 5; case 5: { if (tag == 40) { parse_nStatus: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &nstatus_))); set_has_nstatus(); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:kbd_idlfile.PiPointInfo) return true; failure: // @@protoc_insertion_point(parse_failure:kbd_idlfile.PiPointInfo) return false; #undef DO_ } void PiPointInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:kbd_idlfile.PiPointInfo) // required string strPointTag = 1; if (has_strpointtag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointtag"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->strpointtag(), output); } // optional string strPointDesc = 2; if (has_strpointdesc()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointdesc"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->strpointdesc(), output); } // required int32 nPointType = 3; if (has_npointtype()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->npointtype(), output); } // required double dValue = 4; if (has_dvalue()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->dvalue(), output); } // required int32 nStatus = 5; if (has_nstatus()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->nstatus(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:kbd_idlfile.PiPointInfo) } ::google::protobuf::uint8* PiPointInfo::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.PiPointInfo) // required string strPointTag = 1; if (has_strpointtag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointtag"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->strpointtag(), target); } // optional string strPointDesc = 2; if (has_strpointdesc()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointdesc"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->strpointdesc(), target); } // required int32 nPointType = 3; if (has_npointtype()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->npointtype(), target); } // required double dValue = 4; if (has_dvalue()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->dvalue(), target); } // required int32 nStatus = 5; if (has_nstatus()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->nstatus(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.PiPointInfo) return target; } int PiPointInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string strPointTag = 1; if (has_strpointtag()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strpointtag()); } // optional string strPointDesc = 2; if (has_strpointdesc()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strpointdesc()); } // required int32 nPointType = 3; if (has_npointtype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->npointtype()); } // required double dValue = 4; if (has_dvalue()) { total_size += 1 + 8; } // required int32 nStatus = 5; if (has_nstatus()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->nstatus()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void PiPointInfo::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const PiPointInfo* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void PiPointInfo::MergeFrom(const PiPointInfo& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_strpointtag()) { set_strpointtag(from.strpointtag()); } if (from.has_strpointdesc()) { set_strpointdesc(from.strpointdesc()); } if (from.has_npointtype()) { set_npointtype(from.npointtype()); } if (from.has_dvalue()) { set_dvalue(from.dvalue()); } if (from.has_nstatus()) { set_nstatus(from.nstatus()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void PiPointInfo::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void PiPointInfo::CopyFrom(const PiPointInfo& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool PiPointInfo::IsInitialized() const { if ((_has_bits_[0] & 0x0000001d) != 0x0000001d) return false; return true; } void PiPointInfo::Swap(PiPointInfo* other) { if (other != this) { std::swap(strpointtag_, other->strpointtag_); std::swap(strpointdesc_, other->strpointdesc_); std::swap(npointtype_, other->npointtype_); std::swap(dvalue_, other->dvalue_); std::swap(nstatus_, other->nstatus_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata PiPointInfo::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = PiPointInfo_descriptor_; metadata.reflection = PiPointInfo_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int MiPointInfo::kStrPointTagFieldNumber; const int MiPointInfo::kStrPointDescFieldNumber; const int MiPointInfo::kNPointTypeFieldNumber; const int MiPointInfo::kNValueFieldNumber; const int MiPointInfo::kNStatusFieldNumber; #endif // !_MSC_VER MiPointInfo::MiPointInfo() : ::google::protobuf::Message() { SharedCtor(); // @@protoc_insertion_point(constructor:kbd_idlfile.MiPointInfo) } void MiPointInfo::InitAsDefaultInstance() { } MiPointInfo::MiPointInfo(const MiPointInfo& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:kbd_idlfile.MiPointInfo) } void MiPointInfo::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; strpointtag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); strpointdesc_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); npointtype_ = 0; nvalue_ = 0; nstatus_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } MiPointInfo::~MiPointInfo() { // @@protoc_insertion_point(destructor:kbd_idlfile.MiPointInfo) SharedDtor(); } void MiPointInfo::SharedDtor() { if (strpointtag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strpointtag_; } if (strpointdesc_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strpointdesc_; } if (this != default_instance_) { } } void MiPointInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* MiPointInfo::descriptor() { protobuf_AssignDescriptorsOnce(); return MiPointInfo_descriptor_; } const MiPointInfo& MiPointInfo::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_OpcMessage_2eproto(); return *default_instance_; } MiPointInfo* MiPointInfo::default_instance_ = NULL; MiPointInfo* MiPointInfo::New() const { return new MiPointInfo; } void MiPointInfo::Clear() { #define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ &reinterpret_cast(16)->f) - \ reinterpret_cast(16)) #define ZR_(first, last) do { \ size_t f = OFFSET_OF_FIELD_(first); \ size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ ::memset(&first, 0, n); \ } while (0) if (_has_bits_[0 / 32] & 31) { ZR_(npointtype_, nstatus_); if (has_strpointtag()) { if (strpointtag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strpointtag_->clear(); } } if (has_strpointdesc()) { if (strpointdesc_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strpointdesc_->clear(); } } } #undef OFFSET_OF_FIELD_ #undef ZR_ ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool MiPointInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:kbd_idlfile.MiPointInfo) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string strPointTag = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strpointtag())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::PARSE, "strpointtag"); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_strPointDesc; break; } // optional string strPointDesc = 2; case 2: { if (tag == 18) { parse_strPointDesc: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strpointdesc())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::PARSE, "strpointdesc"); } else { goto handle_unusual; } if (input->ExpectTag(24)) goto parse_nPointType; break; } // required int32 nPointType = 3; case 3: { if (tag == 24) { parse_nPointType: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &npointtype_))); set_has_npointtype(); } else { goto handle_unusual; } if (input->ExpectTag(32)) goto parse_nValue; break; } // required int32 nValue = 4; case 4: { if (tag == 32) { parse_nValue: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &nvalue_))); set_has_nvalue(); } else { goto handle_unusual; } if (input->ExpectTag(40)) goto parse_nStatus; break; } // required int32 nStatus = 5; case 5: { if (tag == 40) { parse_nStatus: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &nstatus_))); set_has_nstatus(); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:kbd_idlfile.MiPointInfo) return true; failure: // @@protoc_insertion_point(parse_failure:kbd_idlfile.MiPointInfo) return false; #undef DO_ } void MiPointInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:kbd_idlfile.MiPointInfo) // required string strPointTag = 1; if (has_strpointtag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointtag"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->strpointtag(), output); } // optional string strPointDesc = 2; if (has_strpointdesc()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointdesc"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->strpointdesc(), output); } // required int32 nPointType = 3; if (has_npointtype()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->npointtype(), output); } // required int32 nValue = 4; if (has_nvalue()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->nvalue(), output); } // required int32 nStatus = 5; if (has_nstatus()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->nstatus(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:kbd_idlfile.MiPointInfo) } ::google::protobuf::uint8* MiPointInfo::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.MiPointInfo) // required string strPointTag = 1; if (has_strpointtag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointtag().data(), this->strpointtag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointtag"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->strpointtag(), target); } // optional string strPointDesc = 2; if (has_strpointdesc()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strpointdesc().data(), this->strpointdesc().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strpointdesc"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->strpointdesc(), target); } // required int32 nPointType = 3; if (has_npointtype()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->npointtype(), target); } // required int32 nValue = 4; if (has_nvalue()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->nvalue(), target); } // required int32 nStatus = 5; if (has_nstatus()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->nstatus(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.MiPointInfo) return target; } int MiPointInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string strPointTag = 1; if (has_strpointtag()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strpointtag()); } // optional string strPointDesc = 2; if (has_strpointdesc()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strpointdesc()); } // required int32 nPointType = 3; if (has_npointtype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->npointtype()); } // required int32 nValue = 4; if (has_nvalue()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->nvalue()); } // required int32 nStatus = 5; if (has_nstatus()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->nstatus()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void MiPointInfo::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const MiPointInfo* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void MiPointInfo::MergeFrom(const MiPointInfo& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_strpointtag()) { set_strpointtag(from.strpointtag()); } if (from.has_strpointdesc()) { set_strpointdesc(from.strpointdesc()); } if (from.has_npointtype()) { set_npointtype(from.npointtype()); } if (from.has_nvalue()) { set_nvalue(from.nvalue()); } if (from.has_nstatus()) { set_nstatus(from.nstatus()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void MiPointInfo::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void MiPointInfo::CopyFrom(const MiPointInfo& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool MiPointInfo::IsInitialized() const { if ((_has_bits_[0] & 0x0000001d) != 0x0000001d) return false; return true; } void MiPointInfo::Swap(MiPointInfo* other) { if (other != this) { std::swap(strpointtag_, other->strpointtag_); std::swap(strpointdesc_, other->strpointdesc_); std::swap(npointtype_, other->npointtype_); std::swap(nvalue_, other->nvalue_); std::swap(nstatus_, other->nstatus_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata MiPointInfo::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = MiPointInfo_descriptor_; metadata.reflection = MiPointInfo_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int RequestPointInfo::kStrGroupTagFieldNumber; const int RequestPointInfo::kNDomainIdFieldNumber; const int RequestPointInfo::kNSubSystemIdFieldNumber; const int RequestPointInfo::kNTimeFieldNumber; const int RequestPointInfo::kStrHostNameFieldNumber; #endif // !_MSC_VER RequestPointInfo::RequestPointInfo() : ::google::protobuf::Message() { SharedCtor(); // @@protoc_insertion_point(constructor:kbd_idlfile.RequestPointInfo) } void RequestPointInfo::InitAsDefaultInstance() { } RequestPointInfo::RequestPointInfo(const RequestPointInfo& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:kbd_idlfile.RequestPointInfo) } void RequestPointInfo::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; strgrouptag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ndomainid_ = 0; nsubsystemid_ = 0; ntime_ = GOOGLE_ULONGLONG(0); strhostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } RequestPointInfo::~RequestPointInfo() { // @@protoc_insertion_point(destructor:kbd_idlfile.RequestPointInfo) SharedDtor(); } void RequestPointInfo::SharedDtor() { if (strgrouptag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strgrouptag_; } if (strhostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strhostname_; } if (this != default_instance_) { } } void RequestPointInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* RequestPointInfo::descriptor() { protobuf_AssignDescriptorsOnce(); return RequestPointInfo_descriptor_; } const RequestPointInfo& RequestPointInfo::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_OpcMessage_2eproto(); return *default_instance_; } RequestPointInfo* RequestPointInfo::default_instance_ = NULL; RequestPointInfo* RequestPointInfo::New() const { return new RequestPointInfo; } void RequestPointInfo::Clear() { #define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ &reinterpret_cast(16)->f) - \ reinterpret_cast(16)) #define ZR_(first, last) do { \ size_t f = OFFSET_OF_FIELD_(first); \ size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ ::memset(&first, 0, n); \ } while (0) if (_has_bits_[0 / 32] & 31) { ZR_(ndomainid_, ntime_); if (has_strgrouptag()) { if (strgrouptag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strgrouptag_->clear(); } } if (has_strhostname()) { if (strhostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strhostname_->clear(); } } } #undef OFFSET_OF_FIELD_ #undef ZR_ ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool RequestPointInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:kbd_idlfile.RequestPointInfo) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string strGroupTag = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strgrouptag())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strgrouptag().data(), this->strgrouptag().length(), ::google::protobuf::internal::WireFormat::PARSE, "strgrouptag"); } else { goto handle_unusual; } if (input->ExpectTag(16)) goto parse_nDomainId; break; } // required int32 nDomainId = 2; case 2: { if (tag == 16) { parse_nDomainId: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &ndomainid_))); set_has_ndomainid(); } else { goto handle_unusual; } if (input->ExpectTag(24)) goto parse_nSubSystemId; break; } // required int32 nSubSystemId = 3; case 3: { if (tag == 24) { parse_nSubSystemId: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &nsubsystemid_))); set_has_nsubsystemid(); } else { goto handle_unusual; } if (input->ExpectTag(32)) goto parse_nTime; break; } // optional uint64 nTime = 4; case 4: { if (tag == 32) { parse_nTime: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( input, &ntime_))); set_has_ntime(); } else { goto handle_unusual; } if (input->ExpectTag(42)) goto parse_strHostName; break; } // required string strHostName = 5; case 5: { if (tag == 42) { parse_strHostName: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strhostname())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strhostname().data(), this->strhostname().length(), ::google::protobuf::internal::WireFormat::PARSE, "strhostname"); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:kbd_idlfile.RequestPointInfo) return true; failure: // @@protoc_insertion_point(parse_failure:kbd_idlfile.RequestPointInfo) return false; #undef DO_ } void RequestPointInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:kbd_idlfile.RequestPointInfo) // required string strGroupTag = 1; if (has_strgrouptag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strgrouptag().data(), this->strgrouptag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strgrouptag"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->strgrouptag(), output); } // required int32 nDomainId = 2; if (has_ndomainid()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ndomainid(), output); } // required int32 nSubSystemId = 3; if (has_nsubsystemid()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->nsubsystemid(), output); } // optional uint64 nTime = 4; if (has_ntime()) { ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->ntime(), output); } // required string strHostName = 5; if (has_strhostname()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strhostname().data(), this->strhostname().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strhostname"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->strhostname(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:kbd_idlfile.RequestPointInfo) } ::google::protobuf::uint8* RequestPointInfo::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.RequestPointInfo) // required string strGroupTag = 1; if (has_strgrouptag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strgrouptag().data(), this->strgrouptag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strgrouptag"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->strgrouptag(), target); } // required int32 nDomainId = 2; if (has_ndomainid()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ndomainid(), target); } // required int32 nSubSystemId = 3; if (has_nsubsystemid()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->nsubsystemid(), target); } // optional uint64 nTime = 4; if (has_ntime()) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->ntime(), target); } // required string strHostName = 5; if (has_strhostname()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strhostname().data(), this->strhostname().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strhostname"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->strhostname(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.RequestPointInfo) return target; } int RequestPointInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string strGroupTag = 1; if (has_strgrouptag()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strgrouptag()); } // required int32 nDomainId = 2; if (has_ndomainid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->ndomainid()); } // required int32 nSubSystemId = 3; if (has_nsubsystemid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->nsubsystemid()); } // optional uint64 nTime = 4; if (has_ntime()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt64Size( this->ntime()); } // required string strHostName = 5; if (has_strhostname()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strhostname()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void RequestPointInfo::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const RequestPointInfo* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void RequestPointInfo::MergeFrom(const RequestPointInfo& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_strgrouptag()) { set_strgrouptag(from.strgrouptag()); } if (from.has_ndomainid()) { set_ndomainid(from.ndomainid()); } if (from.has_nsubsystemid()) { set_nsubsystemid(from.nsubsystemid()); } if (from.has_ntime()) { set_ntime(from.ntime()); } if (from.has_strhostname()) { set_strhostname(from.strhostname()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void RequestPointInfo::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void RequestPointInfo::CopyFrom(const RequestPointInfo& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool RequestPointInfo::IsInitialized() const { if ((_has_bits_[0] & 0x00000017) != 0x00000017) return false; return true; } void RequestPointInfo::Swap(RequestPointInfo* other) { if (other != this) { std::swap(strgrouptag_, other->strgrouptag_); std::swap(ndomainid_, other->ndomainid_); std::swap(nsubsystemid_, other->nsubsystemid_); std::swap(ntime_, other->ntime_); std::swap(strhostname_, other->strhostname_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata RequestPointInfo::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = RequestPointInfo_descriptor_; metadata.reflection = RequestPointInfo_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int ReplyPointInfo::kStrGroupTagFieldNumber; const int ReplyPointInfo::kAiInfoFieldNumber; const int ReplyPointInfo::kPiInfoFieldNumber; const int ReplyPointInfo::kMiInfoFieldNumber; const int ReplyPointInfo::kDiInfoFieldNumber; const int ReplyPointInfo::kNDomainIdFieldNumber; const int ReplyPointInfo::kNSubSystemIdFieldNumber; const int ReplyPointInfo::kNTimeFieldNumber; const int ReplyPointInfo::kStrHostNameFieldNumber; #endif // !_MSC_VER ReplyPointInfo::ReplyPointInfo() : ::google::protobuf::Message() { SharedCtor(); // @@protoc_insertion_point(constructor:kbd_idlfile.ReplyPointInfo) } void ReplyPointInfo::InitAsDefaultInstance() { } ReplyPointInfo::ReplyPointInfo(const ReplyPointInfo& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:kbd_idlfile.ReplyPointInfo) } void ReplyPointInfo::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; strgrouptag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ndomainid_ = 0; nsubsystemid_ = 0; ntime_ = GOOGLE_ULONGLONG(0); strhostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } ReplyPointInfo::~ReplyPointInfo() { // @@protoc_insertion_point(destructor:kbd_idlfile.ReplyPointInfo) SharedDtor(); } void ReplyPointInfo::SharedDtor() { if (strgrouptag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strgrouptag_; } if (strhostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete strhostname_; } if (this != default_instance_) { } } void ReplyPointInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* ReplyPointInfo::descriptor() { protobuf_AssignDescriptorsOnce(); return ReplyPointInfo_descriptor_; } const ReplyPointInfo& ReplyPointInfo::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_OpcMessage_2eproto(); return *default_instance_; } ReplyPointInfo* ReplyPointInfo::default_instance_ = NULL; ReplyPointInfo* ReplyPointInfo::New() const { return new ReplyPointInfo; } void ReplyPointInfo::Clear() { #define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ &reinterpret_cast(16)->f) - \ reinterpret_cast(16)) #define ZR_(first, last) do { \ size_t f = OFFSET_OF_FIELD_(first); \ size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ ::memset(&first, 0, n); \ } while (0) if (_has_bits_[0 / 32] & 225) { ZR_(ndomainid_, ntime_); if (has_strgrouptag()) { if (strgrouptag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strgrouptag_->clear(); } } } if (has_strhostname()) { if (strhostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { strhostname_->clear(); } } #undef OFFSET_OF_FIELD_ #undef ZR_ aiinfo_.Clear(); piinfo_.Clear(); miinfo_.Clear(); diinfo_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool ReplyPointInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:kbd_idlfile.ReplyPointInfo) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string strGroupTag = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strgrouptag())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strgrouptag().data(), this->strgrouptag().length(), ::google::protobuf::internal::WireFormat::PARSE, "strgrouptag"); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_aiInfo; break; } // repeated .kbd_idlfile.AiPointInfo aiInfo = 2; case 2: { if (tag == 18) { parse_aiInfo: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_aiinfo())); } else { goto handle_unusual; } if (input->ExpectTag(18)) goto parse_aiInfo; if (input->ExpectTag(26)) goto parse_piInfo; break; } // repeated .kbd_idlfile.PiPointInfo piInfo = 3; case 3: { if (tag == 26) { parse_piInfo: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_piinfo())); } else { goto handle_unusual; } if (input->ExpectTag(26)) goto parse_piInfo; if (input->ExpectTag(34)) goto parse_miInfo; break; } // repeated .kbd_idlfile.MiPointInfo miInfo = 4; case 4: { if (tag == 34) { parse_miInfo: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_miinfo())); } else { goto handle_unusual; } if (input->ExpectTag(34)) goto parse_miInfo; if (input->ExpectTag(42)) goto parse_diInfo; break; } // repeated .kbd_idlfile.DiPointInfo diInfo = 5; case 5: { if (tag == 42) { parse_diInfo: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_diinfo())); } else { goto handle_unusual; } if (input->ExpectTag(42)) goto parse_diInfo; if (input->ExpectTag(48)) goto parse_nDomainId; break; } // required int32 nDomainId = 6; case 6: { if (tag == 48) { parse_nDomainId: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &ndomainid_))); set_has_ndomainid(); } else { goto handle_unusual; } if (input->ExpectTag(56)) goto parse_nSubSystemId; break; } // required int32 nSubSystemId = 7; case 7: { if (tag == 56) { parse_nSubSystemId: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &nsubsystemid_))); set_has_nsubsystemid(); } else { goto handle_unusual; } if (input->ExpectTag(64)) goto parse_nTime; break; } // optional uint64 nTime = 8; case 8: { if (tag == 64) { parse_nTime: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( input, &ntime_))); set_has_ntime(); } else { goto handle_unusual; } if (input->ExpectTag(74)) goto parse_strHostName; break; } // required string strHostName = 9; case 9: { if (tag == 74) { parse_strHostName: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_strhostname())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strhostname().data(), this->strhostname().length(), ::google::protobuf::internal::WireFormat::PARSE, "strhostname"); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:kbd_idlfile.ReplyPointInfo) return true; failure: // @@protoc_insertion_point(parse_failure:kbd_idlfile.ReplyPointInfo) return false; #undef DO_ } void ReplyPointInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:kbd_idlfile.ReplyPointInfo) // required string strGroupTag = 1; if (has_strgrouptag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strgrouptag().data(), this->strgrouptag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strgrouptag"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->strgrouptag(), output); } // repeated .kbd_idlfile.AiPointInfo aiInfo = 2; for (int i = 0; i < this->aiinfo_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->aiinfo(i), output); } // repeated .kbd_idlfile.PiPointInfo piInfo = 3; for (int i = 0; i < this->piinfo_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->piinfo(i), output); } // repeated .kbd_idlfile.MiPointInfo miInfo = 4; for (int i = 0; i < this->miinfo_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->miinfo(i), output); } // repeated .kbd_idlfile.DiPointInfo diInfo = 5; for (int i = 0; i < this->diinfo_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, this->diinfo(i), output); } // required int32 nDomainId = 6; if (has_ndomainid()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->ndomainid(), output); } // required int32 nSubSystemId = 7; if (has_nsubsystemid()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->nsubsystemid(), output); } // optional uint64 nTime = 8; if (has_ntime()) { ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->ntime(), output); } // required string strHostName = 9; if (has_strhostname()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strhostname().data(), this->strhostname().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strhostname"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 9, this->strhostname(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:kbd_idlfile.ReplyPointInfo) } ::google::protobuf::uint8* ReplyPointInfo::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:kbd_idlfile.ReplyPointInfo) // required string strGroupTag = 1; if (has_strgrouptag()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strgrouptag().data(), this->strgrouptag().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strgrouptag"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->strgrouptag(), target); } // repeated .kbd_idlfile.AiPointInfo aiInfo = 2; for (int i = 0; i < this->aiinfo_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 2, this->aiinfo(i), target); } // repeated .kbd_idlfile.PiPointInfo piInfo = 3; for (int i = 0; i < this->piinfo_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 3, this->piinfo(i), target); } // repeated .kbd_idlfile.MiPointInfo miInfo = 4; for (int i = 0; i < this->miinfo_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 4, this->miinfo(i), target); } // repeated .kbd_idlfile.DiPointInfo diInfo = 5; for (int i = 0; i < this->diinfo_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 5, this->diinfo(i), target); } // required int32 nDomainId = 6; if (has_ndomainid()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->ndomainid(), target); } // required int32 nSubSystemId = 7; if (has_nsubsystemid()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->nsubsystemid(), target); } // optional uint64 nTime = 8; if (has_ntime()) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->ntime(), target); } // required string strHostName = 9; if (has_strhostname()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->strhostname().data(), this->strhostname().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "strhostname"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 9, this->strhostname(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:kbd_idlfile.ReplyPointInfo) return target; } int ReplyPointInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string strGroupTag = 1; if (has_strgrouptag()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strgrouptag()); } // required int32 nDomainId = 6; if (has_ndomainid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->ndomainid()); } // required int32 nSubSystemId = 7; if (has_nsubsystemid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->nsubsystemid()); } // optional uint64 nTime = 8; if (has_ntime()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt64Size( this->ntime()); } } if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { // required string strHostName = 9; if (has_strhostname()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->strhostname()); } } // repeated .kbd_idlfile.AiPointInfo aiInfo = 2; total_size += 1 * this->aiinfo_size(); for (int i = 0; i < this->aiinfo_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->aiinfo(i)); } // repeated .kbd_idlfile.PiPointInfo piInfo = 3; total_size += 1 * this->piinfo_size(); for (int i = 0; i < this->piinfo_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->piinfo(i)); } // repeated .kbd_idlfile.MiPointInfo miInfo = 4; total_size += 1 * this->miinfo_size(); for (int i = 0; i < this->miinfo_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->miinfo(i)); } // repeated .kbd_idlfile.DiPointInfo diInfo = 5; total_size += 1 * this->diinfo_size(); for (int i = 0; i < this->diinfo_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->diinfo(i)); } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void ReplyPointInfo::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const ReplyPointInfo* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void ReplyPointInfo::MergeFrom(const ReplyPointInfo& from) { GOOGLE_CHECK_NE(&from, this); aiinfo_.MergeFrom(from.aiinfo_); piinfo_.MergeFrom(from.piinfo_); miinfo_.MergeFrom(from.miinfo_); diinfo_.MergeFrom(from.diinfo_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_strgrouptag()) { set_strgrouptag(from.strgrouptag()); } if (from.has_ndomainid()) { set_ndomainid(from.ndomainid()); } if (from.has_nsubsystemid()) { set_nsubsystemid(from.nsubsystemid()); } if (from.has_ntime()) { set_ntime(from.ntime()); } } if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { if (from.has_strhostname()) { set_strhostname(from.strhostname()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void ReplyPointInfo::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void ReplyPointInfo::CopyFrom(const ReplyPointInfo& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool ReplyPointInfo::IsInitialized() const { if ((_has_bits_[0] & 0x00000161) != 0x00000161) return false; if (!::google::protobuf::internal::AllAreInitialized(this->aiinfo())) return false; if (!::google::protobuf::internal::AllAreInitialized(this->piinfo())) return false; if (!::google::protobuf::internal::AllAreInitialized(this->miinfo())) return false; if (!::google::protobuf::internal::AllAreInitialized(this->diinfo())) return false; return true; } void ReplyPointInfo::Swap(ReplyPointInfo* other) { if (other != this) { std::swap(strgrouptag_, other->strgrouptag_); aiinfo_.Swap(&other->aiinfo_); piinfo_.Swap(&other->piinfo_); miinfo_.Swap(&other->miinfo_); diinfo_.Swap(&other->diinfo_); std::swap(ndomainid_, other->ndomainid_); std::swap(nsubsystemid_, other->nsubsystemid_); std::swap(ntime_, other->ntime_); std::swap(strhostname_, other->strhostname_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata ReplyPointInfo::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = ReplyPointInfo_descriptor_; metadata.reflection = ReplyPointInfo_reflection_; return metadata; } // @@protoc_insertion_point(namespace_scope) } // namespace kbd_idlfile // @@protoc_insertion_point(global_scope)