// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: client2world_benefits.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "client2world_benefits.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_recv_wechat_benifit_gift_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetc2w_recv_wechat_benifit_gift_reflection_ = NULL;
const ::google::protobuf::Descriptor* packetc2w_recv_wechat_share_award_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetc2w_recv_wechat_share_award_reflection_ = NULL;
const ::google::protobuf::Descriptor* packetw2c_recv_wechat_benifit_gift_result_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetw2c_recv_wechat_benifit_gift_result_reflection_ = NULL;
const ::google::protobuf::Descriptor* packetw2c_recv_wechat_share_award_result_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetw2c_recv_wechat_share_award_result_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_client2world_5fbenefits_2eproto() {
  protobuf_AddDesc_client2world_5fbenefits_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "client2world_benefits.proto");
  GOOGLE_CHECK(file != NULL);
  packetc2w_recv_wechat_benifit_gift_descriptor_ = file->message_type(0);
  static const int packetc2w_recv_wechat_benifit_gift_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_wechat_benifit_gift, packet_id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_wechat_benifit_gift, type_),
  };
  packetc2w_recv_wechat_benifit_gift_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetc2w_recv_wechat_benifit_gift_descriptor_,
      packetc2w_recv_wechat_benifit_gift::default_instance_,
      packetc2w_recv_wechat_benifit_gift_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_wechat_benifit_gift, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_wechat_benifit_gift, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetc2w_recv_wechat_benifit_gift));
  packetc2w_recv_wechat_share_award_descriptor_ = file->message_type(1);
  static const int packetc2w_recv_wechat_share_award_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_wechat_share_award, packet_id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_wechat_share_award, index_),
  };
  packetc2w_recv_wechat_share_award_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetc2w_recv_wechat_share_award_descriptor_,
      packetc2w_recv_wechat_share_award::default_instance_,
      packetc2w_recv_wechat_share_award_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_wechat_share_award, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2w_recv_wechat_share_award, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetc2w_recv_wechat_share_award));
  packetw2c_recv_wechat_benifit_gift_result_descriptor_ = file->message_type(2);
  static const int packetw2c_recv_wechat_benifit_gift_result_offsets_[3] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_benifit_gift_result, packet_id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_benifit_gift_result, type_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_benifit_gift_result, result_),
  };
  packetw2c_recv_wechat_benifit_gift_result_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetw2c_recv_wechat_benifit_gift_result_descriptor_,
      packetw2c_recv_wechat_benifit_gift_result::default_instance_,
      packetw2c_recv_wechat_benifit_gift_result_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_benifit_gift_result, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_benifit_gift_result, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetw2c_recv_wechat_benifit_gift_result));
  packetw2c_recv_wechat_share_award_result_descriptor_ = file->message_type(3);
  static const int packetw2c_recv_wechat_share_award_result_offsets_[3] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_share_award_result, packet_id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_share_award_result, index_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_share_award_result, result_),
  };
  packetw2c_recv_wechat_share_award_result_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetw2c_recv_wechat_share_award_result_descriptor_,
      packetw2c_recv_wechat_share_award_result::default_instance_,
      packetw2c_recv_wechat_share_award_result_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_share_award_result, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetw2c_recv_wechat_share_award_result, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetw2c_recv_wechat_share_award_result));
}

namespace {

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
                 &protobuf_AssignDesc_client2world_5fbenefits_2eproto);
}

void protobuf_RegisterTypes(const ::std::string&) {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetc2w_recv_wechat_benifit_gift_descriptor_, &packetc2w_recv_wechat_benifit_gift::default_instance());
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetc2w_recv_wechat_share_award_descriptor_, &packetc2w_recv_wechat_share_award::default_instance());
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetw2c_recv_wechat_benifit_gift_result_descriptor_, &packetw2c_recv_wechat_benifit_gift_result::default_instance());
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetw2c_recv_wechat_share_award_result_descriptor_, &packetw2c_recv_wechat_share_award_result::default_instance());
}

}  // namespace

