// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Qot_UpdatePriceReminder.proto #include "Qot_UpdatePriceReminder.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_UpdatePriceReminder { class S2CDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _S2C_default_instance_; class ResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Response_default_instance_; } // namespace Qot_UpdatePriceReminder namespace protobuf_Qot_5fUpdatePriceReminder_2eproto { 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_5fCommon_2eproto::InitDefaultsSecurity(); { void* ptr = &::Qot_UpdatePriceReminder::_S2C_default_instance_; new (ptr) ::Qot_UpdatePriceReminder::S2C(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Qot_UpdatePriceReminder::S2C::InitAsDefaultInstance(); } void InitDefaultsS2C() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsS2CImpl); } 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_5fUpdatePriceReminder_2eproto::InitDefaultsS2C(); { void* ptr = &::Qot_UpdatePriceReminder::_Response_default_instance_; new (ptr) ::Qot_UpdatePriceReminder::Response(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::Qot_UpdatePriceReminder::Response::InitAsDefaultInstance(); } void InitDefaultsResponse() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl); } ::google::protobuf::Metadata file_level_metadata[2]; const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, security_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, price_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, changerate_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, marketstatus_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, content_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, note_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, type_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, setvalue_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::S2C, curvalue_), 3, 2, 4, 5, 6, 0, 1, 8, 7, 9, 10, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::Response, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::Response, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::Response, rettype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::Response, retmsg_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::Response, errcode_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_UpdatePriceReminder::Response, s2c_), 3, 0, 2, 1, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 16, sizeof(::Qot_UpdatePriceReminder::S2C)}, { 27, 36, sizeof(::Qot_UpdatePriceReminder::Response)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::Qot_UpdatePriceReminder::_S2C_default_instance_), reinterpret_cast(&::Qot_UpdatePriceReminder::_Response_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "Qot_UpdatePriceReminder.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, file_level_enum_descriptors, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\035Qot_UpdatePriceReminder.proto\022\027Qot_Upd" "atePriceReminder\032\014Common.proto\032\020Qot_Comm" "on.proto\"\322\001\n\003S2C\022&\n\010security\030\001 \002(\0132\024.Qot" "_Common.Security\022\014\n\004name\030\013 \001(\t\022\r\n\005price\030" "\002 \002(\001\022\022\n\nchangeRate\030\003 \002(\001\022\024\n\014marketStatu" "s\030\004 \002(\005\022\017\n\007content\030\005 \002(\t\022\014\n\004note\030\006 \002(\t\022\013" "\n\003key\030\007 \001(\003\022\014\n\004type\030\010 \001(\005\022\020\n\010setValue\030\t " "\001(\001\022\020\n\010curValue\030\n \001(\001\"m\n\010Response\022\025\n\007ret" "Type\030\001 \002(\005:\004-400\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007errC" "ode\030\003 \001(\005\022)\n\003s2c\030\004 \001(\0132\034.Qot_UpdatePrice" "Reminder.S2C*p\n\014MarketStatus\022\027\n\023MarketSt" "atus_Unknow\020\000\022\025\n\021MarketStatus_Open\020\001\022\026\n\022" "MarketStatus_USPre\020\002\022\030\n\024MarketStatus_USA" "fter\020\003BM\n\023com.futu.openapi.pbZ6github.co" "m/futuopen/ftapi4go/pb/qotupdatepricerem" "inder" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 605); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "Qot_UpdatePriceReminder.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_5fUpdatePriceReminder_2eproto namespace Qot_UpdatePriceReminder { const ::google::protobuf::EnumDescriptor* MarketStatus_descriptor() { protobuf_Qot_5fUpdatePriceReminder_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_Qot_5fUpdatePriceReminder_2eproto::file_level_enum_descriptors[0]; } bool MarketStatus_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: return true; default: return false; } } // =================================================================== void S2C::InitAsDefaultInstance() { ::Qot_UpdatePriceReminder::_S2C_default_instance_._instance.get_mutable()->security_ = const_cast< ::Qot_Common::Security*>( ::Qot_Common::Security::internal_default_instance()); } void S2C::clear_security() { if (security_ != NULL) security_->Clear(); clear_has_security(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int S2C::kSecurityFieldNumber; const int S2C::kNameFieldNumber; const int S2C::kPriceFieldNumber; const int S2C::kChangeRateFieldNumber; const int S2C::kMarketStatusFieldNumber; const int S2C::kContentFieldNumber; const int S2C::kNoteFieldNumber; const int S2C::kKeyFieldNumber; const int S2C::kTypeFieldNumber; const int S2C::kSetValueFieldNumber; const int S2C::kCurValueFieldNumber; #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_5fUpdatePriceReminder_2eproto::InitDefaultsS2C(); } SharedCtor(); // @@protoc_insertion_point(constructor:Qot_UpdatePriceReminder.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_); content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_content()) { content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_); } note_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_note()) { note_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.note_); } name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_name()) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.has_security()) { security_ = new ::Qot_Common::Security(*from.security_); } else { security_ = NULL; } ::memcpy(&price_, &from.price_, static_cast(reinterpret_cast(&curvalue_) - reinterpret_cast(&price_)) + sizeof(curvalue_)); // @@protoc_insertion_point(copy_constructor:Qot_UpdatePriceReminder.S2C) } void S2C::SharedCtor() { _cached_size_ = 0; content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); note_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&security_, 0, static_cast( reinterpret_cast(&curvalue_) - reinterpret_cast(&security_)) + sizeof(curvalue_)); } S2C::~S2C() { // @@protoc_insertion_point(destructor:Qot_UpdatePriceReminder.S2C) SharedDtor(); } void S2C::SharedDtor() { content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); note_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete security_; } 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_5fUpdatePriceReminder_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fUpdatePriceReminder_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const S2C& S2C::default_instance() { ::protobuf_Qot_5fUpdatePriceReminder_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_UpdatePriceReminder.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 & 15u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(!content_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*content_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(!note_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*note_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*name_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(security_ != NULL); security_->Clear(); } } if (cached_has_bits & 240u) { ::memset(&price_, 0, static_cast( reinterpret_cast(&type_) - reinterpret_cast(&price_)) + sizeof(type_)); } if (cached_has_bits & 1792u) { ::memset(&key_, 0, static_cast( reinterpret_cast(&curvalue_) - reinterpret_cast(&key_)) + sizeof(curvalue_)); } _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_UpdatePriceReminder.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)) { // 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; } // required double price = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { set_has_price(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &price_))); } else { goto handle_unusual; } break; } // required double changeRate = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { set_has_changerate(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &changerate_))); } else { goto handle_unusual; } break; } // required int32 marketStatus = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { set_has_marketstatus(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &marketstatus_))); } else { goto handle_unusual; } break; } // required string content = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_content())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->content().data(), static_cast(this->content().length()), ::google::protobuf::internal::WireFormat::PARSE, "Qot_UpdatePriceReminder.S2C.content"); } else { goto handle_unusual; } break; } // required string note = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_note())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->note().data(), static_cast(this->note().length()), ::google::protobuf::internal::WireFormat::PARSE, "Qot_UpdatePriceReminder.S2C.note"); } else { goto handle_unusual; } break; } // optional int64 key = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { set_has_key(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &key_))); } else { goto handle_unusual; } break; } // optional int32 type = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { set_has_type(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &type_))); } else { goto handle_unusual; } break; } // optional double setValue = 9; case 9: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { set_has_setvalue(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &setvalue_))); } else { goto handle_unusual; } break; } // optional double curValue = 10; case 10: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { set_has_curvalue(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &curvalue_))); } else { goto handle_unusual; } break; } // optional string name = 11; case 11: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::PARSE, "Qot_UpdatePriceReminder.S2C.name"); } 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_UpdatePriceReminder.S2C) return true; failure: // @@protoc_insertion_point(parse_failure:Qot_UpdatePriceReminder.S2C) return false; #undef DO_ } void S2C::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Qot_UpdatePriceReminder.S2C) ::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 & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *this->security_, output); } // required double price = 2; if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->price(), output); } // required double changeRate = 3; if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->changerate(), output); } // required int32 marketStatus = 4; if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->marketstatus(), output); } // required string content = 5; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->content().data(), static_cast(this->content().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_UpdatePriceReminder.S2C.content"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->content(), output); } // required string note = 6; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->note().data(), static_cast(this->note().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_UpdatePriceReminder.S2C.note"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->note(), output); } // optional int64 key = 7; if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->key(), output); } // optional int32 type = 8; if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->type(), output); } // optional double setValue = 9; if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->setvalue(), output); } // optional double curValue = 10; if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->curvalue(), output); } // optional string name = 11; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_UpdatePriceReminder.S2C.name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 11, this->name(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Qot_UpdatePriceReminder.S2C) } ::google::protobuf::uint8* S2C::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Qot_UpdatePriceReminder.S2C) ::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 & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, *this->security_, deterministic, target); } // required double price = 2; if (cached_has_bits & 0x00000010u) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->price(), target); } // required double changeRate = 3; if (cached_has_bits & 0x00000020u) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->changerate(), target); } // required int32 marketStatus = 4; if (cached_has_bits & 0x00000040u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->marketstatus(), target); } // required string content = 5; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->content().data(), static_cast(this->content().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_UpdatePriceReminder.S2C.content"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 5, this->content(), target); } // required string note = 6; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->note().data(), static_cast(this->note().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_UpdatePriceReminder.S2C.note"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 6, this->note(), target); } // optional int64 key = 7; if (cached_has_bits & 0x00000100u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->key(), target); } // optional int32 type = 8; if (cached_has_bits & 0x00000080u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->type(), target); } // optional double setValue = 9; if (cached_has_bits & 0x00000200u) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->setvalue(), target); } // optional double curValue = 10; if (cached_has_bits & 0x00000400u) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->curvalue(), target); } // optional string name = 11; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "Qot_UpdatePriceReminder.S2C.name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 11, this->name(), 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_UpdatePriceReminder.S2C) return target; } size_t S2C::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Qot_UpdatePriceReminder.S2C) size_t total_size = 0; if (has_content()) { // required string content = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->content()); } if (has_note()) { // required string note = 6; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->note()); } if (has_security()) { // required .Qot_Common.Security security = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->security_); } if (has_price()) { // required double price = 2; total_size += 1 + 8; } if (has_changerate()) { // required double changeRate = 3; total_size += 1 + 8; } if (has_marketstatus()) { // required int32 marketStatus = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketstatus()); } return total_size; } size_t S2C::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Qot_UpdatePriceReminder.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] & 0x0000007b) ^ 0x0000007b) == 0) { // All required fields are present. // required string content = 5; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->content()); // required string note = 6; total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->note()); // required .Qot_Common.Security security = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *this->security_); // required double price = 2; total_size += 1 + 8; // required double changeRate = 3; total_size += 1 + 8; // required int32 marketStatus = 4; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->marketstatus()); } else { total_size += RequiredFieldsByteSizeFallback(); } // optional string name = 11; if (has_name()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // optional int32 type = 8; if (has_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->type()); } if (_has_bits_[8 / 32] & 1792u) { // optional int64 key = 7; if (has_key()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->key()); } // optional double setValue = 9; if (has_setvalue()) { total_size += 1 + 8; } // optional double curValue = 10; if (has_curvalue()) { 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 S2C::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Qot_UpdatePriceReminder.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_UpdatePriceReminder.S2C) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_UpdatePriceReminder.S2C) MergeFrom(*source); } } void S2C::MergeFrom(const S2C& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Qot_UpdatePriceReminder.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_content(); content_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_); } if (cached_has_bits & 0x00000002u) { set_has_note(); note_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.note_); } if (cached_has_bits & 0x00000004u) { set_has_name(); name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (cached_has_bits & 0x00000008u) { mutable_security()->::Qot_Common::Security::MergeFrom(from.security()); } if (cached_has_bits & 0x00000010u) { price_ = from.price_; } if (cached_has_bits & 0x00000020u) { changerate_ = from.changerate_; } if (cached_has_bits & 0x00000040u) { marketstatus_ = from.marketstatus_; } if (cached_has_bits & 0x00000080u) { type_ = from.type_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 1792u) { if (cached_has_bits & 0x00000100u) { key_ = from.key_; } if (cached_has_bits & 0x00000200u) { setvalue_ = from.setvalue_; } if (cached_has_bits & 0x00000400u) { curvalue_ = from.curvalue_; } _has_bits_[0] |= cached_has_bits; } } void S2C::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Qot_UpdatePriceReminder.S2C) if (&from == this) return; Clear(); MergeFrom(from); } void S2C::CopyFrom(const S2C& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Qot_UpdatePriceReminder.S2C) if (&from == this) return; Clear(); MergeFrom(from); } bool S2C::IsInitialized() const { if ((_has_bits_[0] & 0x0000007b) != 0x0000007b) return false; if (has_security()) { if (!this->security_->IsInitialized()) return false; } return true; } void S2C::Swap(S2C* other) { if (other == this) return; InternalSwap(other); } void S2C::InternalSwap(S2C* other) { using std::swap; content_.Swap(&other->content_); note_.Swap(&other->note_); name_.Swap(&other->name_); swap(security_, other->security_); swap(price_, other->price_); swap(changerate_, other->changerate_); swap(marketstatus_, other->marketstatus_); swap(type_, other->type_); swap(key_, other->key_); swap(setvalue_, other->setvalue_); swap(curvalue_, other->curvalue_); 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_5fUpdatePriceReminder_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fUpdatePriceReminder_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Response::InitAsDefaultInstance() { ::Qot_UpdatePriceReminder::_Response_default_instance_._instance.get_mutable()->s2c_ = const_cast< ::Qot_UpdatePriceReminder::S2C*>( ::Qot_UpdatePriceReminder::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_5fUpdatePriceReminder_2eproto::InitDefaultsResponse(); } SharedCtor(); // @@protoc_insertion_point(constructor:Qot_UpdatePriceReminder.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_UpdatePriceReminder::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_UpdatePriceReminder.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_UpdatePriceReminder.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_5fUpdatePriceReminder_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fUpdatePriceReminder_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Response& Response::default_instance() { ::protobuf_Qot_5fUpdatePriceReminder_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_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.Response) return true; failure: // @@protoc_insertion_point(parse_failure:Qot_UpdatePriceReminder.Response) return false; #undef DO_ } void Response::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Qot_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.Response) } ::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Qot_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.Response) return target; } size_t Response::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Qot_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.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_UpdatePriceReminder.Response) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_UpdatePriceReminder.Response) MergeFrom(*source); } } void Response::MergeFrom(const Response& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Qot_UpdatePriceReminder.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_UpdatePriceReminder::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_UpdatePriceReminder.Response) if (&from == this) return; Clear(); MergeFrom(from); } void Response::CopyFrom(const Response& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Qot_UpdatePriceReminder.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_5fUpdatePriceReminder_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_Qot_5fUpdatePriceReminder_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace Qot_UpdatePriceReminder // @@protoc_insertion_point(global_scope)