123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: common_protocol.proto
- #ifndef PROTOBUF_common_5fprotocol_2eproto__INCLUDED
- #define PROTOBUF_common_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>
- // @@protoc_insertion_point(includes)
- namespace common_protocol {
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_common_5fprotocol_2eproto();
- void protobuf_AssignDesc_common_5fprotocol_2eproto();
- void protobuf_ShutdownFile_common_5fprotocol_2eproto();
- class PlayerConnect;
- class PlayerConnectResult;
- // ===================================================================
- class PlayerConnect : public ::google::protobuf::Message {
- public:
- PlayerConnect();
- virtual ~PlayerConnect();
- PlayerConnect(const PlayerConnect& from);
- inline PlayerConnect& operator=(const PlayerConnect& 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 PlayerConnect& default_instance();
- void Swap(PlayerConnect* other);
- // implements Message ----------------------------------------------
- PlayerConnect* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const PlayerConnect& from);
- void MergeFrom(const PlayerConnect& 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 string account = 1;
- inline bool has_account() const;
- inline void clear_account();
- static const int kAccountFieldNumber = 1;
- inline const ::std::string& account() const;
- inline void set_account(const ::std::string& value);
- inline void set_account(const char* value);
- inline void set_account(const char* value, size_t size);
- inline ::std::string* mutable_account();
- inline ::std::string* release_account();
- inline void set_allocated_account(::std::string* account);
- // optional string token = 2;
- inline bool has_token() const;
- inline void clear_token();
- static const int kTokenFieldNumber = 2;
- inline const ::std::string& token() const;
- inline void set_token(const ::std::string& value);
- inline void set_token(const char* value);
- inline void set_token(const char* value, size_t size);
- inline ::std::string* mutable_token();
- inline ::std::string* release_token();
- inline void set_allocated_token(::std::string* token);
- // optional string sign = 3;
- inline bool has_sign() const;
- inline void clear_sign();
- static const int kSignFieldNumber = 3;
- inline const ::std::string& sign() const;
- inline void set_sign(const ::std::string& value);
- inline void set_sign(const char* value);
- inline void set_sign(const char* value, size_t size);
- inline ::std::string* mutable_sign();
- inline ::std::string* release_sign();
- inline void set_allocated_sign(::std::string* sign);
- // optional string platform = 4 [default = "dwc_def"];
- inline bool has_platform() const;
- inline void clear_platform();
- static const int kPlatformFieldNumber = 4;
- inline const ::std::string& platform() const;
- inline void set_platform(const ::std::string& value);
- inline void set_platform(const char* value);
- inline void set_platform(const char* value, size_t size);
- inline ::std::string* mutable_platform();
- inline ::std::string* release_platform();
- inline void set_allocated_platform(::std::string* platform);
- // optional string pay_platform = 5 [default = "dwc_def"];
- inline bool has_pay_platform() const;
- inline void clear_pay_platform();
- static const int kPayPlatformFieldNumber = 5;
- inline const ::std::string& pay_platform() const;
- inline void set_pay_platform(const ::std::string& value);
- inline void set_pay_platform(const char* value);
- inline void set_pay_platform(const char* value, size_t size);
- inline ::std::string* mutable_pay_platform();
- inline ::std::string* release_pay_platform();
- inline void set_allocated_pay_platform(::std::string* pay_platform);
- // optional string channel = 6 [default = "0"];
- inline bool has_channel() const;
- inline void clear_channel();
- static const int kChannelFieldNumber = 6;
- inline const ::std::string& channel() const;
- inline void set_channel(const ::std::string& value);
- inline void set_channel(const char* value);
- inline void set_channel(const char* value, size_t size);
- inline ::std::string* mutable_channel();
- inline ::std::string* release_channel();
- inline void set_allocated_channel(::std::string* channel);
- // @@protoc_insertion_point(class_scope:common_protocol.PlayerConnect)
- private:
- inline void set_has_account();
- inline void clear_has_account();
- inline void set_has_token();
- inline void clear_has_token();
- inline void set_has_sign();
- inline void clear_has_sign();
- inline void set_has_platform();
- inline void clear_has_platform();
- inline void set_has_pay_platform();
- inline void clear_has_pay_platform();
- inline void set_has_channel();
- inline void clear_has_channel();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- ::std::string* account_;
- ::std::string* token_;
- ::std::string* sign_;
- ::std::string* platform_;
- static ::std::string* _default_platform_;
- ::std::string* pay_platform_;
- static ::std::string* _default_pay_platform_;
- ::std::string* channel_;
- static ::std::string* _default_channel_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
- friend void protobuf_AddDesc_common_5fprotocol_2eproto();
- friend void protobuf_AssignDesc_common_5fprotocol_2eproto();
- friend void protobuf_ShutdownFile_common_5fprotocol_2eproto();
- void InitAsDefaultInstance();
- static PlayerConnect* default_instance_;
- };
- // -------------------------------------------------------------------
- class PlayerConnectResult : public ::google::protobuf::Message {
- public:
- PlayerConnectResult();
- virtual ~PlayerConnectResult();
- PlayerConnectResult(const PlayerConnectResult& from);
- inline PlayerConnectResult& operator=(const PlayerConnectResult& 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 PlayerConnectResult& default_instance();
- void Swap(PlayerConnectResult* other);
- // implements Message ----------------------------------------------
- PlayerConnectResult* New() const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const PlayerConnectResult& from);
- void MergeFrom(const PlayerConnectResult& 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 servertime = 1;
- inline bool has_servertime() const;
- inline void clear_servertime();
- static const int kServertimeFieldNumber = 1;
- inline ::google::protobuf::int32 servertime() const;
- inline void set_servertime(::google::protobuf::int32 value);
- // optional int32 gaming = 2;
- inline bool has_gaming() const;
- inline void clear_gaming();
- static const int kGamingFieldNumber = 2;
- inline ::google::protobuf::int32 gaming() const;
- inline void set_gaming(::google::protobuf::int32 value);
- // optional string ver = 3;
- inline bool has_ver() const;
- inline void clear_ver();
- static const int kVerFieldNumber = 3;
- inline const ::std::string& ver() const;
- inline void set_ver(const ::std::string& value);
- inline void set_ver(const char* value);
- inline void set_ver(const char* value, size_t size);
- inline ::std::string* mutable_ver();
- inline ::std::string* release_ver();
- inline void set_allocated_ver(::std::string* ver);
- // optional int32 result = 4;
- inline bool has_result() const;
- inline void clear_result();
- static const int kResultFieldNumber = 4;
- inline ::google::protobuf::int32 result() const;
- inline void set_result(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:common_protocol.PlayerConnectResult)
- private:
- inline void set_has_servertime();
- inline void clear_has_servertime();
- inline void set_has_gaming();
- inline void clear_has_gaming();
- inline void set_has_ver();
- inline void clear_has_ver();
- inline void set_has_result();
- inline void clear_has_result();
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
- ::google::protobuf::int32 servertime_;
- ::google::protobuf::int32 gaming_;
- ::std::string* ver_;
- ::google::protobuf::int32 result_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
- friend void protobuf_AddDesc_common_5fprotocol_2eproto();
- friend void protobuf_AssignDesc_common_5fprotocol_2eproto();
- friend void protobuf_ShutdownFile_common_5fprotocol_2eproto();
- void InitAsDefaultInstance();
- static PlayerConnectResult* default_instance_;
- };
- // ===================================================================
- // ===================================================================
- // PlayerConnect
- // optional string account = 1;
- inline bool PlayerConnect::has_account() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void PlayerConnect::set_has_account() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void PlayerConnect::clear_has_account() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void PlayerConnect::clear_account() {
- if (account_ != &::google::protobuf::internal::kEmptyString) {
- account_->clear();
- }
- clear_has_account();
- }
- inline const ::std::string& PlayerConnect::account() const {
- return *account_;
- }
- inline void PlayerConnect::set_account(const ::std::string& value) {
- set_has_account();
- if (account_ == &::google::protobuf::internal::kEmptyString) {
- account_ = new ::std::string;
- }
- account_->assign(value);
- }
- inline void PlayerConnect::set_account(const char* value) {
- set_has_account();
- if (account_ == &::google::protobuf::internal::kEmptyString) {
- account_ = new ::std::string;
- }
- account_->assign(value);
- }
- inline void PlayerConnect::set_account(const char* value, size_t size) {
- set_has_account();
- if (account_ == &::google::protobuf::internal::kEmptyString) {
- account_ = new ::std::string;
- }
- account_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* PlayerConnect::mutable_account() {
- set_has_account();
- if (account_ == &::google::protobuf::internal::kEmptyString) {
- account_ = new ::std::string;
- }
- return account_;
- }
- inline ::std::string* PlayerConnect::release_account() {
- clear_has_account();
- if (account_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = account_;
- account_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- inline void PlayerConnect::set_allocated_account(::std::string* account) {
- if (account_ != &::google::protobuf::internal::kEmptyString) {
- delete account_;
- }
- if (account) {
- set_has_account();
- account_ = account;
- } else {
- clear_has_account();
- account_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- }
- }
- // optional string token = 2;
- inline bool PlayerConnect::has_token() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void PlayerConnect::set_has_token() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void PlayerConnect::clear_has_token() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void PlayerConnect::clear_token() {
- if (token_ != &::google::protobuf::internal::kEmptyString) {
- token_->clear();
- }
- clear_has_token();
- }
- inline const ::std::string& PlayerConnect::token() const {
- return *token_;
- }
- inline void PlayerConnect::set_token(const ::std::string& value) {
- set_has_token();
- if (token_ == &::google::protobuf::internal::kEmptyString) {
- token_ = new ::std::string;
- }
- token_->assign(value);
- }
- inline void PlayerConnect::set_token(const char* value) {
- set_has_token();
- if (token_ == &::google::protobuf::internal::kEmptyString) {
- token_ = new ::std::string;
- }
- token_->assign(value);
- }
- inline void PlayerConnect::set_token(const char* value, size_t size) {
- set_has_token();
- if (token_ == &::google::protobuf::internal::kEmptyString) {
- token_ = new ::std::string;
- }
- token_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* PlayerConnect::mutable_token() {
- set_has_token();
- if (token_ == &::google::protobuf::internal::kEmptyString) {
- token_ = new ::std::string;
- }
- return token_;
- }
- inline ::std::string* PlayerConnect::release_token() {
- clear_has_token();
- if (token_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = token_;
- token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- inline void PlayerConnect::set_allocated_token(::std::string* token) {
- if (token_ != &::google::protobuf::internal::kEmptyString) {
- delete token_;
- }
- if (token) {
- set_has_token();
- token_ = token;
- } else {
- clear_has_token();
- token_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- }
- }
- // optional string sign = 3;
- inline bool PlayerConnect::has_sign() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void PlayerConnect::set_has_sign() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void PlayerConnect::clear_has_sign() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void PlayerConnect::clear_sign() {
- if (sign_ != &::google::protobuf::internal::kEmptyString) {
- sign_->clear();
- }
- clear_has_sign();
- }
- inline const ::std::string& PlayerConnect::sign() const {
- return *sign_;
- }
- inline void PlayerConnect::set_sign(const ::std::string& value) {
- set_has_sign();
- if (sign_ == &::google::protobuf::internal::kEmptyString) {
- sign_ = new ::std::string;
- }
- sign_->assign(value);
- }
- inline void PlayerConnect::set_sign(const char* value) {
- set_has_sign();
- if (sign_ == &::google::protobuf::internal::kEmptyString) {
- sign_ = new ::std::string;
- }
- sign_->assign(value);
- }
- inline void PlayerConnect::set_sign(const char* value, size_t size) {
- set_has_sign();
- if (sign_ == &::google::protobuf::internal::kEmptyString) {
- sign_ = new ::std::string;
- }
- sign_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* PlayerConnect::mutable_sign() {
- set_has_sign();
- if (sign_ == &::google::protobuf::internal::kEmptyString) {
- sign_ = new ::std::string;
- }
- return sign_;
- }
- inline ::std::string* PlayerConnect::release_sign() {
- clear_has_sign();
- if (sign_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = sign_;
- sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- inline void PlayerConnect::set_allocated_sign(::std::string* sign) {
- if (sign_ != &::google::protobuf::internal::kEmptyString) {
- delete sign_;
- }
- if (sign) {
- set_has_sign();
- sign_ = sign;
- } else {
- clear_has_sign();
- sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- }
- }
- // optional string platform = 4 [default = "dwc_def"];
- inline bool PlayerConnect::has_platform() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void PlayerConnect::set_has_platform() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void PlayerConnect::clear_has_platform() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void PlayerConnect::clear_platform() {
- if (platform_ != _default_platform_) {
- platform_->assign(*_default_platform_);
- }
- clear_has_platform();
- }
- inline const ::std::string& PlayerConnect::platform() const {
- return *platform_;
- }
- inline void PlayerConnect::set_platform(const ::std::string& value) {
- set_has_platform();
- if (platform_ == _default_platform_) {
- platform_ = new ::std::string;
- }
- platform_->assign(value);
- }
- inline void PlayerConnect::set_platform(const char* value) {
- set_has_platform();
- if (platform_ == _default_platform_) {
- platform_ = new ::std::string;
- }
- platform_->assign(value);
- }
- inline void PlayerConnect::set_platform(const char* value, size_t size) {
- set_has_platform();
- if (platform_ == _default_platform_) {
- platform_ = new ::std::string;
- }
- platform_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* PlayerConnect::mutable_platform() {
- set_has_platform();
- if (platform_ == _default_platform_) {
- platform_ = new ::std::string(*_default_platform_);
- }
- return platform_;
- }
- inline ::std::string* PlayerConnect::release_platform() {
- clear_has_platform();
- if (platform_ == _default_platform_) {
- return NULL;
- } else {
- ::std::string* temp = platform_;
- platform_ = const_cast< ::std::string*>(_default_platform_);
- return temp;
- }
- }
- inline void PlayerConnect::set_allocated_platform(::std::string* platform) {
- if (platform_ != _default_platform_) {
- delete platform_;
- }
- if (platform) {
- set_has_platform();
- platform_ = platform;
- } else {
- clear_has_platform();
- platform_ = const_cast< ::std::string*>(_default_platform_);
- }
- }
- // optional string pay_platform = 5 [default = "dwc_def"];
- inline bool PlayerConnect::has_pay_platform() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void PlayerConnect::set_has_pay_platform() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void PlayerConnect::clear_has_pay_platform() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void PlayerConnect::clear_pay_platform() {
- if (pay_platform_ != _default_pay_platform_) {
- pay_platform_->assign(*_default_pay_platform_);
- }
- clear_has_pay_platform();
- }
- inline const ::std::string& PlayerConnect::pay_platform() const {
- return *pay_platform_;
- }
- inline void PlayerConnect::set_pay_platform(const ::std::string& value) {
- set_has_pay_platform();
- if (pay_platform_ == _default_pay_platform_) {
- pay_platform_ = new ::std::string;
- }
- pay_platform_->assign(value);
- }
- inline void PlayerConnect::set_pay_platform(const char* value) {
- set_has_pay_platform();
- if (pay_platform_ == _default_pay_platform_) {
- pay_platform_ = new ::std::string;
- }
- pay_platform_->assign(value);
- }
- inline void PlayerConnect::set_pay_platform(const char* value, size_t size) {
- set_has_pay_platform();
- if (pay_platform_ == _default_pay_platform_) {
- pay_platform_ = new ::std::string;
- }
- pay_platform_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* PlayerConnect::mutable_pay_platform() {
- set_has_pay_platform();
- if (pay_platform_ == _default_pay_platform_) {
- pay_platform_ = new ::std::string(*_default_pay_platform_);
- }
- return pay_platform_;
- }
- inline ::std::string* PlayerConnect::release_pay_platform() {
- clear_has_pay_platform();
- if (pay_platform_ == _default_pay_platform_) {
- return NULL;
- } else {
- ::std::string* temp = pay_platform_;
- pay_platform_ = const_cast< ::std::string*>(_default_pay_platform_);
- return temp;
- }
- }
- inline void PlayerConnect::set_allocated_pay_platform(::std::string* pay_platform) {
- if (pay_platform_ != _default_pay_platform_) {
- delete pay_platform_;
- }
- if (pay_platform) {
- set_has_pay_platform();
- pay_platform_ = pay_platform;
- } else {
- clear_has_pay_platform();
- pay_platform_ = const_cast< ::std::string*>(_default_pay_platform_);
- }
- }
- // optional string channel = 6 [default = "0"];
- inline bool PlayerConnect::has_channel() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void PlayerConnect::set_has_channel() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void PlayerConnect::clear_has_channel() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void PlayerConnect::clear_channel() {
- if (channel_ != _default_channel_) {
- channel_->assign(*_default_channel_);
- }
- clear_has_channel();
- }
- inline const ::std::string& PlayerConnect::channel() const {
- return *channel_;
- }
- inline void PlayerConnect::set_channel(const ::std::string& value) {
- set_has_channel();
- if (channel_ == _default_channel_) {
- channel_ = new ::std::string;
- }
- channel_->assign(value);
- }
- inline void PlayerConnect::set_channel(const char* value) {
- set_has_channel();
- if (channel_ == _default_channel_) {
- channel_ = new ::std::string;
- }
- channel_->assign(value);
- }
- inline void PlayerConnect::set_channel(const char* value, size_t size) {
- set_has_channel();
- if (channel_ == _default_channel_) {
- channel_ = new ::std::string;
- }
- channel_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* PlayerConnect::mutable_channel() {
- set_has_channel();
- if (channel_ == _default_channel_) {
- channel_ = new ::std::string(*_default_channel_);
- }
- return channel_;
- }
- inline ::std::string* PlayerConnect::release_channel() {
- clear_has_channel();
- if (channel_ == _default_channel_) {
- return NULL;
- } else {
- ::std::string* temp = channel_;
- channel_ = const_cast< ::std::string*>(_default_channel_);
- return temp;
- }
- }
- inline void PlayerConnect::set_allocated_channel(::std::string* channel) {
- if (channel_ != _default_channel_) {
- delete channel_;
- }
- if (channel) {
- set_has_channel();
- channel_ = channel;
- } else {
- clear_has_channel();
- channel_ = const_cast< ::std::string*>(_default_channel_);
- }
- }
- // -------------------------------------------------------------------
- // PlayerConnectResult
- // optional int32 servertime = 1;
- inline bool PlayerConnectResult::has_servertime() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void PlayerConnectResult::set_has_servertime() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void PlayerConnectResult::clear_has_servertime() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void PlayerConnectResult::clear_servertime() {
- servertime_ = 0;
- clear_has_servertime();
- }
- inline ::google::protobuf::int32 PlayerConnectResult::servertime() const {
- return servertime_;
- }
- inline void PlayerConnectResult::set_servertime(::google::protobuf::int32 value) {
- set_has_servertime();
- servertime_ = value;
- }
- // optional int32 gaming = 2;
- inline bool PlayerConnectResult::has_gaming() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void PlayerConnectResult::set_has_gaming() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void PlayerConnectResult::clear_has_gaming() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void PlayerConnectResult::clear_gaming() {
- gaming_ = 0;
- clear_has_gaming();
- }
- inline ::google::protobuf::int32 PlayerConnectResult::gaming() const {
- return gaming_;
- }
- inline void PlayerConnectResult::set_gaming(::google::protobuf::int32 value) {
- set_has_gaming();
- gaming_ = value;
- }
- // optional string ver = 3;
- inline bool PlayerConnectResult::has_ver() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void PlayerConnectResult::set_has_ver() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void PlayerConnectResult::clear_has_ver() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void PlayerConnectResult::clear_ver() {
- if (ver_ != &::google::protobuf::internal::kEmptyString) {
- ver_->clear();
- }
- clear_has_ver();
- }
- inline const ::std::string& PlayerConnectResult::ver() const {
- return *ver_;
- }
- inline void PlayerConnectResult::set_ver(const ::std::string& value) {
- set_has_ver();
- if (ver_ == &::google::protobuf::internal::kEmptyString) {
- ver_ = new ::std::string;
- }
- ver_->assign(value);
- }
- inline void PlayerConnectResult::set_ver(const char* value) {
- set_has_ver();
- if (ver_ == &::google::protobuf::internal::kEmptyString) {
- ver_ = new ::std::string;
- }
- ver_->assign(value);
- }
- inline void PlayerConnectResult::set_ver(const char* value, size_t size) {
- set_has_ver();
- if (ver_ == &::google::protobuf::internal::kEmptyString) {
- ver_ = new ::std::string;
- }
- ver_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* PlayerConnectResult::mutable_ver() {
- set_has_ver();
- if (ver_ == &::google::protobuf::internal::kEmptyString) {
- ver_ = new ::std::string;
- }
- return ver_;
- }
- inline ::std::string* PlayerConnectResult::release_ver() {
- clear_has_ver();
- if (ver_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = ver_;
- ver_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- inline void PlayerConnectResult::set_allocated_ver(::std::string* ver) {
- if (ver_ != &::google::protobuf::internal::kEmptyString) {
- delete ver_;
- }
- if (ver) {
- set_has_ver();
- ver_ = ver;
- } else {
- clear_has_ver();
- ver_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- }
- }
- // optional int32 result = 4;
- inline bool PlayerConnectResult::has_result() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void PlayerConnectResult::set_has_result() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void PlayerConnectResult::clear_has_result() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void PlayerConnectResult::clear_result() {
- result_ = 0;
- clear_has_result();
- }
- inline ::google::protobuf::int32 PlayerConnectResult::result() const {
- return result_;
- }
- inline void PlayerConnectResult::set_result(::google::protobuf::int32 value) {
- set_has_result();
- result_ = value;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace common_protocol
- #ifndef SWIG
- namespace google {
- namespace protobuf {
- } // namespace google
- } // namespace protobuf
- #endif // SWIG
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_common_5fprotocol_2eproto__INCLUDED
|