void protobuf_ShutdownFile_client2world_5fbenefits_2eproto() {
  delete packetc2w_recv_wechat_benifit_gift::default_instance_;
  delete packetc2w_recv_wechat_benifit_gift_reflection_;
  delete packetc2w_recv_wechat_share_award::default_instance_;
  delete packetc2w_recv_wechat_share_award_reflection_;
  delete packetw2c_recv_wechat_benifit_gift_result::default_instance_;
  delete packetw2c_recv_wechat_benifit_gift_result_reflection_;
  delete packetw2c_recv_wechat_share_award_result::default_instance_;
  delete packetw2c_recv_wechat_share_award_result_reflection_;
}

void protobuf_AddDesc_client2world_5fbenefits_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\033client2world_benefits.proto\022\026client2wo"
    "rld_protocols\032\033client2world_msg_type.pro"
    "to\032\022msg_type_def.proto\032\022msg_info_def.pro"
    "to\"\224\001\n\"packetc2w_recv_wechat_benifit_gif"
    "t\022`\n\tpacket_id\030\001 \001(\0162).client2world_prot"
    "ocols.e_server_msg_type:\"e_mst_c2w_recv_"
    "wechat_benifit_gift\022\014\n\004type\030\002 \001(\005\"\223\001\n!pa"
    "cketc2w_recv_wechat_share_award\022_\n\tpacke"
    "t_id\030\001 \001(\0162).client2world_protocols.e_se"
    "rver_msg_type:!e_mst_c2w_recv_wechat_sha"
    "re_award\022\r\n\005index\030\002 \001(\005\"\262\001\n)packetw2c_re"
    "cv_wechat_benifit_gift_result\022g\n\tpacket_"
    "id\030\001 \001(\0162).client2world_protocols.e_serv"
    "er_msg_type:)e_mst_w2c_recv_wechat_benif"
    "it_gift_result\022\014\n\004type\030\002 \001(\005\022\016\n\006result\030\003"
    " \001(\005\"\261\001\n(packetw2c_recv_wechat_share_awa"
    "rd_result\022f\n\tpacket_id\030\001 \001(\0162).client2wo"
    "rld_protocols.e_server_msg_type:(e_mst_w"
    "2c_recv_wechat_share_award_result\022\r\n\005ind"
    "ex\030\002 \001(\005\022\016\n\006result\030\003 \001(\005", 784);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "client2world_benefits.proto", &protobuf_RegisterTypes);
  packetc2w_recv_wechat_benifit_gift::default_instance_ = new packetc2w_recv_wechat_benifit_gift();
  packetc2w_recv_wechat_share_award::default_instance_ = new packetc2w_recv_wechat_share_award();
  packetw2c_recv_wechat_benifit_gift_result::default_instance_ = new packetw2c_recv_wechat_benifit_gift_result();
  packetw2c_recv_wechat_share_award_result::default_instance_ = new packetw2c_recv_wechat_share_award_result();
  packetc2w_recv_wechat_benifit_gift::default_instance_->InitAsDefaultInstance();
  packetc2w_recv_wechat_share_award::default_instance_->InitAsDefaultInstance();
  packetw2c_recv_wechat_benifit_gift_result::default_instance_->InitAsDefaultInstance();
  packetw2c_recv_wechat_share_award_result::default_instance_->InitAsDefaultInstance();
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client2world_5fbenefits_2eproto);
}

// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_client2world_5fbenefits_2eproto {
  StaticDescriptorInitializer_client2world_5fbenefits_2eproto() {
    protobuf_AddDesc_client2world_5fbenefits_2eproto();
  }
} static_descriptor_initializer_client2world_5fbenefits_2eproto_;

// ===================================================================

#ifndef _MSC_VER
const int packetc2w_recv_wechat_benifit_gift::kPacketIdFieldNumber;
const int packetc2w_recv_wechat_benifit_gift::kTypeFieldNumber;
#endif  // !_MSC_VER

packetc2w_recv_wechat_benifit_gift::packetc2w_recv_wechat_benifit_gift()
  : ::google::protobuf::Message() {
  SharedCtor();
}

void packetc2w_recv_wechat_benifit_gift::InitAsDefaultInstance() {
}

packetc2w_recv_wechat_benifit_gift::packetc2w_recv_wechat_benifit_gift(const packetc2w_recv_wechat_benifit_gift& from)
  : ::google::protobuf::Message() {
  SharedCtor();
  MergeFrom(from);
}

void packetc2w_recv_wechat_benifit_gift::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 5037;
  type_ = 0;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

