521 lines
16 KiB
C++
521 lines
16 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: im_proto.proto
|
|
|
|
#ifndef PROTOBUF_im_5fproto_2eproto__INCLUDED
|
|
#define PROTOBUF_im_5fproto_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/generated_enum_reflection.h>
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
namespace im {
|
|
|
|
// Internal implementation detail -- do not call these.
|
|
void protobuf_AddDesc_im_5fproto_2eproto();
|
|
void protobuf_AssignDesc_im_5fproto_2eproto();
|
|
void protobuf_ShutdownFile_im_5fproto_2eproto();
|
|
|
|
class IMSocketConnect;
|
|
class IMSocketDisconnect;
|
|
|
|
enum Constant_e {
|
|
MaxIMMsgId = 7
|
|
};
|
|
bool Constant_e_IsValid(int value);
|
|
const Constant_e Constant_e_MIN = MaxIMMsgId;
|
|
const Constant_e Constant_e_MAX = MaxIMMsgId;
|
|
const int Constant_e_ARRAYSIZE = Constant_e_MAX + 1;
|
|
|
|
const ::google::protobuf::EnumDescriptor* Constant_e_descriptor();
|
|
inline const ::std::string& Constant_e_Name(Constant_e value) {
|
|
return ::google::protobuf::internal::NameOfEnum(
|
|
Constant_e_descriptor(), value);
|
|
}
|
|
inline bool Constant_e_Parse(
|
|
const ::std::string& name, Constant_e* value) {
|
|
return ::google::protobuf::internal::ParseNamedEnum<Constant_e>(
|
|
Constant_e_descriptor(), name, value);
|
|
}
|
|
// ===================================================================
|
|
|
|
class IMSocketConnect : public ::google::protobuf::Message {
|
|
public:
|
|
IMSocketConnect();
|
|
virtual ~IMSocketConnect();
|
|
|
|
IMSocketConnect(const IMSocketConnect& from);
|
|
|
|
inline IMSocketConnect& operator=(const IMSocketConnect& 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 IMSocketConnect& default_instance();
|
|
|
|
void Swap(IMSocketConnect* other);
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
IMSocketConnect* New() const;
|
|
void CopyFrom(const ::google::protobuf::Message& from);
|
|
void MergeFrom(const ::google::protobuf::Message& from);
|
|
void CopyFrom(const IMSocketConnect& from);
|
|
void MergeFrom(const IMSocketConnect& 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 bool is_websocket = 1;
|
|
inline bool has_is_websocket() const;
|
|
inline void clear_is_websocket();
|
|
static const int kIsWebsocketFieldNumber = 1;
|
|
inline bool is_websocket() const;
|
|
inline void set_is_websocket(bool value);
|
|
|
|
// optional string host = 2;
|
|
inline bool has_host() const;
|
|
inline void clear_host();
|
|
static const int kHostFieldNumber = 2;
|
|
inline const ::std::string& host() const;
|
|
inline void set_host(const ::std::string& value);
|
|
inline void set_host(const char* value);
|
|
inline void set_host(const char* value, size_t size);
|
|
inline ::std::string* mutable_host();
|
|
inline ::std::string* release_host();
|
|
inline void set_allocated_host(::std::string* host);
|
|
|
|
// optional string url = 3;
|
|
inline bool has_url() const;
|
|
inline void clear_url();
|
|
static const int kUrlFieldNumber = 3;
|
|
inline const ::std::string& url() const;
|
|
inline void set_url(const ::std::string& value);
|
|
inline void set_url(const char* value);
|
|
inline void set_url(const char* value, size_t size);
|
|
inline ::std::string* mutable_url();
|
|
inline ::std::string* release_url();
|
|
inline void set_allocated_url(::std::string* url);
|
|
|
|
// optional string query_str = 4;
|
|
inline bool has_query_str() const;
|
|
inline void clear_query_str();
|
|
static const int kQueryStrFieldNumber = 4;
|
|
inline const ::std::string& query_str() const;
|
|
inline void set_query_str(const ::std::string& value);
|
|
inline void set_query_str(const char* value);
|
|
inline void set_query_str(const char* value, size_t size);
|
|
inline ::std::string* mutable_query_str();
|
|
inline ::std::string* release_query_str();
|
|
inline void set_allocated_query_str(::std::string* query_str);
|
|
|
|
// @@protoc_insertion_point(class_scope:im.IMSocketConnect)
|
|
private:
|
|
inline void set_has_is_websocket();
|
|
inline void clear_has_is_websocket();
|
|
inline void set_has_host();
|
|
inline void clear_has_host();
|
|
inline void set_has_url();
|
|
inline void clear_has_url();
|
|
inline void set_has_query_str();
|
|
inline void clear_has_query_str();
|
|
|
|
::google::protobuf::UnknownFieldSet _unknown_fields_;
|
|
|
|
::std::string* host_;
|
|
::std::string* url_;
|
|
::std::string* query_str_;
|
|
bool is_websocket_;
|
|
|
|
mutable int _cached_size_;
|
|
::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
|
|
|
|
friend void protobuf_AddDesc_im_5fproto_2eproto();
|
|
friend void protobuf_AssignDesc_im_5fproto_2eproto();
|
|
friend void protobuf_ShutdownFile_im_5fproto_2eproto();
|
|
|
|
void InitAsDefaultInstance();
|
|
static IMSocketConnect* default_instance_;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class IMSocketDisconnect : public ::google::protobuf::Message {
|
|
public:
|
|
IMSocketDisconnect();
|
|
virtual ~IMSocketDisconnect();
|
|
|
|
IMSocketDisconnect(const IMSocketDisconnect& from);
|
|
|
|
inline IMSocketDisconnect& operator=(const IMSocketDisconnect& 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 IMSocketDisconnect& default_instance();
|
|
|
|
void Swap(IMSocketDisconnect* other);
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
IMSocketDisconnect* New() const;
|
|
void CopyFrom(const ::google::protobuf::Message& from);
|
|
void MergeFrom(const ::google::protobuf::Message& from);
|
|
void CopyFrom(const IMSocketDisconnect& from);
|
|
void MergeFrom(const IMSocketDisconnect& 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 -------------------------------------------------------
|
|
|
|
// @@protoc_insertion_point(class_scope:im.IMSocketDisconnect)
|
|
private:
|
|
|
|
::google::protobuf::UnknownFieldSet _unknown_fields_;
|
|
|
|
|
|
mutable int _cached_size_;
|
|
::google::protobuf::uint32 _has_bits_[1];
|
|
|
|
friend void protobuf_AddDesc_im_5fproto_2eproto();
|
|
friend void protobuf_AssignDesc_im_5fproto_2eproto();
|
|
friend void protobuf_ShutdownFile_im_5fproto_2eproto();
|
|
|
|
void InitAsDefaultInstance();
|
|
static IMSocketDisconnect* default_instance_;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
// IMSocketConnect
|
|
|
|
// optional bool is_websocket = 1;
|
|
inline bool IMSocketConnect::has_is_websocket() const {
|
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
|
}
|
|
inline void IMSocketConnect::set_has_is_websocket() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
}
|
|
inline void IMSocketConnect::clear_has_is_websocket() {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline void IMSocketConnect::clear_is_websocket() {
|
|
is_websocket_ = false;
|
|
clear_has_is_websocket();
|
|
}
|
|
inline bool IMSocketConnect::is_websocket() const {
|
|
return is_websocket_;
|
|
}
|
|
inline void IMSocketConnect::set_is_websocket(bool value) {
|
|
set_has_is_websocket();
|
|
is_websocket_ = value;
|
|
}
|
|
|
|
// optional string host = 2;
|
|
inline bool IMSocketConnect::has_host() const {
|
|
return (_has_bits_[0] & 0x00000002u) != 0;
|
|
}
|
|
inline void IMSocketConnect::set_has_host() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
}
|
|
inline void IMSocketConnect::clear_has_host() {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline void IMSocketConnect::clear_host() {
|
|
if (host_ != &::google::protobuf::internal::kEmptyString) {
|
|
host_->clear();
|
|
}
|
|
clear_has_host();
|
|
}
|
|
inline const ::std::string& IMSocketConnect::host() const {
|
|
return *host_;
|
|
}
|
|
inline void IMSocketConnect::set_host(const ::std::string& value) {
|
|
set_has_host();
|
|
if (host_ == &::google::protobuf::internal::kEmptyString) {
|
|
host_ = new ::std::string;
|
|
}
|
|
host_->assign(value);
|
|
}
|
|
inline void IMSocketConnect::set_host(const char* value) {
|
|
set_has_host();
|
|
if (host_ == &::google::protobuf::internal::kEmptyString) {
|
|
host_ = new ::std::string;
|
|
}
|
|
host_->assign(value);
|
|
}
|
|
inline void IMSocketConnect::set_host(const char* value, size_t size) {
|
|
set_has_host();
|
|
if (host_ == &::google::protobuf::internal::kEmptyString) {
|
|
host_ = new ::std::string;
|
|
}
|
|
host_->assign(reinterpret_cast<const char*>(value), size);
|
|
}
|
|
inline ::std::string* IMSocketConnect::mutable_host() {
|
|
set_has_host();
|
|
if (host_ == &::google::protobuf::internal::kEmptyString) {
|
|
host_ = new ::std::string;
|
|
}
|
|
return host_;
|
|
}
|
|
inline ::std::string* IMSocketConnect::release_host() {
|
|
clear_has_host();
|
|
if (host_ == &::google::protobuf::internal::kEmptyString) {
|
|
return NULL;
|
|
} else {
|
|
::std::string* temp = host_;
|
|
host_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
return temp;
|
|
}
|
|
}
|
|
inline void IMSocketConnect::set_allocated_host(::std::string* host) {
|
|
if (host_ != &::google::protobuf::internal::kEmptyString) {
|
|
delete host_;
|
|
}
|
|
if (host) {
|
|
set_has_host();
|
|
host_ = host;
|
|
} else {
|
|
clear_has_host();
|
|
host_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
}
|
|
}
|
|
|
|
// optional string url = 3;
|
|
inline bool IMSocketConnect::has_url() const {
|
|
return (_has_bits_[0] & 0x00000004u) != 0;
|
|
}
|
|
inline void IMSocketConnect::set_has_url() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
}
|
|
inline void IMSocketConnect::clear_has_url() {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline void IMSocketConnect::clear_url() {
|
|
if (url_ != &::google::protobuf::internal::kEmptyString) {
|
|
url_->clear();
|
|
}
|
|
clear_has_url();
|
|
}
|
|
inline const ::std::string& IMSocketConnect::url() const {
|
|
return *url_;
|
|
}
|
|
inline void IMSocketConnect::set_url(const ::std::string& value) {
|
|
set_has_url();
|
|
if (url_ == &::google::protobuf::internal::kEmptyString) {
|
|
url_ = new ::std::string;
|
|
}
|
|
url_->assign(value);
|
|
}
|
|
inline void IMSocketConnect::set_url(const char* value) {
|
|
set_has_url();
|
|
if (url_ == &::google::protobuf::internal::kEmptyString) {
|
|
url_ = new ::std::string;
|
|
}
|
|
url_->assign(value);
|
|
}
|
|
inline void IMSocketConnect::set_url(const char* value, size_t size) {
|
|
set_has_url();
|
|
if (url_ == &::google::protobuf::internal::kEmptyString) {
|
|
url_ = new ::std::string;
|
|
}
|
|
url_->assign(reinterpret_cast<const char*>(value), size);
|
|
}
|
|
inline ::std::string* IMSocketConnect::mutable_url() {
|
|
set_has_url();
|
|
if (url_ == &::google::protobuf::internal::kEmptyString) {
|
|
url_ = new ::std::string;
|
|
}
|
|
return url_;
|
|
}
|
|
inline ::std::string* IMSocketConnect::release_url() {
|
|
clear_has_url();
|
|
if (url_ == &::google::protobuf::internal::kEmptyString) {
|
|
return NULL;
|
|
} else {
|
|
::std::string* temp = url_;
|
|
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
return temp;
|
|
}
|
|
}
|
|
inline void IMSocketConnect::set_allocated_url(::std::string* url) {
|
|
if (url_ != &::google::protobuf::internal::kEmptyString) {
|
|
delete url_;
|
|
}
|
|
if (url) {
|
|
set_has_url();
|
|
url_ = url;
|
|
} else {
|
|
clear_has_url();
|
|
url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
}
|
|
}
|
|
|
|
// optional string query_str = 4;
|
|
inline bool IMSocketConnect::has_query_str() const {
|
|
return (_has_bits_[0] & 0x00000008u) != 0;
|
|
}
|
|
inline void IMSocketConnect::set_has_query_str() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
}
|
|
inline void IMSocketConnect::clear_has_query_str() {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline void IMSocketConnect::clear_query_str() {
|
|
if (query_str_ != &::google::protobuf::internal::kEmptyString) {
|
|
query_str_->clear();
|
|
}
|
|
clear_has_query_str();
|
|
}
|
|
inline const ::std::string& IMSocketConnect::query_str() const {
|
|
return *query_str_;
|
|
}
|
|
inline void IMSocketConnect::set_query_str(const ::std::string& value) {
|
|
set_has_query_str();
|
|
if (query_str_ == &::google::protobuf::internal::kEmptyString) {
|
|
query_str_ = new ::std::string;
|
|
}
|
|
query_str_->assign(value);
|
|
}
|
|
inline void IMSocketConnect::set_query_str(const char* value) {
|
|
set_has_query_str();
|
|
if (query_str_ == &::google::protobuf::internal::kEmptyString) {
|
|
query_str_ = new ::std::string;
|
|
}
|
|
query_str_->assign(value);
|
|
}
|
|
inline void IMSocketConnect::set_query_str(const char* value, size_t size) {
|
|
set_has_query_str();
|
|
if (query_str_ == &::google::protobuf::internal::kEmptyString) {
|
|
query_str_ = new ::std::string;
|
|
}
|
|
query_str_->assign(reinterpret_cast<const char*>(value), size);
|
|
}
|
|
inline ::std::string* IMSocketConnect::mutable_query_str() {
|
|
set_has_query_str();
|
|
if (query_str_ == &::google::protobuf::internal::kEmptyString) {
|
|
query_str_ = new ::std::string;
|
|
}
|
|
return query_str_;
|
|
}
|
|
inline ::std::string* IMSocketConnect::release_query_str() {
|
|
clear_has_query_str();
|
|
if (query_str_ == &::google::protobuf::internal::kEmptyString) {
|
|
return NULL;
|
|
} else {
|
|
::std::string* temp = query_str_;
|
|
query_str_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
return temp;
|
|
}
|
|
}
|
|
inline void IMSocketConnect::set_allocated_query_str(::std::string* query_str) {
|
|
if (query_str_ != &::google::protobuf::internal::kEmptyString) {
|
|
delete query_str_;
|
|
}
|
|
if (query_str) {
|
|
set_has_query_str();
|
|
query_str_ = query_str;
|
|
} else {
|
|
clear_has_query_str();
|
|
query_str_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
}
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// IMSocketDisconnect
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace im
|
|
|
|
#ifndef SWIG
|
|
namespace google {
|
|
namespace protobuf {
|
|
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::im::Constant_e>() {
|
|
return ::im::Constant_e_descriptor();
|
|
}
|
|
|
|
} // namespace google
|
|
} // namespace protobuf
|
|
#endif // SWIG
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#endif // PROTOBUF_im_5fproto_2eproto__INCLUDED
|