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

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "fish_ticket_palace.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 fish_protocols {

namespace {

const ::google::protobuf::Descriptor* packetc2l_get_ticket_palace_info_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetc2l_get_ticket_palace_info_reflection_ = NULL;
const ::google::protobuf::Descriptor* packetl2c_get_ticket_palace_info_result_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetl2c_get_ticket_palace_info_result_reflection_ = NULL;
const ::google::protobuf::Descriptor* packetc2l_recv_ticket_palace_reward_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetc2l_recv_ticket_palace_reward_reflection_ = NULL;
const ::google::protobuf::Descriptor* packetl2c_recv_ticket_palace_reward_result_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  packetl2c_recv_ticket_palace_reward_result_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_fish_5fticket_5fpalace_2eproto() {
  protobuf_AddDesc_fish_5fticket_5fpalace_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "fish_ticket_palace.proto");
  GOOGLE_CHECK(file != NULL);
  packetc2l_get_ticket_palace_info_descriptor_ = file->message_type(0);
  static const int packetc2l_get_ticket_palace_info_offsets_[1] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_ticket_palace_info, packet_id_),
  };
  packetc2l_get_ticket_palace_info_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetc2l_get_ticket_palace_info_descriptor_,
      packetc2l_get_ticket_palace_info::default_instance_,
      packetc2l_get_ticket_palace_info_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_ticket_palace_info, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_get_ticket_palace_info, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetc2l_get_ticket_palace_info));
  packetl2c_get_ticket_palace_info_result_descriptor_ = file->message_type(1);
  static const int packetl2c_get_ticket_palace_info_result_offsets_[4] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_ticket_palace_info_result, packet_id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_ticket_palace_info_result, dailyticket_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_ticket_palace_info_result, leftsecond_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_ticket_palace_info_result, received_),
  };
  packetl2c_get_ticket_palace_info_result_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetl2c_get_ticket_palace_info_result_descriptor_,
      packetl2c_get_ticket_palace_info_result::default_instance_,
      packetl2c_get_ticket_palace_info_result_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_ticket_palace_info_result, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_get_ticket_palace_info_result, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetl2c_get_ticket_palace_info_result));
  packetc2l_recv_ticket_palace_reward_descriptor_ = file->message_type(2);
  static const int packetc2l_recv_ticket_palace_reward_offsets_[1] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_recv_ticket_palace_reward, packet_id_),
  };
  packetc2l_recv_ticket_palace_reward_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetc2l_recv_ticket_palace_reward_descriptor_,
      packetc2l_recv_ticket_palace_reward::default_instance_,
      packetc2l_recv_ticket_palace_reward_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_recv_ticket_palace_reward, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetc2l_recv_ticket_palace_reward, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetc2l_recv_ticket_palace_reward));
  packetl2c_recv_ticket_palace_reward_result_descriptor_ = file->message_type(3);
  static const int packetl2c_recv_ticket_palace_reward_result_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_recv_ticket_palace_reward_result, packet_id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_recv_ticket_palace_reward_result, index_),
  };
  packetl2c_recv_ticket_palace_reward_result_reflection_ =
    new ::google::protobuf::internal::GeneratedMessageReflection(
      packetl2c_recv_ticket_palace_reward_result_descriptor_,
      packetl2c_recv_ticket_palace_reward_result::default_instance_,
      packetl2c_recv_ticket_palace_reward_result_offsets_,
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_recv_ticket_palace_reward_result, _has_bits_[0]),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(packetl2c_recv_ticket_palace_reward_result, _unknown_fields_),
      -1,
      ::google::protobuf::DescriptorPool::generated_pool(),
      ::google::protobuf::MessageFactory::generated_factory(),
      sizeof(packetl2c_recv_ticket_palace_reward_result));
}

namespace {

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

void protobuf_RegisterTypes(const ::std::string&) {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetc2l_get_ticket_palace_info_descriptor_, &packetc2l_get_ticket_palace_info::default_instance());
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetl2c_get_ticket_palace_info_result_descriptor_, &packetl2c_get_ticket_palace_info_result::default_instance());
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetc2l_recv_ticket_palace_reward_descriptor_, &packetc2l_recv_ticket_palace_reward::default_instance());
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
    packetl2c_recv_ticket_palace_reward_result_descriptor_, &packetl2c_recv_ticket_palace_reward_result::default_instance());
}

}  // namespace

void protobuf_ShutdownFile_fish_5fticket_5fpalace_2eproto() {
  delete packetc2l_get_ticket_palace_info::default_instance_;
  delete packetc2l_get_ticket_palace_info_reflection_;
  delete packetl2c_get_ticket_palace_info_result::default_instance_;
  delete packetl2c_get_ticket_palace_info_result_reflection_;
  delete packetc2l_recv_ticket_palace_reward::default_instance_;
  delete packetc2l_recv_ticket_palace_reward_reflection_;
  delete packetl2c_recv_ticket_palace_reward_result::default_instance_;
  delete packetl2c_recv_ticket_palace_reward_result_reflection_;
}

