208 lines
6.9 KiB
C++
208 lines
6.9 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mp.mp.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_mp_2emp_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_mp_2emp_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/repeated_field.h> // IWYU pragma: export
|
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
|
#include <google/protobuf/generated_enum_reflection.h>
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_mp_2emp_2eproto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_mp_2emp_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[1]
|
|
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_2emp_2eproto;
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace mp {
|
|
|
|
enum MP_TYPE : int {
|
|
MP_REQUEST_LOGIN = 0,
|
|
MP_REQUEST_LOGOUT = 1,
|
|
MP_REQUEST_REGISTER = 2,
|
|
MP_REQUEST_CODE = 3,
|
|
MP_REQUEST_FRIENDS = 4,
|
|
MP_REQUEST_GROUPS = 5,
|
|
MP_RESPONSE_LOGIN = 20,
|
|
MP_RESPONSE_LOGOUT = 21,
|
|
MP_RESPONSE_REGISTER = 22,
|
|
MP_RESPONSE_CODE = 23,
|
|
MP_RESPONSE_FRIENDS = 24,
|
|
MP_RESPONSE_GROUPS = 25,
|
|
MP_IM_NOTICE = 200,
|
|
MP_IM_PUSH_MSG = 201,
|
|
MP_IM_PULL_MSG = 202,
|
|
MP_IM_MSG = 203,
|
|
MP_TYPE_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
|
|
MP_TYPE_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
|
|
};
|
|
bool MP_TYPE_IsValid(int value);
|
|
constexpr MP_TYPE MP_TYPE_MIN = MP_REQUEST_LOGIN;
|
|
constexpr MP_TYPE MP_TYPE_MAX = MP_IM_MSG;
|
|
constexpr int MP_TYPE_ARRAYSIZE = MP_TYPE_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MP_TYPE_descriptor();
|
|
template<typename T>
|
|
inline const std::string& MP_TYPE_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, MP_TYPE>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function MP_TYPE_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
MP_TYPE_descriptor(), enum_t_value);
|
|
}
|
|
inline bool MP_TYPE_Parse(
|
|
const std::string& name, MP_TYPE* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MP_TYPE>(
|
|
MP_TYPE_descriptor(), name, value);
|
|
}
|
|
enum MP_SUB_TYPE : int {
|
|
MP_LOGIN_EMAIL = 0,
|
|
MP_LOGIN_PHONE = 1,
|
|
MP_LOGIN_ACCOUNT = 2,
|
|
MP_REGISTER_EMAIL = 3,
|
|
MP_REGISTER_PHONE = 4,
|
|
MP_LOGIN_SUCCESS = 5,
|
|
MP_LOGIN_FAIL = 6,
|
|
MP_REGISTER_SUCCESS = 7,
|
|
MP_REGISTER_FAIL = 8,
|
|
MP_CODE_EMAIL = 15,
|
|
MP_CODE_PHONE = 16,
|
|
MP_CODE_SUCCESS = 17,
|
|
MP_CODE_FAIL = 28,
|
|
MP_ADD_FRIENDS_0 = 51,
|
|
MP_ADD_FRIENDS_1 = 52,
|
|
MP_ADD_FRIENDS_2 = 53,
|
|
MP_SEARCH_FRIENDS_ACCOUNT = 54,
|
|
MP_SEARCH_FRIENDS_USERNAME = 55,
|
|
MP_ADD_FRIENDS_ACCOUNT = 56,
|
|
MP_ADD_FRIENDS_EMAIL = 57,
|
|
MP_ADD_FRIENDS_PHONE = 58,
|
|
MP_ADD_BLACK_LIST = 59,
|
|
MP_ADD_WHITE_LIST = 60,
|
|
MP_REMOVE_FRIEND = 61,
|
|
MP_GET_FRIENDS = 62,
|
|
MP_ADD_GROUP_0 = 63,
|
|
MP_ADD_GROUP_1 = 64,
|
|
MP_ADD_GROUP_2 = 65,
|
|
MP_ADD_GROUP = 66,
|
|
MP_REMOVE_GROUP = 67,
|
|
MP_GET_GROUPS = 68,
|
|
MP_SEARCH_SUCCESS = 69,
|
|
MP_ADD_SUCCESS = 70,
|
|
MP_REMOVE_SUCCESS = 71,
|
|
MP_GET_SUCCESS = 72,
|
|
MP_ADD_FAIL = 73,
|
|
MP_REMOVE_FAIL = 74,
|
|
MP_GET_FAIL = 75,
|
|
MP_SEARCH_FAIL = 76,
|
|
MP_ADD_CHECK = 80,
|
|
MP_IM_TEXT = 200,
|
|
MP_IM_PHOTO = 201,
|
|
MP_IM_AUDIO = 202,
|
|
MP_IM_VIDEO = 203,
|
|
MP_SESSION_FRIEND = 300,
|
|
MP_SESSION_GROUP = 301,
|
|
MP_SESSION_TEMP = 302,
|
|
MP_SUB_TYPE_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
|
|
MP_SUB_TYPE_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
|
|
};
|
|
bool MP_SUB_TYPE_IsValid(int value);
|
|
constexpr MP_SUB_TYPE MP_SUB_TYPE_MIN = MP_LOGIN_EMAIL;
|
|
constexpr MP_SUB_TYPE MP_SUB_TYPE_MAX = MP_SESSION_TEMP;
|
|
constexpr int MP_SUB_TYPE_ARRAYSIZE = MP_SUB_TYPE_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MP_SUB_TYPE_descriptor();
|
|
template<typename T>
|
|
inline const std::string& MP_SUB_TYPE_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, MP_SUB_TYPE>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function MP_SUB_TYPE_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
MP_SUB_TYPE_descriptor(), enum_t_value);
|
|
}
|
|
inline bool MP_SUB_TYPE_Parse(
|
|
const std::string& name, MP_SUB_TYPE* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MP_SUB_TYPE>(
|
|
MP_SUB_TYPE_descriptor(), name, value);
|
|
}
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace mp
|
|
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
|
|
template <> struct is_proto_enum< ::mp::MP_TYPE> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::mp::MP_TYPE>() {
|
|
return ::mp::MP_TYPE_descriptor();
|
|
}
|
|
template <> struct is_proto_enum< ::mp::MP_SUB_TYPE> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::mp::MP_SUB_TYPE>() {
|
|
return ::mp::MP_SUB_TYPE_descriptor();
|
|
}
|
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_mp_2emp_2eproto
|