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

#ifndef PROTOBUF_client2center_5fprotocol_2eproto__INCLUDED
#define PROTOBUF_client2center_5fprotocol_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 2005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/unknown_field_set.h>
#include "client2center_msg_type.pb.h"
#include "msg_type_def.pb.h"
#include "msg_info_def.pb.h"
#include "common_protocol.pb.h"
// @@protoc_insertion_point(includes)

namespace client2center_protocols {

// Internal implementation detail -- do not call these.
void  protobuf_AddDesc_client2center_5fprotocol_2eproto();
void protobuf_AssignDesc_client2center_5fprotocol_2eproto();
void protobuf_ShutdownFile_client2center_5fprotocol_2eproto();

class packetc2center_player_connect;
class packetcenter2c_player_connect_result;

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

class packetc2center_player_connect : public ::google::protobuf::Message {
 public:
  packetc2center_player_connect();
  virtual ~packetc2center_player_connect();

  packetc2center_player_connect(const packetc2center_player_connect& from);

  inline packetc2center_player_connect& operator=(const packetc2center_player_connect& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const packetc2center_player_connect& default_instance();

  void Swap(packetc2center_player_connect* other);

  // implements Message ----------------------------------------------

  packetc2center_player_connect* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const packetc2center_player_connect& from);
  void MergeFrom(const packetc2center_player_connect& from);
  void Clear();
  bool IsInitialized() const;

  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:

  ::google::protobuf::Metadata GetMetadata() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2center_player_connect];
  inline bool has_packet_id() const;
  inline void clear_packet_id();
  static const int kPacketIdFieldNumber = 1;
  inline ::client2center_protocols::e_server_msg_type packet_id() const;
  inline void set_packet_id(::client2center_protocols::e_server_msg_type value);

  // optional .common_protocol.PlayerConnect connectInfo = 2;
  inline bool has_connectinfo() const;
  inline void clear_connectinfo();
  static const int kConnectInfoFieldNumber = 2;
  inline const ::common_protocol::PlayerConnect& connectinfo() const;
  inline ::common_protocol::PlayerConnect* mutable_connectinfo();
  inline ::common_protocol::PlayerConnect* release_connectinfo();
  inline void set_allocated_connectinfo(::common_protocol::PlayerConnect* connectinfo);

  // @@protoc_insertion_point(class_scope:client2center_protocols.packetc2center_player_connect)
 private:
  inline void set_has_packet_id();
  inline void clear_has_packet_id();
  inline void set_has_connectinfo();
  inline void clear_has_connectinfo();

  ::google::protobuf::UnknownFieldSet _unknown_fields_;

  ::common_protocol::PlayerConnect* connectinfo_;
  int packet_id_;

  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];

  friend void  protobuf_AddDesc_client2center_5fprotocol_2eproto();
  friend void protobuf_AssignDesc_client2center_5fprotocol_2eproto();
  friend void protobuf_ShutdownFile_client2center_5fprotocol_2eproto();

  void InitAsDefaultInstance();
  static packetc2center_player_connect* default_instance_;
};
// -------------------------------------------------------------------

class packetcenter2c_player_connect_result : public ::google::protobuf::Message {
 public:
  packetcenter2c_player_connect_result();
  virtual ~packetcenter2c_player_connect_result();

  packetcenter2c_player_connect_result(const packetcenter2c_player_connect_result& from);

  inline packetcenter2c_player_connect_result& operator=(const packetcenter2c_player_connect_result& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const packetcenter2c_player_connect_result& default_instance();

  void Swap(packetcenter2c_player_connect_result* other);

  // implements Message ----------------------------------------------

  packetcenter2c_player_connect_result* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const packetcenter2c_player_connect_result& from);
  void MergeFrom(const packetcenter2c_player_connect_result& from);
  void Clear();
  bool IsInitialized() const;

  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:

  ::google::protobuf::Metadata GetMetadata() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_center2c_player_connect_result];
  inline bool has_packet_id() const;
  inline void clear_packet_id();
  static const int kPacketIdFieldNumber = 1;
  inline ::client2center_protocols::e_server_msg_type packet_id() const;
  inline void set_packet_id(::client2center_protocols::e_server_msg_type value);

  // optional .common_protocol.PlayerConnectResult resultInfo = 2;
  inline bool has_resultinfo() const;
  inline void clear_resultinfo();
  static const int kResultInfoFieldNumber = 2;
  inline const ::common_protocol::PlayerConnectResult& resultinfo() const;
  inline ::common_protocol::PlayerConnectResult* mutable_resultinfo();
  inline ::common_protocol::PlayerConnectResult* release_resultinfo();
  inline void set_allocated_resultinfo(::common_protocol::PlayerConnectResult* resultinfo);

  // @@protoc_insertion_point(class_scope:client2center_protocols.packetcenter2c_player_connect_result)
 private:
  inline void set_has_packet_id();
  inline void clear_has_packet_id();
  inline void set_has_resultinfo();
  inline void clear_has_resultinfo();

  ::google::protobuf::UnknownFieldSet _unknown_fields_;

  ::common_protocol::PlayerConnectResult* resultinfo_;
  int packet_id_;

  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];

  friend void  protobuf_AddDesc_client2center_5fprotocol_2eproto();
  friend void protobuf_AssignDesc_client2center_5fprotocol_2eproto();
  friend void protobuf_ShutdownFile_client2center_5fprotocol_2eproto();

  void InitAsDefaultInstance();
  static packetcenter2c_player_connect_result* default_instance_;
};
// ===================================================================


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