void protobuf_AddDesc_fish_5fticket_5fpalace_2eproto() {
  static bool already_here = false;
  if (already_here) return;
  already_here = true;
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::fish_protocols::protobuf_AddDesc_fish_5fdef_2eproto();
  ::msg_type_def::protobuf_AddDesc_msg_5ftype_5fdef_2eproto();
  ::fish_protocols::protobuf_AddDesc_fish_5ftype_5fdef_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n\030fish_ticket_palace.proto\022\016fish_protoco"
    "ls\032\016fish_def.proto\032\022msg_type_def.proto\032\023"
    "fish_type_def.proto\"z\n packetc2l_get_tic"
    "ket_palace_info\022V\n\tpacket_id\030\001 \001(\0162!.fis"
    "h_protocols.e_server_msg_type: e_mst_c2l"
    "_get_ticket_palace_info\"\303\001\n\'packetl2c_ge"
    "t_ticket_palace_info_result\022]\n\tpacket_id"
    "\030\001 \001(\0162!.fish_protocols.e_server_msg_typ"
    "e:\'e_mst_l2c_get_ticket_palace_info_resu"
    "lt\022\023\n\013dailyTicket\030\002 \001(\005\022\022\n\nleftSecond\030\003 "
    "\001(\005\022\020\n\010received\030\004 \003(\010\"\204\001\n#packetc2l_recv"
    "_ticket_palace_reward\022]\n\tpacket_id\030\001 \001(\016"
    "2!.fish_protocols.e_server_msg_type:\'e_m"
    "st_c2l_get_recv_ticket_palace_reward\"\235\001\n"
    "*packetl2c_recv_ticket_palace_reward_res"
    "ult\022`\n\tpacket_id\030\001 \001(\0162!.fish_protocols."
    "e_server_msg_type:*e_mst_l2c_recv_ticket"
    "_palace_reward_result\022\r\n\005index\030\003 \003(\005", 716);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "fish_ticket_palace.proto", &protobuf_RegisterTypes);
  packetc2l_get_ticket_palace_info::default_instance_ = new packetc2l_get_ticket_palace_info();
  packetl2c_get_ticket_palace_info_result::default_instance_ = new packetl2c_get_ticket_palace_info_result();
  packetc2l_recv_ticket_palace_reward::default_instance_ = new packetc2l_recv_ticket_palace_reward();
  packetl2c_recv_ticket_palace_reward_result::default_instance_ = new packetl2c_recv_ticket_palace_reward_result();
  packetc2l_get_ticket_palace_info::default_instance_->InitAsDefaultInstance();
  packetl2c_get_ticket_palace_info_result::default_instance_->InitAsDefaultInstance();
  packetc2l_recv_ticket_palace_reward::default_instance_->InitAsDefaultInstance();
  packetl2c_recv_ticket_palace_reward_result::default_instance_->InitAsDefaultInstance();
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_fish_5fticket_5fpalace_2eproto);
}

// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_fish_5fticket_5fpalace_2eproto {
  StaticDescriptorInitializer_fish_5fticket_5fpalace_2eproto() {
    protobuf_AddDesc_fish_5fticket_5fpalace_2eproto();
  }
} static_descriptor_initializer_fish_5fticket_5fpalace_2eproto_;

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

#ifndef _MSC_VER
const int packetc2l_get_ticket_palace_info::kPacketIdFieldNumber;
#endif  // !_MSC_VER

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

void packetc2l_get_ticket_palace_info::InitAsDefaultInstance() {
}

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

void packetc2l_get_ticket_palace_info::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 10153;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

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

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

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

const packetc2l_get_ticket_palace_info& packetc2l_get_ticket_palace_info::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_fish_5fticket_5fpalace_2eproto();
  return *default_instance_;
}

packetc2l_get_ticket_palace_info* packetc2l_get_ticket_palace_info::default_instance_ = NULL;

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

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

bool packetc2l_get_ticket_palace_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 .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_ticket_palace_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 (::fish_protocols::e_server_msg_type_IsValid(value)) {
            set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
          } else {
            mutable_unknown_fields()->AddVarint(1, value);
          }
        } 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 packetc2l_get_ticket_palace_info::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_ticket_palace_info];
  if (has_packet_id()) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->packet_id(), output);
  }

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

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

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

int packetc2l_get_ticket_palace_info::ByteSize() const {
  int total_size = 0;

  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_ticket_palace_info];
    if (has_packet_id()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
    }

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

void packetc2l_get_ticket_palace_info::MergeFrom(const packetc2l_get_ticket_palace_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());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

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

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

