Ai
3 Star 18 Fork 6

John Yet/SMSS安全通讯框架

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
msg.pb.h 47.96 KB
一键复制 编辑 原始数据 按行查看 历史
John Yet 提交于 2020-10-06 15:53 +08:00 . 更新框架 添加tcp拆包方案
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: msg.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_msg_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_msg_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3013000
#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 3013000 < 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/map.h> // IWYU pragma: export
#include <google/protobuf/map_entry.h>
#include <google/protobuf/map_field_inl.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/any.pb.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_msg_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_msg_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
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_msg_2eproto;
namespace sms {
class SimplePacket;
class SimplePacketDefaultTypeInternal;
extern SimplePacketDefaultTypeInternal _SimplePacket_default_instance_;
class SimplePacket_MapEntry_DoNotUse;
class SimplePacket_MapEntry_DoNotUseDefaultTypeInternal;
extern SimplePacket_MapEntry_DoNotUseDefaultTypeInternal _SimplePacket_MapEntry_DoNotUse_default_instance_;
class SmsRequest;
class SmsRequestDefaultTypeInternal;
extern SmsRequestDefaultTypeInternal _SmsRequest_default_instance_;
class SmsResponse;
class SmsResponseDefaultTypeInternal;
extern SmsResponseDefaultTypeInternal _SmsResponse_default_instance_;
} // namespace sms
PROTOBUF_NAMESPACE_OPEN
template<> ::sms::SimplePacket* Arena::CreateMaybeMessage<::sms::SimplePacket>(Arena*);
template<> ::sms::SimplePacket_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::sms::SimplePacket_MapEntry_DoNotUse>(Arena*);
template<> ::sms::SmsRequest* Arena::CreateMaybeMessage<::sms::SmsRequest>(Arena*);
template<> ::sms::SmsResponse* Arena::CreateMaybeMessage<::sms::SmsResponse>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace sms {
enum SmsRequest_Method : int {
SmsRequest_Method_UNDEFINED = 0,
SmsRequest_Method_GET = 1,
SmsRequest_Method_POST = 2,
SmsRequest_Method_PUT = 3,
SmsRequest_Method_DELETE = 4,
SmsRequest_Method_OPTIONS = 5,
SmsRequest_Method_CONNECT = 6,
SmsRequest_Method_TRACE = 7,
SmsRequest_Method_SmsRequest_Method_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
SmsRequest_Method_SmsRequest_Method_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
};
bool SmsRequest_Method_IsValid(int value);
constexpr SmsRequest_Method SmsRequest_Method_Method_MIN = SmsRequest_Method_UNDEFINED;
constexpr SmsRequest_Method SmsRequest_Method_Method_MAX = SmsRequest_Method_TRACE;
constexpr int SmsRequest_Method_Method_ARRAYSIZE = SmsRequest_Method_Method_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SmsRequest_Method_descriptor();
template<typename T>
inline const std::string& SmsRequest_Method_Name(T enum_t_value) {
static_assert(::std::is_same<T, SmsRequest_Method>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function SmsRequest_Method_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
SmsRequest_Method_descriptor(), enum_t_value);
}
inline bool SmsRequest_Method_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SmsRequest_Method* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SmsRequest_Method>(
SmsRequest_Method_descriptor(), name, value);
}
enum SmsResponse_Code : int {
SmsResponse_Code_UNDEFINED = 0,
SmsResponse_Code_OK = 1,
SmsResponse_Code_Invalid = 2,
SmsResponse_Code_InternalError = 3,
SmsResponse_Code_SmsResponse_Code_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
SmsResponse_Code_SmsResponse_Code_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
};
bool SmsResponse_Code_IsValid(int value);
constexpr SmsResponse_Code SmsResponse_Code_Code_MIN = SmsResponse_Code_UNDEFINED;
constexpr SmsResponse_Code SmsResponse_Code_Code_MAX = SmsResponse_Code_InternalError;
constexpr int SmsResponse_Code_Code_ARRAYSIZE = SmsResponse_Code_Code_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SmsResponse_Code_descriptor();
template<typename T>
inline const std::string& SmsResponse_Code_Name(T enum_t_value) {
static_assert(::std::is_same<T, SmsResponse_Code>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function SmsResponse_Code_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
SmsResponse_Code_descriptor(), enum_t_value);
}
inline bool SmsResponse_Code_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SmsResponse_Code* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SmsResponse_Code>(
SmsResponse_Code_descriptor(), name, value);
}
// ===================================================================
class SmsRequest PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sms.SmsRequest) */ {
public:
inline SmsRequest() : SmsRequest(nullptr) {}
virtual ~SmsRequest();
SmsRequest(const SmsRequest& from);
SmsRequest(SmsRequest&& from) noexcept
: SmsRequest() {
*this = ::std::move(from);
}
inline SmsRequest& operator=(const SmsRequest& from) {
CopyFrom(from);
return *this;
}
inline SmsRequest& operator=(SmsRequest&& 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 SmsRequest& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const SmsRequest* internal_default_instance() {
return reinterpret_cast<const SmsRequest*>(
&_SmsRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(SmsRequest& a, SmsRequest& b) {
a.Swap(&b);
}
inline void Swap(SmsRequest* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(SmsRequest* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline SmsRequest* New() const final {
return CreateMaybeMessage<SmsRequest>(nullptr);
}
SmsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<SmsRequest>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const SmsRequest& from);
void MergeFrom(const SmsRequest& 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(SmsRequest* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "sms.SmsRequest";
}
protected:
explicit SmsRequest(::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_msg_2eproto);
return ::descriptor_table_msg_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
typedef SmsRequest_Method Method;
static constexpr Method UNDEFINED =
SmsRequest_Method_UNDEFINED;
static constexpr Method GET =
SmsRequest_Method_GET;
static constexpr Method POST =
SmsRequest_Method_POST;
static constexpr Method PUT =
SmsRequest_Method_PUT;
static constexpr Method DELETE =
SmsRequest_Method_DELETE;
static constexpr Method OPTIONS =
SmsRequest_Method_OPTIONS;
static constexpr Method CONNECT =
SmsRequest_Method_CONNECT;
static constexpr Method TRACE =
SmsRequest_Method_TRACE;
static inline bool Method_IsValid(int value) {
return SmsRequest_Method_IsValid(value);
}
static constexpr Method Method_MIN =
SmsRequest_Method_Method_MIN;
static constexpr Method Method_MAX =
SmsRequest_Method_Method_MAX;
static constexpr int Method_ARRAYSIZE =
SmsRequest_Method_Method_ARRAYSIZE;
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
Method_descriptor() {
return SmsRequest_Method_descriptor();
}
template<typename T>
static inline const std::string& Method_Name(T enum_t_value) {
static_assert(::std::is_same<T, Method>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function Method_Name.");
return SmsRequest_Method_Name(enum_t_value);
}
static inline bool Method_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Method* value) {
return SmsRequest_Method_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kResourcesFieldNumber = 2,
kBodyFieldNumber = 5,
kIdFieldNumber = 3,
kSnFieldNumber = 4,
kMethodFieldNumber = 1,
};
// string resources = 2;
void clear_resources();
const std::string& resources() const;
void set_resources(const std::string& value);
void set_resources(std::string&& value);
void set_resources(const char* value);
void set_resources(const char* value, size_t size);
std::string* mutable_resources();
std::string* release_resources();
void set_allocated_resources(std::string* resources);
private:
const std::string& _internal_resources() const;
void _internal_set_resources(const std::string& value);
std::string* _internal_mutable_resources();
public:
// .google.protobuf.Any body = 5;
bool has_body() const;
private:
bool _internal_has_body() const;
public:
void clear_body();
const PROTOBUF_NAMESPACE_ID::Any& body() const;
PROTOBUF_NAMESPACE_ID::Any* release_body();
PROTOBUF_NAMESPACE_ID::Any* mutable_body();
void set_allocated_body(PROTOBUF_NAMESPACE_ID::Any* body);
private:
const PROTOBUF_NAMESPACE_ID::Any& _internal_body() const;
PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_body();
public:
void unsafe_arena_set_allocated_body(
PROTOBUF_NAMESPACE_ID::Any* body);
PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_body();
// int64 id = 3;
void clear_id();
::PROTOBUF_NAMESPACE_ID::int64 id() const;
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_id() const;
void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// int64 sn = 4;
void clear_sn();
::PROTOBUF_NAMESPACE_ID::int64 sn() const;
void set_sn(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_sn() const;
void _internal_set_sn(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// .sms.SmsRequest.Method method = 1;
void clear_method();
::sms::SmsRequest_Method method() const;
void set_method(::sms::SmsRequest_Method value);
private:
::sms::SmsRequest_Method _internal_method() const;
void _internal_set_method(::sms::SmsRequest_Method value);
public:
// @@protoc_insertion_point(class_scope:sms.SmsRequest)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resources_;
PROTOBUF_NAMESPACE_ID::Any* body_;
::PROTOBUF_NAMESPACE_ID::int64 id_;
::PROTOBUF_NAMESPACE_ID::int64 sn_;
int method_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_msg_2eproto;
};
// -------------------------------------------------------------------
class SmsResponse PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sms.SmsResponse) */ {
public:
inline SmsResponse() : SmsResponse(nullptr) {}
virtual ~SmsResponse();
SmsResponse(const SmsResponse& from);
SmsResponse(SmsResponse&& from) noexcept
: SmsResponse() {
*this = ::std::move(from);
}
inline SmsResponse& operator=(const SmsResponse& from) {
CopyFrom(from);
return *this;
}
inline SmsResponse& operator=(SmsResponse&& 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 SmsResponse& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const SmsResponse* internal_default_instance() {
return reinterpret_cast<const SmsResponse*>(
&_SmsResponse_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(SmsResponse& a, SmsResponse& b) {
a.Swap(&b);
}
inline void Swap(SmsResponse* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(SmsResponse* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline SmsResponse* New() const final {
return CreateMaybeMessage<SmsResponse>(nullptr);
}
SmsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<SmsResponse>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const SmsResponse& from);
void MergeFrom(const SmsResponse& 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(SmsResponse* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "sms.SmsResponse";
}
protected:
explicit SmsResponse(::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_msg_2eproto);
return ::descriptor_table_msg_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
typedef SmsResponse_Code Code;
static constexpr Code UNDEFINED =
SmsResponse_Code_UNDEFINED;
static constexpr Code OK =
SmsResponse_Code_OK;
static constexpr Code Invalid =
SmsResponse_Code_Invalid;
static constexpr Code InternalError =
SmsResponse_Code_InternalError;
static inline bool Code_IsValid(int value) {
return SmsResponse_Code_IsValid(value);
}
static constexpr Code Code_MIN =
SmsResponse_Code_Code_MIN;
static constexpr Code Code_MAX =
SmsResponse_Code_Code_MAX;
static constexpr int Code_ARRAYSIZE =
SmsResponse_Code_Code_ARRAYSIZE;
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
Code_descriptor() {
return SmsResponse_Code_descriptor();
}
template<typename T>
static inline const std::string& Code_Name(T enum_t_value) {
static_assert(::std::is_same<T, Code>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function Code_Name.");
return SmsResponse_Code_Name(enum_t_value);
}
static inline bool Code_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Code* value) {
return SmsResponse_Code_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kBodyFieldNumber = 4,
kIdFieldNumber = 2,
kSnFieldNumber = 3,
kCodeFieldNumber = 1,
};
// .google.protobuf.Any body = 4;
bool has_body() const;
private:
bool _internal_has_body() const;
public:
void clear_body();
const PROTOBUF_NAMESPACE_ID::Any& body() const;
PROTOBUF_NAMESPACE_ID::Any* release_body();
PROTOBUF_NAMESPACE_ID::Any* mutable_body();
void set_allocated_body(PROTOBUF_NAMESPACE_ID::Any* body);
private:
const PROTOBUF_NAMESPACE_ID::Any& _internal_body() const;
PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_body();
public:
void unsafe_arena_set_allocated_body(
PROTOBUF_NAMESPACE_ID::Any* body);
PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_body();
// int64 id = 2;
void clear_id();
::PROTOBUF_NAMESPACE_ID::int64 id() const;
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_id() const;
void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// int64 sn = 3;
void clear_sn();
::PROTOBUF_NAMESPACE_ID::int64 sn() const;
void set_sn(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_sn() const;
void _internal_set_sn(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// .sms.SmsResponse.Code code = 1;
void clear_code();
::sms::SmsResponse_Code code() const;
void set_code(::sms::SmsResponse_Code value);
private:
::sms::SmsResponse_Code _internal_code() const;
void _internal_set_code(::sms::SmsResponse_Code value);
public:
// @@protoc_insertion_point(class_scope:sms.SmsResponse)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
PROTOBUF_NAMESPACE_ID::Any* body_;
::PROTOBUF_NAMESPACE_ID::int64 id_;
::PROTOBUF_NAMESPACE_ID::int64 sn_;
int code_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_msg_2eproto;
};
// -------------------------------------------------------------------
class SimplePacket_MapEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<SimplePacket_MapEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
0 > {
public:
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<SimplePacket_MapEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
0 > SuperType;
SimplePacket_MapEntry_DoNotUse();
explicit SimplePacket_MapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void MergeFrom(const SimplePacket_MapEntry_DoNotUse& other);
static const SimplePacket_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const SimplePacket_MapEntry_DoNotUse*>(&_SimplePacket_MapEntry_DoNotUse_default_instance_); }
static bool ValidateKey(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "sms.SimplePacket.MapEntry.key");
}
static bool ValidateValue(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "sms.SimplePacket.MapEntry.value");
}
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_msg_2eproto);
return ::descriptor_table_msg_2eproto.file_level_metadata[2];
}
public:
};
// -------------------------------------------------------------------
class SimplePacket PROTOBUF_FINAL :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:sms.SimplePacket) */ {
public:
inline SimplePacket() : SimplePacket(nullptr) {}
virtual ~SimplePacket();
SimplePacket(const SimplePacket& from);
SimplePacket(SimplePacket&& from) noexcept
: SimplePacket() {
*this = ::std::move(from);
}
inline SimplePacket& operator=(const SimplePacket& from) {
CopyFrom(from);
return *this;
}
inline SimplePacket& operator=(SimplePacket&& 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 SimplePacket& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const SimplePacket* internal_default_instance() {
return reinterpret_cast<const SimplePacket*>(
&_SimplePacket_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(SimplePacket& a, SimplePacket& b) {
a.Swap(&b);
}
inline void Swap(SimplePacket* other) {
if (other == this) return;
if (GetArena() == other->GetArena()) {
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(SimplePacket* other) {
if (other == this) return;
GOOGLE_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline SimplePacket* New() const final {
return CreateMaybeMessage<SimplePacket>(nullptr);
}
SimplePacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<SimplePacket>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const SimplePacket& from);
void MergeFrom(const SimplePacket& 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(SimplePacket* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "sms.SimplePacket";
}
protected:
explicit SimplePacket(::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_msg_2eproto);
return ::descriptor_table_msg_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kListFieldNumber = 4,
kMapFieldNumber = 5,
kIdInt64FieldNumber = 2,
kIdInt32FieldNumber = 1,
kBFieldNumber = 3,
};
// repeated string list = 4;
int list_size() const;
private:
int _internal_list_size() const;
public:
void clear_list();
const std::string& list(int index) const;
std::string* mutable_list(int index);
void set_list(int index, const std::string& value);
void set_list(int index, std::string&& value);
void set_list(int index, const char* value);
void set_list(int index, const char* value, size_t size);
std::string* add_list();
void add_list(const std::string& value);
void add_list(std::string&& value);
void add_list(const char* value);
void add_list(const char* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& list() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_list();
private:
const std::string& _internal_list(int index) const;
std::string* _internal_add_list();
public:
// map<string, string> map = 5;
int map_size() const;
private:
int _internal_map_size() const;
public:
void clear_map();
private:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
_internal_map() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
_internal_mutable_map();
public:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
map() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
mutable_map();
// int64 id_int64 = 2;
void clear_id_int64();
::PROTOBUF_NAMESPACE_ID::int64 id_int64() const;
void set_id_int64(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_id_int64() const;
void _internal_set_id_int64(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// int32 id_int32 = 1;
void clear_id_int32();
::PROTOBUF_NAMESPACE_ID::int32 id_int32() const;
void set_id_int32(::PROTOBUF_NAMESPACE_ID::int32 value);
private:
::PROTOBUF_NAMESPACE_ID::int32 _internal_id_int32() const;
void _internal_set_id_int32(::PROTOBUF_NAMESPACE_ID::int32 value);
public:
// bool b = 3;
void clear_b();
bool b() const;
void set_b(bool value);
private:
bool _internal_b() const;
void _internal_set_b(bool value);
public:
// @@protoc_insertion_point(class_scope:sms.SimplePacket)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> list_;
::PROTOBUF_NAMESPACE_ID::internal::MapField<
SimplePacket_MapEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
0 > map_;
::PROTOBUF_NAMESPACE_ID::int64 id_int64_;
::PROTOBUF_NAMESPACE_ID::int32 id_int32_;
bool b_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_msg_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// SmsRequest
// .sms.SmsRequest.Method method = 1;
inline void SmsRequest::clear_method() {
method_ = 0;
}
inline ::sms::SmsRequest_Method SmsRequest::_internal_method() const {
return static_cast< ::sms::SmsRequest_Method >(method_);
}
inline ::sms::SmsRequest_Method SmsRequest::method() const {
// @@protoc_insertion_point(field_get:sms.SmsRequest.method)
return _internal_method();
}
inline void SmsRequest::_internal_set_method(::sms::SmsRequest_Method value) {
method_ = value;
}
inline void SmsRequest::set_method(::sms::SmsRequest_Method value) {
_internal_set_method(value);
// @@protoc_insertion_point(field_set:sms.SmsRequest.method)
}
// string resources = 2;
inline void SmsRequest::clear_resources() {
resources_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
inline const std::string& SmsRequest::resources() const {
// @@protoc_insertion_point(field_get:sms.SmsRequest.resources)
return _internal_resources();
}
inline void SmsRequest::set_resources(const std::string& value) {
_internal_set_resources(value);
// @@protoc_insertion_point(field_set:sms.SmsRequest.resources)
}
inline std::string* SmsRequest::mutable_resources() {
// @@protoc_insertion_point(field_mutable:sms.SmsRequest.resources)
return _internal_mutable_resources();
}
inline const std::string& SmsRequest::_internal_resources() const {
return resources_.Get();
}
inline void SmsRequest::_internal_set_resources(const std::string& value) {
resources_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
}
inline void SmsRequest::set_resources(std::string&& value) {
resources_.Set(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
// @@protoc_insertion_point(field_set_rvalue:sms.SmsRequest.resources)
}
inline void SmsRequest::set_resources(const char* value) {
GOOGLE_DCHECK(value != nullptr);
resources_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
GetArena());
// @@protoc_insertion_point(field_set_char:sms.SmsRequest.resources)
}
inline void SmsRequest::set_resources(const char* value,
size_t size) {
resources_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size), GetArena());
// @@protoc_insertion_point(field_set_pointer:sms.SmsRequest.resources)
}
inline std::string* SmsRequest::_internal_mutable_resources() {
return resources_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
inline std::string* SmsRequest::release_resources() {
// @@protoc_insertion_point(field_release:sms.SmsRequest.resources)
return resources_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
}
inline void SmsRequest::set_allocated_resources(std::string* resources) {
if (resources != nullptr) {
} else {
}
resources_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resources,
GetArena());
// @@protoc_insertion_point(field_set_allocated:sms.SmsRequest.resources)
}
// int64 id = 3;
inline void SmsRequest::clear_id() {
id_ = PROTOBUF_LONGLONG(0);
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SmsRequest::_internal_id() const {
return id_;
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SmsRequest::id() const {
// @@protoc_insertion_point(field_get:sms.SmsRequest.id)
return _internal_id();
}
inline void SmsRequest::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
id_ = value;
}
inline void SmsRequest::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
_internal_set_id(value);
// @@protoc_insertion_point(field_set:sms.SmsRequest.id)
}
// int64 sn = 4;
inline void SmsRequest::clear_sn() {
sn_ = PROTOBUF_LONGLONG(0);
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SmsRequest::_internal_sn() const {
return sn_;
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SmsRequest::sn() const {
// @@protoc_insertion_point(field_get:sms.SmsRequest.sn)
return _internal_sn();
}
inline void SmsRequest::_internal_set_sn(::PROTOBUF_NAMESPACE_ID::int64 value) {
sn_ = value;
}
inline void SmsRequest::set_sn(::PROTOBUF_NAMESPACE_ID::int64 value) {
_internal_set_sn(value);
// @@protoc_insertion_point(field_set:sms.SmsRequest.sn)
}
// .google.protobuf.Any body = 5;
inline bool SmsRequest::_internal_has_body() const {
return this != internal_default_instance() && body_ != nullptr;
}
inline bool SmsRequest::has_body() const {
return _internal_has_body();
}
inline const PROTOBUF_NAMESPACE_ID::Any& SmsRequest::_internal_body() const {
const PROTOBUF_NAMESPACE_ID::Any* p = body_;
return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Any*>(
&PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
}
inline const PROTOBUF_NAMESPACE_ID::Any& SmsRequest::body() const {
// @@protoc_insertion_point(field_get:sms.SmsRequest.body)
return _internal_body();
}
inline void SmsRequest::unsafe_arena_set_allocated_body(
PROTOBUF_NAMESPACE_ID::Any* body) {
if (GetArena() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_);
}
body_ = body;
if (body) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:sms.SmsRequest.body)
}
inline PROTOBUF_NAMESPACE_ID::Any* SmsRequest::release_body() {
PROTOBUF_NAMESPACE_ID::Any* temp = body_;
body_ = nullptr;
if (GetArena() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
return temp;
}
inline PROTOBUF_NAMESPACE_ID::Any* SmsRequest::unsafe_arena_release_body() {
// @@protoc_insertion_point(field_release:sms.SmsRequest.body)
PROTOBUF_NAMESPACE_ID::Any* temp = body_;
body_ = nullptr;
return temp;
}
inline PROTOBUF_NAMESPACE_ID::Any* SmsRequest::_internal_mutable_body() {
if (body_ == nullptr) {
auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Any>(GetArena());
body_ = p;
}
return body_;
}
inline PROTOBUF_NAMESPACE_ID::Any* SmsRequest::mutable_body() {
// @@protoc_insertion_point(field_mutable:sms.SmsRequest.body)
return _internal_mutable_body();
}
inline void SmsRequest::set_allocated_body(PROTOBUF_NAMESPACE_ID::Any* body) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_);
}
if (body) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(body)->GetArena();
if (message_arena != submessage_arena) {
body = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, body, submessage_arena);
}
} else {
}
body_ = body;
// @@protoc_insertion_point(field_set_allocated:sms.SmsRequest.body)
}
// -------------------------------------------------------------------
// SmsResponse
// .sms.SmsResponse.Code code = 1;
inline void SmsResponse::clear_code() {
code_ = 0;
}
inline ::sms::SmsResponse_Code SmsResponse::_internal_code() const {
return static_cast< ::sms::SmsResponse_Code >(code_);
}
inline ::sms::SmsResponse_Code SmsResponse::code() const {
// @@protoc_insertion_point(field_get:sms.SmsResponse.code)
return _internal_code();
}
inline void SmsResponse::_internal_set_code(::sms::SmsResponse_Code value) {
code_ = value;
}
inline void SmsResponse::set_code(::sms::SmsResponse_Code value) {
_internal_set_code(value);
// @@protoc_insertion_point(field_set:sms.SmsResponse.code)
}
// int64 id = 2;
inline void SmsResponse::clear_id() {
id_ = PROTOBUF_LONGLONG(0);
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SmsResponse::_internal_id() const {
return id_;
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SmsResponse::id() const {
// @@protoc_insertion_point(field_get:sms.SmsResponse.id)
return _internal_id();
}
inline void SmsResponse::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
id_ = value;
}
inline void SmsResponse::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
_internal_set_id(value);
// @@protoc_insertion_point(field_set:sms.SmsResponse.id)
}
// int64 sn = 3;
inline void SmsResponse::clear_sn() {
sn_ = PROTOBUF_LONGLONG(0);
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SmsResponse::_internal_sn() const {
return sn_;
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SmsResponse::sn() const {
// @@protoc_insertion_point(field_get:sms.SmsResponse.sn)
return _internal_sn();
}
inline void SmsResponse::_internal_set_sn(::PROTOBUF_NAMESPACE_ID::int64 value) {
sn_ = value;
}
inline void SmsResponse::set_sn(::PROTOBUF_NAMESPACE_ID::int64 value) {
_internal_set_sn(value);
// @@protoc_insertion_point(field_set:sms.SmsResponse.sn)
}
// .google.protobuf.Any body = 4;
inline bool SmsResponse::_internal_has_body() const {
return this != internal_default_instance() && body_ != nullptr;
}
inline bool SmsResponse::has_body() const {
return _internal_has_body();
}
inline const PROTOBUF_NAMESPACE_ID::Any& SmsResponse::_internal_body() const {
const PROTOBUF_NAMESPACE_ID::Any* p = body_;
return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Any*>(
&PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
}
inline const PROTOBUF_NAMESPACE_ID::Any& SmsResponse::body() const {
// @@protoc_insertion_point(field_get:sms.SmsResponse.body)
return _internal_body();
}
inline void SmsResponse::unsafe_arena_set_allocated_body(
PROTOBUF_NAMESPACE_ID::Any* body) {
if (GetArena() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_);
}
body_ = body;
if (body) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:sms.SmsResponse.body)
}
inline PROTOBUF_NAMESPACE_ID::Any* SmsResponse::release_body() {
PROTOBUF_NAMESPACE_ID::Any* temp = body_;
body_ = nullptr;
if (GetArena() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
return temp;
}
inline PROTOBUF_NAMESPACE_ID::Any* SmsResponse::unsafe_arena_release_body() {
// @@protoc_insertion_point(field_release:sms.SmsResponse.body)
PROTOBUF_NAMESPACE_ID::Any* temp = body_;
body_ = nullptr;
return temp;
}
inline PROTOBUF_NAMESPACE_ID::Any* SmsResponse::_internal_mutable_body() {
if (body_ == nullptr) {
auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Any>(GetArena());
body_ = p;
}
return body_;
}
inline PROTOBUF_NAMESPACE_ID::Any* SmsResponse::mutable_body() {
// @@protoc_insertion_point(field_mutable:sms.SmsResponse.body)
return _internal_mutable_body();
}
inline void SmsResponse::set_allocated_body(PROTOBUF_NAMESPACE_ID::Any* body) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(body_);
}
if (body) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(body)->GetArena();
if (message_arena != submessage_arena) {
body = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, body, submessage_arena);
}
} else {
}
body_ = body;
// @@protoc_insertion_point(field_set_allocated:sms.SmsResponse.body)
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// SimplePacket
// int32 id_int32 = 1;
inline void SimplePacket::clear_id_int32() {
id_int32_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::int32 SimplePacket::_internal_id_int32() const {
return id_int32_;
}
inline ::PROTOBUF_NAMESPACE_ID::int32 SimplePacket::id_int32() const {
// @@protoc_insertion_point(field_get:sms.SimplePacket.id_int32)
return _internal_id_int32();
}
inline void SimplePacket::_internal_set_id_int32(::PROTOBUF_NAMESPACE_ID::int32 value) {
id_int32_ = value;
}
inline void SimplePacket::set_id_int32(::PROTOBUF_NAMESPACE_ID::int32 value) {
_internal_set_id_int32(value);
// @@protoc_insertion_point(field_set:sms.SimplePacket.id_int32)
}
// int64 id_int64 = 2;
inline void SimplePacket::clear_id_int64() {
id_int64_ = PROTOBUF_LONGLONG(0);
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SimplePacket::_internal_id_int64() const {
return id_int64_;
}
inline ::PROTOBUF_NAMESPACE_ID::int64 SimplePacket::id_int64() const {
// @@protoc_insertion_point(field_get:sms.SimplePacket.id_int64)
return _internal_id_int64();
}
inline void SimplePacket::_internal_set_id_int64(::PROTOBUF_NAMESPACE_ID::int64 value) {
id_int64_ = value;
}
inline void SimplePacket::set_id_int64(::PROTOBUF_NAMESPACE_ID::int64 value) {
_internal_set_id_int64(value);
// @@protoc_insertion_point(field_set:sms.SimplePacket.id_int64)
}
// bool b = 3;
inline void SimplePacket::clear_b() {
b_ = false;
}
inline bool SimplePacket::_internal_b() const {
return b_;
}
inline bool SimplePacket::b() const {
// @@protoc_insertion_point(field_get:sms.SimplePacket.b)
return _internal_b();
}
inline void SimplePacket::_internal_set_b(bool value) {
b_ = value;
}
inline void SimplePacket::set_b(bool value) {
_internal_set_b(value);
// @@protoc_insertion_point(field_set:sms.SimplePacket.b)
}
// repeated string list = 4;
inline int SimplePacket::_internal_list_size() const {
return list_.size();
}
inline int SimplePacket::list_size() const {
return _internal_list_size();
}
inline void SimplePacket::clear_list() {
list_.Clear();
}
inline std::string* SimplePacket::add_list() {
// @@protoc_insertion_point(field_add_mutable:sms.SimplePacket.list)
return _internal_add_list();
}
inline const std::string& SimplePacket::_internal_list(int index) const {
return list_.Get(index);
}
inline const std::string& SimplePacket::list(int index) const {
// @@protoc_insertion_point(field_get:sms.SimplePacket.list)
return _internal_list(index);
}
inline std::string* SimplePacket::mutable_list(int index) {
// @@protoc_insertion_point(field_mutable:sms.SimplePacket.list)
return list_.Mutable(index);
}
inline void SimplePacket::set_list(int index, const std::string& value) {
// @@protoc_insertion_point(field_set:sms.SimplePacket.list)
list_.Mutable(index)->assign(value);
}
inline void SimplePacket::set_list(int index, std::string&& value) {
// @@protoc_insertion_point(field_set:sms.SimplePacket.list)
list_.Mutable(index)->assign(std::move(value));
}
inline void SimplePacket::set_list(int index, const char* value) {
GOOGLE_DCHECK(value != nullptr);
list_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:sms.SimplePacket.list)
}
inline void SimplePacket::set_list(int index, const char* value, size_t size) {
list_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:sms.SimplePacket.list)
}
inline std::string* SimplePacket::_internal_add_list() {
return list_.Add();
}
inline void SimplePacket::add_list(const std::string& value) {
list_.Add()->assign(value);
// @@protoc_insertion_point(field_add:sms.SimplePacket.list)
}
inline void SimplePacket::add_list(std::string&& value) {
list_.Add(std::move(value));
// @@protoc_insertion_point(field_add:sms.SimplePacket.list)
}
inline void SimplePacket::add_list(const char* value) {
GOOGLE_DCHECK(value != nullptr);
list_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:sms.SimplePacket.list)
}
inline void SimplePacket::add_list(const char* value, size_t size) {
list_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:sms.SimplePacket.list)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
SimplePacket::list() const {
// @@protoc_insertion_point(field_list:sms.SimplePacket.list)
return list_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
SimplePacket::mutable_list() {
// @@protoc_insertion_point(field_mutable_list:sms.SimplePacket.list)
return &list_;
}
// map<string, string> map = 5;
inline int SimplePacket::_internal_map_size() const {
return map_.size();
}
inline int SimplePacket::map_size() const {
return _internal_map_size();
}
inline void SimplePacket::clear_map() {
map_.Clear();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
SimplePacket::_internal_map() const {
return map_.GetMap();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
SimplePacket::map() const {
// @@protoc_insertion_point(field_map:sms.SimplePacket.map)
return _internal_map();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
SimplePacket::_internal_mutable_map() {
return map_.MutableMap();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
SimplePacket::mutable_map() {
// @@protoc_insertion_point(field_mutable_map:sms.SimplePacket.map)
return _internal_mutable_map();
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace sms
PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::sms::SmsRequest_Method> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::sms::SmsRequest_Method>() {
return ::sms::SmsRequest_Method_descriptor();
}
template <> struct is_proto_enum< ::sms::SmsResponse_Code> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::sms::SmsResponse_Code>() {
return ::sms::SmsResponse_Code_descriptor();
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_msg_2eproto
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/learnhow/encrypted_stream.git
git@gitee.com:learnhow/encrypted_stream.git
learnhow
encrypted_stream
SMSS安全通讯框架
2.0

搜索帮助