123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: client2gate_protocol.proto
- #ifndef PROTOBUF_client2gate_5fprotocol_2eproto__INCLUDED
- #define PROTOBUF_client2gate_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 "client2gate_msg_type.pb.h"
- #include "msg_type_def.pb.h"
- // @@protoc_insertion_point(includes)
- namespace client2gate_protocols {
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
- void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
- void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
- class packetc2g_heartbeat;
- class packetg2c_heartbeat;
- class msg_packet;
- class packet_g2c_send_msglist;
- // ===================================================================
- class packetc2g_heartbeat : public ::google::protobuf::Message {
- public:
- packetc2g_heartbeat();
- virtual ~packetc2g_heartbeat();
- packetc2g_heartbeat(const packetc2g_heartbeat& from);
- inline packetc2g_heartbeat& operator=(const packetc2g_heartbeat& 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 packetc2g_heartbeat& default_instance();
- void Swap(packetc2g_heartbeat* other);
- // implements Message ----------------------------------------------
- packetc2g_heartbeat* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const packetc2g_heartbeat& from);
- void MergeFrom(const packetc2g_heartbeat& 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 .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2g_heartbeat];
- inline bool has_packet_id() const;
- inline void clear_packet_id();
- static const int kPacketIdFieldNumber = 1;
- inline ::client2gate_protocols::e_server_msg_type packet_id() const;
- inline void set_packet_id(::client2gate_protocols::e_server_msg_type value);
- // @@protoc_insertion_point(class_scope:client2gate_protocols.packetc2g_heartbeat)
- private:
- inline void set_has_packet_id();
- inline void clear_has_packet_id();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- int packet_id_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
- friend void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
- friend void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
- friend void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
- void InitAsDefaultInstance();
- static packetc2g_heartbeat* default_instance_;
- };
- // -------------------------------------------------------------------
- class packetg2c_heartbeat : public ::google::protobuf::Message {
- public:
- packetg2c_heartbeat();
- virtual ~packetg2c_heartbeat();
- packetg2c_heartbeat(const packetg2c_heartbeat& from);
- inline packetg2c_heartbeat& operator=(const packetg2c_heartbeat& 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 packetg2c_heartbeat& default_instance();
- void Swap(packetg2c_heartbeat* other);
- // implements Message ----------------------------------------------
- packetg2c_heartbeat* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const packetg2c_heartbeat& from);
- void MergeFrom(const packetg2c_heartbeat& 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 .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_g2c_heartbeat];
- inline bool has_packet_id() const;
- inline void clear_packet_id();
- static const int kPacketIdFieldNumber = 1;
- inline ::client2gate_protocols::e_server_msg_type packet_id() const;
- inline void set_packet_id(::client2gate_protocols::e_server_msg_type value);
- // @@protoc_insertion_point(class_scope:client2gate_protocols.packetg2c_heartbeat)
- private:
- inline void set_has_packet_id();
- inline void clear_has_packet_id();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- int packet_id_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
- friend void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
- friend void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
- friend void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
- void InitAsDefaultInstance();
- static packetg2c_heartbeat* default_instance_;
- };
- // -------------------------------------------------------------------
- class msg_packet : public ::google::protobuf::Message {
- public:
- msg_packet();
- virtual ~msg_packet();
- msg_packet(const msg_packet& from);
- inline msg_packet& operator=(const msg_packet& 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 msg_packet& default_instance();
- void Swap(msg_packet* other);
- // implements Message ----------------------------------------------
- msg_packet* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const msg_packet& from);
- void MergeFrom(const msg_packet& 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 int32 msgid = 1;
- inline bool has_msgid() const;
- inline void clear_msgid();
- static const int kMsgidFieldNumber = 1;
- inline ::google::protobuf::int32 msgid() const;
- inline void set_msgid(::google::protobuf::int32 value);
- // optional bytes msginfo = 2;
- inline bool has_msginfo() const;
- inline void clear_msginfo();
- static const int kMsginfoFieldNumber = 2;
- inline const ::std::string& msginfo() const;
- inline void set_msginfo(const ::std::string& value);
- inline void set_msginfo(const char* value);
- inline void set_msginfo(const void* value, size_t size);
- inline ::std::string* mutable_msginfo();
- inline ::std::string* release_msginfo();
- inline void set_allocated_msginfo(::std::string* msginfo);
- // @@protoc_insertion_point(class_scope:client2gate_protocols.msg_packet)
- private:
- inline void set_has_msgid();
- inline void clear_has_msgid();
- inline void set_has_msginfo();
- inline void clear_has_msginfo();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- ::std::string* msginfo_;
- ::google::protobuf::int32 msgid_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
- friend void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
- friend void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
- friend void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
- void InitAsDefaultInstance();
- static msg_packet* default_instance_;
- };
- // -------------------------------------------------------------------
- class packet_g2c_send_msglist : public ::google::protobuf::Message {
- public:
- packet_g2c_send_msglist();
- virtual ~packet_g2c_send_msglist();
- packet_g2c_send_msglist(const packet_g2c_send_msglist& from);
- inline packet_g2c_send_msglist& operator=(const packet_g2c_send_msglist& 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 packet_g2c_send_msglist& default_instance();
- void Swap(packet_g2c_send_msglist* other);
- // implements Message ----------------------------------------------
- packet_g2c_send_msglist* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const packet_g2c_send_msglist& from);
- void MergeFrom(const packet_g2c_send_msglist& 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 .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_g2c_send_msglist];
- inline bool has_packet_id() const;
- inline void clear_packet_id();
- static const int kPacketIdFieldNumber = 1;
- inline ::client2gate_protocols::e_server_msg_type packet_id() const;
- inline void set_packet_id(::client2gate_protocols::e_server_msg_type value);
- // repeated .client2gate_protocols.msg_packet msgpaks = 3;
- inline int msgpaks_size() const;
- inline void clear_msgpaks();
- static const int kMsgpaksFieldNumber = 3;
- inline const ::client2gate_protocols::msg_packet& msgpaks(int index) const;
- inline ::client2gate_protocols::msg_packet* mutable_msgpaks(int index);
- inline ::client2gate_protocols::msg_packet* add_msgpaks();
- inline const ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet >&
- msgpaks() const;
- inline ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet >*
- mutable_msgpaks();
- // @@protoc_insertion_point(class_scope:client2gate_protocols.packet_g2c_send_msglist)
- private:
- inline void set_has_packet_id();
- inline void clear_has_packet_id();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet > msgpaks_;
- int packet_id_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
- friend void protobuf_AddDesc_client2gate_5fprotocol_2eproto();
- friend void protobuf_AssignDesc_client2gate_5fprotocol_2eproto();
- friend void protobuf_ShutdownFile_client2gate_5fprotocol_2eproto();
- void InitAsDefaultInstance();
- static packet_g2c_send_msglist* default_instance_;
- };
- // ===================================================================
- // ===================================================================
- // packetc2g_heartbeat
- // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_c2g_heartbeat];
- inline bool packetc2g_heartbeat::has_packet_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void packetc2g_heartbeat::set_has_packet_id() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void packetc2g_heartbeat::clear_has_packet_id() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void packetc2g_heartbeat::clear_packet_id() {
- packet_id_ = 301;
- clear_has_packet_id();
- }
- inline ::client2gate_protocols::e_server_msg_type packetc2g_heartbeat::packet_id() const {
- return static_cast< ::client2gate_protocols::e_server_msg_type >(packet_id_);
- }
- inline void packetc2g_heartbeat::set_packet_id(::client2gate_protocols::e_server_msg_type value) {
- assert(::client2gate_protocols::e_server_msg_type_IsValid(value));
- set_has_packet_id();
- packet_id_ = value;
- }
- // -------------------------------------------------------------------
- // packetg2c_heartbeat
- // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_g2c_heartbeat];
- inline bool packetg2c_heartbeat::has_packet_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void packetg2c_heartbeat::set_has_packet_id() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void packetg2c_heartbeat::clear_has_packet_id() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void packetg2c_heartbeat::clear_packet_id() {
- packet_id_ = 403;
- clear_has_packet_id();
- }
- inline ::client2gate_protocols::e_server_msg_type packetg2c_heartbeat::packet_id() const {
- return static_cast< ::client2gate_protocols::e_server_msg_type >(packet_id_);
- }
- inline void packetg2c_heartbeat::set_packet_id(::client2gate_protocols::e_server_msg_type value) {
- assert(::client2gate_protocols::e_server_msg_type_IsValid(value));
- set_has_packet_id();
- packet_id_ = value;
- }
- // -------------------------------------------------------------------
- // msg_packet
- // optional int32 msgid = 1;
- inline bool msg_packet::has_msgid() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void msg_packet::set_has_msgid() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void msg_packet::clear_has_msgid() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void msg_packet::clear_msgid() {
- msgid_ = 0;
- clear_has_msgid();
- }
- inline ::google::protobuf::int32 msg_packet::msgid() const {
- return msgid_;
- }
- inline void msg_packet::set_msgid(::google::protobuf::int32 value) {
- set_has_msgid();
- msgid_ = value;
- }
- // optional bytes msginfo = 2;
- inline bool msg_packet::has_msginfo() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void msg_packet::set_has_msginfo() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void msg_packet::clear_has_msginfo() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void msg_packet::clear_msginfo() {
- if (msginfo_ != &::google::protobuf::internal::kEmptyString) {
- msginfo_->clear();
- }
- clear_has_msginfo();
- }
- inline const ::std::string& msg_packet::msginfo() const {
- return *msginfo_;
- }
- inline void msg_packet::set_msginfo(const ::std::string& value) {
- set_has_msginfo();
- if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
- msginfo_ = new ::std::string;
- }
- msginfo_->assign(value);
- }
- inline void msg_packet::set_msginfo(const char* value) {
- set_has_msginfo();
- if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
- msginfo_ = new ::std::string;
- }
- msginfo_->assign(value);
- }
- inline void msg_packet::set_msginfo(const void* value, size_t size) {
- set_has_msginfo();
- if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
- msginfo_ = new ::std::string;
- }
- msginfo_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* msg_packet::mutable_msginfo() {
- set_has_msginfo();
- if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
- msginfo_ = new ::std::string;
- }
- return msginfo_;
- }
- inline ::std::string* msg_packet::release_msginfo() {
- clear_has_msginfo();
- if (msginfo_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = msginfo_;
- msginfo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- inline void msg_packet::set_allocated_msginfo(::std::string* msginfo) {
- if (msginfo_ != &::google::protobuf::internal::kEmptyString) {
- delete msginfo_;
- }
- if (msginfo) {
- set_has_msginfo();
- msginfo_ = msginfo;
- } else {
- clear_has_msginfo();
- msginfo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- }
- }
- // -------------------------------------------------------------------
- // packet_g2c_send_msglist
- // optional .client2gate_protocols.e_server_msg_type packet_id = 1 [default = e_mst_g2c_send_msglist];
- inline bool packet_g2c_send_msglist::has_packet_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void packet_g2c_send_msglist::set_has_packet_id() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void packet_g2c_send_msglist::clear_has_packet_id() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void packet_g2c_send_msglist::clear_packet_id() {
- packet_id_ = 402;
- clear_has_packet_id();
- }
- inline ::client2gate_protocols::e_server_msg_type packet_g2c_send_msglist::packet_id() const {
- return static_cast< ::client2gate_protocols::e_server_msg_type >(packet_id_);
- }
- inline void packet_g2c_send_msglist::set_packet_id(::client2gate_protocols::e_server_msg_type value) {
- assert(::client2gate_protocols::e_server_msg_type_IsValid(value));
- set_has_packet_id();
- packet_id_ = value;
- }
- // repeated .client2gate_protocols.msg_packet msgpaks = 3;
- inline int packet_g2c_send_msglist::msgpaks_size() const {
- return msgpaks_.size();
- }
- inline void packet_g2c_send_msglist::clear_msgpaks() {
- msgpaks_.Clear();
- }
- inline const ::client2gate_protocols::msg_packet& packet_g2c_send_msglist::msgpaks(int index) const {
- return msgpaks_.Get(index);
- }
- inline ::client2gate_protocols::msg_packet* packet_g2c_send_msglist::mutable_msgpaks(int index) {
- return msgpaks_.Mutable(index);
- }
- inline ::client2gate_protocols::msg_packet* packet_g2c_send_msglist::add_msgpaks() {
- return msgpaks_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet >&
- packet_g2c_send_msglist::msgpaks() const {
- return msgpaks_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::client2gate_protocols::msg_packet >*
- packet_g2c_send_msglist::mutable_msgpaks() {
- return &msgpaks_;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace client2gate_protocols
- #ifndef SWIG
- namespace google {
- namespace protobuf {
- } // namespace google
- } // namespace protobuf
- #endif // SWIG
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_client2gate_5fprotocol_2eproto__INCLUDED
|