packetc2w_recv_wechat_benifit_gift::~packetc2w_recv_wechat_benifit_gift() {
  SharedDtor();
}

void packetc2w_recv_wechat_benifit_gift::SharedDtor() {
  if (this != default_instance_) {
  }
}

void packetc2w_recv_wechat_benifit_gift::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* packetc2w_recv_wechat_benifit_gift::descriptor() {
  protobuf_AssignDescriptorsOnce();
  return packetc2w_recv_wechat_benifit_gift_descriptor_;
}

const packetc2w_recv_wechat_benifit_gift& packetc2w_recv_wechat_benifit_gift::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbenefits_2eproto();
  return *default_instance_;
}

packetc2w_recv_wechat_benifit_gift* packetc2w_recv_wechat_benifit_gift::default_instance_ = NULL;

packetc2w_recv_wechat_benifit_gift* packetc2w_recv_wechat_benifit_gift::New() const {
  return new packetc2w_recv_wechat_benifit_gift;
}

void packetc2w_recv_wechat_benifit_gift::Clear() {
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    packet_id_ = 5037;
    type_ = 0;
  }
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
  mutable_unknown_fields()->Clear();
}

bool packetc2w_recv_wechat_benifit_gift::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_recv_wechat_benifit_gift];
      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_type;
        break;
      }

      // optional int32 type = 2;
      case 2: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
         parse_type:
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &type_)));
          set_has_type();
        } 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_recv_wechat_benifit_gift::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_wechat_benifit_gift];
  if (has_packet_id()) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->packet_id(), output);
  }

  // optional int32 type = 2;
  if (has_type()) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  }

  if (!unknown_fields().empty()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        unknown_fields(), output);
  }
}

::google::protobuf::uint8* packetc2w_recv_wechat_benifit_gift::SerializeWithCachedSizesToArray(
    ::google::protobuf::uint8* target) const {
  // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_wechat_benifit_gift];
  if (has_packet_id()) {
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
      1, this->packet_id(), target);
  }

  // optional int32 type = 2;
  if (has_type()) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  }

  if (!unknown_fields().empty()) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        unknown_fields(), target);
  }
  return target;
}

int packetc2w_recv_wechat_benifit_gift::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_recv_wechat_benifit_gift];
    if (has_packet_id()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
    }

    // optional int32 type = 2;
    if (has_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::Int32Size(
          this->type());
    }

  }
  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_recv_wechat_benifit_gift::MergeFrom(const ::google::protobuf::Message& from) {
  GOOGLE_CHECK_NE(&from, this);
  const packetc2w_recv_wechat_benifit_gift* source =
    ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_recv_wechat_benifit_gift*>(
      &from);
  if (source == NULL) {
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
    MergeFrom(*source);
  }
}

