312 lines
10 KiB
C++
312 lines
10 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mp.response.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_mp_2eresponse_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_mp_2eresponse_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.sri.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_mp_2eresponse_2eproto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_mp_2eresponse_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_2eresponse_2eproto;
|
|
namespace mp {
|
|
class response;
|
|
class responseDefaultTypeInternal;
|
|
extern responseDefaultTypeInternal _response_default_instance_;
|
|
} // namespace mp
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::mp::response* Arena::CreateMaybeMessage<::mp::response>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace mp {
|
|
|
|
// ===================================================================
|
|
|
|
class response PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mp.response) */ {
|
|
public:
|
|
inline response() : response(nullptr) {};
|
|
virtual ~response();
|
|
|
|
response(const response& from);
|
|
response(response&& from) noexcept
|
|
: response() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline response& operator=(const response& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline response& operator=(response&& 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 response& default_instance();
|
|
|
|
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
|
|
static inline const response* internal_default_instance() {
|
|
return reinterpret_cast<const response*>(
|
|
&_response_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(response& a, response& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(response* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(response* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline response* New() const final {
|
|
return CreateMaybeMessage<response>(nullptr);
|
|
}
|
|
|
|
response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<response>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const response& from);
|
|
void MergeFrom(const response& 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(response* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "mp.response";
|
|
}
|
|
protected:
|
|
explicit response(::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_2eresponse_2eproto);
|
|
return ::descriptor_table_mp_2eresponse_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kSriFieldNumber = 1,
|
|
};
|
|
// .mp.sri sri = 1;
|
|
bool has_sri() const;
|
|
private:
|
|
bool _internal_has_sri() const;
|
|
public:
|
|
void clear_sri();
|
|
const ::mp::sri& sri() const;
|
|
::mp::sri* release_sri();
|
|
::mp::sri* mutable_sri();
|
|
void set_allocated_sri(::mp::sri* sri);
|
|
private:
|
|
const ::mp::sri& _internal_sri() const;
|
|
::mp::sri* _internal_mutable_sri();
|
|
public:
|
|
void unsafe_arena_set_allocated_sri(
|
|
::mp::sri* sri);
|
|
::mp::sri* unsafe_arena_release_sri();
|
|
|
|
// @@protoc_insertion_point(class_scope:mp.response)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::mp::sri* sri_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_mp_2eresponse_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// response
|
|
|
|
// .mp.sri sri = 1;
|
|
inline bool response::_internal_has_sri() const {
|
|
return this != internal_default_instance() && sri_ != nullptr;
|
|
}
|
|
inline bool response::has_sri() const {
|
|
return _internal_has_sri();
|
|
}
|
|
inline const ::mp::sri& response::_internal_sri() const {
|
|
const ::mp::sri* p = sri_;
|
|
return p != nullptr ? *p : *reinterpret_cast<const ::mp::sri*>(
|
|
&::mp::_sri_default_instance_);
|
|
}
|
|
inline const ::mp::sri& response::sri() const {
|
|
// @@protoc_insertion_point(field_get:mp.response.sri)
|
|
return _internal_sri();
|
|
}
|
|
inline void response::unsafe_arena_set_allocated_sri(
|
|
::mp::sri* sri) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sri_);
|
|
}
|
|
sri_ = sri;
|
|
if (sri) {
|
|
|
|
} else {
|
|
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:mp.response.sri)
|
|
}
|
|
inline ::mp::sri* response::release_sri() {
|
|
auto temp = unsafe_arena_release_sri();
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::mp::sri* response::unsafe_arena_release_sri() {
|
|
// @@protoc_insertion_point(field_release:mp.response.sri)
|
|
|
|
::mp::sri* temp = sri_;
|
|
sri_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::mp::sri* response::_internal_mutable_sri() {
|
|
|
|
if (sri_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::mp::sri>(GetArena());
|
|
sri_ = p;
|
|
}
|
|
return sri_;
|
|
}
|
|
inline ::mp::sri* response::mutable_sri() {
|
|
// @@protoc_insertion_point(field_mutable:mp.response.sri)
|
|
return _internal_mutable_sri();
|
|
}
|
|
inline void response::set_allocated_sri(::mp::sri* sri) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(sri_);
|
|
}
|
|
if (sri) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sri)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
sri = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, sri, submessage_arena);
|
|
}
|
|
|
|
} else {
|
|
|
|
}
|
|
sri_ = sri;
|
|
// @@protoc_insertion_point(field_set_allocated:mp.response.sri)
|
|
}
|
|
|
|
#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_2eresponse_2eproto
|