bool packetc2l_get_ticket_palace_info::IsInitialized() const {

  return true;
}

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


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

#ifndef _MSC_VER
const int packetl2c_get_ticket_palace_info_result::kPacketIdFieldNumber;
const int packetl2c_get_ticket_palace_info_result::kDailyTicketFieldNumber;
const int packetl2c_get_ticket_palace_info_result::kLeftSecondFieldNumber;
const int packetl2c_get_ticket_palace_info_result::kReceivedFieldNumber;
#endif  // !_MSC_VER

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

void packetl2c_get_ticket_palace_info_result::InitAsDefaultInstance() {
}

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

void packetl2c_get_ticket_palace_info_result::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 16142;
  dailyticket_ = 0;
  leftsecond_ = 0;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

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

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

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

const packetl2c_get_ticket_palace_info_result& packetl2c_get_ticket_palace_info_result::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_fish_5fticket_5fpalace_2eproto();
  return *default_instance_;
}

packetl2c_get_ticket_palace_info_result* packetl2c_get_ticket_palace_info_result::default_instance_ = NULL;

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

void packetl2c_get_ticket_palace_info_result::Clear() {
  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    packet_id_ = 16142;
    dailyticket_ = 0;
    leftsecond_ = 0;
  }
  received_.Clear();
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
  mutable_unknown_fields()->Clear();
}

bool packetl2c_get_ticket_palace_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 .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_ticket_palace_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 (::fish_protocols::e_server_msg_type_IsValid(value)) {
            set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
          } else {
            mutable_unknown_fields()->AddVarint(1, value);
          }
        } else {
          goto handle_uninterpreted;
        }
        if (input->ExpectTag(16)) goto parse_dailyTicket;
        break;
      }

      // optional int32 dailyTicket = 2;
      case 2: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
         parse_dailyTicket:
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &dailyticket_)));
          set_has_dailyticket();
        } else {
          goto handle_uninterpreted;
        }
        if (input->ExpectTag(24)) goto parse_leftSecond;
        break;
      }

      // optional int32 leftSecond = 3;
      case 3: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
         parse_leftSecond:
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &leftsecond_)));
          set_has_leftsecond();
        } else {
          goto handle_uninterpreted;
        }
        if (input->ExpectTag(32)) goto parse_received;
        break;
      }

      // repeated bool received = 4;
      case 4: {
        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
         parse_received:
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 1, 32, input, this->mutable_received())));
        } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
                   == ::google::protobuf::internal::WireFormatLite::
                      WIRETYPE_LENGTH_DELIMITED) {
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, this->mutable_received())));
        } else {
          goto handle_uninterpreted;
        }
        if (input->ExpectTag(32)) goto parse_received;
        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 packetl2c_get_ticket_palace_info_result::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_ticket_palace_info_result];
  if (has_packet_id()) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->packet_id(), output);
  }

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

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

  // repeated bool received = 4;
  for (int i = 0; i < this->received_size(); i++) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(
      4, this->received(i), output);
  }

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

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

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

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

  // repeated bool received = 4;
  for (int i = 0; i < this->received_size(); i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      WriteBoolToArray(4, this->received(i), target);
  }

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

int packetl2c_get_ticket_palace_info_result::ByteSize() const {
  int total_size = 0;

  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_ticket_palace_info_result];
    if (has_packet_id()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
    }

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

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

  }
  // repeated bool received = 4;
  {
    int data_size = 0;
    data_size = 1 * this->received_size();
    total_size += 1 * this->received_size() + data_size;
  }

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

void packetl2c_get_ticket_palace_info_result::MergeFrom(const packetl2c_get_ticket_palace_info_result& from) {
  GOOGLE_CHECK_NE(&from, this);
  received_.MergeFrom(from.received_);
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    if (from.has_packet_id()) {
      set_packet_id(from.packet_id());
    }
    if (from.has_dailyticket()) {
      set_dailyticket(from.dailyticket());
    }
    if (from.has_leftsecond()) {
      set_leftsecond(from.leftsecond());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

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

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

bool packetl2c_get_ticket_palace_info_result::IsInitialized() const {

  return true;
}

void packetl2c_get_ticket_palace_info_result::Swap(packetl2c_get_ticket_palace_info_result* other) {
  if (other != this) {
    std::swap(packet_id_, other->packet_id_);
    std::swap(dailyticket_, other->dailyticket_);
    std::swap(leftsecond_, other->leftsecond_);
    received_.Swap(&other->received_);
    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 packetl2c_get_ticket_palace_info_result::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = packetl2c_get_ticket_palace_info_result_descriptor_;
  metadata.reflection = packetl2c_get_ticket_palace_info_result_reflection_;
  return metadata;
}


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

#ifndef _MSC_VER
const int packetc2l_recv_ticket_palace_reward::kPacketIdFieldNumber;
#endif  // !_MSC_VER

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

void packetc2l_recv_ticket_palace_reward::InitAsDefaultInstance() {
}

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

void packetc2l_recv_ticket_palace_reward::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 10154;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

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

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

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

const packetc2l_recv_ticket_palace_reward& packetc2l_recv_ticket_palace_reward::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_fish_5fticket_5fpalace_2eproto();
  return *default_instance_;
}

packetc2l_recv_ticket_palace_reward* packetc2l_recv_ticket_palace_reward::default_instance_ = NULL;

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

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

bool packetc2l_recv_ticket_palace_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 .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_recv_ticket_palace_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 (::fish_protocols::e_server_msg_type_IsValid(value)) {
            set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
          } else {
            mutable_unknown_fields()->AddVarint(1, value);
          }
        } 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 packetc2l_recv_ticket_palace_reward::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_recv_ticket_palace_reward];
  if (has_packet_id()) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->packet_id(), output);
  }

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

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

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

