// Generated by the protocol buffer compiler. DO NOT EDIT! // source: client2world_daily_box_lottery.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "client2world_daily_box_lottery.pb.h" #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace client2world_protocols { namespace { const ::google::protobuf::Descriptor* packetc2w_req_sign_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetc2w_req_sign_reflection_ = NULL; const ::google::protobuf::Descriptor* packetw2c_req_sign_result_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetw2c_req_sign_result_reflection_ = NULL; const ::google::protobuf::Descriptor* packetc2w_req_sign_info_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetc2w_req_sign_info_reflection_ = NULL; const ::google::protobuf::Descriptor* packetw2c_req_sign_info_result_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetw2c_req_sign_info_result_reflection_ = NULL; const ::google::protobuf::Descriptor* packetc2w_req_recv_sevenday_reward_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetc2w_req_recv_sevenday_reward_reflection_ = NULL; const ::google::protobuf::Descriptor* packetc2w_req_recv_sevenday_reward_result_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* packetc2w_req_recv_sevenday_reward_result_reflection_ = NULL; } // namespace void protobuf_AssignDesc_client2world_5fdaily_5fbox_5flottery_2eproto() { protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "client2world_daily_box_lottery.proto"); GOOGLE_CHECK(file != NULL); packetc2w_req_sign_descriptor_ = file->message_type(0); static const int packetc2w_req_sign_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign, double__), }; packetc2w_req_sign_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetc2w_req_sign_descriptor_, packetc2w_req_sign::default_instance_, packetc2w_req_sign_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetc2w_req_sign)); packetw2c_req_sign_result_descriptor_ = file->message_type(1); static const int packetw2c_req_sign_result_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, double__), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, result_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, itemlist_), }; packetw2c_req_sign_result_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetw2c_req_sign_result_descriptor_, packetw2c_req_sign_result::default_instance_, packetw2c_req_sign_result_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_result, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetw2c_req_sign_result)); packetc2w_req_sign_info_descriptor_ = file->message_type(2); static const int packetc2w_req_sign_info_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign_info, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign_info, signtype_), }; packetc2w_req_sign_info_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetc2w_req_sign_info_descriptor_, packetc2w_req_sign_info::default_instance_, packetc2w_req_sign_info_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign_info, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_sign_info, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetc2w_req_sign_info)); packetw2c_req_sign_info_result_descriptor_ = file->message_type(3); static const int packetw2c_req_sign_info_result_offsets_[8] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, signtype_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, signcount_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, keepsigncount_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, signuplevel_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, cansign_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, hassigncount_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, sevendaycansign_), }; packetw2c_req_sign_info_result_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetw2c_req_sign_info_result_descriptor_, packetw2c_req_sign_info_result::default_instance_, packetw2c_req_sign_info_result_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_req_sign_info_result, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetw2c_req_sign_info_result)); packetc2w_req_recv_sevenday_reward_descriptor_ = file->message_type(4); static const int packetc2w_req_recv_sevenday_reward_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward, day_), }; packetc2w_req_recv_sevenday_reward_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetc2w_req_recv_sevenday_reward_descriptor_, packetc2w_req_recv_sevenday_reward::default_instance_, packetc2w_req_recv_sevenday_reward_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetc2w_req_recv_sevenday_reward)); packetc2w_req_recv_sevenday_reward_result_descriptor_ = file->message_type(5); static const int packetc2w_req_recv_sevenday_reward_result_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, packet_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, day_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, result_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, itemlist_), }; packetc2w_req_recv_sevenday_reward_result_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( packetc2w_req_recv_sevenday_reward_result_descriptor_, packetc2w_req_recv_sevenday_reward_result::default_instance_, packetc2w_req_recv_sevenday_reward_result_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_req_recv_sevenday_reward_result, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(packetc2w_req_recv_sevenday_reward_result)); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); inline void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_client2world_5fdaily_5fbox_5flottery_2eproto); } void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetc2w_req_sign_descriptor_, &packetc2w_req_sign::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetw2c_req_sign_result_descriptor_, &packetw2c_req_sign_result::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetc2w_req_sign_info_descriptor_, &packetc2w_req_sign_info::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetw2c_req_sign_info_result_descriptor_, &packetw2c_req_sign_info_result::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetc2w_req_recv_sevenday_reward_descriptor_, &packetc2w_req_recv_sevenday_reward::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( packetc2w_req_recv_sevenday_reward_result_descriptor_, &packetc2w_req_recv_sevenday_reward_result::default_instance()); } } // namespace void protobuf_ShutdownFile_client2world_5fdaily_5fbox_5flottery_2eproto() { delete packetc2w_req_sign::default_instance_; delete packetc2w_req_sign_reflection_; delete packetw2c_req_sign_result::default_instance_; delete packetw2c_req_sign_result_reflection_; delete packetc2w_req_sign_info::default_instance_; delete packetc2w_req_sign_info_reflection_; delete packetw2c_req_sign_info_result::default_instance_; delete packetw2c_req_sign_info_result_reflection_; delete packetc2w_req_recv_sevenday_reward::default_instance_; delete packetc2w_req_recv_sevenday_reward_reflection_; delete packetc2w_req_recv_sevenday_reward_result::default_instance_; delete packetc2w_req_recv_sevenday_reward_result_reflection_; } void protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto() { static bool already_here = false; if (already_here) return; already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; ::client2world_protocols::protobuf_AddDesc_client2world_5fmsg_5ftype_2eproto(); ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto(); ::msg_info_def::protobuf_AddDesc_msg_5finfo_5fdef_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n$client2world_daily_box_lottery.proto\022\026" "client2world_protocols\032\033client2world_msg" "_type.proto\032\022msg_type_def.proto\032\022msg_inf" "o_def.proto\"v\n\022packetc2w_req_sign\022P\n\tpac" "ket_id\030\001 \001(\0162).client2world_protocols.e_" "server_msg_type:\022e_mst_c2w_req_sign\022\016\n\006d" "ouble\030\002 \001(\010\"\276\001\n\031packetw2c_req_sign_resul" "t\022W\n\tpacket_id\030\001 \001(\0162).client2world_prot" "ocols.e_server_msg_type:\031e_mst_w2c_req_s" "ign_result\022\016\n\006double\030\002 \001(\010\022\016\n\006result\030\003 \001" "(\005\022(\n\010itemList\030\004 \003(\0132\026.msg_info_def.Item" "Info\"\202\001\n\027packetc2w_req_sign_info\022U\n\tpack" "et_id\030\001 \001(\0162).client2world_protocols.e_s" "erver_msg_type:\027e_mst_c2w_req_sign_info\022" "\020\n\010signtype\030\002 \001(\005\"\217\002\n\036packetw2c_req_sign" "_info_result\022\\\n\tpacket_id\030\001 \001(\0162).client" "2world_protocols.e_server_msg_type:\036e_ms" "t_w2c_req_sign_info_result\022\020\n\010signtype\030\002" " \001(\005\022\021\n\tsignCount\030\003 \001(\005\022\025\n\rkeepSignCount" "\030\004 \001(\005\022\023\n\013signUpLevel\030\005 \001(\010\022\017\n\007canSign\030\006" " \001(\010\022\024\n\014hasSignCount\030\007 \001(\005\022\027\n\017sevenDayCa" "nSign\030\010 \001(\010\"\223\001\n\"packetc2w_req_recv_seven" "day_reward\022`\n\tpacket_id\030\001 \001(\0162).client2w" "orld_protocols.e_server_msg_type:\"e_mst_" "c2w_req_recv_sevenday_reward\022\013\n\003day\030\002 \001(" "\005\"\333\001\n)packetc2w_req_recv_sevenday_reward" "_result\022g\n\tpacket_id\030\001 \001(\0162).client2worl" "d_protocols.e_server_msg_type:)e_mst_w2c" "_req_recv_sevenday_reward_result\022\013\n\003day\030" "\002 \001(\005\022\016\n\006result\030\003 \001(\005\022(\n\010itemList\030\004 \003(\0132" "\026.msg_info_def.ItemInfo", 1223); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "client2world_daily_box_lottery.proto", &protobuf_RegisterTypes); packetc2w_req_sign::default_instance_ = new packetc2w_req_sign(); packetw2c_req_sign_result::default_instance_ = new packetw2c_req_sign_result(); packetc2w_req_sign_info::default_instance_ = new packetc2w_req_sign_info(); packetw2c_req_sign_info_result::default_instance_ = new packetw2c_req_sign_info_result(); packetc2w_req_recv_sevenday_reward::default_instance_ = new packetc2w_req_recv_sevenday_reward(); packetc2w_req_recv_sevenday_reward_result::default_instance_ = new packetc2w_req_recv_sevenday_reward_result(); packetc2w_req_sign::default_instance_->InitAsDefaultInstance(); packetw2c_req_sign_result::default_instance_->InitAsDefaultInstance(); packetc2w_req_sign_info::default_instance_->InitAsDefaultInstance(); packetw2c_req_sign_info_result::default_instance_->InitAsDefaultInstance(); packetc2w_req_recv_sevenday_reward::default_instance_->InitAsDefaultInstance(); packetc2w_req_recv_sevenday_reward_result::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fdaily_5fbox_5flottery_2eproto); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_client2world_5fdaily_5fbox_5flottery_2eproto { StaticDescriptorInitializer_client2world_5fdaily_5fbox_5flottery_2eproto() { protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto(); } } static_descriptor_initializer_client2world_5fdaily_5fbox_5flottery_2eproto_; // =================================================================== #ifndef _MSC_VER const int packetc2w_req_sign::kPacketIdFieldNumber; const int packetc2w_req_sign::kDoubleFieldNumber; #endif // !_MSC_VER packetc2w_req_sign::packetc2w_req_sign() : ::google::protobuf::Message() { SharedCtor(); } void packetc2w_req_sign::InitAsDefaultInstance() { } packetc2w_req_sign::packetc2w_req_sign(const packetc2w_req_sign& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetc2w_req_sign::SharedCtor() { _cached_size_ = 0; packet_id_ = 5098; double__ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetc2w_req_sign::~packetc2w_req_sign() { SharedDtor(); } void packetc2w_req_sign::SharedDtor() { if (this != default_instance_) { } } void packetc2w_req_sign::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetc2w_req_sign::descriptor() { protobuf_AssignDescriptorsOnce(); return packetc2w_req_sign_descriptor_; } const packetc2w_req_sign& packetc2w_req_sign::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto(); return *default_instance_; } packetc2w_req_sign* packetc2w_req_sign::default_instance_ = NULL; packetc2w_req_sign* packetc2w_req_sign::New() const { return new packetc2w_req_sign; } void packetc2w_req_sign::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 5098; double__ = false; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetc2w_req_sign::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign]; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::client2world_protocols::e_server_msg_type_IsValid(value)) { set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } } else { goto handle_uninterpreted; } if (input->ExpectTag(16)) goto parse_double; break; } // optional bool double = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_double: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &double__))); set_has_double_(); } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void packetc2w_req_sign::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional bool double = 2; if (has_double_()) { ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->double_(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetc2w_req_sign::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional bool double = 2; if (has_double_()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->double_(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetc2w_req_sign::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional bool double = 2; if (has_double_()) { total_size += 1 + 1; } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void packetc2w_req_sign::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetc2w_req_sign* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void packetc2w_req_sign::MergeFrom(const packetc2w_req_sign& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_packet_id()) { set_packet_id(from.packet_id()); } if (from.has_double_()) { set_double_(from.double_()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetc2w_req_sign::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetc2w_req_sign::CopyFrom(const packetc2w_req_sign& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetc2w_req_sign::IsInitialized() const { return true; } void packetc2w_req_sign::Swap(packetc2w_req_sign* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(double__, other->double__); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata packetc2w_req_sign::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetc2w_req_sign_descriptor_; metadata.reflection = packetc2w_req_sign_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetw2c_req_sign_result::kPacketIdFieldNumber; const int packetw2c_req_sign_result::kDoubleFieldNumber; const int packetw2c_req_sign_result::kResultFieldNumber; const int packetw2c_req_sign_result::kItemListFieldNumber; #endif // !_MSC_VER packetw2c_req_sign_result::packetw2c_req_sign_result() : ::google::protobuf::Message() { SharedCtor(); } void packetw2c_req_sign_result::InitAsDefaultInstance() { } packetw2c_req_sign_result::packetw2c_req_sign_result(const packetw2c_req_sign_result& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetw2c_req_sign_result::SharedCtor() { _cached_size_ = 0; packet_id_ = 7605; double__ = false; result_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetw2c_req_sign_result::~packetw2c_req_sign_result() { SharedDtor(); } void packetw2c_req_sign_result::SharedDtor() { if (this != default_instance_) { } } void packetw2c_req_sign_result::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetw2c_req_sign_result::descriptor() { protobuf_AssignDescriptorsOnce(); return packetw2c_req_sign_result_descriptor_; } const packetw2c_req_sign_result& packetw2c_req_sign_result::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto(); return *default_instance_; } packetw2c_req_sign_result* packetw2c_req_sign_result::default_instance_ = NULL; packetw2c_req_sign_result* packetw2c_req_sign_result::New() const { return new packetw2c_req_sign_result; } void packetw2c_req_sign_result::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 7605; double__ = false; result_ = 0; } itemlist_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetw2c_req_sign_result::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_result]; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::client2world_protocols::e_server_msg_type_IsValid(value)) { set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } } else { goto handle_uninterpreted; } if (input->ExpectTag(16)) goto parse_double; break; } // optional bool double = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_double: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &double__))); set_has_double_(); } else { goto handle_uninterpreted; } if (input->ExpectTag(24)) goto parse_result; break; } // optional int32 result = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_result: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &result_))); set_has_result(); } else { goto handle_uninterpreted; } if (input->ExpectTag(34)) goto parse_itemList; break; } // repeated .msg_info_def.ItemInfo itemList = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_itemList: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_itemlist())); } else { goto handle_uninterpreted; } if (input->ExpectTag(34)) goto parse_itemList; if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void packetw2c_req_sign_result::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_result]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional bool double = 2; if (has_double_()) { ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->double_(), output); } // optional int32 result = 3; if (has_result()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output); } // repeated .msg_info_def.ItemInfo itemList = 4; for (int i = 0; i < this->itemlist_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->itemlist(i), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetw2c_req_sign_result::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_result]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional bool double = 2; if (has_double_()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->double_(), target); } // optional int32 result = 3; if (has_result()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target); } // repeated .msg_info_def.ItemInfo itemList = 4; for (int i = 0; i < this->itemlist_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 4, this->itemlist(i), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetw2c_req_sign_result::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_result]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional bool double = 2; if (has_double_()) { total_size += 1 + 1; } // optional int32 result = 3; if (has_result()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->result()); } } // repeated .msg_info_def.ItemInfo itemList = 4; total_size += 1 * this->itemlist_size(); for (int i = 0; i < this->itemlist_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->itemlist(i)); } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void packetw2c_req_sign_result::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetw2c_req_sign_result* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void packetw2c_req_sign_result::MergeFrom(const packetw2c_req_sign_result& from) { GOOGLE_CHECK_NE(&from, this); itemlist_.MergeFrom(from.itemlist_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_packet_id()) { set_packet_id(from.packet_id()); } if (from.has_double_()) { set_double_(from.double_()); } if (from.has_result()) { set_result(from.result()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetw2c_req_sign_result::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetw2c_req_sign_result::CopyFrom(const packetw2c_req_sign_result& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetw2c_req_sign_result::IsInitialized() const { return true; } void packetw2c_req_sign_result::Swap(packetw2c_req_sign_result* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(double__, other->double__); std::swap(result_, other->result_); itemlist_.Swap(&other->itemlist_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata packetw2c_req_sign_result::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetw2c_req_sign_result_descriptor_; metadata.reflection = packetw2c_req_sign_result_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetc2w_req_sign_info::kPacketIdFieldNumber; const int packetc2w_req_sign_info::kSigntypeFieldNumber; #endif // !_MSC_VER packetc2w_req_sign_info::packetc2w_req_sign_info() : ::google::protobuf::Message() { SharedCtor(); } void packetc2w_req_sign_info::InitAsDefaultInstance() { } packetc2w_req_sign_info::packetc2w_req_sign_info(const packetc2w_req_sign_info& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetc2w_req_sign_info::SharedCtor() { _cached_size_ = 0; packet_id_ = 5099; signtype_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetc2w_req_sign_info::~packetc2w_req_sign_info() { SharedDtor(); } void packetc2w_req_sign_info::SharedDtor() { if (this != default_instance_) { } } void packetc2w_req_sign_info::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetc2w_req_sign_info::descriptor() { protobuf_AssignDescriptorsOnce(); return packetc2w_req_sign_info_descriptor_; } const packetc2w_req_sign_info& packetc2w_req_sign_info::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto(); return *default_instance_; } packetc2w_req_sign_info* packetc2w_req_sign_info::default_instance_ = NULL; packetc2w_req_sign_info* packetc2w_req_sign_info::New() const { return new packetc2w_req_sign_info; } void packetc2w_req_sign_info::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 5099; signtype_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetc2w_req_sign_info::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign_info]; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::client2world_protocols::e_server_msg_type_IsValid(value)) { set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } } else { goto handle_uninterpreted; } if (input->ExpectTag(16)) goto parse_signtype; break; } // optional int32 signtype = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_signtype: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &signtype_))); set_has_signtype(); } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void packetc2w_req_sign_info::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign_info]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional int32 signtype = 2; if (has_signtype()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->signtype(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetc2w_req_sign_info::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign_info]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional int32 signtype = 2; if (has_signtype()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->signtype(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetc2w_req_sign_info::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_sign_info]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional int32 signtype = 2; if (has_signtype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->signtype()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void packetc2w_req_sign_info::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetc2w_req_sign_info* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void packetc2w_req_sign_info::MergeFrom(const packetc2w_req_sign_info& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_packet_id()) { set_packet_id(from.packet_id()); } if (from.has_signtype()) { set_signtype(from.signtype()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetc2w_req_sign_info::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetc2w_req_sign_info::CopyFrom(const packetc2w_req_sign_info& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetc2w_req_sign_info::IsInitialized() const { return true; } void packetc2w_req_sign_info::Swap(packetc2w_req_sign_info* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(signtype_, other->signtype_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata packetc2w_req_sign_info::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetc2w_req_sign_info_descriptor_; metadata.reflection = packetc2w_req_sign_info_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetw2c_req_sign_info_result::kPacketIdFieldNumber; const int packetw2c_req_sign_info_result::kSigntypeFieldNumber; const int packetw2c_req_sign_info_result::kSignCountFieldNumber; const int packetw2c_req_sign_info_result::kKeepSignCountFieldNumber; const int packetw2c_req_sign_info_result::kSignUpLevelFieldNumber; const int packetw2c_req_sign_info_result::kCanSignFieldNumber; const int packetw2c_req_sign_info_result::kHasSignCountFieldNumber; const int packetw2c_req_sign_info_result::kSevenDayCanSignFieldNumber; #endif // !_MSC_VER packetw2c_req_sign_info_result::packetw2c_req_sign_info_result() : ::google::protobuf::Message() { SharedCtor(); } void packetw2c_req_sign_info_result::InitAsDefaultInstance() { } packetw2c_req_sign_info_result::packetw2c_req_sign_info_result(const packetw2c_req_sign_info_result& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetw2c_req_sign_info_result::SharedCtor() { _cached_size_ = 0; packet_id_ = 7606; signtype_ = 0; signcount_ = 0; keepsigncount_ = 0; signuplevel_ = false; cansign_ = false; hassigncount_ = 0; sevendaycansign_ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetw2c_req_sign_info_result::~packetw2c_req_sign_info_result() { SharedDtor(); } void packetw2c_req_sign_info_result::SharedDtor() { if (this != default_instance_) { } } void packetw2c_req_sign_info_result::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetw2c_req_sign_info_result::descriptor() { protobuf_AssignDescriptorsOnce(); return packetw2c_req_sign_info_result_descriptor_; } const packetw2c_req_sign_info_result& packetw2c_req_sign_info_result::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto(); return *default_instance_; } packetw2c_req_sign_info_result* packetw2c_req_sign_info_result::default_instance_ = NULL; packetw2c_req_sign_info_result* packetw2c_req_sign_info_result::New() const { return new packetw2c_req_sign_info_result; } void packetw2c_req_sign_info_result::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 7606; signtype_ = 0; signcount_ = 0; keepsigncount_ = 0; signuplevel_ = false; cansign_ = false; hassigncount_ = 0; sevendaycansign_ = false; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetw2c_req_sign_info_result::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_info_result]; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::client2world_protocols::e_server_msg_type_IsValid(value)) { set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } } else { goto handle_uninterpreted; } if (input->ExpectTag(16)) goto parse_signtype; break; } // optional int32 signtype = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_signtype: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &signtype_))); set_has_signtype(); } else { goto handle_uninterpreted; } if (input->ExpectTag(24)) goto parse_signCount; break; } // optional int32 signCount = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_signCount: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &signcount_))); set_has_signcount(); } else { goto handle_uninterpreted; } if (input->ExpectTag(32)) goto parse_keepSignCount; break; } // optional int32 keepSignCount = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_keepSignCount: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &keepsigncount_))); set_has_keepsigncount(); } else { goto handle_uninterpreted; } if (input->ExpectTag(40)) goto parse_signUpLevel; break; } // optional bool signUpLevel = 5; case 5: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_signUpLevel: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &signuplevel_))); set_has_signuplevel(); } else { goto handle_uninterpreted; } if (input->ExpectTag(48)) goto parse_canSign; break; } // optional bool canSign = 6; case 6: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_canSign: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &cansign_))); set_has_cansign(); } else { goto handle_uninterpreted; } if (input->ExpectTag(56)) goto parse_hasSignCount; break; } // optional int32 hasSignCount = 7; case 7: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_hasSignCount: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &hassigncount_))); set_has_hassigncount(); } else { goto handle_uninterpreted; } if (input->ExpectTag(64)) goto parse_sevenDayCanSign; break; } // optional bool sevenDayCanSign = 8; case 8: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_sevenDayCanSign: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &sevendaycansign_))); set_has_sevendaycansign(); } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void packetw2c_req_sign_info_result::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_info_result]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional int32 signtype = 2; if (has_signtype()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->signtype(), output); } // optional int32 signCount = 3; if (has_signcount()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->signcount(), output); } // optional int32 keepSignCount = 4; if (has_keepsigncount()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->keepsigncount(), output); } // optional bool signUpLevel = 5; if (has_signuplevel()) { ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->signuplevel(), output); } // optional bool canSign = 6; if (has_cansign()) { ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->cansign(), output); } // optional int32 hasSignCount = 7; if (has_hassigncount()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->hassigncount(), output); } // optional bool sevenDayCanSign = 8; if (has_sevendaycansign()) { ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->sevendaycansign(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetw2c_req_sign_info_result::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_info_result]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional int32 signtype = 2; if (has_signtype()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->signtype(), target); } // optional int32 signCount = 3; if (has_signcount()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->signcount(), target); } // optional int32 keepSignCount = 4; if (has_keepsigncount()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->keepsigncount(), target); } // optional bool signUpLevel = 5; if (has_signuplevel()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->signuplevel(), target); } // optional bool canSign = 6; if (has_cansign()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->cansign(), target); } // optional int32 hasSignCount = 7; if (has_hassigncount()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->hassigncount(), target); } // optional bool sevenDayCanSign = 8; if (has_sevendaycansign()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->sevendaycansign(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetw2c_req_sign_info_result::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_sign_info_result]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional int32 signtype = 2; if (has_signtype()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->signtype()); } // optional int32 signCount = 3; if (has_signcount()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->signcount()); } // optional int32 keepSignCount = 4; if (has_keepsigncount()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->keepsigncount()); } // optional bool signUpLevel = 5; if (has_signuplevel()) { total_size += 1 + 1; } // optional bool canSign = 6; if (has_cansign()) { total_size += 1 + 1; } // optional int32 hasSignCount = 7; if (has_hassigncount()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->hassigncount()); } // optional bool sevenDayCanSign = 8; if (has_sevendaycansign()) { total_size += 1 + 1; } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void packetw2c_req_sign_info_result::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetw2c_req_sign_info_result* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void packetw2c_req_sign_info_result::MergeFrom(const packetw2c_req_sign_info_result& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_packet_id()) { set_packet_id(from.packet_id()); } if (from.has_signtype()) { set_signtype(from.signtype()); } if (from.has_signcount()) { set_signcount(from.signcount()); } if (from.has_keepsigncount()) { set_keepsigncount(from.keepsigncount()); } if (from.has_signuplevel()) { set_signuplevel(from.signuplevel()); } if (from.has_cansign()) { set_cansign(from.cansign()); } if (from.has_hassigncount()) { set_hassigncount(from.hassigncount()); } if (from.has_sevendaycansign()) { set_sevendaycansign(from.sevendaycansign()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetw2c_req_sign_info_result::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetw2c_req_sign_info_result::CopyFrom(const packetw2c_req_sign_info_result& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetw2c_req_sign_info_result::IsInitialized() const { return true; } void packetw2c_req_sign_info_result::Swap(packetw2c_req_sign_info_result* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(signtype_, other->signtype_); std::swap(signcount_, other->signcount_); std::swap(keepsigncount_, other->keepsigncount_); std::swap(signuplevel_, other->signuplevel_); std::swap(cansign_, other->cansign_); std::swap(hassigncount_, other->hassigncount_); std::swap(sevendaycansign_, other->sevendaycansign_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata packetw2c_req_sign_info_result::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetw2c_req_sign_info_result_descriptor_; metadata.reflection = packetw2c_req_sign_info_result_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetc2w_req_recv_sevenday_reward::kPacketIdFieldNumber; const int packetc2w_req_recv_sevenday_reward::kDayFieldNumber; #endif // !_MSC_VER packetc2w_req_recv_sevenday_reward::packetc2w_req_recv_sevenday_reward() : ::google::protobuf::Message() { SharedCtor(); } void packetc2w_req_recv_sevenday_reward::InitAsDefaultInstance() { } packetc2w_req_recv_sevenday_reward::packetc2w_req_recv_sevenday_reward(const packetc2w_req_recv_sevenday_reward& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetc2w_req_recv_sevenday_reward::SharedCtor() { _cached_size_ = 0; packet_id_ = 5147; day_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetc2w_req_recv_sevenday_reward::~packetc2w_req_recv_sevenday_reward() { SharedDtor(); } void packetc2w_req_recv_sevenday_reward::SharedDtor() { if (this != default_instance_) { } } void packetc2w_req_recv_sevenday_reward::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetc2w_req_recv_sevenday_reward::descriptor() { protobuf_AssignDescriptorsOnce(); return packetc2w_req_recv_sevenday_reward_descriptor_; } const packetc2w_req_recv_sevenday_reward& packetc2w_req_recv_sevenday_reward::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto(); return *default_instance_; } packetc2w_req_recv_sevenday_reward* packetc2w_req_recv_sevenday_reward::default_instance_ = NULL; packetc2w_req_recv_sevenday_reward* packetc2w_req_recv_sevenday_reward::New() const { return new packetc2w_req_recv_sevenday_reward; } void packetc2w_req_recv_sevenday_reward::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 5147; day_ = 0; } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetc2w_req_recv_sevenday_reward::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recv_sevenday_reward]; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::client2world_protocols::e_server_msg_type_IsValid(value)) { set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } } else { goto handle_uninterpreted; } if (input->ExpectTag(16)) goto parse_day; break; } // optional int32 day = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_day: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &day_))); set_has_day(); } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void packetc2w_req_recv_sevenday_reward::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recv_sevenday_reward]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional int32 day = 2; if (has_day()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->day(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetc2w_req_recv_sevenday_reward::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recv_sevenday_reward]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional int32 day = 2; if (has_day()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->day(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetc2w_req_recv_sevenday_reward::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_recv_sevenday_reward]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional int32 day = 2; if (has_day()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->day()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void packetc2w_req_recv_sevenday_reward::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetc2w_req_recv_sevenday_reward* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void packetc2w_req_recv_sevenday_reward::MergeFrom(const packetc2w_req_recv_sevenday_reward& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_packet_id()) { set_packet_id(from.packet_id()); } if (from.has_day()) { set_day(from.day()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetc2w_req_recv_sevenday_reward::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetc2w_req_recv_sevenday_reward::CopyFrom(const packetc2w_req_recv_sevenday_reward& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetc2w_req_recv_sevenday_reward::IsInitialized() const { return true; } void packetc2w_req_recv_sevenday_reward::Swap(packetc2w_req_recv_sevenday_reward* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(day_, other->day_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata packetc2w_req_recv_sevenday_reward::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetc2w_req_recv_sevenday_reward_descriptor_; metadata.reflection = packetc2w_req_recv_sevenday_reward_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int packetc2w_req_recv_sevenday_reward_result::kPacketIdFieldNumber; const int packetc2w_req_recv_sevenday_reward_result::kDayFieldNumber; const int packetc2w_req_recv_sevenday_reward_result::kResultFieldNumber; const int packetc2w_req_recv_sevenday_reward_result::kItemListFieldNumber; #endif // !_MSC_VER packetc2w_req_recv_sevenday_reward_result::packetc2w_req_recv_sevenday_reward_result() : ::google::protobuf::Message() { SharedCtor(); } void packetc2w_req_recv_sevenday_reward_result::InitAsDefaultInstance() { } packetc2w_req_recv_sevenday_reward_result::packetc2w_req_recv_sevenday_reward_result(const packetc2w_req_recv_sevenday_reward_result& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void packetc2w_req_recv_sevenday_reward_result::SharedCtor() { _cached_size_ = 0; packet_id_ = 7659; day_ = 0; result_ = 0; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } packetc2w_req_recv_sevenday_reward_result::~packetc2w_req_recv_sevenday_reward_result() { SharedDtor(); } void packetc2w_req_recv_sevenday_reward_result::SharedDtor() { if (this != default_instance_) { } } void packetc2w_req_recv_sevenday_reward_result::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* packetc2w_req_recv_sevenday_reward_result::descriptor() { protobuf_AssignDescriptorsOnce(); return packetc2w_req_recv_sevenday_reward_result_descriptor_; } const packetc2w_req_recv_sevenday_reward_result& packetc2w_req_recv_sevenday_reward_result::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fdaily_5fbox_5flottery_2eproto(); return *default_instance_; } packetc2w_req_recv_sevenday_reward_result* packetc2w_req_recv_sevenday_reward_result::default_instance_ = NULL; packetc2w_req_recv_sevenday_reward_result* packetc2w_req_recv_sevenday_reward_result::New() const { return new packetc2w_req_recv_sevenday_reward_result; } void packetc2w_req_recv_sevenday_reward_result::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { packet_id_ = 7659; day_ = 0; result_ = 0; } itemlist_.Clear(); ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool packetc2w_req_recv_sevenday_reward_result::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recv_sevenday_reward_result]; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); if (::client2world_protocols::e_server_msg_type_IsValid(value)) { set_packet_id(static_cast< ::client2world_protocols::e_server_msg_type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } } else { goto handle_uninterpreted; } if (input->ExpectTag(16)) goto parse_day; break; } // optional int32 day = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_day: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &day_))); set_has_day(); } else { goto handle_uninterpreted; } if (input->ExpectTag(24)) goto parse_result; break; } // optional int32 result = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { parse_result: DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &result_))); set_has_result(); } else { goto handle_uninterpreted; } if (input->ExpectTag(34)) goto parse_itemList; break; } // repeated .msg_info_def.ItemInfo itemList = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_itemList: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_itemlist())); } else { goto handle_uninterpreted; } if (input->ExpectTag(34)) goto parse_itemList; if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void packetc2w_req_recv_sevenday_reward_result::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recv_sevenday_reward_result]; if (has_packet_id()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->packet_id(), output); } // optional int32 day = 2; if (has_day()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->day(), output); } // optional int32 result = 3; if (has_result()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output); } // repeated .msg_info_def.ItemInfo itemList = 4; for (int i = 0; i < this->itemlist_size(); i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->itemlist(i), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* packetc2w_req_recv_sevenday_reward_result::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recv_sevenday_reward_result]; if (has_packet_id()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->packet_id(), target); } // optional int32 day = 2; if (has_day()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->day(), target); } // optional int32 result = 3; if (has_result()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target); } // repeated .msg_info_def.ItemInfo itemList = 4; for (int i = 0; i < this->itemlist_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 4, this->itemlist(i), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int packetc2w_req_recv_sevenday_reward_result::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_recv_sevenday_reward_result]; if (has_packet_id()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id()); } // optional int32 day = 2; if (has_day()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->day()); } // optional int32 result = 3; if (has_result()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->result()); } } // repeated .msg_info_def.ItemInfo itemList = 4; total_size += 1 * this->itemlist_size(); for (int i = 0; i < this->itemlist_size(); i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->itemlist(i)); } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void packetc2w_req_recv_sevenday_reward_result::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const packetc2w_req_recv_sevenday_reward_result* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void packetc2w_req_recv_sevenday_reward_result::MergeFrom(const packetc2w_req_recv_sevenday_reward_result& from) { GOOGLE_CHECK_NE(&from, this); itemlist_.MergeFrom(from.itemlist_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_packet_id()) { set_packet_id(from.packet_id()); } if (from.has_day()) { set_day(from.day()); } if (from.has_result()) { set_result(from.result()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void packetc2w_req_recv_sevenday_reward_result::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void packetc2w_req_recv_sevenday_reward_result::CopyFrom(const packetc2w_req_recv_sevenday_reward_result& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool packetc2w_req_recv_sevenday_reward_result::IsInitialized() const { return true; } void packetc2w_req_recv_sevenday_reward_result::Swap(packetc2w_req_recv_sevenday_reward_result* other) { if (other != this) { std::swap(packet_id_, other->packet_id_); std::swap(day_, other->day_); std::swap(result_, other->result_); itemlist_.Swap(&other->itemlist_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata packetc2w_req_recv_sevenday_reward_result::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = packetc2w_req_recv_sevenday_reward_result_descriptor_; metadata.reflection = packetc2w_req_recv_sevenday_reward_result_reflection_; return metadata; } // @@protoc_insertion_point(namespace_scope) } // namespace client2world_protocols // @@protoc_insertion_point(global_scope)