void packetc2w_recv_wechat_benifit_gift::MergeFrom(const packetc2w_recv_wechat_benifit_gift& 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_type()) {
      set_type(from.type());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

void packetc2w_recv_wechat_benifit_gift::CopyFrom(const ::google::protobuf::Message& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void packetc2w_recv_wechat_benifit_gift::CopyFrom(const packetc2w_recv_wechat_benifit_gift& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool packetc2w_recv_wechat_benifit_gift::IsInitialized() const {

  return true;
}

void packetc2w_recv_wechat_benifit_gift::Swap(packetc2w_recv_wechat_benifit_gift* other) {
  if (other != this) {
    std::swap(packet_id_, other->packet_id_);
    std::swap(type_, other->type_);
    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_recv_wechat_benifit_gift::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = packetc2w_recv_wechat_benifit_gift_descriptor_;
  metadata.reflection = packetc2w_recv_wechat_benifit_gift_reflection_;
  return metadata;
}


// ===================================================================

#ifndef _MSC_VER
const int packetc2w_recv_wechat_share_award::kPacketIdFieldNumber;
const int packetc2w_recv_wechat_share_award::kIndexFieldNumber;
#endif  // !_MSC_VER

packetc2w_recv_wechat_share_award::packetc2w_recv_wechat_share_award()
  : ::google::protobuf::Message() {
  SharedCtor();
}

void packetc2w_recv_wechat_share_award::InitAsDefaultInstance() {
}

packetc2w_recv_wechat_share_award::packetc2w_recv_wechat_share_award(const packetc2w_recv_wechat_share_award& from)
  : ::google::protobuf::Message() {
  SharedCtor();
  MergeFrom(from);
}

void packetc2w_recv_wechat_share_award::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 5169;
  index_ = 0;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

packetc2w_recv_wechat_share_award::~packetc2w_recv_wechat_share_award() {
  SharedDtor();
}

void packetc2w_recv_wechat_share_award::SharedDtor() {
  if (this != default_instance_) {
  }
}

void packetc2w_recv_wechat_share_award::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* packetc2w_recv_wechat_share_award::descriptor() {
  protobuf_AssignDescriptorsOnce();
  return packetc2w_recv_wechat_share_award_descriptor_;
}

const packetc2w_recv_wechat_share_award& packetc2w_recv_wechat_share_award::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbenefits_2eproto();
  return *default_instance_;
}

packetc2w_recv_wechat_share_award* packetc2w_recv_wechat_share_award::default_instance_ = NULL;

packetc2w_recv_wechat_share_award* packetc2w_recv_wechat_share_award::New() const {
  return new packetc2w_recv_wechat_share_award;
}

void packetc2w_recv_wechat_share_award::Clear() {
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    packet_id_ = 5169;
    index_ = 0;
  }
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
  mutable_unknown_fields()->Clear();
}

bool packetc2w_recv_wechat_share_award::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_recv_wechat_share_award];
      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_recv_wechat_share_award::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_wechat_share_award];
  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_recv_wechat_share_award::SerializeWithCachedSizesToArray(
    ::google::protobuf::uint8* target) const {
  // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2w_recv_wechat_share_award];
  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_recv_wechat_share_award::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_recv_wechat_share_award];
    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_recv_wechat_share_award::MergeFrom(const ::google::protobuf::Message& from) {
  GOOGLE_CHECK_NE(&from, this);
  const packetc2w_recv_wechat_share_award* source =
    ::google::protobuf::internal::dynamic_cast_if_available<const packetc2w_recv_wechat_share_award*>(
      &from);
  if (source == NULL) {
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
    MergeFrom(*source);
  }
}

void packetc2w_recv_wechat_share_award::MergeFrom(const packetc2w_recv_wechat_share_award& 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_recv_wechat_share_award::CopyFrom(const ::google::protobuf::Message& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void packetc2w_recv_wechat_share_award::CopyFrom(const packetc2w_recv_wechat_share_award& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool packetc2w_recv_wechat_share_award::IsInitialized() const {

  return true;
}

void packetc2w_recv_wechat_share_award::Swap(packetc2w_recv_wechat_share_award* 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_recv_wechat_share_award::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = packetc2w_recv_wechat_share_award_descriptor_;
  metadata.reflection = packetc2w_recv_wechat_share_award_reflection_;
  return metadata;
}


// ===================================================================

#ifndef _MSC_VER
const int packetw2c_recv_wechat_benifit_gift_result::kPacketIdFieldNumber;
const int packetw2c_recv_wechat_benifit_gift_result::kTypeFieldNumber;
const int packetw2c_recv_wechat_benifit_gift_result::kResultFieldNumber;
#endif  // !_MSC_VER

packetw2c_recv_wechat_benifit_gift_result::packetw2c_recv_wechat_benifit_gift_result()
  : ::google::protobuf::Message() {
  SharedCtor();
}

void packetw2c_recv_wechat_benifit_gift_result::InitAsDefaultInstance() {
}

packetw2c_recv_wechat_benifit_gift_result::packetw2c_recv_wechat_benifit_gift_result(const packetw2c_recv_wechat_benifit_gift_result& from)
  : ::google::protobuf::Message() {
  SharedCtor();
  MergeFrom(from);
}

void packetw2c_recv_wechat_benifit_gift_result::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 7685;
  type_ = 0;
  result_ = 0;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

packetw2c_recv_wechat_benifit_gift_result::~packetw2c_recv_wechat_benifit_gift_result() {
  SharedDtor();
}

void packetw2c_recv_wechat_benifit_gift_result::SharedDtor() {
  if (this != default_instance_) {
  }
}

void packetw2c_recv_wechat_benifit_gift_result::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* packetw2c_recv_wechat_benifit_gift_result::descriptor() {
  protobuf_AssignDescriptorsOnce();
  return packetw2c_recv_wechat_benifit_gift_result_descriptor_;
}

const packetw2c_recv_wechat_benifit_gift_result& packetw2c_recv_wechat_benifit_gift_result::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbenefits_2eproto();
  return *default_instance_;
}

packetw2c_recv_wechat_benifit_gift_result* packetw2c_recv_wechat_benifit_gift_result::default_instance_ = NULL;

packetw2c_recv_wechat_benifit_gift_result* packetw2c_recv_wechat_benifit_gift_result::New() const {
  return new packetw2c_recv_wechat_benifit_gift_result;
}

void packetw2c_recv_wechat_benifit_gift_result::Clear() {
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    packet_id_ = 7685;
    type_ = 0;
    result_ = 0;
  }
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
  mutable_unknown_fields()->Clear();
}

bool packetw2c_recv_wechat_benifit_gift_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_recv_wechat_benifit_gift_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_type;
        break;
      }

      // optional int32 type = 2;
      case 2: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
         parse_type:
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &type_)));
          set_has_type();
        } 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->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_recv_wechat_benifit_gift_result::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_wechat_benifit_gift_result];
  if (has_packet_id()) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->packet_id(), output);
  }

  // optional int32 type = 2;
  if (has_type()) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
  }

  // optional int32 result = 3;
  if (has_result()) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  }

  if (!unknown_fields().empty()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        unknown_fields(), output);
  }
}

