408 lines
13 KiB
C++
408 lines
13 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mp.request.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_mp_2erequest_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_mp_2erequest_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.body.pb.h"
|
|
#include "mp.cqi.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_mp_2erequest_2eproto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_mp_2erequest_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_2erequest_2eproto;
|
|
namespace mp {
|
|
class request;
|
|
class requestDefaultTypeInternal;
|
|
extern requestDefaultTypeInternal _request_default_instance_;
|
|
} // namespace mp
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::mp::request* Arena::CreateMaybeMessage<::mp::request>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace mp {
|
|
|
|
// ===================================================================
|
|
|
|
class request PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mp.request) */ {
|
|
public:
|
|
inline request() : request(nullptr) {};
|
|
virtual ~request();
|
|
|
|
request(const request& from);
|
|
request(request&& from) noexcept
|
|
: request() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline request& operator=(const request& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline request& operator=(request&& 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 request& default_instance();
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
static inline const request* internal_default_instance() {
|
|
return reinterpret_cast<const request*>(
|
|
&_request_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(request& a, request& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(request* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(request* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline request* New() const final {
|
|
return CreateMaybeMessage<request>(nullptr);
|
|
}
|
|
|
|
request* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<request>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const request& from);
|
|
void MergeFrom(const request& 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(request* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "mp.request";
|
|
}
|
|
protected:
|
|
explicit request(::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_2erequest_2eproto);
|
|
return ::descriptor_table_mp_2erequest_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kBodyFieldNumber = 1,
|
|
kCqiFieldNumber = 2,
|
|
};
|
|
// .mp.body body = 1;
|
|
bool has_body() const;
|
|
private:
|
|
bool _internal_has_body() const;
|
|
public:
|
|
void clear_body();
|
|
const ::mp::body& body() const;
|
|
::mp::body* release_body();
|
|
::mp::body* mutable_body();
|
|
void set_allocated_body(::mp::body* body);
|
|
private:
|
|
const ::mp::body& _internal_body() const;
|
|
::mp::body* _internal_mutable_body();
|
|
public:
|
|
void unsafe_arena_set_allocated_body(
|
|
::mp::body* body);
|
|
::mp::body* unsafe_arena_release_body();
|
|
|
|
// .mp.cqi cqi = 2;
|
|
bool has_cqi() const;
|
|
private:
|
|
bool _internal_has_cqi() const;
|
|
public:
|
|
void clear_cqi();
|
|
const ::mp::cqi& cqi() const;
|
|
::mp::cqi* release_cqi();
|
|
::mp::cqi* mutable_cqi();
|
|
void set_allocated_cqi(::mp::cqi* cqi);
|
|
private:
|
|
const ::mp::cqi& _internal_cqi() const;
|
|
::mp::cqi* _internal_mutable_cqi();
|
|
public:
|
|
void unsafe_arena_set_allocated_cqi(
|
|
::mp::cqi* cqi);
|
|
::mp::cqi* unsafe_arena_release_cqi();
|
|
|
|
// @@protoc_insertion_point(class_scope:mp.request)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::mp::body* body_;
|
|
::mp::cqi* cqi_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_mp_2erequest_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// request
|
|
|
|
// .mp.body body = 1;
|
|
inline bool request::_internal_has_body() const {
|
|
return this != internal_default_instance() && body_ != nullptr;
|
|
}
|
|
inline bool request::has_body() const {
|
|
return _internal_has_body();
|
|
}
|
|
inline const ::mp::body& request::_internal_body() const {
|
|
const ::mp::body* p = body_;
|
|
return p != nullptr ? *p : *reinterpret_cast<const ::mp::body*>(
|
|
&::mp::_body_default_instance_);
|
|
}
|
|
inline const ::mp::body& request::body() const {
|
|
// @@protoc_insertion_point(field_get:mp.request.body)
|
|
return _internal_body();
|
|
}
|
|
inline void request::unsafe_arena_set_allocated_body(
|
|
::mp::body* 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:mp.request.body)
|
|
}
|
|
inline ::mp::body* request::release_body() {
|
|
auto temp = unsafe_arena_release_body();
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::mp::body* request::unsafe_arena_release_body() {
|
|
// @@protoc_insertion_point(field_release:mp.request.body)
|
|
|
|
::mp::body* temp = body_;
|
|
body_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::mp::body* request::_internal_mutable_body() {
|
|
|
|
if (body_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::mp::body>(GetArena());
|
|
body_ = p;
|
|
}
|
|
return body_;
|
|
}
|
|
inline ::mp::body* request::mutable_body() {
|
|
// @@protoc_insertion_point(field_mutable:mp.request.body)
|
|
return _internal_mutable_body();
|
|
}
|
|
inline void request::set_allocated_body(::mp::body* 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:mp.request.body)
|
|
}
|
|
|
|
// .mp.cqi cqi = 2;
|
|
inline bool request::_internal_has_cqi() const {
|
|
return this != internal_default_instance() && cqi_ != nullptr;
|
|
}
|
|
inline bool request::has_cqi() const {
|
|
return _internal_has_cqi();
|
|
}
|
|
inline const ::mp::cqi& request::_internal_cqi() const {
|
|
const ::mp::cqi* p = cqi_;
|
|
return p != nullptr ? *p : *reinterpret_cast<const ::mp::cqi*>(
|
|
&::mp::_cqi_default_instance_);
|
|
}
|
|
inline const ::mp::cqi& request::cqi() const {
|
|
// @@protoc_insertion_point(field_get:mp.request.cqi)
|
|
return _internal_cqi();
|
|
}
|
|
inline void request::unsafe_arena_set_allocated_cqi(
|
|
::mp::cqi* cqi) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cqi_);
|
|
}
|
|
cqi_ = cqi;
|
|
if (cqi) {
|
|
|
|
} else {
|
|
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:mp.request.cqi)
|
|
}
|
|
inline ::mp::cqi* request::release_cqi() {
|
|
auto temp = unsafe_arena_release_cqi();
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::mp::cqi* request::unsafe_arena_release_cqi() {
|
|
// @@protoc_insertion_point(field_release:mp.request.cqi)
|
|
|
|
::mp::cqi* temp = cqi_;
|
|
cqi_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::mp::cqi* request::_internal_mutable_cqi() {
|
|
|
|
if (cqi_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::mp::cqi>(GetArena());
|
|
cqi_ = p;
|
|
}
|
|
return cqi_;
|
|
}
|
|
inline ::mp::cqi* request::mutable_cqi() {
|
|
// @@protoc_insertion_point(field_mutable:mp.request.cqi)
|
|
return _internal_mutable_cqi();
|
|
}
|
|
inline void request::set_allocated_cqi(::mp::cqi* cqi) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(cqi_);
|
|
}
|
|
if (cqi) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cqi)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
cqi = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, cqi, submessage_arena);
|
|
}
|
|
|
|
} else {
|
|
|
|
}
|
|
cqi_ = cqi;
|
|
// @@protoc_insertion_point(field_set_allocated:mp.request.cqi)
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace mp
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_mp_2erequest_2eproto
|