123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: client2world_qq_platform.proto
- #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
- #include "client2world_qq_platform.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- namespace client2world_protocols {
- namespace {
- const ::google::protobuf::Descriptor* packetc2w_receive_blue_diamond_reward_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- packetc2w_receive_blue_diamond_reward_reflection_ = NULL;
- const ::google::protobuf::Descriptor* packetw2c_receive_blue_diamond_reward_result_descriptor_ = NULL;
- const ::google::protobuf::internal::GeneratedMessageReflection*
- packetw2c_receive_blue_diamond_reward_result_reflection_ = NULL;
- } // namespace
- void protobuf_AssignDesc_client2world_5fqq_5fplatform_2eproto() {
- protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto();
- const ::google::protobuf::FileDescriptor* file =
- ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
- "client2world_qq_platform.proto");
- GOOGLE_CHECK(file != NULL);
- packetc2w_receive_blue_diamond_reward_descriptor_ = file->message_type(0);
- static const int packetc2w_receive_blue_diamond_reward_offsets_[2] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_blue_diamond_reward, packet_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_blue_diamond_reward, index_),
- };
- packetc2w_receive_blue_diamond_reward_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- packetc2w_receive_blue_diamond_reward_descriptor_,
- packetc2w_receive_blue_diamond_reward::default_instance_,
- packetc2w_receive_blue_diamond_reward_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_blue_diamond_reward, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_receive_blue_diamond_reward, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(packetc2w_receive_blue_diamond_reward));
- packetw2c_receive_blue_diamond_reward_result_descriptor_ = file->message_type(1);
- static const int packetw2c_receive_blue_diamond_reward_result_offsets_[3] = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, packet_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, result_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, index_),
- };
- packetw2c_receive_blue_diamond_reward_result_reflection_ =
- new ::google::protobuf::internal::GeneratedMessageReflection(
- packetw2c_receive_blue_diamond_reward_result_descriptor_,
- packetw2c_receive_blue_diamond_reward_result::default_instance_,
- packetw2c_receive_blue_diamond_reward_result_offsets_,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, _has_bits_[0]),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_receive_blue_diamond_reward_result, _unknown_fields_),
- -1,
- ::google::protobuf::DescriptorPool::generated_pool(),
- ::google::protobuf::MessageFactory::generated_factory(),
- sizeof(packetw2c_receive_blue_diamond_reward_result));
- }
- namespace {
- GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
- inline void protobuf_AssignDescriptorsOnce() {
- ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
- &protobuf_AssignDesc_client2world_5fqq_5fplatform_2eproto);
- }
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- packetc2w_receive_blue_diamond_reward_descriptor_, &packetc2w_receive_blue_diamond_reward::default_instance());
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
- packetw2c_receive_blue_diamond_reward_result_descriptor_, &packetw2c_receive_blue_diamond_reward_result::default_instance());
- }
- } // namespace
- void protobuf_ShutdownFile_client2world_5fqq_5fplatform_2eproto() {
- delete packetc2w_receive_blue_diamond_reward::default_instance_;
- delete packetc2w_receive_blue_diamond_reward_reflection_;
- delete packetw2c_receive_blue_diamond_reward_result::default_instance_;
- delete packetw2c_receive_blue_diamond_reward_result_reflection_;
- }
- void protobuf_AddDesc_client2world_5fqq_5fplatform_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\036client2world_qq_platform.proto\022\026client"
- "2world_protocols\032\033client2world_msg_type."
- "proto\032\022msg_type_def.proto\032\022msg_info_def."
- "proto\"\233\001\n%packetc2w_receive_blue_diamond"
- "_reward\022c\n\tpacket_id\030\001 \001(\0162).client2worl"
- "d_protocols.e_server_msg_type:%e_mst_c2w"
- "_receive_blue_diamond_reward\022\r\n\005index\030\002 "
- "\001(\005\"\271\001\n,packetw2c_receive_blue_diamond_r"
- "eward_result\022j\n\tpacket_id\030\001 \001(\0162).client"
- "2world_protocols.e_server_msg_type:,e_ms"
- "t_w2c_receive_blue_diamond_reward_result"
- "\022\016\n\006result\030\002 \001(\005\022\r\n\005index\030\003 \001(\005", 471);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "client2world_qq_platform.proto", &protobuf_RegisterTypes);
- packetc2w_receive_blue_diamond_reward::default_instance_ = new packetc2w_receive_blue_diamond_reward();
- packetw2c_receive_blue_diamond_reward_result::default_instance_ = new packetw2c_receive_blue_diamond_reward_result();
- packetc2w_receive_blue_diamond_reward::default_instance_->InitAsDefaultInstance();
- packetw2c_receive_blue_diamond_reward_result::default_instance_->InitAsDefaultInstance();
- ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fqq_5fplatform_2eproto);
- }
- // Force AddDescriptors() to be called at static initialization time.
- struct StaticDescriptorInitializer_client2world_5fqq_5fplatform_2eproto {
- StaticDescriptorInitializer_client2world_5fqq_5fplatform_2eproto() {
- protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto();
- }
- } static_descriptor_initializer_client2world_5fqq_5fplatform_2eproto_;
- // ===================================================================
- #ifndef _MSC_VER
- const int packetc2w_receive_blue_diamond_reward::kPacketIdFieldNumber;
- const int packetc2w_receive_blue_diamond_reward::kIndexFieldNumber;
- #endif // !_MSC_VER
- packetc2w_receive_blue_diamond_reward::packetc2w_receive_blue_diamond_reward()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void packetc2w_receive_blue_diamond_reward::InitAsDefaultInstance() {
- }
- packetc2w_receive_blue_diamond_reward::packetc2w_receive_blue_diamond_reward(const packetc2w_receive_blue_diamond_reward& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void packetc2w_receive_blue_diamond_reward::SharedCtor() {
- _cached_size_ = 0;
- packet_id_ = 5056;
- index_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- packetc2w_receive_blue_diamond_reward::~packetc2w_receive_blue_diamond_reward() {
- SharedDtor();
- }
- void packetc2w_receive_blue_diamond_reward::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void packetc2w_receive_blue_diamond_reward::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* packetc2w_receive_blue_diamond_reward::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return packetc2w_receive_blue_diamond_reward_descriptor_;
- }
- const packetc2w_receive_blue_diamond_reward& packetc2w_receive_blue_diamond_reward::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto();
- return *default_instance_;
- }
- packetc2w_receive_blue_diamond_reward* packetc2w_receive_blue_diamond_reward::default_instance_ = NULL;
- packetc2w_receive_blue_diamond_reward* packetc2w_receive_blue_diamond_reward::New() const {
- return new packetc2w_receive_blue_diamond_reward;
- }
- void packetc2w_receive_blue_diamond_reward::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- packet_id_ = 5056;
- index_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool packetc2w_receive_blue_diamond_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_receive_blue_diamond_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_index;
- break;
- }
- // optional int32 index = 2;
- case 2: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_index:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &index_)));
- set_has_index();
- } 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_receive_blue_diamond_reward::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_blue_diamond_reward];
- if (has_packet_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 1, this->packet_id(), output);
- }
- // optional int32 index = 2;
- if (has_index()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->index(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* packetc2w_receive_blue_diamond_reward::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_receive_blue_diamond_reward];
- if (has_packet_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 1, this->packet_id(), target);
- }
- // optional int32 index = 2;
- if (has_index()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->index(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int packetc2w_receive_blue_diamond_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_receive_blue_diamond_reward];
- if (has_packet_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
- }
- // optional int32 index = 2;
- if (has_index()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->index());
- }
- }
- 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_receive_blue_diamond_reward::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const packetc2w_receive_blue_diamond_reward* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_receive_blue_diamond_reward*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void packetc2w_receive_blue_diamond_reward::MergeFrom(const packetc2w_receive_blue_diamond_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_index()) {
- set_index(from.index());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void packetc2w_receive_blue_diamond_reward::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void packetc2w_receive_blue_diamond_reward::CopyFrom(const packetc2w_receive_blue_diamond_reward& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool packetc2w_receive_blue_diamond_reward::IsInitialized() const {
- return true;
- }
- void packetc2w_receive_blue_diamond_reward::Swap(packetc2w_receive_blue_diamond_reward* other) {
- if (other != this) {
- std::swap(packet_id_, other->packet_id_);
- std::swap(index_, other->index_);
- 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_receive_blue_diamond_reward::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = packetc2w_receive_blue_diamond_reward_descriptor_;
- metadata.reflection = packetc2w_receive_blue_diamond_reward_reflection_;
- return metadata;
- }
- // ===================================================================
- #ifndef _MSC_VER
- const int packetw2c_receive_blue_diamond_reward_result::kPacketIdFieldNumber;
- const int packetw2c_receive_blue_diamond_reward_result::kResultFieldNumber;
- const int packetw2c_receive_blue_diamond_reward_result::kIndexFieldNumber;
- #endif // !_MSC_VER
- packetw2c_receive_blue_diamond_reward_result::packetw2c_receive_blue_diamond_reward_result()
- : ::google::protobuf::Message() {
- SharedCtor();
- }
- void packetw2c_receive_blue_diamond_reward_result::InitAsDefaultInstance() {
- }
- packetw2c_receive_blue_diamond_reward_result::packetw2c_receive_blue_diamond_reward_result(const packetw2c_receive_blue_diamond_reward_result& from)
- : ::google::protobuf::Message() {
- SharedCtor();
- MergeFrom(from);
- }
- void packetw2c_receive_blue_diamond_reward_result::SharedCtor() {
- _cached_size_ = 0;
- packet_id_ = 7559;
- result_ = 0;
- index_ = 0;
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- }
- packetw2c_receive_blue_diamond_reward_result::~packetw2c_receive_blue_diamond_reward_result() {
- SharedDtor();
- }
- void packetw2c_receive_blue_diamond_reward_result::SharedDtor() {
- if (this != default_instance_) {
- }
- }
- void packetw2c_receive_blue_diamond_reward_result::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* packetw2c_receive_blue_diamond_reward_result::descriptor() {
- protobuf_AssignDescriptorsOnce();
- return packetw2c_receive_blue_diamond_reward_result_descriptor_;
- }
- const packetw2c_receive_blue_diamond_reward_result& packetw2c_receive_blue_diamond_reward_result::default_instance() {
- if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fqq_5fplatform_2eproto();
- return *default_instance_;
- }
- packetw2c_receive_blue_diamond_reward_result* packetw2c_receive_blue_diamond_reward_result::default_instance_ = NULL;
- packetw2c_receive_blue_diamond_reward_result* packetw2c_receive_blue_diamond_reward_result::New() const {
- return new packetw2c_receive_blue_diamond_reward_result;
- }
- void packetw2c_receive_blue_diamond_reward_result::Clear() {
- if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
- packet_id_ = 7559;
- result_ = 0;
- index_ = 0;
- }
- ::memset(_has_bits_, 0, sizeof(_has_bits_));
- mutable_unknown_fields()->Clear();
- }
- bool packetw2c_receive_blue_diamond_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_receive_blue_diamond_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_result;
- break;
- }
- // optional int32 result = 2;
- case 2: {
- 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(24)) goto parse_index;
- break;
- }
- // optional int32 index = 3;
- case 3: {
- if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
- ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
- parse_index:
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &index_)));
- set_has_index();
- } 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_receive_blue_diamond_reward_result::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_blue_diamond_reward_result];
- if (has_packet_id()) {
- ::google::protobuf::internal::WireFormatLite::WriteEnum(
- 1, this->packet_id(), output);
- }
- // optional int32 result = 2;
- if (has_result()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->result(), output);
- }
- // optional int32 index = 3;
- if (has_index()) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->index(), output);
- }
- if (!unknown_fields().empty()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- unknown_fields(), output);
- }
- }
- ::google::protobuf::uint8* packetw2c_receive_blue_diamond_reward_result::SerializeWithCachedSizesToArray(
- ::google::protobuf::uint8* target) const {
- // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_receive_blue_diamond_reward_result];
- if (has_packet_id()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
- 1, this->packet_id(), target);
- }
- // optional int32 result = 2;
- if (has_result()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->result(), target);
- }
- // optional int32 index = 3;
- if (has_index()) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->index(), target);
- }
- if (!unknown_fields().empty()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- unknown_fields(), target);
- }
- return target;
- }
- int packetw2c_receive_blue_diamond_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_receive_blue_diamond_reward_result];
- if (has_packet_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
- }
- // optional int32 result = 2;
- if (has_result()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->result());
- }
- // optional int32 index = 3;
- if (has_index()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->index());
- }
- }
- 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_receive_blue_diamond_reward_result::MergeFrom(const ::google::protobuf::Message& from) {
- GOOGLE_CHECK_NE(&from, this);
- const packetw2c_receive_blue_diamond_reward_result* source =
- ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_receive_blue_diamond_reward_result*>(
- &from);
- if (source == NULL) {
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- MergeFrom(*source);
- }
- }
- void packetw2c_receive_blue_diamond_reward_result::MergeFrom(const packetw2c_receive_blue_diamond_reward_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_result()) {
- set_result(from.result());
- }
- if (from.has_index()) {
- set_index(from.index());
- }
- }
- mutable_unknown_fields()->MergeFrom(from.unknown_fields());
- }
- void packetw2c_receive_blue_diamond_reward_result::CopyFrom(const ::google::protobuf::Message& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void packetw2c_receive_blue_diamond_reward_result::CopyFrom(const packetw2c_receive_blue_diamond_reward_result& from) {
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool packetw2c_receive_blue_diamond_reward_result::IsInitialized() const {
- return true;
- }
- void packetw2c_receive_blue_diamond_reward_result::Swap(packetw2c_receive_blue_diamond_reward_result* other) {
- if (other != this) {
- std::swap(packet_id_, other->packet_id_);
- std::swap(result_, other->result_);
- std::swap(index_, other->index_);
- 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_receive_blue_diamond_reward_result::GetMetadata() const {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::Metadata metadata;
- metadata.descriptor = packetw2c_receive_blue_diamond_reward_result_descriptor_;
- metadata.reflection = packetw2c_receive_blue_diamond_reward_result_reflection_;
- return metadata;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace client2world_protocols
- // @@protoc_insertion_point(global_scope)
|