// Generated by the protocol buffer compiler. DO NOT EDIT! // source: GetGlobalState.proto #include "GetGlobalState.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 GetGlobalState { class C2SDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _C2S_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 GetGlobalState namespace protobuf_GetGlobalState_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 = &::GetGlobalState::_C2S_default_instance_; new (ptr) ::GetGlobalState::C2S(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetGlobalState::C2S::InitAsDefaultInstance(); } void InitDefaultsC2S() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsC2SImpl); } 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_Common_2eproto::InitDefaultsProgramStatus(); { void* ptr = &::GetGlobalState::_S2C_default_instance_; new (ptr) ::GetGlobalState::S2C(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetGlobalState::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_GetGlobalState_2eproto::InitDefaultsC2S(); { void* ptr = &::GetGlobalState::_Request_default_instance_; new (ptr) ::GetGlobalState::Request(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetGlobalState::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_GetGlobalState_2eproto::InitDefaultsS2C(); { void* ptr = &::GetGlobalState::_Response_default_instance_; new (ptr) ::GetGlobalState::Response(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::GetGlobalState::Response::InitAsDefaultInstance(); } void InitDefaultsResponse() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl); } ::google::protobuf::Metadata file_level_metadata[4]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::C2S, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::C2S, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::C2S, userid_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, markethk_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, marketus_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, marketsh_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, marketsz_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, markethkfuture_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, marketusfuture_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, marketsgfuture_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, marketjpfuture_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, qotlogined_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, trdlogined_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, serverver_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, serverbuildno_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, time_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, localtime_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, programstatus_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, qotsvripaddr_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, trdsvripaddr_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::S2C, connid_), 3, 4, 5, 6, 7, 15, 16, 17, 8, 9, 10, 11, 12, 13, 2, 0, 1, 14, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Request, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Request, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Request, c2s_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Response, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Response, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Response, rettype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Response, retmsg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Response, errcode_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetGlobalState::Response, s2c_), 3, 0, 2, 1, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 6, sizeof(::GetGlobalState::C2S)}, { 7, 30, sizeof(::GetGlobalState::S2C)}, { 48, 54, sizeof(::GetGlobalState::Request)}, { 55, 64, sizeof(::GetGlobalState::Response)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::GetGlobalState::_C2S_default_instance_), reinterpret_cast(&::GetGlobalState::_S2C_default_instance_), reinterpret_cast(&::GetGlobalState::_Request_default_instance_), reinterpret_cast(&::GetGlobalState::_Response_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "GetGlobalState.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, 4); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\024GetGlobalState.proto\022\016GetGlobalState\032\014" "Common.proto\032\020Qot_Common.proto\"\025\n\003C2S\022\016\n" "\006userID\030\001 \002(\004\"\212\003\n\003S2C\022\020\n\010marketHK\030\001 \002(\005\022" "\020\n\010marketUS\030\002 \002(\005\022\020\n\010marketSH\030\003 \002(\005\022\020\n\010m" "arketSZ\030\004 \002(\005\022\026\n\016marketHKFuture\030\005 \002(\005\022\026\n" "\016marketUSFuture\030\017 \001(\005\022\026\n\016marketSGFuture\030" "\021 \001(\005\022\026\n\016marketJPFuture\030\022 \001(\005\022\022\n\nqotLogi" "ned\030\006 \002(\010\022\022\n\ntrdLogined\030\007 \002(\010\022\021\n\tserverV" "er\030\010 \002(\005\022\025\n\rserverBuildNo\030\t \002(\005\022\014\n\004time\030" "\n \002(\003\022\021\n\tlocalTime\030\013 \001(\001\022,\n\rprogramStatu" "s\030\014 \001(\0132\025.Common.ProgramStatus\022\024\n\014qotSvr" "IpAddr\030\r \001(\t\022\024\n\014trdSvrIpAddr\030\016 \001(\t\022\016\n\006co" "nnID\030\020 \001(\004\"+\n\007Request\022 \n\003c2s\030\001 \002(\0132\023.Get" "GlobalState.C2S\"d\n\010Response\022\025\n\007retType\030\001" " \002(\005:\004-400\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007errCode\030\003 " "\001(\005\022 \n\003s2c\030\004 \001(\0132\023.GetGlobalState.S2CBE\n" "\023com.futu.openapi.pbZ.github.com/futuope" "n/ftapi4go/pb/getglobalstate" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 708); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "GetGlobalState.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_GetGlobalState_2eproto namespace GetGlobalState { // =================================================================== void C2S::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int C2S::kUserIDFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 C2S::C2S() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetGlobalState_2eproto::InitDefaultsC2S(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetGlobalState.C2S) } C2S::C2S(const C2S& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); userid_ = from.userid_; // @@protoc_insertion_point(copy_constructor:GetGlobalState.C2S) } void C2S::SharedCtor() { _cached_size_ = 0; userid_ = GOOGLE_ULONGLONG(0); } C2S::~C2S() { // @@protoc_insertion_point(destructor:GetGlobalState.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_GetGlobalState_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetGlobalState_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const C2S& C2S::default_instance() { ::protobuf_GetGlobalState_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:GetGlobalState.C2S) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; userid_ = GOOGLE_ULONGLONG(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:GetGlobalState.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)) { // required uint64 userID = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_userid(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( input, &userid_))); } 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:GetGlobalState.C2S) return true; failure: // @@protoc_insertion_point(parse_failure:GetGlobalState.C2S) return false; #undef DO_ } void C2S::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetGlobalState.C2S) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required uint64 userID = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->userid(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetGlobalState.C2S) } ::google::protobuf::uint8* C2S::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetGlobalState.C2S) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required uint64 userID = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->userid(), 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:GetGlobalState.C2S) return target; } size_t C2S::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetGlobalState.C2S) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required uint64 userID = 1; if (has_userid()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt64Size( this->userid()); } 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:GetGlobalState.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:GetGlobalState.C2S) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetGlobalState.C2S) MergeFrom(*source); } } void C2S::MergeFrom(const C2S& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetGlobalState.C2S) 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_userid()) { set_userid(from.userid()); } } void C2S::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetGlobalState.C2S) if (&from == this) return; Clear(); MergeFrom(from); } void C2S::CopyFrom(const C2S& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetGlobalState.C2S) if (&from == this) return; Clear(); MergeFrom(from); } bool C2S::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; return true; } void C2S::Swap(C2S* other) { if (other == this) return; InternalSwap(other); } void C2S::InternalSwap(C2S* other) { using std::swap; swap(userid_, other->userid_); 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_GetGlobalState_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetGlobalState_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void S2C::InitAsDefaultInstance() { ::GetGlobalState::_S2C_default_instance_._instance.get_mutable()->programstatus_ = const_cast< ::Common::ProgramStatus*>( ::Common::ProgramStatus::internal_default_instance()); } void S2C::clear_programstatus() { if (programstatus_ != NULL) programstatus_->Clear(); clear_has_programstatus(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int S2C::kMarketHKFieldNumber; const int S2C::kMarketUSFieldNumber; const int S2C::kMarketSHFieldNumber; const int S2C::kMarketSZFieldNumber; const int S2C::kMarketHKFutureFieldNumber; const int S2C::kMarketUSFutureFieldNumber; const int S2C::kMarketSGFutureFieldNumber; const int S2C::kMarketJPFutureFieldNumber; const int S2C::kQotLoginedFieldNumber; const int S2C::kTrdLoginedFieldNumber; const int S2C::kServerVerFieldNumber; const int S2C::kServerBuildNoFieldNumber; const int S2C::kTimeFieldNumber; const int S2C::kLocalTimeFieldNumber; const int S2C::kProgramStatusFieldNumber; const int S2C::kQotSvrIpAddrFieldNumber; const int S2C::kTrdSvrIpAddrFieldNumber; const int S2C::kConnIDFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 S2C::S2C() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_GetGlobalState_2eproto::InitDefaultsS2C(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetGlobalState.S2C) } S2C::S2C(const S2C& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); qotsvripaddr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_qotsvripaddr()) { qotsvripaddr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.qotsvripaddr_); } trdsvripaddr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_trdsvripaddr()) { trdsvripaddr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trdsvripaddr_); } if (from.has_programstatus()) { programstatus_ = new ::Common::ProgramStatus(*from.programstatus_); } else { programstatus_ = NULL; } ::memcpy(&markethk_, &from.markethk_, static_cast(reinterpret_cast(&marketjpfuture_) - reinterpret_cast(&markethk_)) + sizeof(marketjpfuture_)); // @@protoc_insertion_point(copy_constructor:GetGlobalState.S2C) } void S2C::SharedCtor() { _cached_size_ = 0; qotsvripaddr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); trdsvripaddr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&programstatus_, 0, static_cast( reinterpret_cast(&marketjpfuture_) - reinterpret_cast(&programstatus_)) + sizeof(marketjpfuture_)); } S2C::~S2C() { // @@protoc_insertion_point(destructor:GetGlobalState.S2C) SharedDtor(); } void S2C::SharedDtor() { qotsvripaddr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); trdsvripaddr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete programstatus_; } 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_GetGlobalState_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetGlobalState_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const S2C& S2C::default_instance() { ::protobuf_GetGlobalState_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:GetGlobalState.S2C) ::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 & 7u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!qotsvripaddr_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*qotsvripaddr_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(!trdsvripaddr_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*trdsvripaddr_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(programstatus_ != NULL); programstatus_->Clear(); } } if (cached_has_bits & 248u) { ::memset(&markethk_, 0, static_cast( reinterpret_cast(&markethkfuture_) - reinterpret_cast(&markethk_)) + sizeof(markethkfuture_)); } if (cached_has_bits & 65280u) { ::memset(&qotlogined_, 0, static_cast( reinterpret_cast(&marketusfuture_) - reinterpret_cast(&qotlogined_)) + sizeof(marketusfuture_)); } if (cached_has_bits & 196608u) { ::memset(&marketsgfuture_, 0, static_cast( reinterpret_cast(&marketjpfuture_) - reinterpret_cast(&marketsgfuture_)) + sizeof(marketjpfuture_)); } _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:GetGlobalState.S2C) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required int32 marketHK = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_markethk(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &markethk_))); } else { goto handle_unusual; } break; } // required int32 marketUS = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_marketus(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &marketus_))); } else { goto handle_unusual; } break; } // required int32 marketSH = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_marketsh(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &marketsh_))); } else { goto handle_unusual; } break; } // required int32 marketSZ = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_marketsz(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &marketsz_))); } else { goto handle_unusual; } break; } // required int32 marketHKFuture = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { set_has_markethkfuture(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &markethkfuture_))); } else { goto handle_unusual; } break; } // required bool qotLogined = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { set_has_qotlogined(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &qotlogined_))); } else { goto handle_unusual; } break; } // required bool trdLogined = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { set_has_trdlogined(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &trdlogined_))); } else { goto handle_unusual; } break; } // required int32 serverVer = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { set_has_serverver(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &serverver_))); } else { goto handle_unusual; } break; } // required int32 serverBuildNo = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { set_has_serverbuildno(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &serverbuildno_))); } else { goto handle_unusual; } break; } // required int64 time = 10; case 10: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { set_has_time(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &time_))); } else { goto handle_unusual; } break; } // optional double localTime = 11; case 11: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { set_has_localtime(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &localtime_))); } else { goto handle_unusual; } break; } // optional .Common.ProgramStatus programStatus = 12; case 12: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_programstatus())); } else { goto handle_unusual; } break; } // optional string qotSvrIpAddr = 13; case 13: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_qotsvripaddr())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->qotsvripaddr().data(), static_cast(this->qotsvripaddr().length()), ::google::protobuf::internal::WireFormat::PARSE, "GetGlobalState.S2C.qotSvrIpAddr"); } else { goto handle_unusual; } break; } // optional string trdSvrIpAddr = 14; case 14: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_trdsvripaddr())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->trdsvripaddr().data(), static_cast(this->trdsvripaddr().length()), ::google::protobuf::internal::WireFormat::PARSE, "GetGlobalState.S2C.trdSvrIpAddr"); } else { goto handle_unusual; } break; } // optional int32 marketUSFuture = 15; case 15: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) { set_has_marketusfuture(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &marketusfuture_))); } else { goto handle_unusual; } break; } // optional uint64 connID = 16; case 16: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { set_has_connid(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( input, &connid_))); } else { goto handle_unusual; } break; } // optional int32 marketSGFuture = 17; case 17: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { set_has_marketsgfuture(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &marketsgfuture_))); } else { goto handle_unusual; } break; } // optional int32 marketJPFuture = 18; case 18: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { set_has_marketjpfuture(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &marketjpfuture_))); } 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:GetGlobalState.S2C) return true; failure: // @@protoc_insertion_point(parse_failure:GetGlobalState.S2C) return false; #undef DO_ } void S2C::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetGlobalState.S2C) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 marketHK = 1; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->markethk(), output); } // required int32 marketUS = 2; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->marketus(), output); } // required int32 marketSH = 3; if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->marketsh(), output); } // required int32 marketSZ = 4; if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->marketsz(), output); } // required int32 marketHKFuture = 5; if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->markethkfuture(), output); } // required bool qotLogined = 6; if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->qotlogined(), output); } // required bool trdLogined = 7; if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->trdlogined(), output); } // required int32 serverVer = 8; if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->serverver(), output); } // required int32 serverBuildNo = 9; if (cached_has_bits & 0x00000800u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->serverbuildno(), output); } // required int64 time = 10; if (cached_has_bits & 0x00001000u) { ::google::protobuf::internal::WireFormatLite::WriteInt64(10, this->time(), output); } // optional double localTime = 11; if (cached_has_bits & 0x00002000u) { ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->localtime(), output); } // optional .Common.ProgramStatus programStatus = 12; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 12, *this->programstatus_, output); } // optional string qotSvrIpAddr = 13; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->qotsvripaddr().data(), static_cast(this->qotsvripaddr().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "GetGlobalState.S2C.qotSvrIpAddr"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 13, this->qotsvripaddr(), output); } // optional string trdSvrIpAddr = 14; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->trdsvripaddr().data(), static_cast(this->trdsvripaddr().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "GetGlobalState.S2C.trdSvrIpAddr"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 14, this->trdsvripaddr(), output); } // optional int32 marketUSFuture = 15; if (cached_has_bits & 0x00008000u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->marketusfuture(), output); } // optional uint64 connID = 16; if (cached_has_bits & 0x00004000u) { ::google::protobuf::internal::WireFormatLite::WriteUInt64(16, this->connid(), output); } // optional int32 marketSGFuture = 17; if (cached_has_bits & 0x00010000u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->marketsgfuture(), output); } // optional int32 marketJPFuture = 18; if (cached_has_bits & 0x00020000u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->marketjpfuture(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:GetGlobalState.S2C) } ::google::protobuf::uint8* S2C::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetGlobalState.S2C) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 marketHK = 1; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->markethk(), target); } // required int32 marketUS = 2; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->marketus(), target); } // required int32 marketSH = 3; if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->marketsh(), target); } // required int32 marketSZ = 4; if (cached_has_bits & 0x00000040u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->marketsz(), target); } // required int32 marketHKFuture = 5; if (cached_has_bits & 0x00000080u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->markethkfuture(), target); } // required bool qotLogined = 6; if (cached_has_bits & 0x00000100u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->qotlogined(), target); } // required bool trdLogined = 7; if (cached_has_bits & 0x00000200u) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->trdlogined(), target); } // required int32 serverVer = 8; if (cached_has_bits & 0x00000400u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->serverver(), target); } // required int32 serverBuildNo = 9; if (cached_has_bits & 0x00000800u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->serverbuildno(), target); } // required int64 time = 10; if (cached_has_bits & 0x00001000u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(10, this->time(), target); } // optional double localTime = 11; if (cached_has_bits & 0x00002000u) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->localtime(), target); } // optional .Common.ProgramStatus programStatus = 12; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 12, *this->programstatus_, deterministic, target); } // optional string qotSvrIpAddr = 13; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->qotsvripaddr().data(), static_cast(this->qotsvripaddr().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "GetGlobalState.S2C.qotSvrIpAddr"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 13, this->qotsvripaddr(), target); } // optional string trdSvrIpAddr = 14; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->trdsvripaddr().data(), static_cast(this->trdsvripaddr().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "GetGlobalState.S2C.trdSvrIpAddr"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 14, this->trdsvripaddr(), target); } // optional int32 marketUSFuture = 15; if (cached_has_bits & 0x00008000u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->marketusfuture(), target); } // optional uint64 connID = 16; if (cached_has_bits & 0x00004000u) { target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(16, this->connid(), target); } // optional int32 marketSGFuture = 17; if (cached_has_bits & 0x00010000u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->marketsgfuture(), target); } // optional int32 marketJPFuture = 18; if (cached_has_bits & 0x00020000u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->marketjpfuture(), 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:GetGlobalState.S2C) return target; } size_t S2C::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:GetGlobalState.S2C) size_t total_size = 0; if (has_markethk()) { // required int32 marketHK = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->markethk()); } if (has_marketus()) { // required int32 marketUS = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketus()); } if (has_marketsh()) { // required int32 marketSH = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketsh()); } if (has_marketsz()) { // required int32 marketSZ = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketsz()); } if (has_markethkfuture()) { // required int32 marketHKFuture = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->markethkfuture()); } if (has_qotlogined()) { // required bool qotLogined = 6; total_size += 1 + 1; } if (has_trdlogined()) { // required bool trdLogined = 7; total_size += 1 + 1; } if (has_serverver()) { // required int32 serverVer = 8; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->serverver()); } if (has_serverbuildno()) { // required int32 serverBuildNo = 9; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->serverbuildno()); } if (has_time()) { // required int64 time = 10; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->time()); } return total_size; } size_t S2C::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetGlobalState.S2C) 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] & 0x00001ff8) ^ 0x00001ff8) == 0) { // All required fields are present. // required int32 marketHK = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->markethk()); // required int32 marketUS = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketus()); // required int32 marketSH = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketsh()); // required int32 marketSZ = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketsz()); // required int32 marketHKFuture = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->markethkfuture()); // required bool qotLogined = 6; total_size += 1 + 1; // required bool trdLogined = 7; total_size += 1 + 1; // required int32 serverVer = 8; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->serverver()); // required int32 serverBuildNo = 9; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->serverbuildno()); // required int64 time = 10; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->time()); } else { total_size += RequiredFieldsByteSizeFallback(); } if (_has_bits_[0 / 32] & 7u) { // optional string qotSvrIpAddr = 13; if (has_qotsvripaddr()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->qotsvripaddr()); } // optional string trdSvrIpAddr = 14; if (has_trdsvripaddr()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->trdsvripaddr()); } // optional .Common.ProgramStatus programStatus = 12; if (has_programstatus()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->programstatus_); } } if (_has_bits_[8 / 32] & 57344u) { // optional double localTime = 11; if (has_localtime()) { total_size += 1 + 8; } // optional uint64 connID = 16; if (has_connid()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::UInt64Size( this->connid()); } // optional int32 marketUSFuture = 15; if (has_marketusfuture()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketusfuture()); } } if (_has_bits_[16 / 32] & 196608u) { // optional int32 marketSGFuture = 17; if (has_marketsgfuture()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketsgfuture()); } // optional int32 marketJPFuture = 18; if (has_marketjpfuture()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketjpfuture()); } } 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:GetGlobalState.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:GetGlobalState.S2C) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetGlobalState.S2C) MergeFrom(*source); } } void S2C::MergeFrom(const S2C& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetGlobalState.S2C) 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 & 255u) { if (cached_has_bits & 0x00000001u) { set_has_qotsvripaddr(); qotsvripaddr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.qotsvripaddr_); } if (cached_has_bits & 0x00000002u) { set_has_trdsvripaddr(); trdsvripaddr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trdsvripaddr_); } if (cached_has_bits & 0x00000004u) { mutable_programstatus()->::Common::ProgramStatus::MergeFrom(from.programstatus()); } if (cached_has_bits & 0x00000008u) { markethk_ = from.markethk_; } if (cached_has_bits & 0x00000010u) { marketus_ = from.marketus_; } if (cached_has_bits & 0x00000020u) { marketsh_ = from.marketsh_; } if (cached_has_bits & 0x00000040u) { marketsz_ = from.marketsz_; } if (cached_has_bits & 0x00000080u) { markethkfuture_ = from.markethkfuture_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 65280u) { if (cached_has_bits & 0x00000100u) { qotlogined_ = from.qotlogined_; } if (cached_has_bits & 0x00000200u) { trdlogined_ = from.trdlogined_; } if (cached_has_bits & 0x00000400u) { serverver_ = from.serverver_; } if (cached_has_bits & 0x00000800u) { serverbuildno_ = from.serverbuildno_; } if (cached_has_bits & 0x00001000u) { time_ = from.time_; } if (cached_has_bits & 0x00002000u) { localtime_ = from.localtime_; } if (cached_has_bits & 0x00004000u) { connid_ = from.connid_; } if (cached_has_bits & 0x00008000u) { marketusfuture_ = from.marketusfuture_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 196608u) { if (cached_has_bits & 0x00010000u) { marketsgfuture_ = from.marketsgfuture_; } if (cached_has_bits & 0x00020000u) { marketjpfuture_ = from.marketjpfuture_; } _has_bits_[0] |= cached_has_bits; } } void S2C::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetGlobalState.S2C) if (&from == this) return; Clear(); MergeFrom(from); } void S2C::CopyFrom(const S2C& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetGlobalState.S2C) if (&from == this) return; Clear(); MergeFrom(from); } bool S2C::IsInitialized() const { if ((_has_bits_[0] & 0x00001ff8) != 0x00001ff8) return false; if (has_programstatus()) { if (!this->programstatus_->IsInitialized()) return false; } return true; } void S2C::Swap(S2C* other) { if (other == this) return; InternalSwap(other); } void S2C::InternalSwap(S2C* other) { using std::swap; qotsvripaddr_.Swap(&other->qotsvripaddr_); trdsvripaddr_.Swap(&other->trdsvripaddr_); swap(programstatus_, other->programstatus_); swap(markethk_, other->markethk_); swap(marketus_, other->marketus_); swap(marketsh_, other->marketsh_); swap(marketsz_, other->marketsz_); swap(markethkfuture_, other->markethkfuture_); swap(qotlogined_, other->qotlogined_); swap(trdlogined_, other->trdlogined_); swap(serverver_, other->serverver_); swap(serverbuildno_, other->serverbuildno_); swap(time_, other->time_); swap(localtime_, other->localtime_); swap(connid_, other->connid_); swap(marketusfuture_, other->marketusfuture_); swap(marketsgfuture_, other->marketsgfuture_); swap(marketjpfuture_, other->marketjpfuture_); 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_GetGlobalState_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetGlobalState_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Request::InitAsDefaultInstance() { ::GetGlobalState::_Request_default_instance_._instance.get_mutable()->c2s_ = const_cast< ::GetGlobalState::C2S*>( ::GetGlobalState::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_GetGlobalState_2eproto::InitDefaultsRequest(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetGlobalState.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 ::GetGlobalState::C2S(*from.c2s_); } else { c2s_ = NULL; } // @@protoc_insertion_point(copy_constructor:GetGlobalState.Request) } void Request::SharedCtor() { _cached_size_ = 0; c2s_ = NULL; } Request::~Request() { // @@protoc_insertion_point(destructor:GetGlobalState.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_GetGlobalState_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetGlobalState_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Request& Request::default_instance() { ::protobuf_GetGlobalState_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:GetGlobalState.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:GetGlobalState.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 .GetGlobalState.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:GetGlobalState.Request) return true; failure: // @@protoc_insertion_point(parse_failure:GetGlobalState.Request) return false; #undef DO_ } void Request::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetGlobalState.Request) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .GetGlobalState.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:GetGlobalState.Request) } ::google::protobuf::uint8* Request::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetGlobalState.Request) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required .GetGlobalState.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:GetGlobalState.Request) return target; } size_t Request::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetGlobalState.Request) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // required .GetGlobalState.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:GetGlobalState.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:GetGlobalState.Request) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetGlobalState.Request) MergeFrom(*source); } } void Request::MergeFrom(const Request& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetGlobalState.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()->::GetGlobalState::C2S::MergeFrom(from.c2s()); } } void Request::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:GetGlobalState.Request) if (&from == this) return; Clear(); MergeFrom(from); } void Request::CopyFrom(const Request& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetGlobalState.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_GetGlobalState_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetGlobalState_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Response::InitAsDefaultInstance() { ::GetGlobalState::_Response_default_instance_._instance.get_mutable()->s2c_ = const_cast< ::GetGlobalState::S2C*>( ::GetGlobalState::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_GetGlobalState_2eproto::InitDefaultsResponse(); } SharedCtor(); // @@protoc_insertion_point(constructor:GetGlobalState.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 ::GetGlobalState::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:GetGlobalState.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:GetGlobalState.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_GetGlobalState_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetGlobalState_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Response& Response::default_instance() { ::protobuf_GetGlobalState_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:GetGlobalState.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:GetGlobalState.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, "GetGlobalState.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 .GetGlobalState.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:GetGlobalState.Response) return true; failure: // @@protoc_insertion_point(parse_failure:GetGlobalState.Response) return false; #undef DO_ } void Response::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:GetGlobalState.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, "GetGlobalState.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 .GetGlobalState.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:GetGlobalState.Response) } ::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:GetGlobalState.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, "GetGlobalState.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 .GetGlobalState.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:GetGlobalState.Response) return target; } size_t Response::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:GetGlobalState.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 .GetGlobalState.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:GetGlobalState.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:GetGlobalState.Response) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:GetGlobalState.Response) MergeFrom(*source); } } void Response::MergeFrom(const Response& from) { // @@protoc_insertion_point(class_specific_merge_from_start:GetGlobalState.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()->::GetGlobalState::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:GetGlobalState.Response) if (&from == this) return; Clear(); MergeFrom(from); } void Response::CopyFrom(const Response& from) { // @@protoc_insertion_point(class_specific_copy_from_start:GetGlobalState.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_GetGlobalState_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_GetGlobalState_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace GetGlobalState // @@protoc_insertion_point(global_scope)