// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Qot_GetSuspend.proto #include "Qot_GetSuspend.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 Qot_GetSuspend { class C2SDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _C2S_default_instance_; class SuspendDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Suspend_default_instance_; class SecuritySuspendDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SecuritySuspend_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 Qot_GetSuspend namespace protobuf_Qot_5fGetSuspend_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 protobuf_Qot_5fCommon_2eproto::InitDefaultsSecurity(); { void* ptr = &::Qot_GetSuspend::_C2S_default_instance_; new (ptr) ::Qot_GetSuspend::C2S(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Qot_GetSuspend::C2S::InitAsDefaultInstance(); } void InitDefaultsC2S() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsC2SImpl); } void InitDefaultsSuspendImpl() { 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 = &::Qot_GetSuspend::_Suspend_default_instance_; new (ptr) ::Qot_GetSuspend::Suspend(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Qot_GetSuspend::Suspend::InitAsDefaultInstance(); } void InitDefaultsSuspend() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSuspendImpl); } void InitDefaultsSecuritySuspendImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_Qot_5fCommon_2eproto::InitDefaultsSecurity(); protobuf_Qot_5fGetSuspend_2eproto::InitDefaultsSuspend(); { void* ptr = &::Qot_GetSuspend::_SecuritySuspend_default_instance_; new (ptr) ::Qot_GetSuspend::SecuritySuspend(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Qot_GetSuspend::SecuritySuspend::InitAsDefaultInstance(); } void InitDefaultsSecuritySuspend() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSecuritySuspendImpl); } 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_Qot_5fGetSuspend_2eproto::InitDefaultsSecuritySuspend(); { void* ptr = &::Qot_GetSuspend::_S2C_default_instance_; new (ptr) ::Qot_GetSuspend::S2C(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Qot_GetSuspend::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_Qot_5fGetSuspend_2eproto::InitDefaultsC2S(); { void* ptr = &::Qot_GetSuspend::_Request_default_instance_; new (ptr) ::Qot_GetSuspend::Request(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Qot_GetSuspend::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_Qot_5fGetSuspend_2eproto::InitDefaultsS2C(); { void* ptr = &::Qot_GetSuspend::_Response_default_instance_; new (ptr) ::Qot_GetSuspend::Response(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Qot_GetSuspend::Response::InitAsDefaultInstance(); } void InitDefaultsResponse() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl); } ::google::protobuf::Metadata file_level_metadata[6]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::C2S, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::C2S, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::C2S, securitylist_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::C2S, begintime_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::C2S, endtime_), ~0u, 0, 1, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Suspend, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Suspend, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Suspend, time_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Suspend, timestamp_), 0, 1, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::SecuritySuspend, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::SecuritySuspend, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::SecuritySuspend, security_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::SecuritySuspend, suspendlist_), 0, ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::S2C, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::S2C, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::S2C, securitysuspendlist_), ~0u, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Request, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Request, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Request, c2s_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Response, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Response, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Response, rettype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Response, retmsg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Response, errcode_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetSuspend::Response, s2c_), 3, 0, 2, 1, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, sizeof(::Qot_GetSuspend::C2S)}, { 11, 18, sizeof(::Qot_GetSuspend::Suspend)}, { 20, 27, sizeof(::Qot_GetSuspend::SecuritySuspend)}, { 29, 35, sizeof(::Qot_GetSuspend::S2C)}, { 36, 42, sizeof(::Qot_GetSuspend::Request)}, { 43, 52, sizeof(::Qot_GetSuspend::Response)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::Qot_GetSuspend::_C2S_default_instance_), reinterpret_cast(&::Qot_GetSuspend::_Suspend_default_instance_), reinterpret_cast(&::Qot_GetSuspend::_SecuritySuspend_default_instance_), reinterpret_cast(&::Qot_GetSuspend::_S2C_default_instance_), reinterpret_cast(&::Qot_GetSuspend::_Request_default_instance_), reinterpret_cast(&::Qot_GetSuspend::_Response_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "Qot_GetSuspend.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, 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, 6); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\024Qot_GetSuspend.proto\022\016Qot_GetSuspend\032\014" "Common.proto\032\020Qot_Common.proto\"U\n\003C2S\022*\n" "\014securityList\030\001 \003(\0132\024.Qot_Common.Securit" "y\022\021\n\tbeginTime\030\002 \002(\t\022\017\n\007endTime\030\003 \002(\t\"*\n" "\007Suspend\022\014\n\004time\030\001 \002(\t\022\021\n\ttimestamp\030\002 \001(" "\001\"g\n\017SecuritySuspend\022&\n\010security\030\001 \002(\0132\024" ".Qot_Common.Security\022,\n\013suspendList\030\002 \003(" "\0132\027.Qot_GetSuspend.Suspend\"C\n\003S2C\022<\n\023Sec" "uritySuspendList\030\001 \003(\0132\037.Qot_GetSuspend." "SecuritySuspend\"+\n\007Request\022 \n\003c2s\030\001 \002(\0132" "\023.Qot_GetSuspend.C2S\"d\n\010Response\022\025\n\007retT" "ype\030\001 \002(\005:\004-400\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007errCo" "de\030\003 \001(\005\022 \n\003s2c\030\004 \001(\0132\023.Qot_GetSuspend.S" "2CBD\n\023com.futu.openapi.pbZ-github.com/fu" "tuopen/ftapi4go/pb/qotgetsuspend" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 592); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "Qot_GetSuspend.proto", &protobuf_RegisterTypes); ::protobuf_Common_2eproto::AddDescriptors(); ::protobuf_Qot_5fCommon_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_Qot_5fGetSuspend_2eproto namespace Qot_GetSuspend { // =================================================================== void C2S::InitAsDefaultInstance() { } void C2S::clear_securitylist() { securitylist_.Clear(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int C2S::kSecurityListFieldNumber; const int C2S::kBeginTimeFieldNumber; const int C2S::kEndTimeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 C2S::C2S() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_Qot_5fGetSuspend_2eproto::InitDefaultsC2S(); } SharedCtor(); // @@protoc_insertion_point(constructor:Qot_GetSuspend.C2S) } C2S::C2S(const C2S& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), securitylist_(from.securitylist_) { _internal_metadata_.MergeFrom(from._internal_metadata_); begintime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_begintime()) { begintime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.begintime_); } endtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_endtime()) { endtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.endtime_); } // @@protoc_insertion_point(copy_constructor:Qot_GetSuspend.C2S) } void C2S::SharedCtor() { _cached_size_ = 0; begintime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); endtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } C2S::~C2S() { // @@protoc_insertion_point(destructor:Qot_GetSuspend.C2S) SharedDtor(); } void C2S::SharedDtor() { begintime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); endtime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } 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_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const C2S& C2S::default_instance() { ::protobuf_Qot_5fGetSuspend_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:Qot_GetSuspend.C2S) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; securitylist_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!begintime_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*begintime_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(!endtime_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*endtime_.UnsafeRawStringPointer())->clear(); } } _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:Qot_GetSuspend.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 .Qot_Common.Security securityList = 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_securitylist())); } else { goto handle_unusual; } break; } // required string beginTime = 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_begintime())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->begintime().data(), static_cast(this->begintime().length()), ::google::protobuf::internal::WireFormat::PARSE, "Qot_GetSuspend.C2S.beginTime"); } else { goto handle_unusual; } break; } // required string endTime = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_endtime())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->endtime().data(), static_cast(this->endtime().length()), ::google::protobuf::internal::WireFormat::PARSE, "Qot_GetSuspend.C2S.endTime"); } 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:Qot_GetSuspend.C2S) return true; failure: // @@protoc_insertion_point(parse_failure:Qot_GetSuspend.C2S) return false; #undef DO_ } void C2S::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Qot_GetSuspend.C2S) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .Qot_Common.Security securityList = 1; for (unsigned int i = 0, n = static_cast(this->securitylist_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->securitylist(static_cast(i)), output); } cached_has_bits = _has_bits_[0]; // required string beginTime = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->begintime().data(), static_cast(this->begintime().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_GetSuspend.C2S.beginTime"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->begintime(), output); } // required string endTime = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->endtime().data(), static_cast(this->endtime().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_GetSuspend.C2S.endTime"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->endtime(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Qot_GetSuspend.C2S) } ::google::protobuf::uint8* C2S::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Qot_GetSuspend.C2S) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .Qot_Common.Security securityList = 1; for (unsigned int i = 0, n = static_cast(this->securitylist_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->securitylist(static_cast(i)), deterministic, target); } cached_has_bits = _has_bits_[0]; // required string beginTime = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->begintime().data(), static_cast(this->begintime().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_GetSuspend.C2S.beginTime"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->begintime(), target); } // required string endTime = 3; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->endtime().data(), static_cast(this->endtime().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_GetSuspend.C2S.endTime"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 3, this->endtime(), 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:Qot_GetSuspend.C2S) return target; } size_t C2S::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Qot_GetSuspend.C2S) size_t total_size = 0; if (has_begintime()) { // required string beginTime = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->begintime()); } if (has_endtime()) { // required string endTime = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->endtime()); } return total_size; } size_t C2S::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Qot_GetSuspend.C2S) 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] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. // required string beginTime = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->begintime()); // required string endTime = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->endtime()); } else { total_size += RequiredFieldsByteSizeFallback(); } // repeated .Qot_Common.Security securityList = 1; { unsigned int count = static_cast(this->securitylist_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->securitylist(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 C2S::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Qot_GetSuspend.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:Qot_GetSuspend.C2S) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetSuspend.C2S) MergeFrom(*source); } } void C2S::MergeFrom(const C2S& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetSuspend.C2S) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; securitylist_.MergeFrom(from.securitylist_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { set_has_begintime(); begintime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.begintime_); } if (cached_has_bits & 0x00000002u) { set_has_endtime(); endtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.endtime_); } } } void C2S::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Qot_GetSuspend.C2S) if (&from == this) return; Clear(); MergeFrom(from); } void C2S::CopyFrom(const C2S& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetSuspend.C2S) if (&from == this) return; Clear(); MergeFrom(from); } bool C2S::IsInitialized() const { if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; if (!::google::protobuf::internal::AllAreInitialized(this->securitylist())) return false; return true; } void C2S::Swap(C2S* other) { if (other == this) return; InternalSwap(other); } void C2S::InternalSwap(C2S* other) { using std::swap; securitylist_.InternalSwap(&other->securitylist_); begintime_.Swap(&other->begintime_); endtime_.Swap(&other->endtime_); 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_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Suspend::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Suspend::kTimeFieldNumber; const int Suspend::kTimestampFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Suspend::Suspend() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_Qot_5fGetSuspend_2eproto::InitDefaultsSuspend(); } SharedCtor(); // @@protoc_insertion_point(constructor:Qot_GetSuspend.Suspend) } Suspend::Suspend(const Suspend& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_time()) { time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_); } timestamp_ = from.timestamp_; // @@protoc_insertion_point(copy_constructor:Qot_GetSuspend.Suspend) } void Suspend::SharedCtor() { _cached_size_ = 0; time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); timestamp_ = 0; } Suspend::~Suspend() { // @@protoc_insertion_point(destructor:Qot_GetSuspend.Suspend) SharedDtor(); } void Suspend::SharedDtor() { time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Suspend::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Suspend::descriptor() { ::protobuf_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Suspend& Suspend::default_instance() { ::protobuf_Qot_5fGetSuspend_2eproto::InitDefaultsSuspend(); return *internal_default_instance(); } Suspend* Suspend::New(::google::protobuf::Arena* arena) const { Suspend* n = new Suspend; if (arena != NULL) { arena->Own(n); } return n; } void Suspend::Clear() { // @@protoc_insertion_point(message_clear_start:Qot_GetSuspend.Suspend) ::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(!time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*time_.UnsafeRawStringPointer())->clear(); } timestamp_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Suspend::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:Qot_GetSuspend.Suspend) 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 time = 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_time())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->time().data(), static_cast(this->time().length()), ::google::protobuf::internal::WireFormat::PARSE, "Qot_GetSuspend.Suspend.time"); } else { goto handle_unusual; } break; } // optional double timestamp = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { set_has_timestamp(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, ×tamp_))); } 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:Qot_GetSuspend.Suspend) return true; failure: // @@protoc_insertion_point(parse_failure:Qot_GetSuspend.Suspend) return false; #undef DO_ } void Suspend::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Qot_GetSuspend.Suspend) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required string time = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->time().data(), static_cast(this->time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_GetSuspend.Suspend.time"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->time(), output); } // optional double timestamp = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->timestamp(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Qot_GetSuspend.Suspend) } ::google::protobuf::uint8* Suspend::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Qot_GetSuspend.Suspend) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required string time = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->time().data(), static_cast(this->time().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_GetSuspend.Suspend.time"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->time(), target); } // optional double timestamp = 2; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->timestamp(), 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:Qot_GetSuspend.Suspend) return target; } size_t Suspend::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Qot_GetSuspend.Suspend) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required string time = 1; if (has_time()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->time()); } // optional double timestamp = 2; if (has_timestamp()) { total_size += 1 + 8; } 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 Suspend::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Qot_GetSuspend.Suspend) GOOGLE_DCHECK_NE(&from, this); const Suspend* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_GetSuspend.Suspend) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetSuspend.Suspend) MergeFrom(*source); } } void Suspend::MergeFrom(const Suspend& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetSuspend.Suspend) 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 & 3u) { if (cached_has_bits & 0x00000001u) { set_has_time(); time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_); } if (cached_has_bits & 0x00000002u) { timestamp_ = from.timestamp_; } _has_bits_[0] |= cached_has_bits; } } void Suspend::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Qot_GetSuspend.Suspend) if (&from == this) return; Clear(); MergeFrom(from); } void Suspend::CopyFrom(const Suspend& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetSuspend.Suspend) if (&from == this) return; Clear(); MergeFrom(from); } bool Suspend::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; return true; } void Suspend::Swap(Suspend* other) { if (other == this) return; InternalSwap(other); } void Suspend::InternalSwap(Suspend* other) { using std::swap; time_.Swap(&other->time_); swap(timestamp_, other->timestamp_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Suspend::GetMetadata() const { protobuf_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void SecuritySuspend::InitAsDefaultInstance() { ::Qot_GetSuspend::_SecuritySuspend_default_instance_._instance.get_mutable()->security_ = const_cast< ::Qot_Common::Security*>( ::Qot_Common::Security::internal_default_instance()); } void SecuritySuspend::clear_security() { if (security_ != NULL) security_->Clear(); clear_has_security(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SecuritySuspend::kSecurityFieldNumber; const int SecuritySuspend::kSuspendListFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SecuritySuspend::SecuritySuspend() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_Qot_5fGetSuspend_2eproto::InitDefaultsSecuritySuspend(); } SharedCtor(); // @@protoc_insertion_point(constructor:Qot_GetSuspend.SecuritySuspend) } SecuritySuspend::SecuritySuspend(const SecuritySuspend& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), suspendlist_(from.suspendlist_) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_security()) { security_ = new ::Qot_Common::Security(*from.security_); } else { security_ = NULL; } // @@protoc_insertion_point(copy_constructor:Qot_GetSuspend.SecuritySuspend) } void SecuritySuspend::SharedCtor() { _cached_size_ = 0; security_ = NULL; } SecuritySuspend::~SecuritySuspend() { // @@protoc_insertion_point(destructor:Qot_GetSuspend.SecuritySuspend) SharedDtor(); } void SecuritySuspend::SharedDtor() { if (this != internal_default_instance()) delete security_; } void SecuritySuspend::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* SecuritySuspend::descriptor() { ::protobuf_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SecuritySuspend& SecuritySuspend::default_instance() { ::protobuf_Qot_5fGetSuspend_2eproto::InitDefaultsSecuritySuspend(); return *internal_default_instance(); } SecuritySuspend* SecuritySuspend::New(::google::protobuf::Arena* arena) const { SecuritySuspend* n = new SecuritySuspend; if (arena != NULL) { arena->Own(n); } return n; } void SecuritySuspend::Clear() { // @@protoc_insertion_point(message_clear_start:Qot_GetSuspend.SecuritySuspend) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; suspendlist_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(security_ != NULL); security_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool SecuritySuspend::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:Qot_GetSuspend.SecuritySuspend) 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 .Qot_Common.Security security = 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_security())); } else { goto handle_unusual; } break; } // repeated .Qot_GetSuspend.Suspend suspendList = 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_suspendlist())); } 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:Qot_GetSuspend.SecuritySuspend) return true; failure: // @@protoc_insertion_point(parse_failure:Qot_GetSuspend.SecuritySuspend) return false; #undef DO_ } void SecuritySuspend::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Qot_GetSuspend.SecuritySuspend) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .Qot_Common.Security security = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->security_, output); } // repeated .Qot_GetSuspend.Suspend suspendList = 2; for (unsigned int i = 0, n = static_cast(this->suspendlist_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->suspendlist(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:Qot_GetSuspend.SecuritySuspend) } ::google::protobuf::uint8* SecuritySuspend::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Qot_GetSuspend.SecuritySuspend) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .Qot_Common.Security security = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->security_, deterministic, target); } // repeated .Qot_GetSuspend.Suspend suspendList = 2; for (unsigned int i = 0, n = static_cast(this->suspendlist_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->suspendlist(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:Qot_GetSuspend.SecuritySuspend) return target; } size_t SecuritySuspend::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Qot_GetSuspend.SecuritySuspend) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .Qot_Common.Security security = 1; if (has_security()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->security_); } // repeated .Qot_GetSuspend.Suspend suspendList = 2; { unsigned int count = static_cast(this->suspendlist_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->suspendlist(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 SecuritySuspend::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Qot_GetSuspend.SecuritySuspend) GOOGLE_DCHECK_NE(&from, this); const SecuritySuspend* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_GetSuspend.SecuritySuspend) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetSuspend.SecuritySuspend) MergeFrom(*source); } } void SecuritySuspend::MergeFrom(const SecuritySuspend& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetSuspend.SecuritySuspend) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; suspendlist_.MergeFrom(from.suspendlist_); if (from.has_security()) { mutable_security()->::Qot_Common::Security::MergeFrom(from.security()); } } void SecuritySuspend::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Qot_GetSuspend.SecuritySuspend) if (&from == this) return; Clear(); MergeFrom(from); } void SecuritySuspend::CopyFrom(const SecuritySuspend& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetSuspend.SecuritySuspend) if (&from == this) return; Clear(); MergeFrom(from); } bool SecuritySuspend::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; if (!::google::protobuf::internal::AllAreInitialized(this->suspendlist())) return false; if (has_security()) { if (!this->security_->IsInitialized()) return false; } return true; } void SecuritySuspend::Swap(SecuritySuspend* other) { if (other == this) return; InternalSwap(other); } void SecuritySuspend::InternalSwap(SecuritySuspend* other) { using std::swap; suspendlist_.InternalSwap(&other->suspendlist_); swap(security_, other->security_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata SecuritySuspend::GetMetadata() const { protobuf_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void S2C::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int S2C::kSecuritySuspendListFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 S2C::S2C() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_Qot_5fGetSuspend_2eproto::InitDefaultsS2C(); } SharedCtor(); // @@protoc_insertion_point(constructor:Qot_GetSuspend.S2C) } S2C::S2C(const S2C& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), securitysuspendlist_(from.securitysuspendlist_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Qot_GetSuspend.S2C) } void S2C::SharedCtor() { _cached_size_ = 0; } S2C::~S2C() { // @@protoc_insertion_point(destructor:Qot_GetSuspend.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_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const S2C& S2C::default_instance() { ::protobuf_Qot_5fGetSuspend_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:Qot_GetSuspend.S2C) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; securitysuspendlist_.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:Qot_GetSuspend.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 .Qot_GetSuspend.SecuritySuspend SecuritySuspendList = 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_securitysuspendlist())); } 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:Qot_GetSuspend.S2C) return true; failure: // @@protoc_insertion_point(parse_failure:Qot_GetSuspend.S2C) return false; #undef DO_ } void S2C::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Qot_GetSuspend.S2C) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .Qot_GetSuspend.SecuritySuspend SecuritySuspendList = 1; for (unsigned int i = 0, n = static_cast(this->securitysuspendlist_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->securitysuspendlist(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:Qot_GetSuspend.S2C) } ::google::protobuf::uint8* S2C::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Qot_GetSuspend.S2C) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .Qot_GetSuspend.SecuritySuspend SecuritySuspendList = 1; for (unsigned int i = 0, n = static_cast(this->securitysuspendlist_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->securitysuspendlist(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:Qot_GetSuspend.S2C) return target; } size_t S2C::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Qot_GetSuspend.S2C) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // repeated .Qot_GetSuspend.SecuritySuspend SecuritySuspendList = 1; { unsigned int count = static_cast(this->securitysuspendlist_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->securitysuspendlist(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:Qot_GetSuspend.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:Qot_GetSuspend.S2C) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetSuspend.S2C) MergeFrom(*source); } } void S2C::MergeFrom(const S2C& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetSuspend.S2C) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; securitysuspendlist_.MergeFrom(from.securitysuspendlist_); } void S2C::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Qot_GetSuspend.S2C) if (&from == this) return; Clear(); MergeFrom(from); } void S2C::CopyFrom(const S2C& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetSuspend.S2C) if (&from == this) return; Clear(); MergeFrom(from); } bool S2C::IsInitialized() const { if (!::google::protobuf::internal::AllAreInitialized(this->securitysuspendlist())) return false; return true; } void S2C::Swap(S2C* other) { if (other == this) return; InternalSwap(other); } void S2C::InternalSwap(S2C* other) { using std::swap; securitysuspendlist_.InternalSwap(&other->securitysuspendlist_); 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_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Request::InitAsDefaultInstance() { ::Qot_GetSuspend::_Request_default_instance_._instance.get_mutable()->c2s_ = const_cast< ::Qot_GetSuspend::C2S*>( ::Qot_GetSuspend::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_Qot_5fGetSuspend_2eproto::InitDefaultsRequest(); } SharedCtor(); // @@protoc_insertion_point(constructor:Qot_GetSuspend.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 ::Qot_GetSuspend::C2S(*from.c2s_); } else { c2s_ = NULL; } // @@protoc_insertion_point(copy_constructor:Qot_GetSuspend.Request) } void Request::SharedCtor() { _cached_size_ = 0; c2s_ = NULL; } Request::~Request() { // @@protoc_insertion_point(destructor:Qot_GetSuspend.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_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Request& Request::default_instance() { ::protobuf_Qot_5fGetSuspend_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:Qot_GetSuspend.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:Qot_GetSuspend.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 .Qot_GetSuspend.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:Qot_GetSuspend.Request) return true; failure: // @@protoc_insertion_point(parse_failure:Qot_GetSuspend.Request) return false; #undef DO_ } void Request::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Qot_GetSuspend.Request) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .Qot_GetSuspend.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:Qot_GetSuspend.Request) } ::google::protobuf::uint8* Request::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Qot_GetSuspend.Request) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .Qot_GetSuspend.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:Qot_GetSuspend.Request) return target; } size_t Request::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Qot_GetSuspend.Request) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .Qot_GetSuspend.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:Qot_GetSuspend.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:Qot_GetSuspend.Request) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetSuspend.Request) MergeFrom(*source); } } void Request::MergeFrom(const Request& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetSuspend.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()->::Qot_GetSuspend::C2S::MergeFrom(from.c2s()); } } void Request::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Qot_GetSuspend.Request) if (&from == this) return; Clear(); MergeFrom(from); } void Request::CopyFrom(const Request& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetSuspend.Request) if (&from == this) return; Clear(); MergeFrom(from); } bool Request::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; if (has_c2s()) { if (!this->c2s_->IsInitialized()) 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_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Response::InitAsDefaultInstance() { ::Qot_GetSuspend::_Response_default_instance_._instance.get_mutable()->s2c_ = const_cast< ::Qot_GetSuspend::S2C*>( ::Qot_GetSuspend::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_Qot_5fGetSuspend_2eproto::InitDefaultsResponse(); } SharedCtor(); // @@protoc_insertion_point(constructor:Qot_GetSuspend.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 ::Qot_GetSuspend::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:Qot_GetSuspend.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:Qot_GetSuspend.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_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Response& Response::default_instance() { ::protobuf_Qot_5fGetSuspend_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:Qot_GetSuspend.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:Qot_GetSuspend.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, "Qot_GetSuspend.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 .Qot_GetSuspend.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:Qot_GetSuspend.Response) return true; failure: // @@protoc_insertion_point(parse_failure:Qot_GetSuspend.Response) return false; #undef DO_ } void Response::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Qot_GetSuspend.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, "Qot_GetSuspend.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 .Qot_GetSuspend.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:Qot_GetSuspend.Response) } ::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Qot_GetSuspend.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, "Qot_GetSuspend.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 .Qot_GetSuspend.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:Qot_GetSuspend.Response) return target; } size_t Response::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Qot_GetSuspend.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 .Qot_GetSuspend.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:Qot_GetSuspend.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:Qot_GetSuspend.Response) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetSuspend.Response) MergeFrom(*source); } } void Response::MergeFrom(const Response& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetSuspend.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()->::Qot_GetSuspend::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:Qot_GetSuspend.Response) if (&from == this) return; Clear(); MergeFrom(from); } void Response::CopyFrom(const Response& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetSuspend.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_Qot_5fGetSuspend_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fGetSuspend_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace Qot_GetSuspend // @@protoc_insertion_point(global_scope)