// Generated by the protocol buffer compiler. DO NOT EDIT! // source: client2world_chat.proto #ifndef PROTOBUF_client2world_5fchat_2eproto__INCLUDED #define PROTOBUF_client2world_5fchat_2eproto__INCLUDED #include #include #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 #include #include #include #include #include "client2world_msg_type.pb.h" #include "msg_type_def.pb.h" #include "msg_info_def.pb.h" // @@protoc_insertion_point(includes) namespace client2world_protocols { // Internal implementation detail -- do not call these. void protobuf_AddDesc_client2world_5fchat_2eproto(); void protobuf_AssignDesc_client2world_5fchat_2eproto(); void protobuf_ShutdownFile_client2world_5fchat_2eproto(); class packetw2c_notify; // =================================================================== class packetw2c_notify : public ::google::protobuf::Message { public: packetw2c_notify(); virtual ~packetw2c_notify(); packetw2c_notify(const packetw2c_notify& from); inline packetw2c_notify& operator=(const packetw2c_notify& 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 packetw2c_notify& default_instance(); void Swap(packetw2c_notify* other); // implements Message ---------------------------------------------- packetw2c_notify* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const packetw2c_notify& from); void MergeFrom(const packetw2c_notify& 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 .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_notify]; inline bool has_packet_id() const; inline void clear_packet_id(); static const int kPacketIdFieldNumber = 1; inline ::client2world_protocols::e_server_msg_type packet_id() const; inline void set_packet_id(::client2world_protocols::e_server_msg_type value); // optional string content = 2; inline bool has_content() const; inline void clear_content(); static const int kContentFieldNumber = 2; inline const ::std::string& content() const; inline void set_content(const ::std::string& value); inline void set_content(const char* value); inline void set_content(const char* value, size_t size); inline ::std::string* mutable_content(); inline ::std::string* release_content(); inline void set_allocated_content(::std::string* content); // optional int32 notifyType = 3; inline bool has_notifytype() const; inline void clear_notifytype(); static const int kNotifyTypeFieldNumber = 3; inline ::google::protobuf::int32 notifytype() const; inline void set_notifytype(::google::protobuf::int32 value); // optional string talkerNickName = 4; inline bool has_talkernickname() const; inline void clear_talkernickname(); static const int kTalkerNickNameFieldNumber = 4; inline const ::std::string& talkernickname() const; inline void set_talkernickname(const ::std::string& value); inline void set_talkernickname(const char* value); inline void set_talkernickname(const char* value, size_t size); inline ::std::string* mutable_talkernickname(); inline ::std::string* release_talkernickname(); inline void set_allocated_talkernickname(::std::string* talkernickname); // optional int32 playerId = 5; inline bool has_playerid() const; inline void clear_playerid(); static const int kPlayerIdFieldNumber = 5; inline ::google::protobuf::int32 playerid() const; inline void set_playerid(::google::protobuf::int32 value); // optional int32 talkerVIPLevel = 6; inline bool has_talkerviplevel() const; inline void clear_talkerviplevel(); static const int kTalkerVIPLevelFieldNumber = 6; inline ::google::protobuf::int32 talkerviplevel() const; inline void set_talkerviplevel(::google::protobuf::int32 value); // optional bool hasMonthCard = 7; inline bool has_hasmonthcard() const; inline void clear_hasmonthcard(); static const int kHasMonthCardFieldNumber = 7; inline bool hasmonthcard() const; inline void set_hasmonthcard(bool value); // optional int32 repCount = 8 [default = 1]; inline bool has_repcount() const; inline void clear_repcount(); static const int kRepCountFieldNumber = 8; inline ::google::protobuf::int32 repcount() const; inline void set_repcount(::google::protobuf::int32 value); // optional int32 interval = 9 [default = 0]; inline bool has_interval() const; inline void clear_interval(); static const int kIntervalFieldNumber = 9; inline ::google::protobuf::int32 interval() const; inline void set_interval(::google::protobuf::int32 value); // optional int32 showPos = 10; inline bool has_showpos() const; inline void clear_showpos(); static const int kShowPosFieldNumber = 10; inline ::google::protobuf::int32 showpos() const; inline void set_showpos(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:client2world_protocols.packetw2c_notify) private: inline void set_has_packet_id(); inline void clear_has_packet_id(); inline void set_has_content(); inline void clear_has_content(); inline void set_has_notifytype(); inline void clear_has_notifytype(); inline void set_has_talkernickname(); inline void clear_has_talkernickname(); inline void set_has_playerid(); inline void clear_has_playerid(); inline void set_has_talkerviplevel(); inline void clear_has_talkerviplevel(); inline void set_has_hasmonthcard(); inline void clear_has_hasmonthcard(); inline void set_has_repcount(); inline void clear_has_repcount(); inline void set_has_interval(); inline void clear_has_interval(); inline void set_has_showpos(); inline void clear_has_showpos(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::std::string* content_; int packet_id_; ::google::protobuf::int32 notifytype_; ::std::string* talkernickname_; ::google::protobuf::int32 playerid_; ::google::protobuf::int32 talkerviplevel_; bool hasmonthcard_; ::google::protobuf::int32 repcount_; ::google::protobuf::int32 interval_; ::google::protobuf::int32 showpos_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32]; friend void protobuf_AddDesc_client2world_5fchat_2eproto(); friend void protobuf_AssignDesc_client2world_5fchat_2eproto(); friend void protobuf_ShutdownFile_client2world_5fchat_2eproto(); void InitAsDefaultInstance(); static packetw2c_notify* default_instance_; }; // =================================================================== // =================================================================== // packetw2c_notify // optional .client2world_protocols.e_server_msg_type packet_id = 1 [default = e_mst_w2c_notify]; inline bool packetw2c_notify::has_packet_id() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void packetw2c_notify::set_has_packet_id() { _has_bits_[0] |= 0x00000001u; } inline void packetw2c_notify::clear_has_packet_id() { _has_bits_[0] &= ~0x00000001u; } inline void packetw2c_notify::clear_packet_id() { packet_id_ = 7523; clear_has_packet_id(); } inline ::client2world_protocols::e_server_msg_type packetw2c_notify::packet_id() const { return static_cast< ::client2world_protocols::e_server_msg_type >(packet_id_); } inline void packetw2c_notify::set_packet_id(::client2world_protocols::e_server_msg_type value) { assert(::client2world_protocols::e_server_msg_type_IsValid(value)); set_has_packet_id(); packet_id_ = value; } // optional string content = 2; inline bool packetw2c_notify::has_content() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void packetw2c_notify::set_has_content() { _has_bits_[0] |= 0x00000002u; } inline void packetw2c_notify::clear_has_content() { _has_bits_[0] &= ~0x00000002u; } inline void packetw2c_notify::clear_content() { if (content_ != &::google::protobuf::internal::kEmptyString) { content_->clear(); } clear_has_content(); } inline const ::std::string& packetw2c_notify::content() const { return *content_; } inline void packetw2c_notify::set_content(const ::std::string& value) { set_has_content(); if (content_ == &::google::protobuf::internal::kEmptyString) { content_ = new ::std::string; } content_->assign(value); } inline void packetw2c_notify::set_content(const char* value) { set_has_content(); if (content_ == &::google::protobuf::internal::kEmptyString) { content_ = new ::std::string; } content_->assign(value); } inline void packetw2c_notify::set_content(const char* value, size_t size) { set_has_content(); if (content_ == &::google::protobuf::internal::kEmptyString) { content_ = new ::std::string; } content_->assign(reinterpret_cast(value), size); } inline ::std::string* packetw2c_notify::mutable_content() { set_has_content(); if (content_ == &::google::protobuf::internal::kEmptyString) { content_ = new ::std::string; } return content_; } inline ::std::string* packetw2c_notify::release_content() { clear_has_content(); if (content_ == &::google::protobuf::internal::kEmptyString) { return NULL; } else { ::std::string* temp = content_; content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); return temp; } } inline void packetw2c_notify::set_allocated_content(::std::string* content) { if (content_ != &::google::protobuf::internal::kEmptyString) { delete content_; } if (content) { set_has_content(); content_ = content; } else { clear_has_content(); content_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); } } // optional int32 notifyType = 3; inline bool packetw2c_notify::has_notifytype() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void packetw2c_notify::set_has_notifytype() { _has_bits_[0] |= 0x00000004u; } inline void packetw2c_notify::clear_has_notifytype() { _has_bits_[0] &= ~0x00000004u; } inline void packetw2c_notify::clear_notifytype() { notifytype_ = 0; clear_has_notifytype(); } inline ::google::protobuf::int32 packetw2c_notify::notifytype() const { return notifytype_; } inline void packetw2c_notify::set_notifytype(::google::protobuf::int32 value) { set_has_notifytype(); notifytype_ = value; } // optional string talkerNickName = 4; inline bool packetw2c_notify::has_talkernickname() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void packetw2c_notify::set_has_talkernickname() { _has_bits_[0] |= 0x00000008u; } inline void packetw2c_notify::clear_has_talkernickname() { _has_bits_[0] &= ~0x00000008u; } inline void packetw2c_notify::clear_talkernickname() { if (talkernickname_ != &::google::protobuf::internal::kEmptyString) { talkernickname_->clear(); } clear_has_talkernickname(); } inline const ::std::string& packetw2c_notify::talkernickname() const { return *talkernickname_; } inline void packetw2c_notify::set_talkernickname(const ::std::string& value) { set_has_talkernickname(); if (talkernickname_ == &::google::protobuf::internal::kEmptyString) { talkernickname_ = new ::std::string; } talkernickname_->assign(value); } inline void packetw2c_notify::set_talkernickname(const char* value) { set_has_talkernickname(); if (talkernickname_ == &::google::protobuf::internal::kEmptyString) { talkernickname_ = new ::std::string; } talkernickname_->assign(value); } inline void packetw2c_notify::set_talkernickname(const char* value, size_t size) { set_has_talkernickname(); if (talkernickname_ == &::google::protobuf::internal::kEmptyString) { talkernickname_ = new ::std::string; } talkernickname_->assign(reinterpret_cast(value), size); } inline ::std::string* packetw2c_notify::mutable_talkernickname() { set_has_talkernickname(); if (talkernickname_ == &::google::protobuf::internal::kEmptyString) { talkernickname_ = new ::std::string; } return talkernickname_; } inline ::std::string* packetw2c_notify::release_talkernickname() { clear_has_talkernickname(); if (talkernickname_ == &::google::protobuf::internal::kEmptyString) { return NULL; } else { ::std::string* temp = talkernickname_; talkernickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); return temp; } } inline void packetw2c_notify::set_allocated_talkernickname(::std::string* talkernickname) { if (talkernickname_ != &::google::protobuf::internal::kEmptyString) { delete talkernickname_; } if (talkernickname) { set_has_talkernickname(); talkernickname_ = talkernickname; } else { clear_has_talkernickname(); talkernickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); } } // optional int32 playerId = 5; inline bool packetw2c_notify::has_playerid() const { return (_has_bits_[0] & 0x00000010u) != 0; } inline void packetw2c_notify::set_has_playerid() { _has_bits_[0] |= 0x00000010u; } inline void packetw2c_notify::clear_has_playerid() { _has_bits_[0] &= ~0x00000010u; } inline void packetw2c_notify::clear_playerid() { playerid_ = 0; clear_has_playerid(); } inline ::google::protobuf::int32 packetw2c_notify::playerid() const { return playerid_; } inline void packetw2c_notify::set_playerid(::google::protobuf::int32 value) { set_has_playerid(); playerid_ = value; } // optional int32 talkerVIPLevel = 6; inline bool packetw2c_notify::has_talkerviplevel() const { return (_has_bits_[0] & 0x00000020u) != 0; } inline void packetw2c_notify::set_has_talkerviplevel() { _has_bits_[0] |= 0x00000020u; } inline void packetw2c_notify::clear_has_talkerviplevel() { _has_bits_[0] &= ~0x00000020u; } inline void packetw2c_notify::clear_talkerviplevel() { talkerviplevel_ = 0; clear_has_talkerviplevel(); } inline ::google::protobuf::int32 packetw2c_notify::talkerviplevel() const { return talkerviplevel_; } inline void packetw2c_notify::set_talkerviplevel(::google::protobuf::int32 value) { set_has_talkerviplevel(); talkerviplevel_ = value; } // optional bool hasMonthCard = 7; inline bool packetw2c_notify::has_hasmonthcard() const { return (_has_bits_[0] & 0x00000040u) != 0; } inline void packetw2c_notify::set_has_hasmonthcard() { _has_bits_[0] |= 0x00000040u; } inline void packetw2c_notify::clear_has_hasmonthcard() { _has_bits_[0] &= ~0x00000040u; } inline void packetw2c_notify::clear_hasmonthcard() { hasmonthcard_ = false; clear_has_hasmonthcard(); } inline bool packetw2c_notify::hasmonthcard() const { return hasmonthcard_; } inline void packetw2c_notify::set_hasmonthcard(bool value) { set_has_hasmonthcard(); hasmonthcard_ = value; } // optional int32 repCount = 8 [default = 1]; inline bool packetw2c_notify::has_repcount() const { return (_has_bits_[0] & 0x00000080u) != 0; } inline void packetw2c_notify::set_has_repcount() { _has_bits_[0] |= 0x00000080u; } inline void packetw2c_notify::clear_has_repcount() { _has_bits_[0] &= ~0x00000080u; } inline void packetw2c_notify::clear_repcount() { repcount_ = 1; clear_has_repcount(); } inline ::google::protobuf::int32 packetw2c_notify::repcount() const { return repcount_; } inline void packetw2c_notify::set_repcount(::google::protobuf::int32 value) { set_has_repcount(); repcount_ = value; } // optional int32 interval = 9 [default = 0]; inline bool packetw2c_notify::has_interval() const { return (_has_bits_[0] & 0x00000100u) != 0; } inline void packetw2c_notify::set_has_interval() { _has_bits_[0] |= 0x00000100u; } inline void packetw2c_notify::clear_has_interval() { _has_bits_[0] &= ~0x00000100u; } inline void packetw2c_notify::clear_interval() { interval_ = 0; clear_has_interval(); } inline ::google::protobuf::int32 packetw2c_notify::interval() const { return interval_; } inline void packetw2c_notify::set_interval(::google::protobuf::int32 value) { set_has_interval(); interval_ = value; } // optional int32 showPos = 10; inline bool packetw2c_notify::has_showpos() const { return (_has_bits_[0] & 0x00000200u) != 0; } inline void packetw2c_notify::set_has_showpos() { _has_bits_[0] |= 0x00000200u; } inline void packetw2c_notify::clear_has_showpos() { _has_bits_[0] &= ~0x00000200u; } inline void packetw2c_notify::clear_showpos() { showpos_ = 0; clear_has_showpos(); } inline ::google::protobuf::int32 packetw2c_notify::showpos() const { return showpos_; } inline void packetw2c_notify::set_showpos(::google::protobuf::int32 value) { set_has_showpos(); showpos_ = value; } // @@protoc_insertion_point(namespace_scope) } // namespace client2world_protocols #ifndef SWIG namespace google { namespace protobuf { } // namespace google } // namespace protobuf #endif // SWIG // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_client2world_5fchat_2eproto__INCLUDED