Files
autofeed/audofeed-device-backend/rpc/Local.Status.pb.cc
2025-12-22 00:51:03 +08:00

2337 lines
89 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Local.Status.proto
#include "Local.Status.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>
PROTOBUF_PRAGMA_INIT_SEG
namespace Local {
namespace Status {
constexpr LocalDeviceReq::LocalDeviceReq(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: device_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, soft_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, heart_time_(uint64_t{0u})
, status_(false){}
struct LocalDeviceReqDefaultTypeInternal {
constexpr LocalDeviceReqDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocalDeviceReqDefaultTypeInternal() {}
union {
LocalDeviceReq _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalDeviceReqDefaultTypeInternal _LocalDeviceReq_default_instance_;
constexpr LocalDeviceRes::LocalDeviceRes(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: device_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, soft_version_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, result_code_(0u){}
struct LocalDeviceResDefaultTypeInternal {
constexpr LocalDeviceResDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocalDeviceResDefaultTypeInternal() {}
union {
LocalDeviceRes _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalDeviceResDefaultTypeInternal _LocalDeviceRes_default_instance_;
constexpr LocalMqttReq::LocalMqttReq(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: status_(0u)
, delay_(0u)
, last_up_(uint64_t{0u})
, last_down_(uint64_t{0u}){}
struct LocalMqttReqDefaultTypeInternal {
constexpr LocalMqttReqDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocalMqttReqDefaultTypeInternal() {}
union {
LocalMqttReq _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalMqttReqDefaultTypeInternal _LocalMqttReq_default_instance_;
constexpr LocalMqttRes::LocalMqttRes(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: result_code_(0u){}
struct LocalMqttResDefaultTypeInternal {
constexpr LocalMqttResDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocalMqttResDefaultTypeInternal() {}
union {
LocalMqttRes _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalMqttResDefaultTypeInternal _LocalMqttRes_default_instance_;
constexpr LocalFeedReq::LocalFeedReq(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: last_feed_time_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, last_feed_weight_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, feed_count_(0u)
, feed_weight_(0u){}
struct LocalFeedReqDefaultTypeInternal {
constexpr LocalFeedReqDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocalFeedReqDefaultTypeInternal() {}
union {
LocalFeedReq _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalFeedReqDefaultTypeInternal _LocalFeedReq_default_instance_;
constexpr LocalFeedRes::LocalFeedRes(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: result_code_(0u){}
struct LocalFeedResDefaultTypeInternal {
constexpr LocalFeedResDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocalFeedResDefaultTypeInternal() {}
union {
LocalFeedRes _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalFeedResDefaultTypeInternal _LocalFeedRes_default_instance_;
constexpr LocalHardReq::LocalHardReq(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: food_remain_(0u)
, temperature_(0u)
, motor_(false)
, weight_(false)
, door_(false)
, stuck_(false){}
struct LocalHardReqDefaultTypeInternal {
constexpr LocalHardReqDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocalHardReqDefaultTypeInternal() {}
union {
LocalHardReq _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalHardReqDefaultTypeInternal _LocalHardReq_default_instance_;
constexpr LocalHardRes::LocalHardRes(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: action_(0u)
, result_code_(0u){}
struct LocalHardResDefaultTypeInternal {
constexpr LocalHardResDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocalHardResDefaultTypeInternal() {}
union {
LocalHardRes _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocalHardResDefaultTypeInternal _LocalHardRes_default_instance_;
} // namespace Status
} // namespace Local
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Local_2eStatus_2eproto[8];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Local_2eStatus_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Local_2eStatus_2eproto = nullptr;
const uint32_t TableStruct_Local_2eStatus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceReq, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceReq, status_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceReq, device_id_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceReq, soft_version_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceReq, heart_time_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceRes, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceRes, device_id_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceRes, soft_version_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalDeviceRes, result_code_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalMqttReq, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalMqttReq, status_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalMqttReq, delay_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalMqttReq, last_up_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalMqttReq, last_down_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalMqttRes, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalMqttRes, result_code_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalFeedReq, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalFeedReq, feed_count_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalFeedReq, feed_weight_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalFeedReq, last_feed_time_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalFeedReq, last_feed_weight_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalFeedRes, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalFeedRes, result_code_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardReq, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardReq, food_remain_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardReq, temperature_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardReq, motor_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardReq, weight_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardReq, door_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardReq, stuck_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardRes, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardRes, action_),
PROTOBUF_FIELD_OFFSET(::Local::Status::LocalHardRes, result_code_),
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::Local::Status::LocalDeviceReq)},
{ 10, -1, -1, sizeof(::Local::Status::LocalDeviceRes)},
{ 19, -1, -1, sizeof(::Local::Status::LocalMqttReq)},
{ 29, -1, -1, sizeof(::Local::Status::LocalMqttRes)},
{ 36, -1, -1, sizeof(::Local::Status::LocalFeedReq)},
{ 46, -1, -1, sizeof(::Local::Status::LocalFeedRes)},
{ 53, -1, -1, sizeof(::Local::Status::LocalHardReq)},
{ 65, -1, -1, sizeof(::Local::Status::LocalHardRes)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Local::Status::_LocalDeviceReq_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Local::Status::_LocalDeviceRes_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Local::Status::_LocalMqttReq_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Local::Status::_LocalMqttRes_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Local::Status::_LocalFeedReq_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Local::Status::_LocalFeedRes_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Local::Status::_LocalHardReq_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Local::Status::_LocalHardRes_default_instance_),
};
const char descriptor_table_protodef_Local_2eStatus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\022Local.Status.proto\022\014Local.Status\"]\n\016Lo"
"calDeviceReq\022\016\n\006status\030\001 \001(\010\022\021\n\tdevice_i"
"d\030\002 \001(\t\022\024\n\014soft_version\030\003 \001(\t\022\022\n\nheart_t"
"ime\030\004 \001(\004\"N\n\016LocalDeviceRes\022\021\n\tdevice_id"
"\030\001 \001(\t\022\024\n\014soft_version\030\002 \001(\t\022\023\n\013result_c"
"ode\030\003 \001(\r\"Q\n\014LocalMqttReq\022\016\n\006status\030\001 \001("
"\r\022\r\n\005delay\030\002 \001(\r\022\017\n\007last_up\030\003 \001(\004\022\021\n\tlas"
"t_down\030\004 \001(\004\"#\n\014LocalMqttRes\022\023\n\013result_c"
"ode\030\001 \001(\r\"i\n\014LocalFeedReq\022\022\n\nfeed_count\030"
"\001 \001(\r\022\023\n\013feed_weight\030\002 \001(\r\022\026\n\016last_feed_"
"time\030\003 \001(\t\022\030\n\020last_feed_weight\030\004 \001(\t\"#\n\014"
"LocalFeedRes\022\023\n\013result_code\030\001 \001(\r\"t\n\014Loc"
"alHardReq\022\023\n\013food_remain\030\001 \001(\r\022\023\n\013temper"
"ature\030\002 \001(\r\022\r\n\005motor\030\003 \001(\010\022\016\n\006weight\030\004 \001"
"(\010\022\014\n\004door\030\005 \001(\010\022\r\n\005stuck\030\006 \001(\010\"3\n\014Local"
"HardRes\022\016\n\006action\030\001 \001(\r\022\023\n\013result_code\030\002"
" \001(\r2\233\002\n\013LocalStatus\022F\n\006Device\022\034.Local.S"
"tatus.LocalDeviceReq\032\034.Local.Status.Loca"
"lDeviceRes\"\000\022@\n\004Mqtt\022\032.Local.Status.Loca"
"lMqttReq\032\032.Local.Status.LocalMqttRes\"\000\022@"
"\n\004Feed\022\032.Local.Status.LocalFeedReq\032\032.Loc"
"al.Status.LocalFeedRes\"\000\022@\n\004Hard\022\032.Local"
".Status.LocalHardReq\032\032.Local.Status.Loca"
"lHardRes\"\000b\006proto3"
;
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Local_2eStatus_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Local_2eStatus_2eproto = {
false, false, 938, descriptor_table_protodef_Local_2eStatus_2eproto, "Local.Status.proto",
&descriptor_table_Local_2eStatus_2eproto_once, nullptr, 0, 8,
schemas, file_default_instances, TableStruct_Local_2eStatus_2eproto::offsets,
file_level_metadata_Local_2eStatus_2eproto, file_level_enum_descriptors_Local_2eStatus_2eproto, file_level_service_descriptors_Local_2eStatus_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Local_2eStatus_2eproto_getter() {
return &descriptor_table_Local_2eStatus_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Local_2eStatus_2eproto(&descriptor_table_Local_2eStatus_2eproto);
namespace Local {
namespace Status {
// ===================================================================
class LocalDeviceReq::_Internal {
public:
};
LocalDeviceReq::LocalDeviceReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:Local.Status.LocalDeviceReq)
}
LocalDeviceReq::LocalDeviceReq(const LocalDeviceReq& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
device_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_device_id().empty()) {
device_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_id(),
GetArenaForAllocation());
}
soft_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
soft_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_soft_version().empty()) {
soft_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_soft_version(),
GetArenaForAllocation());
}
::memcpy(&heart_time_, &from.heart_time_,
static_cast<size_t>(reinterpret_cast<char*>(&status_) -
reinterpret_cast<char*>(&heart_time_)) + sizeof(status_));
// @@protoc_insertion_point(copy_constructor:Local.Status.LocalDeviceReq)
}
inline void LocalDeviceReq::SharedCtor() {
device_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
soft_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
soft_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&heart_time_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&status_) -
reinterpret_cast<char*>(&heart_time_)) + sizeof(status_));
}
LocalDeviceReq::~LocalDeviceReq() {
// @@protoc_insertion_point(destructor:Local.Status.LocalDeviceReq)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void LocalDeviceReq::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
device_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
soft_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void LocalDeviceReq::ArenaDtor(void* object) {
LocalDeviceReq* _this = reinterpret_cast< LocalDeviceReq* >(object);
(void)_this;
}
void LocalDeviceReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void LocalDeviceReq::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void LocalDeviceReq::Clear() {
// @@protoc_insertion_point(message_clear_start:Local.Status.LocalDeviceReq)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
device_id_.ClearToEmpty();
soft_version_.ClearToEmpty();
::memset(&heart_time_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&status_) -
reinterpret_cast<char*>(&heart_time_)) + sizeof(status_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LocalDeviceReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// bool status = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string device_id = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_device_id();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Local.Status.LocalDeviceReq.device_id"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string soft_version = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
auto str = _internal_mutable_soft_version();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Local.Status.LocalDeviceReq.soft_version"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint64 heart_time = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
heart_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* LocalDeviceReq::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:Local.Status.LocalDeviceReq)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// bool status = 1;
if (this->_internal_status() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_status(), target);
}
// string device_id = 2;
if (!this->_internal_device_id().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_device_id().data(), static_cast<int>(this->_internal_device_id().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"Local.Status.LocalDeviceReq.device_id");
target = stream->WriteStringMaybeAliased(
2, this->_internal_device_id(), target);
}
// string soft_version = 3;
if (!this->_internal_soft_version().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_soft_version().data(), static_cast<int>(this->_internal_soft_version().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"Local.Status.LocalDeviceReq.soft_version");
target = stream->WriteStringMaybeAliased(
3, this->_internal_soft_version(), target);
}
// uint64 heart_time = 4;
if (this->_internal_heart_time() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_heart_time(), 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:Local.Status.LocalDeviceReq)
return target;
}
size_t LocalDeviceReq::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Local.Status.LocalDeviceReq)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string device_id = 2;
if (!this->_internal_device_id().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_device_id());
}
// string soft_version = 3;
if (!this->_internal_soft_version().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_soft_version());
}
// uint64 heart_time = 4;
if (this->_internal_heart_time() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_heart_time());
}
// bool status = 1;
if (this->_internal_status() != 0) {
total_size += 1 + 1;
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalDeviceReq::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
LocalDeviceReq::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalDeviceReq::GetClassData() const { return &_class_data_; }
void LocalDeviceReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<LocalDeviceReq *>(to)->MergeFrom(
static_cast<const LocalDeviceReq &>(from));
}
void LocalDeviceReq::MergeFrom(const LocalDeviceReq& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Local.Status.LocalDeviceReq)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_device_id().empty()) {
_internal_set_device_id(from._internal_device_id());
}
if (!from._internal_soft_version().empty()) {
_internal_set_soft_version(from._internal_soft_version());
}
if (from._internal_heart_time() != 0) {
_internal_set_heart_time(from._internal_heart_time());
}
if (from._internal_status() != 0) {
_internal_set_status(from._internal_status());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LocalDeviceReq::CopyFrom(const LocalDeviceReq& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Local.Status.LocalDeviceReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LocalDeviceReq::IsInitialized() const {
return true;
}
void LocalDeviceReq::InternalSwap(LocalDeviceReq* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&device_id_, lhs_arena,
&other->device_id_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&soft_version_, lhs_arena,
&other->soft_version_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(LocalDeviceReq, status_)
+ sizeof(LocalDeviceReq::status_)
- PROTOBUF_FIELD_OFFSET(LocalDeviceReq, heart_time_)>(
reinterpret_cast<char*>(&heart_time_),
reinterpret_cast<char*>(&other->heart_time_));
}
::PROTOBUF_NAMESPACE_ID::Metadata LocalDeviceReq::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_Local_2eStatus_2eproto_getter, &descriptor_table_Local_2eStatus_2eproto_once,
file_level_metadata_Local_2eStatus_2eproto[0]);
}
// ===================================================================
class LocalDeviceRes::_Internal {
public:
};
LocalDeviceRes::LocalDeviceRes(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:Local.Status.LocalDeviceRes)
}
LocalDeviceRes::LocalDeviceRes(const LocalDeviceRes& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
device_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_device_id().empty()) {
device_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_id(),
GetArenaForAllocation());
}
soft_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
soft_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_soft_version().empty()) {
soft_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_soft_version(),
GetArenaForAllocation());
}
result_code_ = from.result_code_;
// @@protoc_insertion_point(copy_constructor:Local.Status.LocalDeviceRes)
}
inline void LocalDeviceRes::SharedCtor() {
device_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
soft_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
soft_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
result_code_ = 0u;
}
LocalDeviceRes::~LocalDeviceRes() {
// @@protoc_insertion_point(destructor:Local.Status.LocalDeviceRes)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void LocalDeviceRes::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
device_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
soft_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void LocalDeviceRes::ArenaDtor(void* object) {
LocalDeviceRes* _this = reinterpret_cast< LocalDeviceRes* >(object);
(void)_this;
}
void LocalDeviceRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void LocalDeviceRes::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void LocalDeviceRes::Clear() {
// @@protoc_insertion_point(message_clear_start:Local.Status.LocalDeviceRes)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
device_id_.ClearToEmpty();
soft_version_.ClearToEmpty();
result_code_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LocalDeviceRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// string device_id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_device_id();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Local.Status.LocalDeviceRes.device_id"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string soft_version = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_soft_version();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Local.Status.LocalDeviceRes.soft_version"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint32 result_code = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
result_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* LocalDeviceRes::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:Local.Status.LocalDeviceRes)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// string device_id = 1;
if (!this->_internal_device_id().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_device_id().data(), static_cast<int>(this->_internal_device_id().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"Local.Status.LocalDeviceRes.device_id");
target = stream->WriteStringMaybeAliased(
1, this->_internal_device_id(), target);
}
// string soft_version = 2;
if (!this->_internal_soft_version().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_soft_version().data(), static_cast<int>(this->_internal_soft_version().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"Local.Status.LocalDeviceRes.soft_version");
target = stream->WriteStringMaybeAliased(
2, this->_internal_soft_version(), target);
}
// uint32 result_code = 3;
if (this->_internal_result_code() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_result_code(), 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:Local.Status.LocalDeviceRes)
return target;
}
size_t LocalDeviceRes::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Local.Status.LocalDeviceRes)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string device_id = 1;
if (!this->_internal_device_id().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_device_id());
}
// string soft_version = 2;
if (!this->_internal_soft_version().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_soft_version());
}
// uint32 result_code = 3;
if (this->_internal_result_code() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_result_code());
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalDeviceRes::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
LocalDeviceRes::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalDeviceRes::GetClassData() const { return &_class_data_; }
void LocalDeviceRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<LocalDeviceRes *>(to)->MergeFrom(
static_cast<const LocalDeviceRes &>(from));
}
void LocalDeviceRes::MergeFrom(const LocalDeviceRes& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Local.Status.LocalDeviceRes)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_device_id().empty()) {
_internal_set_device_id(from._internal_device_id());
}
if (!from._internal_soft_version().empty()) {
_internal_set_soft_version(from._internal_soft_version());
}
if (from._internal_result_code() != 0) {
_internal_set_result_code(from._internal_result_code());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LocalDeviceRes::CopyFrom(const LocalDeviceRes& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Local.Status.LocalDeviceRes)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LocalDeviceRes::IsInitialized() const {
return true;
}
void LocalDeviceRes::InternalSwap(LocalDeviceRes* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&device_id_, lhs_arena,
&other->device_id_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&soft_version_, lhs_arena,
&other->soft_version_, rhs_arena
);
swap(result_code_, other->result_code_);
}
::PROTOBUF_NAMESPACE_ID::Metadata LocalDeviceRes::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_Local_2eStatus_2eproto_getter, &descriptor_table_Local_2eStatus_2eproto_once,
file_level_metadata_Local_2eStatus_2eproto[1]);
}
// ===================================================================
class LocalMqttReq::_Internal {
public:
};
LocalMqttReq::LocalMqttReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:Local.Status.LocalMqttReq)
}
LocalMqttReq::LocalMqttReq(const LocalMqttReq& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&status_, &from.status_,
static_cast<size_t>(reinterpret_cast<char*>(&last_down_) -
reinterpret_cast<char*>(&status_)) + sizeof(last_down_));
// @@protoc_insertion_point(copy_constructor:Local.Status.LocalMqttReq)
}
inline void LocalMqttReq::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&status_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&last_down_) -
reinterpret_cast<char*>(&status_)) + sizeof(last_down_));
}
LocalMqttReq::~LocalMqttReq() {
// @@protoc_insertion_point(destructor:Local.Status.LocalMqttReq)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void LocalMqttReq::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void LocalMqttReq::ArenaDtor(void* object) {
LocalMqttReq* _this = reinterpret_cast< LocalMqttReq* >(object);
(void)_this;
}
void LocalMqttReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void LocalMqttReq::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void LocalMqttReq::Clear() {
// @@protoc_insertion_point(message_clear_start:Local.Status.LocalMqttReq)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&status_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&last_down_) -
reinterpret_cast<char*>(&status_)) + sizeof(last_down_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LocalMqttReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 status = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint32 delay = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
delay_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint64 last_up = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
last_up_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint64 last_down = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
last_down_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* LocalMqttReq::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:Local.Status.LocalMqttReq)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 status = 1;
if (this->_internal_status() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_status(), target);
}
// uint32 delay = 2;
if (this->_internal_delay() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_delay(), target);
}
// uint64 last_up = 3;
if (this->_internal_last_up() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_last_up(), target);
}
// uint64 last_down = 4;
if (this->_internal_last_down() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_last_down(), 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:Local.Status.LocalMqttReq)
return target;
}
size_t LocalMqttReq::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Local.Status.LocalMqttReq)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 status = 1;
if (this->_internal_status() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_status());
}
// uint32 delay = 2;
if (this->_internal_delay() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_delay());
}
// uint64 last_up = 3;
if (this->_internal_last_up() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_last_up());
}
// uint64 last_down = 4;
if (this->_internal_last_down() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_last_down());
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalMqttReq::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
LocalMqttReq::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalMqttReq::GetClassData() const { return &_class_data_; }
void LocalMqttReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<LocalMqttReq *>(to)->MergeFrom(
static_cast<const LocalMqttReq &>(from));
}
void LocalMqttReq::MergeFrom(const LocalMqttReq& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Local.Status.LocalMqttReq)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_status() != 0) {
_internal_set_status(from._internal_status());
}
if (from._internal_delay() != 0) {
_internal_set_delay(from._internal_delay());
}
if (from._internal_last_up() != 0) {
_internal_set_last_up(from._internal_last_up());
}
if (from._internal_last_down() != 0) {
_internal_set_last_down(from._internal_last_down());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LocalMqttReq::CopyFrom(const LocalMqttReq& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Local.Status.LocalMqttReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LocalMqttReq::IsInitialized() const {
return true;
}
void LocalMqttReq::InternalSwap(LocalMqttReq* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(LocalMqttReq, last_down_)
+ sizeof(LocalMqttReq::last_down_)
- PROTOBUF_FIELD_OFFSET(LocalMqttReq, status_)>(
reinterpret_cast<char*>(&status_),
reinterpret_cast<char*>(&other->status_));
}
::PROTOBUF_NAMESPACE_ID::Metadata LocalMqttReq::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_Local_2eStatus_2eproto_getter, &descriptor_table_Local_2eStatus_2eproto_once,
file_level_metadata_Local_2eStatus_2eproto[2]);
}
// ===================================================================
class LocalMqttRes::_Internal {
public:
};
LocalMqttRes::LocalMqttRes(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:Local.Status.LocalMqttRes)
}
LocalMqttRes::LocalMqttRes(const LocalMqttRes& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
result_code_ = from.result_code_;
// @@protoc_insertion_point(copy_constructor:Local.Status.LocalMqttRes)
}
inline void LocalMqttRes::SharedCtor() {
result_code_ = 0u;
}
LocalMqttRes::~LocalMqttRes() {
// @@protoc_insertion_point(destructor:Local.Status.LocalMqttRes)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void LocalMqttRes::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void LocalMqttRes::ArenaDtor(void* object) {
LocalMqttRes* _this = reinterpret_cast< LocalMqttRes* >(object);
(void)_this;
}
void LocalMqttRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void LocalMqttRes::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void LocalMqttRes::Clear() {
// @@protoc_insertion_point(message_clear_start:Local.Status.LocalMqttRes)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
result_code_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LocalMqttRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 result_code = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
result_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* LocalMqttRes::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:Local.Status.LocalMqttRes)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 result_code = 1;
if (this->_internal_result_code() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_result_code(), 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:Local.Status.LocalMqttRes)
return target;
}
size_t LocalMqttRes::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Local.Status.LocalMqttRes)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 result_code = 1;
if (this->_internal_result_code() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_result_code());
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalMqttRes::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
LocalMqttRes::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalMqttRes::GetClassData() const { return &_class_data_; }
void LocalMqttRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<LocalMqttRes *>(to)->MergeFrom(
static_cast<const LocalMqttRes &>(from));
}
void LocalMqttRes::MergeFrom(const LocalMqttRes& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Local.Status.LocalMqttRes)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_result_code() != 0) {
_internal_set_result_code(from._internal_result_code());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LocalMqttRes::CopyFrom(const LocalMqttRes& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Local.Status.LocalMqttRes)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LocalMqttRes::IsInitialized() const {
return true;
}
void LocalMqttRes::InternalSwap(LocalMqttRes* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(result_code_, other->result_code_);
}
::PROTOBUF_NAMESPACE_ID::Metadata LocalMqttRes::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_Local_2eStatus_2eproto_getter, &descriptor_table_Local_2eStatus_2eproto_once,
file_level_metadata_Local_2eStatus_2eproto[3]);
}
// ===================================================================
class LocalFeedReq::_Internal {
public:
};
LocalFeedReq::LocalFeedReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:Local.Status.LocalFeedReq)
}
LocalFeedReq::LocalFeedReq(const LocalFeedReq& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
last_feed_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
last_feed_time_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_last_feed_time().empty()) {
last_feed_time_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_last_feed_time(),
GetArenaForAllocation());
}
last_feed_weight_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
last_feed_weight_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_last_feed_weight().empty()) {
last_feed_weight_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_last_feed_weight(),
GetArenaForAllocation());
}
::memcpy(&feed_count_, &from.feed_count_,
static_cast<size_t>(reinterpret_cast<char*>(&feed_weight_) -
reinterpret_cast<char*>(&feed_count_)) + sizeof(feed_weight_));
// @@protoc_insertion_point(copy_constructor:Local.Status.LocalFeedReq)
}
inline void LocalFeedReq::SharedCtor() {
last_feed_time_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
last_feed_time_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
last_feed_weight_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
last_feed_weight_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&feed_count_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&feed_weight_) -
reinterpret_cast<char*>(&feed_count_)) + sizeof(feed_weight_));
}
LocalFeedReq::~LocalFeedReq() {
// @@protoc_insertion_point(destructor:Local.Status.LocalFeedReq)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void LocalFeedReq::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
last_feed_time_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
last_feed_weight_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void LocalFeedReq::ArenaDtor(void* object) {
LocalFeedReq* _this = reinterpret_cast< LocalFeedReq* >(object);
(void)_this;
}
void LocalFeedReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void LocalFeedReq::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void LocalFeedReq::Clear() {
// @@protoc_insertion_point(message_clear_start:Local.Status.LocalFeedReq)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
last_feed_time_.ClearToEmpty();
last_feed_weight_.ClearToEmpty();
::memset(&feed_count_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&feed_weight_) -
reinterpret_cast<char*>(&feed_count_)) + sizeof(feed_weight_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LocalFeedReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 feed_count = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
feed_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint32 feed_weight = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
feed_weight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string last_feed_time = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
auto str = _internal_mutable_last_feed_time();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Local.Status.LocalFeedReq.last_feed_time"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string last_feed_weight = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
auto str = _internal_mutable_last_feed_weight();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Local.Status.LocalFeedReq.last_feed_weight"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* LocalFeedReq::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:Local.Status.LocalFeedReq)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 feed_count = 1;
if (this->_internal_feed_count() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_feed_count(), target);
}
// uint32 feed_weight = 2;
if (this->_internal_feed_weight() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_feed_weight(), target);
}
// string last_feed_time = 3;
if (!this->_internal_last_feed_time().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_last_feed_time().data(), static_cast<int>(this->_internal_last_feed_time().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"Local.Status.LocalFeedReq.last_feed_time");
target = stream->WriteStringMaybeAliased(
3, this->_internal_last_feed_time(), target);
}
// string last_feed_weight = 4;
if (!this->_internal_last_feed_weight().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_last_feed_weight().data(), static_cast<int>(this->_internal_last_feed_weight().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"Local.Status.LocalFeedReq.last_feed_weight");
target = stream->WriteStringMaybeAliased(
4, this->_internal_last_feed_weight(), 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:Local.Status.LocalFeedReq)
return target;
}
size_t LocalFeedReq::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Local.Status.LocalFeedReq)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// string last_feed_time = 3;
if (!this->_internal_last_feed_time().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_last_feed_time());
}
// string last_feed_weight = 4;
if (!this->_internal_last_feed_weight().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_last_feed_weight());
}
// uint32 feed_count = 1;
if (this->_internal_feed_count() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_feed_count());
}
// uint32 feed_weight = 2;
if (this->_internal_feed_weight() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_feed_weight());
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalFeedReq::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
LocalFeedReq::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalFeedReq::GetClassData() const { return &_class_data_; }
void LocalFeedReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<LocalFeedReq *>(to)->MergeFrom(
static_cast<const LocalFeedReq &>(from));
}
void LocalFeedReq::MergeFrom(const LocalFeedReq& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Local.Status.LocalFeedReq)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_last_feed_time().empty()) {
_internal_set_last_feed_time(from._internal_last_feed_time());
}
if (!from._internal_last_feed_weight().empty()) {
_internal_set_last_feed_weight(from._internal_last_feed_weight());
}
if (from._internal_feed_count() != 0) {
_internal_set_feed_count(from._internal_feed_count());
}
if (from._internal_feed_weight() != 0) {
_internal_set_feed_weight(from._internal_feed_weight());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LocalFeedReq::CopyFrom(const LocalFeedReq& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Local.Status.LocalFeedReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LocalFeedReq::IsInitialized() const {
return true;
}
void LocalFeedReq::InternalSwap(LocalFeedReq* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&last_feed_time_, lhs_arena,
&other->last_feed_time_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&last_feed_weight_, lhs_arena,
&other->last_feed_weight_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(LocalFeedReq, feed_weight_)
+ sizeof(LocalFeedReq::feed_weight_)
- PROTOBUF_FIELD_OFFSET(LocalFeedReq, feed_count_)>(
reinterpret_cast<char*>(&feed_count_),
reinterpret_cast<char*>(&other->feed_count_));
}
::PROTOBUF_NAMESPACE_ID::Metadata LocalFeedReq::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_Local_2eStatus_2eproto_getter, &descriptor_table_Local_2eStatus_2eproto_once,
file_level_metadata_Local_2eStatus_2eproto[4]);
}
// ===================================================================
class LocalFeedRes::_Internal {
public:
};
LocalFeedRes::LocalFeedRes(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:Local.Status.LocalFeedRes)
}
LocalFeedRes::LocalFeedRes(const LocalFeedRes& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
result_code_ = from.result_code_;
// @@protoc_insertion_point(copy_constructor:Local.Status.LocalFeedRes)
}
inline void LocalFeedRes::SharedCtor() {
result_code_ = 0u;
}
LocalFeedRes::~LocalFeedRes() {
// @@protoc_insertion_point(destructor:Local.Status.LocalFeedRes)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void LocalFeedRes::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void LocalFeedRes::ArenaDtor(void* object) {
LocalFeedRes* _this = reinterpret_cast< LocalFeedRes* >(object);
(void)_this;
}
void LocalFeedRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void LocalFeedRes::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void LocalFeedRes::Clear() {
// @@protoc_insertion_point(message_clear_start:Local.Status.LocalFeedRes)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
result_code_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LocalFeedRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 result_code = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
result_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* LocalFeedRes::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:Local.Status.LocalFeedRes)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 result_code = 1;
if (this->_internal_result_code() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_result_code(), 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:Local.Status.LocalFeedRes)
return target;
}
size_t LocalFeedRes::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Local.Status.LocalFeedRes)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 result_code = 1;
if (this->_internal_result_code() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_result_code());
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalFeedRes::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
LocalFeedRes::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalFeedRes::GetClassData() const { return &_class_data_; }
void LocalFeedRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<LocalFeedRes *>(to)->MergeFrom(
static_cast<const LocalFeedRes &>(from));
}
void LocalFeedRes::MergeFrom(const LocalFeedRes& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Local.Status.LocalFeedRes)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_result_code() != 0) {
_internal_set_result_code(from._internal_result_code());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LocalFeedRes::CopyFrom(const LocalFeedRes& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Local.Status.LocalFeedRes)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LocalFeedRes::IsInitialized() const {
return true;
}
void LocalFeedRes::InternalSwap(LocalFeedRes* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(result_code_, other->result_code_);
}
::PROTOBUF_NAMESPACE_ID::Metadata LocalFeedRes::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_Local_2eStatus_2eproto_getter, &descriptor_table_Local_2eStatus_2eproto_once,
file_level_metadata_Local_2eStatus_2eproto[5]);
}
// ===================================================================
class LocalHardReq::_Internal {
public:
};
LocalHardReq::LocalHardReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:Local.Status.LocalHardReq)
}
LocalHardReq::LocalHardReq(const LocalHardReq& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&food_remain_, &from.food_remain_,
static_cast<size_t>(reinterpret_cast<char*>(&stuck_) -
reinterpret_cast<char*>(&food_remain_)) + sizeof(stuck_));
// @@protoc_insertion_point(copy_constructor:Local.Status.LocalHardReq)
}
inline void LocalHardReq::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&food_remain_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&stuck_) -
reinterpret_cast<char*>(&food_remain_)) + sizeof(stuck_));
}
LocalHardReq::~LocalHardReq() {
// @@protoc_insertion_point(destructor:Local.Status.LocalHardReq)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void LocalHardReq::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void LocalHardReq::ArenaDtor(void* object) {
LocalHardReq* _this = reinterpret_cast< LocalHardReq* >(object);
(void)_this;
}
void LocalHardReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void LocalHardReq::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void LocalHardReq::Clear() {
// @@protoc_insertion_point(message_clear_start:Local.Status.LocalHardReq)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&food_remain_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&stuck_) -
reinterpret_cast<char*>(&food_remain_)) + sizeof(stuck_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LocalHardReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 food_remain = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
food_remain_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint32 temperature = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
temperature_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bool motor = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
motor_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bool weight = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
weight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bool door = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
door_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bool stuck = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) {
stuck_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* LocalHardReq::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:Local.Status.LocalHardReq)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 food_remain = 1;
if (this->_internal_food_remain() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_food_remain(), target);
}
// uint32 temperature = 2;
if (this->_internal_temperature() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_temperature(), target);
}
// bool motor = 3;
if (this->_internal_motor() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_motor(), target);
}
// bool weight = 4;
if (this->_internal_weight() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_weight(), target);
}
// bool door = 5;
if (this->_internal_door() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_door(), target);
}
// bool stuck = 6;
if (this->_internal_stuck() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_stuck(), 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:Local.Status.LocalHardReq)
return target;
}
size_t LocalHardReq::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Local.Status.LocalHardReq)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 food_remain = 1;
if (this->_internal_food_remain() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_food_remain());
}
// uint32 temperature = 2;
if (this->_internal_temperature() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_temperature());
}
// bool motor = 3;
if (this->_internal_motor() != 0) {
total_size += 1 + 1;
}
// bool weight = 4;
if (this->_internal_weight() != 0) {
total_size += 1 + 1;
}
// bool door = 5;
if (this->_internal_door() != 0) {
total_size += 1 + 1;
}
// bool stuck = 6;
if (this->_internal_stuck() != 0) {
total_size += 1 + 1;
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalHardReq::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
LocalHardReq::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalHardReq::GetClassData() const { return &_class_data_; }
void LocalHardReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<LocalHardReq *>(to)->MergeFrom(
static_cast<const LocalHardReq &>(from));
}
void LocalHardReq::MergeFrom(const LocalHardReq& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Local.Status.LocalHardReq)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_food_remain() != 0) {
_internal_set_food_remain(from._internal_food_remain());
}
if (from._internal_temperature() != 0) {
_internal_set_temperature(from._internal_temperature());
}
if (from._internal_motor() != 0) {
_internal_set_motor(from._internal_motor());
}
if (from._internal_weight() != 0) {
_internal_set_weight(from._internal_weight());
}
if (from._internal_door() != 0) {
_internal_set_door(from._internal_door());
}
if (from._internal_stuck() != 0) {
_internal_set_stuck(from._internal_stuck());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LocalHardReq::CopyFrom(const LocalHardReq& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Local.Status.LocalHardReq)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LocalHardReq::IsInitialized() const {
return true;
}
void LocalHardReq::InternalSwap(LocalHardReq* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(LocalHardReq, stuck_)
+ sizeof(LocalHardReq::stuck_)
- PROTOBUF_FIELD_OFFSET(LocalHardReq, food_remain_)>(
reinterpret_cast<char*>(&food_remain_),
reinterpret_cast<char*>(&other->food_remain_));
}
::PROTOBUF_NAMESPACE_ID::Metadata LocalHardReq::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_Local_2eStatus_2eproto_getter, &descriptor_table_Local_2eStatus_2eproto_once,
file_level_metadata_Local_2eStatus_2eproto[6]);
}
// ===================================================================
class LocalHardRes::_Internal {
public:
};
LocalHardRes::LocalHardRes(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:Local.Status.LocalHardRes)
}
LocalHardRes::LocalHardRes(const LocalHardRes& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&action_, &from.action_,
static_cast<size_t>(reinterpret_cast<char*>(&result_code_) -
reinterpret_cast<char*>(&action_)) + sizeof(result_code_));
// @@protoc_insertion_point(copy_constructor:Local.Status.LocalHardRes)
}
inline void LocalHardRes::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&action_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&result_code_) -
reinterpret_cast<char*>(&action_)) + sizeof(result_code_));
}
LocalHardRes::~LocalHardRes() {
// @@protoc_insertion_point(destructor:Local.Status.LocalHardRes)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void LocalHardRes::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void LocalHardRes::ArenaDtor(void* object) {
LocalHardRes* _this = reinterpret_cast< LocalHardRes* >(object);
(void)_this;
}
void LocalHardRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void LocalHardRes::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void LocalHardRes::Clear() {
// @@protoc_insertion_point(message_clear_start:Local.Status.LocalHardRes)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&action_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&result_code_) -
reinterpret_cast<char*>(&action_)) + sizeof(result_code_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* LocalHardRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint32 action = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
action_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint32 result_code = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
result_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* LocalHardRes::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:Local.Status.LocalHardRes)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 action = 1;
if (this->_internal_action() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_action(), target);
}
// uint32 result_code = 2;
if (this->_internal_result_code() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_result_code(), 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:Local.Status.LocalHardRes)
return target;
}
size_t LocalHardRes::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Local.Status.LocalHardRes)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 action = 1;
if (this->_internal_action() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_action());
}
// uint32 result_code = 2;
if (this->_internal_result_code() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_result_code());
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalHardRes::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
LocalHardRes::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalHardRes::GetClassData() const { return &_class_data_; }
void LocalHardRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<LocalHardRes *>(to)->MergeFrom(
static_cast<const LocalHardRes &>(from));
}
void LocalHardRes::MergeFrom(const LocalHardRes& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Local.Status.LocalHardRes)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_action() != 0) {
_internal_set_action(from._internal_action());
}
if (from._internal_result_code() != 0) {
_internal_set_result_code(from._internal_result_code());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void LocalHardRes::CopyFrom(const LocalHardRes& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Local.Status.LocalHardRes)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LocalHardRes::IsInitialized() const {
return true;
}
void LocalHardRes::InternalSwap(LocalHardRes* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(LocalHardRes, result_code_)
+ sizeof(LocalHardRes::result_code_)
- PROTOBUF_FIELD_OFFSET(LocalHardRes, action_)>(
reinterpret_cast<char*>(&action_),
reinterpret_cast<char*>(&other->action_));
}
::PROTOBUF_NAMESPACE_ID::Metadata LocalHardRes::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_Local_2eStatus_2eproto_getter, &descriptor_table_Local_2eStatus_2eproto_once,
file_level_metadata_Local_2eStatus_2eproto[7]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace Status
} // namespace Local
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::Local::Status::LocalDeviceReq* Arena::CreateMaybeMessage< ::Local::Status::LocalDeviceReq >(Arena* arena) {
return Arena::CreateMessageInternal< ::Local::Status::LocalDeviceReq >(arena);
}
template<> PROTOBUF_NOINLINE ::Local::Status::LocalDeviceRes* Arena::CreateMaybeMessage< ::Local::Status::LocalDeviceRes >(Arena* arena) {
return Arena::CreateMessageInternal< ::Local::Status::LocalDeviceRes >(arena);
}
template<> PROTOBUF_NOINLINE ::Local::Status::LocalMqttReq* Arena::CreateMaybeMessage< ::Local::Status::LocalMqttReq >(Arena* arena) {
return Arena::CreateMessageInternal< ::Local::Status::LocalMqttReq >(arena);
}
template<> PROTOBUF_NOINLINE ::Local::Status::LocalMqttRes* Arena::CreateMaybeMessage< ::Local::Status::LocalMqttRes >(Arena* arena) {
return Arena::CreateMessageInternal< ::Local::Status::LocalMqttRes >(arena);
}
template<> PROTOBUF_NOINLINE ::Local::Status::LocalFeedReq* Arena::CreateMaybeMessage< ::Local::Status::LocalFeedReq >(Arena* arena) {
return Arena::CreateMessageInternal< ::Local::Status::LocalFeedReq >(arena);
}
template<> PROTOBUF_NOINLINE ::Local::Status::LocalFeedRes* Arena::CreateMaybeMessage< ::Local::Status::LocalFeedRes >(Arena* arena) {
return Arena::CreateMessageInternal< ::Local::Status::LocalFeedRes >(arena);
}
template<> PROTOBUF_NOINLINE ::Local::Status::LocalHardReq* Arena::CreateMaybeMessage< ::Local::Status::LocalHardReq >(Arena* arena) {
return Arena::CreateMessageInternal< ::Local::Status::LocalHardReq >(arena);
}
template<> PROTOBUF_NOINLINE ::Local::Status::LocalHardRes* Arena::CreateMaybeMessage< ::Local::Status::LocalHardRes >(Arena* arena) {
return Arena::CreateMessageInternal< ::Local::Status::LocalHardRes >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>