// packetc2center_player_connect

// optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2center_player_connect];
inline bool packetc2center_player_connect::has_packet_id() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void packetc2center_player_connect::set_has_packet_id() {
  _has_bits_[0] |= 0x00000001u;
}
inline void packetc2center_player_connect::clear_has_packet_id() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void packetc2center_player_connect::clear_packet_id() {
  packet_id_ = 30001;
  clear_has_packet_id();
}
inline ::client2center_protocols::e_server_msg_type packetc2center_player_connect::packet_id() const {
  return static_cast< ::client2center_protocols::e_server_msg_type >(packet_id_);
}
inline void packetc2center_player_connect::set_packet_id(::client2center_protocols::e_server_msg_type value) {
  assert(::client2center_protocols::e_server_msg_type_IsValid(value));
  set_has_packet_id();
  packet_id_ = value;
}

// optional .common_protocol.PlayerConnect connectInfo = 2;
inline bool packetc2center_player_connect::has_connectinfo() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void packetc2center_player_connect::set_has_connectinfo() {
  _has_bits_[0] |= 0x00000002u;
}
inline void packetc2center_player_connect::clear_has_connectinfo() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void packetc2center_player_connect::clear_connectinfo() {
  if (connectinfo_ != NULL) connectinfo_->::common_protocol::PlayerConnect::Clear();
  clear_has_connectinfo();
}
inline const ::common_protocol::PlayerConnect& packetc2center_player_connect::connectinfo() const {
  return connectinfo_ != NULL ? *connectinfo_ : *default_instance_->connectinfo_;
}
inline ::common_protocol::PlayerConnect* packetc2center_player_connect::mutable_connectinfo() {
  set_has_connectinfo();
  if (connectinfo_ == NULL) connectinfo_ = new ::common_protocol::PlayerConnect;
  return connectinfo_;
}
inline ::common_protocol::PlayerConnect* packetc2center_player_connect::release_connectinfo() {
  clear_has_connectinfo();
  ::common_protocol::PlayerConnect* temp = connectinfo_;
  connectinfo_ = NULL;
  return temp;
}
inline void packetc2center_player_connect::set_allocated_connectinfo(::common_protocol::PlayerConnect* connectinfo) {
  delete connectinfo_;
  connectinfo_ = connectinfo;
  if (connectinfo) {
    set_has_connectinfo();
  } else {
    clear_has_connectinfo();
  }
}

// -------------------------------------------------------------------

// packetcenter2c_player_connect_result

// optional .client2center_protocols.e_server_msg_type packet_id = 1 [default = e_mst_center2c_player_connect_result];
inline bool packetcenter2c_player_connect_result::has_packet_id() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void packetcenter2c_player_connect_result::set_has_packet_id() {
  _has_bits_[0] |= 0x00000001u;
}
inline void packetcenter2c_player_connect_result::clear_has_packet_id() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void packetcenter2c_player_connect_result::clear_packet_id() {
  packet_id_ = 35001;
  clear_has_packet_id();
}
inline ::client2center_protocols::e_server_msg_type packetcenter2c_player_connect_result::packet_id() const {
  return static_cast< ::client2center_protocols::e_server_msg_type >(packet_id_);
}
inline void packetcenter2c_player_connect_result::set_packet_id(::client2center_protocols::e_server_msg_type value) {
  assert(::client2center_protocols::e_server_msg_type_IsValid(value));
  set_has_packet_id();
  packet_id_ = value;
}

// optional .common_protocol.PlayerConnectResult resultInfo = 2;
inline bool packetcenter2c_player_connect_result::has_resultinfo() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void packetcenter2c_player_connect_result::set_has_resultinfo() {
  _has_bits_[0] |= 0x00000002u;
}
inline void packetcenter2c_player_connect_result::clear_has_resultinfo() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void packetcenter2c_player_connect_result::clear_resultinfo() {
  if (resultinfo_ != NULL) resultinfo_->::common_protocol::PlayerConnectResult::Clear();
  clear_has_resultinfo();
}
inline const ::common_protocol::PlayerConnectResult& packetcenter2c_player_connect_result::resultinfo() const {
  return resultinfo_ != NULL ? *resultinfo_ : *default_instance_->resultinfo_;
}
inline ::common_protocol::PlayerConnectResult* packetcenter2c_player_connect_result::mutable_resultinfo() {
  set_has_resultinfo();
  if (resultinfo_ == NULL) resultinfo_ = new ::common_protocol::PlayerConnectResult;
  return resultinfo_;
}
inline ::common_protocol::PlayerConnectResult* packetcenter2c_player_connect_result::release_resultinfo() {
  clear_has_resultinfo();
  ::common_protocol::PlayerConnectResult* temp = resultinfo_;
  resultinfo_ = NULL;
  return temp;
}
inline void packetcenter2c_player_connect_result::set_allocated_resultinfo(::common_protocol::PlayerConnectResult* resultinfo) {
  delete resultinfo_;
  resultinfo_ = resultinfo;
  if (resultinfo) {
    set_has_resultinfo();
  } else {
    clear_has_resultinfo();
  }
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace client2center_protocols

#ifndef SWIG
namespace google {
namespace protobuf {


}  // namespace google
}  // namespace protobuf
#endif  // SWIG

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_client2center_5fprotocol_2eproto__INCLUDED