::google::protobuf::uint8* packetw2c_recv_wechat_benifit_gift_result::SerializeWithCachedSizesToArray(
    ::google::protobuf::uint8* target) const {
  // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_wechat_benifit_gift_result];
  if (has_packet_id()) {
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
      1, this->packet_id(), target);
  }

  // optional int32 type = 2;
  if (has_type()) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
  }

  // optional int32 result = 3;
  if (has_result()) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  }

  if (!unknown_fields().empty()) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        unknown_fields(), target);
  }
  return target;
}

int packetw2c_recv_wechat_benifit_gift_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_recv_wechat_benifit_gift_result];
    if (has_packet_id()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
    }

    // optional int32 type = 2;
    if (has_type()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::Int32Size(
          this->type());
    }

    // optional int32 result = 3;
    if (has_result()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::Int32Size(
          this->result());
    }

  }
  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_recv_wechat_benifit_gift_result::MergeFrom(const ::google::protobuf::Message& from) {
  GOOGLE_CHECK_NE(&from, this);
  const packetw2c_recv_wechat_benifit_gift_result* source =
    ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_recv_wechat_benifit_gift_result*>(
      &from);
  if (source == NULL) {
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
    MergeFrom(*source);
  }
}

void packetw2c_recv_wechat_benifit_gift_result::MergeFrom(const packetw2c_recv_wechat_benifit_gift_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_type()) {
      set_type(from.type());
    }
    if (from.has_result()) {
      set_result(from.result());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

void packetw2c_recv_wechat_benifit_gift_result::CopyFrom(const ::google::protobuf::Message& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void packetw2c_recv_wechat_benifit_gift_result::CopyFrom(const packetw2c_recv_wechat_benifit_gift_result& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool packetw2c_recv_wechat_benifit_gift_result::IsInitialized() const {

  return true;
}

void packetw2c_recv_wechat_benifit_gift_result::Swap(packetw2c_recv_wechat_benifit_gift_result* other) {
  if (other != this) {
    std::swap(packet_id_, other->packet_id_);
    std::swap(type_, other->type_);
    std::swap(result_, other->result_);
    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_recv_wechat_benifit_gift_result::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = packetw2c_recv_wechat_benifit_gift_result_descriptor_;
  metadata.reflection = packetw2c_recv_wechat_benifit_gift_result_reflection_;
  return metadata;
}


// ===================================================================

#ifndef _MSC_VER
const int packetw2c_recv_wechat_share_award_result::kPacketIdFieldNumber;
const int packetw2c_recv_wechat_share_award_result::kIndexFieldNumber;
const int packetw2c_recv_wechat_share_award_result::kResultFieldNumber;
#endif  // !_MSC_VER

packetw2c_recv_wechat_share_award_result::packetw2c_recv_wechat_share_award_result()
  : ::google::protobuf::Message() {
  SharedCtor();
}

void packetw2c_recv_wechat_share_award_result::InitAsDefaultInstance() {
}

packetw2c_recv_wechat_share_award_result::packetw2c_recv_wechat_share_award_result(const packetw2c_recv_wechat_share_award_result& from)
  : ::google::protobuf::Message() {
  SharedCtor();
  MergeFrom(from);
}

void packetw2c_recv_wechat_share_award_result::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 7686;
  index_ = 0;
  result_ = 0;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

packetw2c_recv_wechat_share_award_result::~packetw2c_recv_wechat_share_award_result() {
  SharedDtor();
}

void packetw2c_recv_wechat_share_award_result::SharedDtor() {
  if (this != default_instance_) {
  }
}

void packetw2c_recv_wechat_share_award_result::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* packetw2c_recv_wechat_share_award_result::descriptor() {
  protobuf_AssignDescriptorsOnce();
  return packetw2c_recv_wechat_share_award_result_descriptor_;
}

const packetw2c_recv_wechat_share_award_result& packetw2c_recv_wechat_share_award_result::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_client2world_5fbenefits_2eproto();
  return *default_instance_;
}

packetw2c_recv_wechat_share_award_result* packetw2c_recv_wechat_share_award_result::default_instance_ = NULL;

packetw2c_recv_wechat_share_award_result* packetw2c_recv_wechat_share_award_result::New() const {
  return new packetw2c_recv_wechat_share_award_result;
}

void packetw2c_recv_wechat_share_award_result::Clear() {
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    packet_id_ = 7686;
    index_ = 0;
    result_ = 0;
  }
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
  mutable_unknown_fields()->Clear();
}

bool packetw2c_recv_wechat_share_award_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_recv_wechat_share_award_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_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->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->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_recv_wechat_share_award_result::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_wechat_share_award_result];
  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);
  }

  // optional int32 result = 3;
  if (has_result()) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->result(), output);
  }

  if (!unknown_fields().empty()) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        unknown_fields(), output);
  }
}

