// Generated by the protocol buffer compiler. DO NOT EDIT! // source: GetDelayStatistics.proto #include "GetDelayStatistics.pb.h" #include #include #include #include #include #include #include #include #include #include // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) namespace GetDelayStatistics { class C2SDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _C2S_default_instance_; class DelayStatisticsItemDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _DelayStatisticsItem_default_instance_; class DelayStatisticsDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _DelayStatistics_default_instance_; class ReqReplyStatisticsItemDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ReqReplyStatisticsItem_default_instance_; class PlaceOrderStatisticsItemDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _PlaceOrderStatisticsItem_default_instance_; class S2CDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _S2C_default_instance_; class RequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Request_default_instance_; class ResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Response_default_instance_; } // namespace GetDelayStatistics namespace protobuf_GetDelayStatistics_2eproto { void InitDefaultsC2SImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::GetDelayStatistics::_C2S_default_instance_; new (ptr) ::GetDelayStatistics::C2S(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetDelayStatistics::C2S::InitAsDefaultInstance(); } void InitDefaultsC2S() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsC2SImpl); } void InitDefaultsDelayStatisticsItemImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::GetDelayStatistics::_DelayStatisticsItem_default_instance_; new (ptr) ::GetDelayStatistics::DelayStatisticsItem(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetDelayStatistics::DelayStatisticsItem::InitAsDefaultInstance(); } void InitDefaultsDelayStatisticsItem() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDelayStatisticsItemImpl); } void InitDefaultsDelayStatisticsImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_GetDelayStatistics_2eproto::InitDefaultsDelayStatisticsItem(); { void* ptr = &::GetDelayStatistics::_DelayStatistics_default_instance_; new (ptr) ::GetDelayStatistics::DelayStatistics(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetDelayStatistics::DelayStatistics::InitAsDefaultInstance(); } void InitDefaultsDelayStatistics() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDelayStatisticsImpl); } void InitDefaultsReqReplyStatisticsItemImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::GetDelayStatistics::_ReqReplyStatisticsItem_default_instance_; new (ptr) ::GetDelayStatistics::ReqReplyStatisticsItem(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetDelayStatistics::ReqReplyStatisticsItem::InitAsDefaultInstance(); } void InitDefaultsReqReplyStatisticsItem() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReqReplyStatisticsItemImpl); } void InitDefaultsPlaceOrderStatisticsItemImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::GetDelayStatistics::_PlaceOrderStatisticsItem_default_instance_; new (ptr) ::GetDelayStatistics::PlaceOrderStatisticsItem(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetDelayStatistics::PlaceOrderStatisticsItem::InitAsDefaultInstance(); } void InitDefaultsPlaceOrderStatisticsItem() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPlaceOrderStatisticsItemImpl); } void InitDefaultsS2CImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_GetDelayStatistics_2eproto::InitDefaultsDelayStatistics(); protobuf_GetDelayStatistics_2eproto::InitDefaultsReqReplyStatisticsItem(); protobuf_GetDelayStatistics_2eproto::InitDefaultsPlaceOrderStatisticsItem(); { void* ptr = &::GetDelayStatistics::_S2C_default_instance_; new (ptr) ::GetDelayStatistics::S2C(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetDelayStatistics::S2C::InitAsDefaultInstance(); } void InitDefaultsS2C() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsS2CImpl); } void InitDefaultsRequestImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_GetDelayStatistics_2eproto::InitDefaultsC2S(); { void* ptr = &::GetDelayStatistics::_Request_default_instance_; new (ptr) ::GetDelayStatistics::Request(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetDelayStatistics::Request::InitAsDefaultInstance(); } void InitDefaultsRequest() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRequestImpl); } void InitDefaultsResponseImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_GetDelayStatistics_2eproto::InitDefaultsS2C(); { void* ptr = &::GetDelayStatistics::_Response_default_instance_; new (ptr) ::GetDelayStatistics::Response(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetDelayStatistics::Response::InitAsDefaultInstance(); } void InitDefaultsResponse() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl); } ::google::protobuf::Metadata file_level_metadata[8]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::C2S, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::C2S, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::C2S, typelist_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::C2S, qotpushstage_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::C2S, segmentlist_), ~0u, 0, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatisticsItem, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatisticsItem, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatisticsItem, begin_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatisticsItem, end_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatisticsItem, count_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatisticsItem, proportion_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatisticsItem, cumulativeratio_), 0, 1, 2, 3, 4, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatistics, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatistics, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatistics, qotpushtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatistics, itemlist_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatistics, delayavg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::DelayStatistics, count_), 0, ~0u, 1, 2, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::ReqReplyStatisticsItem, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::ReqReplyStatisticsItem, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::ReqReplyStatisticsItem, protoid_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::ReqReplyStatisticsItem, count_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::ReqReplyStatisticsItem, totalcostavg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::ReqReplyStatisticsItem, opendcostavg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::ReqReplyStatisticsItem, netdelayavg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::ReqReplyStatisticsItem, islocalreply_), 0, 1, 2, 3, 4, 5, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::PlaceOrderStatisticsItem, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::PlaceOrderStatisticsItem, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::PlaceOrderStatisticsItem, orderid_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::PlaceOrderStatisticsItem, totalcost_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::PlaceOrderStatisticsItem, opendcost_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::PlaceOrderStatisticsItem, netdelay_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::PlaceOrderStatisticsItem, updatecost_), 0, 1, 2, 3, 4, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::S2C, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::S2C, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::S2C, qotpushstatisticslist_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::S2C, reqreplystatisticslist_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::S2C, placeorderstatisticslist_), ~0u, ~0u, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Request, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Request, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Request, c2s_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Response, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Response, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Response, rettype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Response, retmsg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Response, errcode_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetDelayStatistics::Response, s2c_), 3, 0, 2, 1, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, sizeof(::GetDelayStatistics::C2S)}, { 11, 21, sizeof(::GetDelayStatistics::DelayStatisticsItem)}, { 26, 35, sizeof(::GetDelayStatistics::DelayStatistics)}, { 39, 50, sizeof(::GetDelayStatistics::ReqReplyStatisticsItem)}, { 56, 66, sizeof(::GetDelayStatistics::PlaceOrderStatisticsItem)}, { 71, 79, sizeof(::GetDelayStatistics::S2C)}, { 82, 88, sizeof(::GetDelayStatistics::Request)}, { 89, 98, sizeof(::GetDelayStatistics::Response)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::GetDelayStatistics::_C2S_default_instance_), reinterpret_cast(&::GetDelayStatistics::_DelayStatisticsItem_default_instance_), reinterpret_cast(&::GetDelayStatistics::_DelayStatistics_default_instance_), reinterpret_cast(&::GetDelayStatistics::_ReqReplyStatisticsItem_default_instance_), reinterpret_cast(&::GetDelayStatistics::_PlaceOrderStatisticsItem_default_instance_), reinterpret_cast(&::GetDelayStatistics::_S2C_default_instance_), reinterpret_cast(&::GetDelayStatistics::_Request_default_instance_), reinterpret_cast(&::GetDelayStatistics::_Response_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "GetDelayStatistics.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, file_level_enum_descriptors, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\030GetDelayStatistics.proto\022\022GetDelayStat" "istics\032\014Common.proto\"B\n\003C2S\022\020\n\010typeList\030" "\001 \003(\005\022\024\n\014qotPushStage\030\002 \001(\005\022\023\n\013segmentLi" "st\030\003 \003(\005\"m\n\023DelayStatisticsItem\022\r\n\005begin" "\030\001 \002(\005\022\013\n\003end\030\002 \002(\005\022\r\n\005count\030\003 \002(\005\022\022\n\npr" "oportion\030\004 \002(\002\022\027\n\017cumulativeRatio\030\005 \002(\002\"" "\202\001\n\017DelayStatistics\022\023\n\013qotPushType\030\001 \002(\005" "\0229\n\010itemList\030\002 \003(\0132\'.GetDelayStatistics." "DelayStatisticsItem\022\020\n\010delayAvg\030\003 \002(\002\022\r\n" "\005count\030\004 \002(\005\"\217\001\n\026ReqReplyStatisticsItem\022" "\017\n\007protoID\030\001 \002(\005\022\r\n\005count\030\002 \002(\005\022\024\n\014total" "CostAvg\030\003 \002(\002\022\024\n\014openDCostAvg\030\004 \002(\002\022\023\n\013n" "etDelayAvg\030\005 \002(\002\022\024\n\014isLocalReply\030\006 \002(\010\"w" "\n\030PlaceOrderStatisticsItem\022\017\n\007orderID\030\001 " "\002(\t\022\021\n\ttotalCost\030\002 \002(\002\022\021\n\topenDCost\030\003 \002(" "\002\022\020\n\010netDelay\030\004 \002(\002\022\022\n\nupdateCost\030\005 \002(\002\"" "\345\001\n\003S2C\022B\n\025qotPushStatisticsList\030\001 \003(\0132#" ".GetDelayStatistics.DelayStatistics\022J\n\026r" "eqReplyStatisticsList\030\002 \003(\0132*.GetDelaySt" "atistics.ReqReplyStatisticsItem\022N\n\030place" "OrderStatisticsList\030\003 \003(\0132,.GetDelayStat" "istics.PlaceOrderStatisticsItem\"/\n\007Reque" "st\022$\n\003c2s\030\001 \002(\0132\027.GetDelayStatistics.C2S" "\"h\n\010Response\022\025\n\007retType\030\001 \002(\005:\004-400\022\016\n\006r" "etMsg\030\002 \001(\t\022\017\n\007errCode\030\003 \001(\005\022$\n\003s2c\030\004 \001(" "\0132\027.GetDelayStatistics.S2C*\234\001\n\023DelayStat" "isticsType\022\036\n\032DelayStatisticsType_Unkonw" "\020\000\022\037\n\033DelayStatisticsType_QotPush\020\001\022 \n\034D" "elayStatisticsType_ReqReply\020\002\022\"\n\036DelaySt" "atisticsType_PlaceOrder\020\003*\237\001\n\014QotPushSta" "ge\022\027\n\023QotPushStage_Unkonw\020\000\022\026\n\022QotPushSt" "age_SR2SS\020\001\022\026\n\022QotPushStage_SS2CR\020\002\022\026\n\022Q" "otPushStage_CR2CS\020\003\022\026\n\022QotPushStage_SS2C" "S\020\004\022\026\n\022QotPushStage_SR2CS\020\005*\207\001\n\013QotPushT" "ype\022\026\n\022QotPushType_Unkonw\020\000\022\025\n\021QotPushTy" "pe_Price\020\001\022\026\n\022QotPushType_Ticker\020\002\022\031\n\025Qo" "tPushType_OrderBook\020\003\022\026\n\022QotPushType_Bro" "ker\020\004BI\n\023com.futu.openapi.pbZ2github.com" "/futuopen/ftapi4go/pb/getdelaystatistics" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 1560); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "GetDelayStatistics.proto", &protobuf_RegisterTypes); ::protobuf_Common_2eproto::AddDescriptors(); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_GetDelayStatistics_2eproto namespace GetDelayStatistics { const ::google::protobuf::EnumDescriptor* DelayStatisticsType_descriptor() { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_GetDelayStatistics_2eproto::file_level_enum_descriptors[0]; } bool DelayStatisticsType_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: return true; default: return false; } } const ::google::protobuf::EnumDescriptor* QotPushStage_descriptor() { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_GetDelayStatistics_2eproto::file_level_enum_descriptors[1]; } bool QotPushStage_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: return true; default: return false; } } const ::google::protobuf::EnumDescriptor* QotPushType_descriptor() { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_GetDelayStatistics_2eproto::file_level_enum_descriptors[2]; } bool QotPushType_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: return true; default: return false; } } // =================================================================== void C2S::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int C2S::kTypeListFieldNumber; const int C2S::kQotPushStageFieldNumber; const int C2S::kSegmentListFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 C2S::C2S() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsC2S(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetDelayStatistics.C2S) } C2S::C2S(const C2S& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), typelist_(from.typelist_), segmentlist_(from.segmentlist_) { _internal_metadata_.MergeFrom(from._internal_metadata_); qotpushstage_ = from.qotpushstage_; // @@protoc_insertion_point(copy_constructor:GetDelayStatistics.C2S) } void C2S::SharedCtor() { _cached_size_ = 0; qotpushstage_ = 0; } C2S::~C2S() { // @@protoc_insertion_point(destructor:GetDelayStatistics.C2S) SharedDtor(); } void C2S::SharedDtor() { } void C2S::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* C2S::descriptor() { ::protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const C2S& C2S::default_instance() { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsC2S(); return *internal_default_instance(); } C2S* C2S::New(::google::protobuf::Arena* arena) const { C2S* n = new C2S; if (arena != NULL) { arena->Own(n); } return n; } void C2S::Clear() { // @@protoc_insertion_point(message_clear_start:GetDelayStatistics.C2S) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; typelist_.Clear(); segmentlist_.Clear(); qotpushstage_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool C2S::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:GetDelayStatistics.C2S) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated int32 typeList = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 8u, input, this->mutable_typelist()))); } else if ( static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_typelist()))); } else { goto handle_unusual; } break; } // optional int32 qotPushStage = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_qotpushstage(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &qotpushstage_))); } else { goto handle_unusual; } break; } // repeated int32 segmentList = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 24u, input, this->mutable_segmentlist()))); } else if ( static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_segmentlist()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:GetDelayStatistics.C2S) return true; failure: // @@protoc_insertion_point(parse_failure:GetDelayStatistics.C2S) return false; #undef DO_ } void C2S::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetDelayStatistics.C2S) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated int32 typeList = 1; for (int i = 0, n = this->typelist_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32( 1, this->typelist(i), output); } cached_has_bits = _has_bits_[0]; // optional int32 qotPushStage = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->qotpushstage(), output); } // repeated int32 segmentList = 3; for (int i = 0, n = this->segmentlist_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32( 3, this->segmentlist(i), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetDelayStatistics.C2S) } ::google::protobuf::uint8* C2S::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetDelayStatistics.C2S) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated int32 typeList = 1; target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArray(1, this->typelist_, target); cached_has_bits = _has_bits_[0]; // optional int32 qotPushStage = 2; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->qotpushstage(), target); } // repeated int32 segmentList = 3; target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArray(3, this->segmentlist_, target); if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:GetDelayStatistics.C2S) return target; } size_t C2S::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetDelayStatistics.C2S) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // repeated int32 typeList = 1; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->typelist_); total_size += 1 * ::google::protobuf::internal::FromIntSize(this->typelist_size()); total_size += data_size; } // repeated int32 segmentList = 3; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->segmentlist_); total_size += 1 * ::google::protobuf::internal::FromIntSize(this->segmentlist_size()); total_size += data_size; } // optional int32 qotPushStage = 2; if (has_qotpushstage()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->qotpushstage()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void C2S::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:GetDelayStatistics.C2S) GOOGLE_DCHECK_NE(&from, this); const C2S* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:GetDelayStatistics.C2S) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetDelayStatistics.C2S) MergeFrom(*source); } } void C2S::MergeFrom(const C2S& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetDelayStatistics.C2S) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; typelist_.MergeFrom(from.typelist_); segmentlist_.MergeFrom(from.segmentlist_); if (from.has_qotpushstage()) { set_qotpushstage(from.qotpushstage()); } } void C2S::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetDelayStatistics.C2S) if (&from == this) return; Clear(); MergeFrom(from); } void C2S::CopyFrom(const C2S& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetDelayStatistics.C2S) if (&from == this) return; Clear(); MergeFrom(from); } bool C2S::IsInitialized() const { return true; } void C2S::Swap(C2S* other) { if (other == this) return; InternalSwap(other); } void C2S::InternalSwap(C2S* other) { using std::swap; typelist_.InternalSwap(&other->typelist_); segmentlist_.InternalSwap(&other->segmentlist_); swap(qotpushstage_, other->qotpushstage_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata C2S::GetMetadata() const { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void DelayStatisticsItem::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int DelayStatisticsItem::kBeginFieldNumber; const int DelayStatisticsItem::kEndFieldNumber; const int DelayStatisticsItem::kCountFieldNumber; const int DelayStatisticsItem::kProportionFieldNumber; const int DelayStatisticsItem::kCumulativeRatioFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DelayStatisticsItem::DelayStatisticsItem() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsDelayStatisticsItem(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetDelayStatistics.DelayStatisticsItem) } DelayStatisticsItem::DelayStatisticsItem(const DelayStatisticsItem& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&begin_, &from.begin_, static_cast(reinterpret_cast(&cumulativeratio_) - reinterpret_cast(&begin_)) + sizeof(cumulativeratio_)); // @@protoc_insertion_point(copy_constructor:GetDelayStatistics.DelayStatisticsItem) } void DelayStatisticsItem::SharedCtor() { _cached_size_ = 0; ::memset(&begin_, 0, static_cast( reinterpret_cast(&cumulativeratio_) - reinterpret_cast(&begin_)) + sizeof(cumulativeratio_)); } DelayStatisticsItem::~DelayStatisticsItem() { // @@protoc_insertion_point(destructor:GetDelayStatistics.DelayStatisticsItem) SharedDtor(); } void DelayStatisticsItem::SharedDtor() { } void DelayStatisticsItem::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* DelayStatisticsItem::descriptor() { ::protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const DelayStatisticsItem& DelayStatisticsItem::default_instance() { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsDelayStatisticsItem(); return *internal_default_instance(); } DelayStatisticsItem* DelayStatisticsItem::New(::google::protobuf::Arena* arena) const { DelayStatisticsItem* n = new DelayStatisticsItem; if (arena != NULL) { arena->Own(n); } return n; } void DelayStatisticsItem::Clear() { // @@protoc_insertion_point(message_clear_start:GetDelayStatistics.DelayStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 31u) { ::memset(&begin_, 0, static_cast( reinterpret_cast(&cumulativeratio_) - reinterpret_cast(&begin_)) + sizeof(cumulativeratio_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool DelayStatisticsItem::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:GetDelayStatistics.DelayStatisticsItem) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required int32 begin = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_begin(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &begin_))); } else { goto handle_unusual; } break; } // required int32 end = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_end(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &end_))); } else { goto handle_unusual; } break; } // required int32 count = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &count_))); } else { goto handle_unusual; } break; } // required float proportion = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { set_has_proportion(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &proportion_))); } else { goto handle_unusual; } break; } // required float cumulativeRatio = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { set_has_cumulativeratio(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &cumulativeratio_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:GetDelayStatistics.DelayStatisticsItem) return true; failure: // @@protoc_insertion_point(parse_failure:GetDelayStatistics.DelayStatisticsItem) return false; #undef DO_ } void DelayStatisticsItem::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetDelayStatistics.DelayStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 begin = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->begin(), output); } // required int32 end = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output); } // required int32 count = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->count(), output); } // required float proportion = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->proportion(), output); } // required float cumulativeRatio = 5; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->cumulativeratio(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetDelayStatistics.DelayStatisticsItem) } ::google::protobuf::uint8* DelayStatisticsItem::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetDelayStatistics.DelayStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 begin = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->begin(), target); } // required int32 end = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); } // required int32 count = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->count(), target); } // required float proportion = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->proportion(), target); } // required float cumulativeRatio = 5; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->cumulativeratio(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:GetDelayStatistics.DelayStatisticsItem) return target; } size_t DelayStatisticsItem::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:GetDelayStatistics.DelayStatisticsItem) size_t total_size = 0; if (has_begin()) { // required int32 begin = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->begin()); } if (has_end()) { // required int32 end = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->end()); } if (has_count()) { // required int32 count = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->count()); } if (has_proportion()) { // required float proportion = 4; total_size += 1 + 4; } if (has_cumulativeratio()) { // required float cumulativeRatio = 5; total_size += 1 + 4; } return total_size; } size_t DelayStatisticsItem::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetDelayStatistics.DelayStatisticsItem) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. // required int32 begin = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->begin()); // required int32 end = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->end()); // required int32 count = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->count()); // required float proportion = 4; total_size += 1 + 4; // required float cumulativeRatio = 5; total_size += 1 + 4; } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void DelayStatisticsItem::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:GetDelayStatistics.DelayStatisticsItem) GOOGLE_DCHECK_NE(&from, this); const DelayStatisticsItem* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:GetDelayStatistics.DelayStatisticsItem) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetDelayStatistics.DelayStatisticsItem) MergeFrom(*source); } } void DelayStatisticsItem::MergeFrom(const DelayStatisticsItem& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetDelayStatistics.DelayStatisticsItem) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 31u) { if (cached_has_bits & 0x00000001u) { begin_ = from.begin_; } if (cached_has_bits & 0x00000002u) { end_ = from.end_; } if (cached_has_bits & 0x00000004u) { count_ = from.count_; } if (cached_has_bits & 0x00000008u) { proportion_ = from.proportion_; } if (cached_has_bits & 0x00000010u) { cumulativeratio_ = from.cumulativeratio_; } _has_bits_[0] |= cached_has_bits; } } void DelayStatisticsItem::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetDelayStatistics.DelayStatisticsItem) if (&from == this) return; Clear(); MergeFrom(from); } void DelayStatisticsItem::CopyFrom(const DelayStatisticsItem& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetDelayStatistics.DelayStatisticsItem) if (&from == this) return; Clear(); MergeFrom(from); } bool DelayStatisticsItem::IsInitialized() const { if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; return true; } void DelayStatisticsItem::Swap(DelayStatisticsItem* other) { if (other == this) return; InternalSwap(other); } void DelayStatisticsItem::InternalSwap(DelayStatisticsItem* other) { using std::swap; swap(begin_, other->begin_); swap(end_, other->end_); swap(count_, other->count_); swap(proportion_, other->proportion_); swap(cumulativeratio_, other->cumulativeratio_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata DelayStatisticsItem::GetMetadata() const { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void DelayStatistics::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int DelayStatistics::kQotPushTypeFieldNumber; const int DelayStatistics::kItemListFieldNumber; const int DelayStatistics::kDelayAvgFieldNumber; const int DelayStatistics::kCountFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DelayStatistics::DelayStatistics() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsDelayStatistics(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetDelayStatistics.DelayStatistics) } DelayStatistics::DelayStatistics(const DelayStatistics& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), itemlist_(from.itemlist_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&qotpushtype_, &from.qotpushtype_, static_cast(reinterpret_cast(&count_) - reinterpret_cast(&qotpushtype_)) + sizeof(count_)); // @@protoc_insertion_point(copy_constructor:GetDelayStatistics.DelayStatistics) } void DelayStatistics::SharedCtor() { _cached_size_ = 0; ::memset(&qotpushtype_, 0, static_cast( reinterpret_cast(&count_) - reinterpret_cast(&qotpushtype_)) + sizeof(count_)); } DelayStatistics::~DelayStatistics() { // @@protoc_insertion_point(destructor:GetDelayStatistics.DelayStatistics) SharedDtor(); } void DelayStatistics::SharedDtor() { } void DelayStatistics::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* DelayStatistics::descriptor() { ::protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const DelayStatistics& DelayStatistics::default_instance() { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsDelayStatistics(); return *internal_default_instance(); } DelayStatistics* DelayStatistics::New(::google::protobuf::Arena* arena) const { DelayStatistics* n = new DelayStatistics; if (arena != NULL) { arena->Own(n); } return n; } void DelayStatistics::Clear() { // @@protoc_insertion_point(message_clear_start:GetDelayStatistics.DelayStatistics) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; itemlist_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 7u) { ::memset(&qotpushtype_, 0, static_cast( reinterpret_cast(&count_) - reinterpret_cast(&qotpushtype_)) + sizeof(count_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool DelayStatistics::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:GetDelayStatistics.DelayStatistics) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required int32 qotPushType = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_qotpushtype(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &qotpushtype_))); } else { goto handle_unusual; } break; } // repeated .GetDelayStatistics.DelayStatisticsItem itemList = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_itemlist())); } else { goto handle_unusual; } break; } // required float delayAvg = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { set_has_delayavg(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &delayavg_))); } else { goto handle_unusual; } break; } // required int32 count = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &count_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:GetDelayStatistics.DelayStatistics) return true; failure: // @@protoc_insertion_point(parse_failure:GetDelayStatistics.DelayStatistics) return false; #undef DO_ } void DelayStatistics::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetDelayStatistics.DelayStatistics) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 qotPushType = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->qotpushtype(), output); } // repeated .GetDelayStatistics.DelayStatisticsItem itemList = 2; for (unsigned int i = 0, n = static_cast(this->itemlist_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->itemlist(static_cast(i)), output); } // required float delayAvg = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->delayavg(), output); } // required int32 count = 4; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->count(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetDelayStatistics.DelayStatistics) } ::google::protobuf::uint8* DelayStatistics::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetDelayStatistics.DelayStatistics) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 qotPushType = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->qotpushtype(), target); } // repeated .GetDelayStatistics.DelayStatisticsItem itemList = 2; for (unsigned int i = 0, n = static_cast(this->itemlist_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->itemlist(static_cast(i)), deterministic, target); } // required float delayAvg = 3; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->delayavg(), target); } // required int32 count = 4; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->count(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:GetDelayStatistics.DelayStatistics) return target; } size_t DelayStatistics::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:GetDelayStatistics.DelayStatistics) size_t total_size = 0; if (has_qotpushtype()) { // required int32 qotPushType = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->qotpushtype()); } if (has_delayavg()) { // required float delayAvg = 3; total_size += 1 + 4; } if (has_count()) { // required int32 count = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->count()); } return total_size; } size_t DelayStatistics::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetDelayStatistics.DelayStatistics) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required int32 qotPushType = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->qotpushtype()); // required float delayAvg = 3; total_size += 1 + 4; // required int32 count = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->count()); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .GetDelayStatistics.DelayStatisticsItem itemList = 2; { unsigned int count = static_cast(this->itemlist_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->itemlist(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void DelayStatistics::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:GetDelayStatistics.DelayStatistics) GOOGLE_DCHECK_NE(&from, this); const DelayStatistics* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:GetDelayStatistics.DelayStatistics) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetDelayStatistics.DelayStatistics) MergeFrom(*source); } } void DelayStatistics::MergeFrom(const DelayStatistics& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetDelayStatistics.DelayStatistics) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; itemlist_.MergeFrom(from.itemlist_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 7u) { if (cached_has_bits & 0x00000001u) { qotpushtype_ = from.qotpushtype_; } if (cached_has_bits & 0x00000002u) { delayavg_ = from.delayavg_; } if (cached_has_bits & 0x00000004u) { count_ = from.count_; } _has_bits_[0] |= cached_has_bits; } } void DelayStatistics::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetDelayStatistics.DelayStatistics) if (&from == this) return; Clear(); MergeFrom(from); } void DelayStatistics::CopyFrom(const DelayStatistics& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetDelayStatistics.DelayStatistics) if (&from == this) return; Clear(); MergeFrom(from); } bool DelayStatistics::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; if (!::google::protobuf::internal::AllAreInitialized(this->itemlist())) return false; return true; } void DelayStatistics::Swap(DelayStatistics* other) { if (other == this) return; InternalSwap(other); } void DelayStatistics::InternalSwap(DelayStatistics* other) { using std::swap; itemlist_.InternalSwap(&other->itemlist_); swap(qotpushtype_, other->qotpushtype_); swap(delayavg_, other->delayavg_); swap(count_, other->count_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata DelayStatistics::GetMetadata() const { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void ReqReplyStatisticsItem::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ReqReplyStatisticsItem::kProtoIDFieldNumber; const int ReqReplyStatisticsItem::kCountFieldNumber; const int ReqReplyStatisticsItem::kTotalCostAvgFieldNumber; const int ReqReplyStatisticsItem::kOpenDCostAvgFieldNumber; const int ReqReplyStatisticsItem::kNetDelayAvgFieldNumber; const int ReqReplyStatisticsItem::kIsLocalReplyFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ReqReplyStatisticsItem::ReqReplyStatisticsItem() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsReqReplyStatisticsItem(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetDelayStatistics.ReqReplyStatisticsItem) } ReqReplyStatisticsItem::ReqReplyStatisticsItem(const ReqReplyStatisticsItem& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&protoid_, &from.protoid_, static_cast(reinterpret_cast(&islocalreply_) - reinterpret_cast(&protoid_)) + sizeof(islocalreply_)); // @@protoc_insertion_point(copy_constructor:GetDelayStatistics.ReqReplyStatisticsItem) } void ReqReplyStatisticsItem::SharedCtor() { _cached_size_ = 0; ::memset(&protoid_, 0, static_cast( reinterpret_cast(&islocalreply_) - reinterpret_cast(&protoid_)) + sizeof(islocalreply_)); } ReqReplyStatisticsItem::~ReqReplyStatisticsItem() { // @@protoc_insertion_point(destructor:GetDelayStatistics.ReqReplyStatisticsItem) SharedDtor(); } void ReqReplyStatisticsItem::SharedDtor() { } void ReqReplyStatisticsItem::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* ReqReplyStatisticsItem::descriptor() { ::protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ReqReplyStatisticsItem& ReqReplyStatisticsItem::default_instance() { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsReqReplyStatisticsItem(); return *internal_default_instance(); } ReqReplyStatisticsItem* ReqReplyStatisticsItem::New(::google::protobuf::Arena* arena) const { ReqReplyStatisticsItem* n = new ReqReplyStatisticsItem; if (arena != NULL) { arena->Own(n); } return n; } void ReqReplyStatisticsItem::Clear() { // @@protoc_insertion_point(message_clear_start:GetDelayStatistics.ReqReplyStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 63u) { ::memset(&protoid_, 0, static_cast( reinterpret_cast(&islocalreply_) - reinterpret_cast(&protoid_)) + sizeof(islocalreply_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool ReqReplyStatisticsItem::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:GetDelayStatistics.ReqReplyStatisticsItem) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required int32 protoID = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_protoid(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &protoid_))); } else { goto handle_unusual; } break; } // required int32 count = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_count(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &count_))); } else { goto handle_unusual; } break; } // required float totalCostAvg = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { set_has_totalcostavg(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &totalcostavg_))); } else { goto handle_unusual; } break; } // required float openDCostAvg = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { set_has_opendcostavg(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &opendcostavg_))); } else { goto handle_unusual; } break; } // required float netDelayAvg = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { set_has_netdelayavg(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &netdelayavg_))); } else { goto handle_unusual; } break; } // required bool isLocalReply = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { set_has_islocalreply(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &islocalreply_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:GetDelayStatistics.ReqReplyStatisticsItem) return true; failure: // @@protoc_insertion_point(parse_failure:GetDelayStatistics.ReqReplyStatisticsItem) return false; #undef DO_ } void ReqReplyStatisticsItem::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetDelayStatistics.ReqReplyStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 protoID = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->protoid(), output); } // required int32 count = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->count(), output); } // required float totalCostAvg = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->totalcostavg(), output); } // required float openDCostAvg = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->opendcostavg(), output); } // required float netDelayAvg = 5; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->netdelayavg(), output); } // required bool isLocalReply = 6; if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->islocalreply(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetDelayStatistics.ReqReplyStatisticsItem) } ::google::protobuf::uint8* ReqReplyStatisticsItem::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetDelayStatistics.ReqReplyStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 protoID = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->protoid(), target); } // required int32 count = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->count(), target); } // required float totalCostAvg = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->totalcostavg(), target); } // required float openDCostAvg = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->opendcostavg(), target); } // required float netDelayAvg = 5; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->netdelayavg(), target); } // required bool isLocalReply = 6; if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->islocalreply(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:GetDelayStatistics.ReqReplyStatisticsItem) return target; } size_t ReqReplyStatisticsItem::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:GetDelayStatistics.ReqReplyStatisticsItem) size_t total_size = 0; if (has_protoid()) { // required int32 protoID = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->protoid()); } if (has_count()) { // required int32 count = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->count()); } if (has_totalcostavg()) { // required float totalCostAvg = 3; total_size += 1 + 4; } if (has_opendcostavg()) { // required float openDCostAvg = 4; total_size += 1 + 4; } if (has_netdelayavg()) { // required float netDelayAvg = 5; total_size += 1 + 4; } if (has_islocalreply()) { // required bool isLocalReply = 6; total_size += 1 + 1; } return total_size; } size_t ReqReplyStatisticsItem::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetDelayStatistics.ReqReplyStatisticsItem) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. // required int32 protoID = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->protoid()); // required int32 count = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->count()); // required float totalCostAvg = 3; total_size += 1 + 4; // required float openDCostAvg = 4; total_size += 1 + 4; // required float netDelayAvg = 5; total_size += 1 + 4; // required bool isLocalReply = 6; total_size += 1 + 1; } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void ReqReplyStatisticsItem::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:GetDelayStatistics.ReqReplyStatisticsItem) GOOGLE_DCHECK_NE(&from, this); const ReqReplyStatisticsItem* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:GetDelayStatistics.ReqReplyStatisticsItem) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetDelayStatistics.ReqReplyStatisticsItem) MergeFrom(*source); } } void ReqReplyStatisticsItem::MergeFrom(const ReqReplyStatisticsItem& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetDelayStatistics.ReqReplyStatisticsItem) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 63u) { if (cached_has_bits & 0x00000001u) { protoid_ = from.protoid_; } if (cached_has_bits & 0x00000002u) { count_ = from.count_; } if (cached_has_bits & 0x00000004u) { totalcostavg_ = from.totalcostavg_; } if (cached_has_bits & 0x00000008u) { opendcostavg_ = from.opendcostavg_; } if (cached_has_bits & 0x00000010u) { netdelayavg_ = from.netdelayavg_; } if (cached_has_bits & 0x00000020u) { islocalreply_ = from.islocalreply_; } _has_bits_[0] |= cached_has_bits; } } void ReqReplyStatisticsItem::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetDelayStatistics.ReqReplyStatisticsItem) if (&from == this) return; Clear(); MergeFrom(from); } void ReqReplyStatisticsItem::CopyFrom(const ReqReplyStatisticsItem& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetDelayStatistics.ReqReplyStatisticsItem) if (&from == this) return; Clear(); MergeFrom(from); } bool ReqReplyStatisticsItem::IsInitialized() const { if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; return true; } void ReqReplyStatisticsItem::Swap(ReqReplyStatisticsItem* other) { if (other == this) return; InternalSwap(other); } void ReqReplyStatisticsItem::InternalSwap(ReqReplyStatisticsItem* other) { using std::swap; swap(protoid_, other->protoid_); swap(count_, other->count_); swap(totalcostavg_, other->totalcostavg_); swap(opendcostavg_, other->opendcostavg_); swap(netdelayavg_, other->netdelayavg_); swap(islocalreply_, other->islocalreply_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata ReqReplyStatisticsItem::GetMetadata() const { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void PlaceOrderStatisticsItem::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PlaceOrderStatisticsItem::kOrderIDFieldNumber; const int PlaceOrderStatisticsItem::kTotalCostFieldNumber; const int PlaceOrderStatisticsItem::kOpenDCostFieldNumber; const int PlaceOrderStatisticsItem::kNetDelayFieldNumber; const int PlaceOrderStatisticsItem::kUpdateCostFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PlaceOrderStatisticsItem::PlaceOrderStatisticsItem() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsPlaceOrderStatisticsItem(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetDelayStatistics.PlaceOrderStatisticsItem) } PlaceOrderStatisticsItem::PlaceOrderStatisticsItem(const PlaceOrderStatisticsItem& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); orderid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_orderid()) { orderid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.orderid_); } ::memcpy(&totalcost_, &from.totalcost_, static_cast(reinterpret_cast(&updatecost_) - reinterpret_cast(&totalcost_)) + sizeof(updatecost_)); // @@protoc_insertion_point(copy_constructor:GetDelayStatistics.PlaceOrderStatisticsItem) } void PlaceOrderStatisticsItem::SharedCtor() { _cached_size_ = 0; orderid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&totalcost_, 0, static_cast( reinterpret_cast(&updatecost_) - reinterpret_cast(&totalcost_)) + sizeof(updatecost_)); } PlaceOrderStatisticsItem::~PlaceOrderStatisticsItem() { // @@protoc_insertion_point(destructor:GetDelayStatistics.PlaceOrderStatisticsItem) SharedDtor(); } void PlaceOrderStatisticsItem::SharedDtor() { orderid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void PlaceOrderStatisticsItem::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* PlaceOrderStatisticsItem::descriptor() { ::protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PlaceOrderStatisticsItem& PlaceOrderStatisticsItem::default_instance() { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsPlaceOrderStatisticsItem(); return *internal_default_instance(); } PlaceOrderStatisticsItem* PlaceOrderStatisticsItem::New(::google::protobuf::Arena* arena) const { PlaceOrderStatisticsItem* n = new PlaceOrderStatisticsItem; if (arena != NULL) { arena->Own(n); } return n; } void PlaceOrderStatisticsItem::Clear() { // @@protoc_insertion_point(message_clear_start:GetDelayStatistics.PlaceOrderStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!orderid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*orderid_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 30u) { ::memset(&totalcost_, 0, static_cast( reinterpret_cast(&updatecost_) - reinterpret_cast(&totalcost_)) + sizeof(updatecost_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool PlaceOrderStatisticsItem::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:GetDelayStatistics.PlaceOrderStatisticsItem) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string orderID = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_orderid())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->orderid().data(), static_cast(this->orderid().length()), ::google::protobuf::internal::WireFormat::PARSE, "GetDelayStatistics.PlaceOrderStatisticsItem.orderID"); } else { goto handle_unusual; } break; } // required float totalCost = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { set_has_totalcost(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &totalcost_))); } else { goto handle_unusual; } break; } // required float openDCost = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { set_has_opendcost(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &opendcost_))); } else { goto handle_unusual; } break; } // required float netDelay = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { set_has_netdelay(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &netdelay_))); } else { goto handle_unusual; } break; } // required float updateCost = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) { set_has_updatecost(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, &updatecost_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:GetDelayStatistics.PlaceOrderStatisticsItem) return true; failure: // @@protoc_insertion_point(parse_failure:GetDelayStatistics.PlaceOrderStatisticsItem) return false; #undef DO_ } void PlaceOrderStatisticsItem::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetDelayStatistics.PlaceOrderStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required string orderID = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->orderid().data(), static_cast(this->orderid().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "GetDelayStatistics.PlaceOrderStatisticsItem.orderID"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->orderid(), output); } // required float totalCost = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->totalcost(), output); } // required float openDCost = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->opendcost(), output); } // required float netDelay = 4; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->netdelay(), output); } // required float updateCost = 5; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->updatecost(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetDelayStatistics.PlaceOrderStatisticsItem) } ::google::protobuf::uint8* PlaceOrderStatisticsItem::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetDelayStatistics.PlaceOrderStatisticsItem) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required string orderID = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->orderid().data(), static_cast(this->orderid().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "GetDelayStatistics.PlaceOrderStatisticsItem.orderID"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->orderid(), target); } // required float totalCost = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->totalcost(), target); } // required float openDCost = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->opendcost(), target); } // required float netDelay = 4; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->netdelay(), target); } // required float updateCost = 5; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->updatecost(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:GetDelayStatistics.PlaceOrderStatisticsItem) return target; } size_t PlaceOrderStatisticsItem::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:GetDelayStatistics.PlaceOrderStatisticsItem) size_t total_size = 0; if (has_orderid()) { // required string orderID = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->orderid()); } if (has_totalcost()) { // required float totalCost = 2; total_size += 1 + 4; } if (has_opendcost()) { // required float openDCost = 3; total_size += 1 + 4; } if (has_netdelay()) { // required float netDelay = 4; total_size += 1 + 4; } if (has_updatecost()) { // required float updateCost = 5; total_size += 1 + 4; } return total_size; } size_t PlaceOrderStatisticsItem::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetDelayStatistics.PlaceOrderStatisticsItem) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. // required string orderID = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->orderid()); // required float totalCost = 2; total_size += 1 + 4; // required float openDCost = 3; total_size += 1 + 4; // required float netDelay = 4; total_size += 1 + 4; // required float updateCost = 5; total_size += 1 + 4; } else { total_size += RequiredFieldsByteSizeFallback(); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void PlaceOrderStatisticsItem::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:GetDelayStatistics.PlaceOrderStatisticsItem) GOOGLE_DCHECK_NE(&from, this); const PlaceOrderStatisticsItem* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:GetDelayStatistics.PlaceOrderStatisticsItem) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetDelayStatistics.PlaceOrderStatisticsItem) MergeFrom(*source); } } void PlaceOrderStatisticsItem::MergeFrom(const PlaceOrderStatisticsItem& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetDelayStatistics.PlaceOrderStatisticsItem) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 31u) { if (cached_has_bits & 0x00000001u) { set_has_orderid(); orderid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.orderid_); } if (cached_has_bits & 0x00000002u) { totalcost_ = from.totalcost_; } if (cached_has_bits & 0x00000004u) { opendcost_ = from.opendcost_; } if (cached_has_bits & 0x00000008u) { netdelay_ = from.netdelay_; } if (cached_has_bits & 0x00000010u) { updatecost_ = from.updatecost_; } _has_bits_[0] |= cached_has_bits; } } void PlaceOrderStatisticsItem::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetDelayStatistics.PlaceOrderStatisticsItem) if (&from == this) return; Clear(); MergeFrom(from); } void PlaceOrderStatisticsItem::CopyFrom(const PlaceOrderStatisticsItem& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetDelayStatistics.PlaceOrderStatisticsItem) if (&from == this) return; Clear(); MergeFrom(from); } bool PlaceOrderStatisticsItem::IsInitialized() const { if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; return true; } void PlaceOrderStatisticsItem::Swap(PlaceOrderStatisticsItem* other) { if (other == this) return; InternalSwap(other); } void PlaceOrderStatisticsItem::InternalSwap(PlaceOrderStatisticsItem* other) { using std::swap; orderid_.Swap(&other->orderid_); swap(totalcost_, other->totalcost_); swap(opendcost_, other->opendcost_); swap(netdelay_, other->netdelay_); swap(updatecost_, other->updatecost_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata PlaceOrderStatisticsItem::GetMetadata() const { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void S2C::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int S2C::kQotPushStatisticsListFieldNumber; const int S2C::kReqReplyStatisticsListFieldNumber; const int S2C::kPlaceOrderStatisticsListFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 S2C::S2C() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsS2C(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetDelayStatistics.S2C) } S2C::S2C(const S2C& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), qotpushstatisticslist_(from.qotpushstatisticslist_), reqreplystatisticslist_(from.reqreplystatisticslist_), placeorderstatisticslist_(from.placeorderstatisticslist_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:GetDelayStatistics.S2C) } void S2C::SharedCtor() { _cached_size_ = 0; } S2C::~S2C() { // @@protoc_insertion_point(destructor:GetDelayStatistics.S2C) SharedDtor(); } void S2C::SharedDtor() { } void S2C::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* S2C::descriptor() { ::protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const S2C& S2C::default_instance() { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsS2C(); return *internal_default_instance(); } S2C* S2C::New(::google::protobuf::Arena* arena) const { S2C* n = new S2C; if (arena != NULL) { arena->Own(n); } return n; } void S2C::Clear() { // @@protoc_insertion_point(message_clear_start:GetDelayStatistics.S2C) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; qotpushstatisticslist_.Clear(); reqreplystatisticslist_.Clear(); placeorderstatisticslist_.Clear(); _has_bits_.Clear(); _internal_metadata_.Clear(); } bool S2C::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:GetDelayStatistics.S2C) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .GetDelayStatistics.DelayStatistics qotPushStatisticsList = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_qotpushstatisticslist())); } else { goto handle_unusual; } break; } // repeated .GetDelayStatistics.ReqReplyStatisticsItem reqReplyStatisticsList = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_reqreplystatisticslist())); } else { goto handle_unusual; } break; } // repeated .GetDelayStatistics.PlaceOrderStatisticsItem placeOrderStatisticsList = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_placeorderstatisticslist())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:GetDelayStatistics.S2C) return true; failure: // @@protoc_insertion_point(parse_failure:GetDelayStatistics.S2C) return false; #undef DO_ } void S2C::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetDelayStatistics.S2C) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .GetDelayStatistics.DelayStatistics qotPushStatisticsList = 1; for (unsigned int i = 0, n = static_cast(this->qotpushstatisticslist_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->qotpushstatisticslist(static_cast(i)), output); } // repeated .GetDelayStatistics.ReqReplyStatisticsItem reqReplyStatisticsList = 2; for (unsigned int i = 0, n = static_cast(this->reqreplystatisticslist_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->reqreplystatisticslist(static_cast(i)), output); } // repeated .GetDelayStatistics.PlaceOrderStatisticsItem placeOrderStatisticsList = 3; for (unsigned int i = 0, n = static_cast(this->placeorderstatisticslist_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->placeorderstatisticslist(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetDelayStatistics.S2C) } ::google::protobuf::uint8* S2C::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetDelayStatistics.S2C) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .GetDelayStatistics.DelayStatistics qotPushStatisticsList = 1; for (unsigned int i = 0, n = static_cast(this->qotpushstatisticslist_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->qotpushstatisticslist(static_cast(i)), deterministic, target); } // repeated .GetDelayStatistics.ReqReplyStatisticsItem reqReplyStatisticsList = 2; for (unsigned int i = 0, n = static_cast(this->reqreplystatisticslist_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->reqreplystatisticslist(static_cast(i)), deterministic, target); } // repeated .GetDelayStatistics.PlaceOrderStatisticsItem placeOrderStatisticsList = 3; for (unsigned int i = 0, n = static_cast(this->placeorderstatisticslist_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->placeorderstatisticslist(static_cast(i)), deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:GetDelayStatistics.S2C) return target; } size_t S2C::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetDelayStatistics.S2C) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // repeated .GetDelayStatistics.DelayStatistics qotPushStatisticsList = 1; { unsigned int count = static_cast(this->qotpushstatisticslist_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->qotpushstatisticslist(static_cast(i))); } } // repeated .GetDelayStatistics.ReqReplyStatisticsItem reqReplyStatisticsList = 2; { unsigned int count = static_cast(this->reqreplystatisticslist_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->reqreplystatisticslist(static_cast(i))); } } // repeated .GetDelayStatistics.PlaceOrderStatisticsItem placeOrderStatisticsList = 3; { unsigned int count = static_cast(this->placeorderstatisticslist_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->placeorderstatisticslist(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void S2C::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:GetDelayStatistics.S2C) GOOGLE_DCHECK_NE(&from, this); const S2C* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:GetDelayStatistics.S2C) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetDelayStatistics.S2C) MergeFrom(*source); } } void S2C::MergeFrom(const S2C& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetDelayStatistics.S2C) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; qotpushstatisticslist_.MergeFrom(from.qotpushstatisticslist_); reqreplystatisticslist_.MergeFrom(from.reqreplystatisticslist_); placeorderstatisticslist_.MergeFrom(from.placeorderstatisticslist_); } void S2C::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetDelayStatistics.S2C) if (&from == this) return; Clear(); MergeFrom(from); } void S2C::CopyFrom(const S2C& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetDelayStatistics.S2C) if (&from == this) return; Clear(); MergeFrom(from); } bool S2C::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->qotpushstatisticslist())) return false; if (!::google::protobuf::internal::AllAreInitialized(this->reqreplystatisticslist())) return false; if (!::google::protobuf::internal::AllAreInitialized(this->placeorderstatisticslist())) return false; return true; } void S2C::Swap(S2C* other) { if (other == this) return; InternalSwap(other); } void S2C::InternalSwap(S2C* other) { using std::swap; qotpushstatisticslist_.InternalSwap(&other->qotpushstatisticslist_); reqreplystatisticslist_.InternalSwap(&other->reqreplystatisticslist_); placeorderstatisticslist_.InternalSwap(&other->placeorderstatisticslist_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata S2C::GetMetadata() const { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Request::InitAsDefaultInstance() { ::GetDelayStatistics::_Request_default_instance_._instance.get_mutable()->c2s_ = const_cast< ::GetDelayStatistics::C2S*>( ::GetDelayStatistics::C2S::internal_default_instance()); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Request::kC2SFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Request::Request() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsRequest(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetDelayStatistics.Request) } Request::Request(const Request& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_c2s()) { c2s_ = new ::GetDelayStatistics::C2S(*from.c2s_); } else { c2s_ = NULL; } // @@protoc_insertion_point(copy_constructor:GetDelayStatistics.Request) } void Request::SharedCtor() { _cached_size_ = 0; c2s_ = NULL; } Request::~Request() { // @@protoc_insertion_point(destructor:GetDelayStatistics.Request) SharedDtor(); } void Request::SharedDtor() { if (this != internal_default_instance()) delete c2s_; } void Request::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Request::descriptor() { ::protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Request& Request::default_instance() { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsRequest(); return *internal_default_instance(); } Request* Request::New(::google::protobuf::Arena* arena) const { Request* n = new Request; if (arena != NULL) { arena->Own(n); } return n; } void Request::Clear() { // @@protoc_insertion_point(message_clear_start:GetDelayStatistics.Request) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(c2s_ != NULL); c2s_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Request::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:GetDelayStatistics.Request) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .GetDelayStatistics.C2S c2s = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_c2s())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:GetDelayStatistics.Request) return true; failure: // @@protoc_insertion_point(parse_failure:GetDelayStatistics.Request) return false; #undef DO_ } void Request::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetDelayStatistics.Request) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .GetDelayStatistics.C2S c2s = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->c2s_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetDelayStatistics.Request) } ::google::protobuf::uint8* Request::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetDelayStatistics.Request) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .GetDelayStatistics.C2S c2s = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->c2s_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:GetDelayStatistics.Request) return target; } size_t Request::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetDelayStatistics.Request) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .GetDelayStatistics.C2S c2s = 1; if (has_c2s()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->c2s_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Request::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:GetDelayStatistics.Request) GOOGLE_DCHECK_NE(&from, this); const Request* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:GetDelayStatistics.Request) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetDelayStatistics.Request) MergeFrom(*source); } } void Request::MergeFrom(const Request& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetDelayStatistics.Request) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_c2s()) { mutable_c2s()->::GetDelayStatistics::C2S::MergeFrom(from.c2s()); } } void Request::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetDelayStatistics.Request) if (&from == this) return; Clear(); MergeFrom(from); } void Request::CopyFrom(const Request& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetDelayStatistics.Request) if (&from == this) return; Clear(); MergeFrom(from); } bool Request::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; return true; } void Request::Swap(Request* other) { if (other == this) return; InternalSwap(other); } void Request::InternalSwap(Request* other) { using std::swap; swap(c2s_, other->c2s_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Request::GetMetadata() const { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Response::InitAsDefaultInstance() { ::GetDelayStatistics::_Response_default_instance_._instance.get_mutable()->s2c_ = const_cast< ::GetDelayStatistics::S2C*>( ::GetDelayStatistics::S2C::internal_default_instance()); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Response::kRetTypeFieldNumber; const int Response::kRetMsgFieldNumber; const int Response::kErrCodeFieldNumber; const int Response::kS2CFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Response::Response() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsResponse(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetDelayStatistics.Response) } Response::Response(const Response& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); retmsg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_retmsg()) { retmsg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retmsg_); } if (from.has_s2c()) { s2c_ = new ::GetDelayStatistics::S2C(*from.s2c_); } else { s2c_ = NULL; } ::memcpy(&errcode_, &from.errcode_, static_cast(reinterpret_cast(&rettype_) - reinterpret_cast(&errcode_)) + sizeof(rettype_)); // @@protoc_insertion_point(copy_constructor:GetDelayStatistics.Response) } void Response::SharedCtor() { _cached_size_ = 0; retmsg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&s2c_, 0, static_cast( reinterpret_cast(&errcode_) - reinterpret_cast(&s2c_)) + sizeof(errcode_)); rettype_ = -400; } Response::~Response() { // @@protoc_insertion_point(destructor:GetDelayStatistics.Response) SharedDtor(); } void Response::SharedDtor() { retmsg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete s2c_; } void Response::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Response::descriptor() { ::protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Response& Response::default_instance() { ::protobuf_GetDelayStatistics_2eproto::InitDefaultsResponse(); return *internal_default_instance(); } Response* Response::New(::google::protobuf::Arena* arena) const { Response* n = new Response; if (arena != NULL) { arena->Own(n); } return n; } void Response::Clear() { // @@protoc_insertion_point(message_clear_start:GetDelayStatistics.Response) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!retmsg_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*retmsg_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(s2c_ != NULL); s2c_->Clear(); } } if (cached_has_bits & 12u) { errcode_ = 0; rettype_ = -400; } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Response::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:GetDelayStatistics.Response) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required int32 retType = 1 [default = -400]; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_rettype(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &rettype_))); } else { goto handle_unusual; } break; } // optional string retMsg = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_retmsg())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->retmsg().data(), static_cast(this->retmsg().length()), ::google::protobuf::internal::WireFormat::PARSE, "GetDelayStatistics.Response.retMsg"); } else { goto handle_unusual; } break; } // optional int32 errCode = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_errcode(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &errcode_))); } else { goto handle_unusual; } break; } // optional .GetDelayStatistics.S2C s2c = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_s2c())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:GetDelayStatistics.Response) return true; failure: // @@protoc_insertion_point(parse_failure:GetDelayStatistics.Response) return false; #undef DO_ } void Response::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetDelayStatistics.Response) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 retType = 1 [default = -400]; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->rettype(), output); } // optional string retMsg = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->retmsg().data(), static_cast(this->retmsg().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "GetDelayStatistics.Response.retMsg"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->retmsg(), output); } // optional int32 errCode = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->errcode(), output); } // optional .GetDelayStatistics.S2C s2c = 4; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, *this->s2c_, output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetDelayStatistics.Response) } ::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetDelayStatistics.Response) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 retType = 1 [default = -400]; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->rettype(), target); } // optional string retMsg = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->retmsg().data(), static_cast(this->retmsg().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "GetDelayStatistics.Response.retMsg"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->retmsg(), target); } // optional int32 errCode = 3; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->errcode(), target); } // optional .GetDelayStatistics.S2C s2c = 4; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, *this->s2c_, deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:GetDelayStatistics.Response) return target; } size_t Response::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetDelayStatistics.Response) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required int32 retType = 1 [default = -400]; if (has_rettype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->rettype()); } if (_has_bits_[0 / 32] & 7u) { // optional string retMsg = 2; if (has_retmsg()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->retmsg()); } // optional .GetDelayStatistics.S2C s2c = 4; if (has_s2c()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->s2c_); } // optional int32 errCode = 3; if (has_errcode()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->errcode()); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Response::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:GetDelayStatistics.Response) GOOGLE_DCHECK_NE(&from, this); const Response* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:GetDelayStatistics.Response) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetDelayStatistics.Response) MergeFrom(*source); } } void Response::MergeFrom(const Response& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetDelayStatistics.Response) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { set_has_retmsg(); retmsg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retmsg_); } if (cached_has_bits & 0x00000002u) { mutable_s2c()->::GetDelayStatistics::S2C::MergeFrom(from.s2c()); } if (cached_has_bits & 0x00000004u) { errcode_ = from.errcode_; } if (cached_has_bits & 0x00000008u) { rettype_ = from.rettype_; } _has_bits_[0] |= cached_has_bits; } } void Response::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetDelayStatistics.Response) if (&from == this) return; Clear(); MergeFrom(from); } void Response::CopyFrom(const Response& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetDelayStatistics.Response) if (&from == this) return; Clear(); MergeFrom(from); } bool Response::IsInitialized() const { if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false; if (has_s2c()) { if (!this->s2c_->IsInitialized()) return false; } return true; } void Response::Swap(Response* other) { if (other == this) return; InternalSwap(other); } void Response::InternalSwap(Response* other) { using std::swap; retmsg_.Swap(&other->retmsg_); swap(s2c_, other->s2c_); swap(errcode_, other->errcode_); swap(rettype_, other->rettype_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Response::GetMetadata() const { protobuf_GetDelayStatistics_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetDelayStatistics_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace GetDelayStatistics // @@protoc_insertion_point(global_scope)