774 lines
27 KiB
C++
774 lines
27 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mp.im.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_mp_2eim_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_mp_2eim_2eproto
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
|
|
#include <google/protobuf/port_def.inc>
|
|
#if PROTOBUF_VERSION < 3012000
|
|
#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 3012004 < 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/port_undef.inc>
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
#include <google/protobuf/arena.h>
|
|
#include <google/protobuf/arenastring.h>
|
|
#include <google/protobuf/generated_message_table_driven.h>
|
|
#include <google/protobuf/generated_message_util.h>
|
|
#include <google/protobuf/inlined_string_field.h>
|
|
#include <google/protobuf/metadata_lite.h>
|
|
#include <google/protobuf/generated_message_reflection.h>
|
|
#include <google/protobuf/message.h>
|
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
#include "mp.mp.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_mp_2eim_2eproto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_mp_2eim_2eproto {
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
|
|
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
|
|
};
|
|
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_mp_2eim_2eproto;
|
|
namespace mp {
|
|
namespace im {
|
|
class data;
|
|
class dataDefaultTypeInternal;
|
|
extern dataDefaultTypeInternal _data_default_instance_;
|
|
class notice;
|
|
class noticeDefaultTypeInternal;
|
|
extern noticeDefaultTypeInternal _notice_default_instance_;
|
|
} // namespace im
|
|
} // namespace mp
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::mp::im::data* Arena::CreateMaybeMessage<::mp::im::data>(Arena*);
|
|
template<> ::mp::im::notice* Arena::CreateMaybeMessage<::mp::im::notice>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace mp {
|
|
namespace im {
|
|
|
|
// ===================================================================
|
|
|
|
class notice PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mp.im.notice) */ {
|
|
public:
|
|
inline notice() : notice(nullptr) {};
|
|
virtual ~notice();
|
|
|
|
notice(const notice& from);
|
|
notice(notice&& from) noexcept
|
|
: notice() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline notice& operator=(const notice& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline notice& operator=(notice&& from) noexcept {
|
|
if (GetArena() == from.GetArena()) {
|
|
if (this != &from) InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return GetMetadataStatic().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return GetMetadataStatic().reflection;
|
|
}
|
|
static const notice& default_instance();
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
static inline const notice* internal_default_instance() {
|
|
return reinterpret_cast<const notice*>(
|
|
&_notice_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(notice& a, notice& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(notice* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(notice* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline notice* New() const final {
|
|
return CreateMaybeMessage<notice>(nullptr);
|
|
}
|
|
|
|
notice* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<notice>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const notice& from);
|
|
void MergeFrom(const notice& from);
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
size_t ByteSizeLong() const final;
|
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
inline void SharedCtor();
|
|
inline void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(notice* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "mp.im.notice";
|
|
}
|
|
protected:
|
|
explicit notice(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
private:
|
|
static void ArenaDtor(void* object);
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
public:
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
private:
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_mp_2eim_2eproto);
|
|
return ::descriptor_table_mp_2eim_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kMessageIdFieldNumber = 1,
|
|
};
|
|
// string message_id = 1;
|
|
void clear_message_id();
|
|
const std::string& message_id() const;
|
|
void set_message_id(const std::string& value);
|
|
void set_message_id(std::string&& value);
|
|
void set_message_id(const char* value);
|
|
void set_message_id(const char* value, size_t size);
|
|
std::string* mutable_message_id();
|
|
std::string* release_message_id();
|
|
void set_allocated_message_id(std::string* message_id);
|
|
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
|
|
" string fields are deprecated and will be removed in a"
|
|
" future release.")
|
|
std::string* unsafe_arena_release_message_id();
|
|
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
|
|
" string fields are deprecated and will be removed in a"
|
|
" future release.")
|
|
void unsafe_arena_set_allocated_message_id(
|
|
std::string* message_id);
|
|
private:
|
|
const std::string& _internal_message_id() const;
|
|
void _internal_set_message_id(const std::string& value);
|
|
std::string* _internal_mutable_message_id();
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:mp.im.notice)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_id_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_mp_2eim_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class data PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mp.im.data) */ {
|
|
public:
|
|
inline data() : data(nullptr) {};
|
|
virtual ~data();
|
|
|
|
data(const data& from);
|
|
data(data&& from) noexcept
|
|
: data() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline data& operator=(const data& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline data& operator=(data&& from) noexcept {
|
|
if (GetArena() == from.GetArena()) {
|
|
if (this != &from) InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return GetMetadataStatic().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return GetMetadataStatic().reflection;
|
|
}
|
|
static const data& default_instance();
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
static inline const data* internal_default_instance() {
|
|
return reinterpret_cast<const data*>(
|
|
&_data_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
1;
|
|
|
|
friend void swap(data& a, data& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(data* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(data* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline data* New() const final {
|
|
return CreateMaybeMessage<data>(nullptr);
|
|
}
|
|
|
|
data* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<data>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const data& from);
|
|
void MergeFrom(const data& from);
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
size_t ByteSizeLong() const final;
|
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
inline void SharedCtor();
|
|
inline void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(data* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "mp.im.data";
|
|
}
|
|
protected:
|
|
explicit data(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
private:
|
|
static void ArenaDtor(void* object);
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
public:
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
private:
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_mp_2eim_2eproto);
|
|
return ::descriptor_table_mp_2eim_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kMessageIdFieldNumber = 3,
|
|
kMsgDataFieldNumber = 5,
|
|
kMsgTypeFieldNumber = 1,
|
|
kSessionTypeFieldNumber = 2,
|
|
kAccountFieldNumber = 4,
|
|
};
|
|
// string message_id = 3;
|
|
void clear_message_id();
|
|
const std::string& message_id() const;
|
|
void set_message_id(const std::string& value);
|
|
void set_message_id(std::string&& value);
|
|
void set_message_id(const char* value);
|
|
void set_message_id(const char* value, size_t size);
|
|
std::string* mutable_message_id();
|
|
std::string* release_message_id();
|
|
void set_allocated_message_id(std::string* message_id);
|
|
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
|
|
" string fields are deprecated and will be removed in a"
|
|
" future release.")
|
|
std::string* unsafe_arena_release_message_id();
|
|
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
|
|
" string fields are deprecated and will be removed in a"
|
|
" future release.")
|
|
void unsafe_arena_set_allocated_message_id(
|
|
std::string* message_id);
|
|
private:
|
|
const std::string& _internal_message_id() const;
|
|
void _internal_set_message_id(const std::string& value);
|
|
std::string* _internal_mutable_message_id();
|
|
public:
|
|
|
|
// string msg_data = 5;
|
|
void clear_msg_data();
|
|
const std::string& msg_data() const;
|
|
void set_msg_data(const std::string& value);
|
|
void set_msg_data(std::string&& value);
|
|
void set_msg_data(const char* value);
|
|
void set_msg_data(const char* value, size_t size);
|
|
std::string* mutable_msg_data();
|
|
std::string* release_msg_data();
|
|
void set_allocated_msg_data(std::string* msg_data);
|
|
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
|
|
" string fields are deprecated and will be removed in a"
|
|
" future release.")
|
|
std::string* unsafe_arena_release_msg_data();
|
|
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
|
|
" string fields are deprecated and will be removed in a"
|
|
" future release.")
|
|
void unsafe_arena_set_allocated_msg_data(
|
|
std::string* msg_data);
|
|
private:
|
|
const std::string& _internal_msg_data() const;
|
|
void _internal_set_msg_data(const std::string& value);
|
|
std::string* _internal_mutable_msg_data();
|
|
public:
|
|
|
|
// .mp.MP_SUB_TYPE msg_type = 1;
|
|
void clear_msg_type();
|
|
::mp::MP_SUB_TYPE msg_type() const;
|
|
void set_msg_type(::mp::MP_SUB_TYPE value);
|
|
private:
|
|
::mp::MP_SUB_TYPE _internal_msg_type() const;
|
|
void _internal_set_msg_type(::mp::MP_SUB_TYPE value);
|
|
public:
|
|
|
|
// .mp.MP_SUB_TYPE session_type = 2;
|
|
void clear_session_type();
|
|
::mp::MP_SUB_TYPE session_type() const;
|
|
void set_session_type(::mp::MP_SUB_TYPE value);
|
|
private:
|
|
::mp::MP_SUB_TYPE _internal_session_type() const;
|
|
void _internal_set_session_type(::mp::MP_SUB_TYPE value);
|
|
public:
|
|
|
|
// uint64 account = 4;
|
|
void clear_account();
|
|
::PROTOBUF_NAMESPACE_ID::uint64 account() const;
|
|
void set_account(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint64 _internal_account() const;
|
|
void _internal_set_account(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:mp.im.data)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr msg_data_;
|
|
int msg_type_;
|
|
int session_type_;
|
|
::PROTOBUF_NAMESPACE_ID::uint64 account_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_mp_2eim_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// notice
|
|
|
|
// string message_id = 1;
|
|
inline void notice::clear_message_id() {
|
|
message_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline const std::string& notice::message_id() const {
|
|
// @@protoc_insertion_point(field_get:mp.im.notice.message_id)
|
|
return _internal_message_id();
|
|
}
|
|
inline void notice::set_message_id(const std::string& value) {
|
|
_internal_set_message_id(value);
|
|
// @@protoc_insertion_point(field_set:mp.im.notice.message_id)
|
|
}
|
|
inline std::string* notice::mutable_message_id() {
|
|
// @@protoc_insertion_point(field_mutable:mp.im.notice.message_id)
|
|
return _internal_mutable_message_id();
|
|
}
|
|
inline const std::string& notice::_internal_message_id() const {
|
|
return message_id_.Get();
|
|
}
|
|
inline void notice::_internal_set_message_id(const std::string& value) {
|
|
|
|
message_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
|
|
}
|
|
inline void notice::set_message_id(std::string&& value) {
|
|
|
|
message_id_.Set(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:mp.im.notice.message_id)
|
|
}
|
|
inline void notice::set_message_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
message_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_char:mp.im.notice.message_id)
|
|
}
|
|
inline void notice::set_message_id(const char* value,
|
|
size_t size) {
|
|
|
|
message_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:mp.im.notice.message_id)
|
|
}
|
|
inline std::string* notice::_internal_mutable_message_id() {
|
|
|
|
return message_id_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline std::string* notice::release_message_id() {
|
|
// @@protoc_insertion_point(field_release:mp.im.notice.message_id)
|
|
return message_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void notice::set_allocated_message_id(std::string* message_id) {
|
|
if (message_id != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
message_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:mp.im.notice.message_id)
|
|
}
|
|
inline std::string* notice::unsafe_arena_release_message_id() {
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:mp.im.notice.message_id)
|
|
GOOGLE_DCHECK(GetArena() != nullptr);
|
|
|
|
return message_id_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArena());
|
|
}
|
|
inline void notice::unsafe_arena_set_allocated_message_id(
|
|
std::string* message_id) {
|
|
GOOGLE_DCHECK(GetArena() != nullptr);
|
|
if (message_id != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
message_id_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
message_id, GetArena());
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:mp.im.notice.message_id)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// data
|
|
|
|
// .mp.MP_SUB_TYPE msg_type = 1;
|
|
inline void data::clear_msg_type() {
|
|
msg_type_ = 0;
|
|
}
|
|
inline ::mp::MP_SUB_TYPE data::_internal_msg_type() const {
|
|
return static_cast< ::mp::MP_SUB_TYPE >(msg_type_);
|
|
}
|
|
inline ::mp::MP_SUB_TYPE data::msg_type() const {
|
|
// @@protoc_insertion_point(field_get:mp.im.data.msg_type)
|
|
return _internal_msg_type();
|
|
}
|
|
inline void data::_internal_set_msg_type(::mp::MP_SUB_TYPE value) {
|
|
|
|
msg_type_ = value;
|
|
}
|
|
inline void data::set_msg_type(::mp::MP_SUB_TYPE value) {
|
|
_internal_set_msg_type(value);
|
|
// @@protoc_insertion_point(field_set:mp.im.data.msg_type)
|
|
}
|
|
|
|
// .mp.MP_SUB_TYPE session_type = 2;
|
|
inline void data::clear_session_type() {
|
|
session_type_ = 0;
|
|
}
|
|
inline ::mp::MP_SUB_TYPE data::_internal_session_type() const {
|
|
return static_cast< ::mp::MP_SUB_TYPE >(session_type_);
|
|
}
|
|
inline ::mp::MP_SUB_TYPE data::session_type() const {
|
|
// @@protoc_insertion_point(field_get:mp.im.data.session_type)
|
|
return _internal_session_type();
|
|
}
|
|
inline void data::_internal_set_session_type(::mp::MP_SUB_TYPE value) {
|
|
|
|
session_type_ = value;
|
|
}
|
|
inline void data::set_session_type(::mp::MP_SUB_TYPE value) {
|
|
_internal_set_session_type(value);
|
|
// @@protoc_insertion_point(field_set:mp.im.data.session_type)
|
|
}
|
|
|
|
// string message_id = 3;
|
|
inline void data::clear_message_id() {
|
|
message_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline const std::string& data::message_id() const {
|
|
// @@protoc_insertion_point(field_get:mp.im.data.message_id)
|
|
return _internal_message_id();
|
|
}
|
|
inline void data::set_message_id(const std::string& value) {
|
|
_internal_set_message_id(value);
|
|
// @@protoc_insertion_point(field_set:mp.im.data.message_id)
|
|
}
|
|
inline std::string* data::mutable_message_id() {
|
|
// @@protoc_insertion_point(field_mutable:mp.im.data.message_id)
|
|
return _internal_mutable_message_id();
|
|
}
|
|
inline const std::string& data::_internal_message_id() const {
|
|
return message_id_.Get();
|
|
}
|
|
inline void data::_internal_set_message_id(const std::string& value) {
|
|
|
|
message_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
|
|
}
|
|
inline void data::set_message_id(std::string&& value) {
|
|
|
|
message_id_.Set(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:mp.im.data.message_id)
|
|
}
|
|
inline void data::set_message_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
message_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_char:mp.im.data.message_id)
|
|
}
|
|
inline void data::set_message_id(const char* value,
|
|
size_t size) {
|
|
|
|
message_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:mp.im.data.message_id)
|
|
}
|
|
inline std::string* data::_internal_mutable_message_id() {
|
|
|
|
return message_id_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline std::string* data::release_message_id() {
|
|
// @@protoc_insertion_point(field_release:mp.im.data.message_id)
|
|
return message_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void data::set_allocated_message_id(std::string* message_id) {
|
|
if (message_id != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
message_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:mp.im.data.message_id)
|
|
}
|
|
inline std::string* data::unsafe_arena_release_message_id() {
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:mp.im.data.message_id)
|
|
GOOGLE_DCHECK(GetArena() != nullptr);
|
|
|
|
return message_id_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArena());
|
|
}
|
|
inline void data::unsafe_arena_set_allocated_message_id(
|
|
std::string* message_id) {
|
|
GOOGLE_DCHECK(GetArena() != nullptr);
|
|
if (message_id != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
message_id_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
message_id, GetArena());
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:mp.im.data.message_id)
|
|
}
|
|
|
|
// uint64 account = 4;
|
|
inline void data::clear_account() {
|
|
account_ = PROTOBUF_ULONGLONG(0);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 data::_internal_account() const {
|
|
return account_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 data::account() const {
|
|
// @@protoc_insertion_point(field_get:mp.im.data.account)
|
|
return _internal_account();
|
|
}
|
|
inline void data::_internal_set_account(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
|
|
account_ = value;
|
|
}
|
|
inline void data::set_account(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_internal_set_account(value);
|
|
// @@protoc_insertion_point(field_set:mp.im.data.account)
|
|
}
|
|
|
|
// string msg_data = 5;
|
|
inline void data::clear_msg_data() {
|
|
msg_data_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline const std::string& data::msg_data() const {
|
|
// @@protoc_insertion_point(field_get:mp.im.data.msg_data)
|
|
return _internal_msg_data();
|
|
}
|
|
inline void data::set_msg_data(const std::string& value) {
|
|
_internal_set_msg_data(value);
|
|
// @@protoc_insertion_point(field_set:mp.im.data.msg_data)
|
|
}
|
|
inline std::string* data::mutable_msg_data() {
|
|
// @@protoc_insertion_point(field_mutable:mp.im.data.msg_data)
|
|
return _internal_mutable_msg_data();
|
|
}
|
|
inline const std::string& data::_internal_msg_data() const {
|
|
return msg_data_.Get();
|
|
}
|
|
inline void data::_internal_set_msg_data(const std::string& value) {
|
|
|
|
msg_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
|
|
}
|
|
inline void data::set_msg_data(std::string&& value) {
|
|
|
|
msg_data_.Set(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:mp.im.data.msg_data)
|
|
}
|
|
inline void data::set_msg_data(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
|
|
msg_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_char:mp.im.data.msg_data)
|
|
}
|
|
inline void data::set_msg_data(const char* value,
|
|
size_t size) {
|
|
|
|
msg_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:mp.im.data.msg_data)
|
|
}
|
|
inline std::string* data::_internal_mutable_msg_data() {
|
|
|
|
return msg_data_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline std::string* data::release_msg_data() {
|
|
// @@protoc_insertion_point(field_release:mp.im.data.msg_data)
|
|
return msg_data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void data::set_allocated_msg_data(std::string* msg_data) {
|
|
if (msg_data != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
msg_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg_data,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:mp.im.data.msg_data)
|
|
}
|
|
inline std::string* data::unsafe_arena_release_msg_data() {
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:mp.im.data.msg_data)
|
|
GOOGLE_DCHECK(GetArena() != nullptr);
|
|
|
|
return msg_data_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
GetArena());
|
|
}
|
|
inline void data::unsafe_arena_set_allocated_msg_data(
|
|
std::string* msg_data) {
|
|
GOOGLE_DCHECK(GetArena() != nullptr);
|
|
if (msg_data != nullptr) {
|
|
|
|
} else {
|
|
|
|
}
|
|
msg_data_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
msg_data, GetArena());
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:mp.im.data.msg_data)
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace im
|
|
} // namespace mp
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_mp_2eim_2eproto
|