int packetc2l_recv_ticket_palace_reward::ByteSize() const {
  int total_size = 0;

  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_recv_ticket_palace_reward];
    if (has_packet_id()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
    }

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

void packetc2l_recv_ticket_palace_reward::MergeFrom(const packetc2l_recv_ticket_palace_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());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

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

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

bool packetc2l_recv_ticket_palace_reward::IsInitialized() const {

  return true;
}

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


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

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

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

void packetl2c_recv_ticket_palace_reward_result::InitAsDefaultInstance() {
}

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

void packetl2c_recv_ticket_palace_reward_result::SharedCtor() {
  _cached_size_ = 0;
  packet_id_ = 16143;
  ::memset(_has_bits_, 0, sizeof(_has_bits_));
}

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

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

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

const packetl2c_recv_ticket_palace_reward_result& packetl2c_recv_ticket_palace_reward_result::default_instance() {
  if (default_instance_ == NULL) protobuf_AddDesc_fish_5fticket_5fpalace_2eproto();
  return *default_instance_;
}

packetl2c_recv_ticket_palace_reward_result* packetl2c_recv_ticket_palace_reward_result::default_instance_ = NULL;

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

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

bool packetl2c_recv_ticket_palace_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 .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_recv_ticket_palace_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 (::fish_protocols::e_server_msg_type_IsValid(value)) {
            set_packet_id(static_cast< ::fish_protocols::e_server_msg_type >(value));
          } else {
            mutable_unknown_fields()->AddVarint(1, value);
          }
        } else {
          goto handle_uninterpreted;
        }
        if (input->ExpectTag(24)) goto parse_index;
        break;
      }

      // repeated 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::ReadRepeatedPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 1, 24, input, this->mutable_index())));
        } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
                   == ::google::protobuf::internal::WireFormatLite::
                      WIRETYPE_LENGTH_DELIMITED) {
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, this->mutable_index())));
        } else {
          goto handle_uninterpreted;
        }
        if (input->ExpectTag(24)) goto parse_index;
        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 packetl2c_recv_ticket_palace_reward_result::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_recv_ticket_palace_reward_result];
  if (has_packet_id()) {
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
      1, this->packet_id(), output);
  }

  // repeated int32 index = 3;
  for (int i = 0; i < this->index_size(); i++) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(
      3, this->index(i), output);
  }

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

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

  // repeated int32 index = 3;
  for (int i = 0; i < this->index_size(); i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      WriteInt32ToArray(3, this->index(i), target);
  }

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

int packetl2c_recv_ticket_palace_reward_result::ByteSize() const {
  int total_size = 0;

  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    // optional .fish_protocols.e_server_msg_type packet_id = 1 [default = e_mst_l2c_recv_ticket_palace_reward_result];
    if (has_packet_id()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->packet_id());
    }

  }
  // repeated int32 index = 3;
  {
    int data_size = 0;
    for (int i = 0; i < this->index_size(); i++) {
      data_size += ::google::protobuf::internal::WireFormatLite::
        Int32Size(this->index(i));
    }
    total_size += 1 * this->index_size() + data_size;
  }

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

void packetl2c_recv_ticket_palace_reward_result::MergeFrom(const packetl2c_recv_ticket_palace_reward_result& from) {
  GOOGLE_CHECK_NE(&from, this);
  index_.MergeFrom(from.index_);
  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    if (from.has_packet_id()) {
      set_packet_id(from.packet_id());
    }
  }
  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}

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

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

bool packetl2c_recv_ticket_palace_reward_result::IsInitialized() const {

  return true;
}

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


// @@protoc_insertion_point(namespace_scope)

}  // namespace fish_protocols

// @@protoc_insertion_point(global_scope)