::google::protobuf::uint8* packetw2c_recv_wechat_share_award_result::SerializeWithCachedSizesToArray(
    ::google::protobuf::uint8* target) const {
  // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_recv_wechat_share_award_result];
  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);
  }

  // optional int32 result = 3;
  if (has_result()) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->result(), target);
  }

  if (!unknown_fields().empty()) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        unknown_fields(), target);
  }
  return target;
}

int packetw2c_recv_wechat_share_award_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_recv_wechat_share_award_result];
    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());
    }

    // optional int32 result = 3;
    if (has_result()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::Int32Size(
          this->result());
    }

  }
  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_recv_wechat_share_award_result::MergeFrom(const ::google::protobuf::Message& from) {
  GOOGLE_CHECK_NE(&from, this);
  const packetw2c_recv_wechat_share_award_result* source =
    ::google::protobuf::internal::dynamic_cast_if_available<const packetw2c_recv_wechat_share_award_result*>(
      &from);
  if (source == NULL) {
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
    MergeFrom(*source);
  }
}

void packetw2c_recv_wechat_share_award_result::MergeFrom(const packetw2c_recv_wechat_share_award_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_index()) {
      set_index(from.index());
    }
    if (from.has_result()) {
      set_result(from.result());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

void packetw2c_recv_wechat_share_award_result::CopyFrom(const ::google::protobuf::Message& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void packetw2c_recv_wechat_share_award_result::CopyFrom(const packetw2c_recv_wechat_share_award_result& from) {
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool packetw2c_recv_wechat_share_award_result::IsInitialized() const {

  return true;
}

void packetw2c_recv_wechat_share_award_result::Swap(packetw2c_recv_wechat_share_award_result* other) {
  if (other != this) {
    std::swap(packet_id_, other->packet_id_);
    std::swap(index_, other->index_);
    std::swap(result_, other->result_);
    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_recv_wechat_share_award_result::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = packetw2c_recv_wechat_share_award_result_descriptor_;
  metadata.reflection = packetw2c_recv_wechat_share_award_result_reflection_;
  return metadata;
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace client2world_protocols

// @@protoc_insertion_point(global_scope)
