412 lines
15 KiB
C++
412 lines
15 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mp.mph.proto
|
|
|
|
#include "mp.mph.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
#include <google/protobuf/extension_set.h>
|
|
#include <google/protobuf/wire_format_lite.h>
|
|
#include <google/protobuf/descriptor.h>
|
|
#include <google/protobuf/generated_message_reflection.h>
|
|
#include <google/protobuf/reflection_ops.h>
|
|
#include <google/protobuf/wire_format.h>
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
namespace mp {
|
|
class mphDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<mph> _instance;
|
|
} _mph_default_instance_;
|
|
} // namespace mp
|
|
static void InitDefaultsscc_info_mph_mp_2emph_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::mp::_mph_default_instance_;
|
|
new (ptr) ::mp::mph();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::mp::mph::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_mph_mp_2emph_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_mph_mp_2emph_2eproto}, {}};
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_mp_2emph_2eproto[1];
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_mp_2emph_2eproto = nullptr;
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_mp_2emph_2eproto = nullptr;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_mp_2emph_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::mp::mph, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::mp::mph, mpb_size_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::mph, mp_id_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::mph, mp_sum_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::mph, mp_type_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::mph, path_),
|
|
};
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, -1, sizeof(::mp::mph)},
|
|
};
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::mp::_mph_default_instance_),
|
|
};
|
|
|
|
const char descriptor_table_protodef_mp_2emph_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
"\n\014mp.mph.proto\022\002mp\032\013mp.mp.proto\"b\n\003mph\022\020"
|
|
"\n\010mpb_size\030\001 \001(\r\022\r\n\005mp_id\030\002 \001(\004\022\016\n\006mp_su"
|
|
"m\030\003 \001(\r\022\034\n\007mp_type\030\004 \001(\0162\013.mp.MP_TYPE\022\014\n"
|
|
"\004path\030\005 \001(\tb\006proto3"
|
|
;
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_mp_2emph_2eproto_deps[1] = {
|
|
&::descriptor_table_mp_2emp_2eproto,
|
|
};
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mp_2emph_2eproto_sccs[1] = {
|
|
&scc_info_mph_mp_2emph_2eproto.base,
|
|
};
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_mp_2emph_2eproto_once;
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_mp_2emph_2eproto = {
|
|
false, false, descriptor_table_protodef_mp_2emph_2eproto, "mp.mph.proto", 139,
|
|
&descriptor_table_mp_2emph_2eproto_once, descriptor_table_mp_2emph_2eproto_sccs, descriptor_table_mp_2emph_2eproto_deps, 1, 1,
|
|
schemas, file_default_instances, TableStruct_mp_2emph_2eproto::offsets,
|
|
file_level_metadata_mp_2emph_2eproto, 1, file_level_enum_descriptors_mp_2emph_2eproto, file_level_service_descriptors_mp_2emph_2eproto,
|
|
};
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
static bool dynamic_init_dummy_mp_2emph_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_mp_2emph_2eproto)), true);
|
|
namespace mp {
|
|
|
|
// ===================================================================
|
|
|
|
void mph::InitAsDefaultInstance() {
|
|
}
|
|
class mph::_Internal {
|
|
public:
|
|
};
|
|
|
|
mph::mph(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
SharedCtor();
|
|
RegisterArenaDtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:mp.mph)
|
|
}
|
|
mph::mph(const mph& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from._internal_path().empty()) {
|
|
path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_path(),
|
|
GetArena());
|
|
}
|
|
::memcpy(&mp_id_, &from.mp_id_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&mp_type_) -
|
|
reinterpret_cast<char*>(&mp_id_)) + sizeof(mp_type_));
|
|
// @@protoc_insertion_point(copy_constructor:mp.mph)
|
|
}
|
|
|
|
void mph::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_mph_mp_2emph_2eproto.base);
|
|
path_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&mp_id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&mp_type_) -
|
|
reinterpret_cast<char*>(&mp_id_)) + sizeof(mp_type_));
|
|
}
|
|
|
|
mph::~mph() {
|
|
// @@protoc_insertion_point(destructor:mp.mph)
|
|
SharedDtor();
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
void mph::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
path_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void mph::ArenaDtor(void* object) {
|
|
mph* _this = reinterpret_cast< mph* >(object);
|
|
(void)_this;
|
|
}
|
|
void mph::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
}
|
|
void mph::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const mph& mph::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_mph_mp_2emph_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void mph::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:mp.mph)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
::memset(&mp_id_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&mp_type_) -
|
|
reinterpret_cast<char*>(&mp_id_)) + sizeof(mp_type_));
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* mph::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// uint32 mpb_size = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
mpb_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint64 mp_id = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
mp_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint32 mp_sum = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
mp_sum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// .mp.MP_TYPE mp_type = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
_internal_set_mp_type(static_cast<::mp::MP_TYPE>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string path = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
auto str = _internal_mutable_path();
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "mp.mph.path"));
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag,
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* mph::_InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:mp.mph)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// uint32 mpb_size = 1;
|
|
if (this->mpb_size() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_mpb_size(), target);
|
|
}
|
|
|
|
// uint64 mp_id = 2;
|
|
if (this->mp_id() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_mp_id(), target);
|
|
}
|
|
|
|
// uint32 mp_sum = 3;
|
|
if (this->mp_sum() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_mp_sum(), target);
|
|
}
|
|
|
|
// .mp.MP_TYPE mp_type = 4;
|
|
if (this->mp_type() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
4, this->_internal_mp_type(), target);
|
|
}
|
|
|
|
// string path = 5;
|
|
if (this->path().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_path().data(), static_cast<int>(this->_internal_path().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"mp.mph.path");
|
|
target = stream->WriteStringMaybeAliased(
|
|
5, this->_internal_path(), target);
|
|
}
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:mp.mph)
|
|
return target;
|
|
}
|
|
|
|
size_t mph::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:mp.mph)
|
|
size_t total_size = 0;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string path = 5;
|
|
if (this->path().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_path());
|
|
}
|
|
|
|
// uint64 mp_id = 2;
|
|
if (this->mp_id() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
this->_internal_mp_id());
|
|
}
|
|
|
|
// uint32 mpb_size = 1;
|
|
if (this->mpb_size() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->_internal_mpb_size());
|
|
}
|
|
|
|
// uint32 mp_sum = 3;
|
|
if (this->mp_sum() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
|
|
this->_internal_mp_sum());
|
|
}
|
|
|
|
// .mp.MP_TYPE mp_type = 4;
|
|
if (this->mp_type() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mp_type());
|
|
}
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void mph::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:mp.mph)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const mph* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<mph>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:mp.mph)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:mp.mph)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void mph::MergeFrom(const mph& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:mp.mph)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.path().size() > 0) {
|
|
_internal_set_path(from._internal_path());
|
|
}
|
|
if (from.mp_id() != 0) {
|
|
_internal_set_mp_id(from._internal_mp_id());
|
|
}
|
|
if (from.mpb_size() != 0) {
|
|
_internal_set_mpb_size(from._internal_mpb_size());
|
|
}
|
|
if (from.mp_sum() != 0) {
|
|
_internal_set_mp_sum(from._internal_mp_sum());
|
|
}
|
|
if (from.mp_type() != 0) {
|
|
_internal_set_mp_type(from._internal_mp_type());
|
|
}
|
|
}
|
|
|
|
void mph::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:mp.mph)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void mph::CopyFrom(const mph& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:mp.mph)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool mph::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void mph::InternalSwap(mph* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
path_.Swap(&other->path_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(mph, mp_type_)
|
|
+ sizeof(mph::mp_type_)
|
|
- PROTOBUF_FIELD_OFFSET(mph, mp_id_)>(
|
|
reinterpret_cast<char*>(&mp_id_),
|
|
reinterpret_cast<char*>(&other->mp_id_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata mph::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace mp
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> PROTOBUF_NOINLINE ::mp::mph* Arena::CreateMaybeMessage< ::mp::mph >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::mp::mph >(arena);
|
|
}
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include <google/protobuf/port_undef.inc>
|