2025-03-12 18:03:56 +08:00

1226 lines
40 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FBD.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "FBD.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.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)
namespace iot_idl {
namespace {
const ::google::protobuf::Descriptor* SFBDDebugData_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
SFBDDebugData_reflection_ = NULL;
const ::google::protobuf::Descriptor* SFBDDebugRequest_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
SFBDDebugRequest_reflection_ = NULL;
const ::google::protobuf::Descriptor* SFBDDebugResponse_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
SFBDDebugResponse_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* enFbdMsgType_descriptor_ = NULL;
} // namespace
void protobuf_AssignDesc_FBD_2eproto() {
protobuf_AddDesc_FBD_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"FBD.proto");
GOOGLE_CHECK(file != NULL);
SFBDDebugData_descriptor_ = file->message_type(0);
static const int SFBDDebugData_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugData, sinstancename_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugData, noutportindex_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugData, svalue_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugData, nvalid_),
};
SFBDDebugData_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
SFBDDebugData_descriptor_,
SFBDDebugData::default_instance_,
SFBDDebugData_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugData, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugData, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(SFBDDebugData));
SFBDDebugRequest_descriptor_ = file->message_type(1);
static const int SFBDDebugRequest_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugRequest, ngroupid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugRequest, sdiagramname_),
};
SFBDDebugRequest_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
SFBDDebugRequest_descriptor_,
SFBDDebugRequest::default_instance_,
SFBDDebugRequest_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugRequest, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugRequest, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(SFBDDebugRequest));
SFBDDebugResponse_descriptor_ = file->message_type(2);
static const int SFBDDebugResponse_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugResponse, ngroupid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugResponse, sdiagramname_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugResponse, nlastupdatetime_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugResponse, vecblock_),
};
SFBDDebugResponse_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
SFBDDebugResponse_descriptor_,
SFBDDebugResponse::default_instance_,
SFBDDebugResponse_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugResponse, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SFBDDebugResponse, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(SFBDDebugResponse));
enFbdMsgType_descriptor_ = file->enum_type(0);
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_FBD_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
SFBDDebugData_descriptor_, &SFBDDebugData::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
SFBDDebugRequest_descriptor_, &SFBDDebugRequest::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
SFBDDebugResponse_descriptor_, &SFBDDebugResponse::default_instance());
}
} // namespace
void protobuf_ShutdownFile_FBD_2eproto() {
delete SFBDDebugData::default_instance_;
delete SFBDDebugData_reflection_;
delete SFBDDebugRequest::default_instance_;
delete SFBDDebugRequest_reflection_;
delete SFBDDebugResponse::default_instance_;
delete SFBDDebugResponse_reflection_;
}
void protobuf_AddDesc_FBD_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\tFBD.proto\022\007iot_idl\"]\n\rSFBDDebugData\022\025\n"
"\rsInstanceName\030\001 \002(\t\022\025\n\rnOutPortIndex\030\002 "
"\002(\005\022\016\n\006sValue\030\003 \002(\t\022\016\n\006nValid\030\004 \002(\005\":\n\020S"
"FBDDebugRequest\022\020\n\010nGroupId\030\001 \002(\005\022\024\n\014sDi"
"agramName\030\002 \002(\t\"~\n\021SFBDDebugResponse\022\020\n\010"
"nGroupId\030\001 \002(\005\022\024\n\014sDiagramName\030\002 \002(\t\022\027\n\017"
"nLastUpdateTime\030\003 \002(\003\022(\n\010vecBlock\030\004 \003(\0132"
"\026.iot_idl.SFBDDebugData*>\n\014enFbdMsgType\022"
"\026\n\022MT_FBD_E2S_DBG_REQ\020\001\022\026\n\022MT_FBD_S2E_DB"
"G_REP\020\002", 367);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"FBD.proto", &protobuf_RegisterTypes);
SFBDDebugData::default_instance_ = new SFBDDebugData();
SFBDDebugRequest::default_instance_ = new SFBDDebugRequest();
SFBDDebugResponse::default_instance_ = new SFBDDebugResponse();
SFBDDebugData::default_instance_->InitAsDefaultInstance();
SFBDDebugRequest::default_instance_->InitAsDefaultInstance();
SFBDDebugResponse::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_FBD_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_FBD_2eproto {
StaticDescriptorInitializer_FBD_2eproto() {
protobuf_AddDesc_FBD_2eproto();
}
} static_descriptor_initializer_FBD_2eproto_;
const ::google::protobuf::EnumDescriptor* enFbdMsgType_descriptor() {
protobuf_AssignDescriptorsOnce();
return enFbdMsgType_descriptor_;
}
bool enFbdMsgType_IsValid(int value) {
switch(value) {
case 1:
case 2:
return true;
default:
return false;
}
}
// ===================================================================
#ifndef _MSC_VER
const int SFBDDebugData::kSInstanceNameFieldNumber;
const int SFBDDebugData::kNOutPortIndexFieldNumber;
const int SFBDDebugData::kSValueFieldNumber;
const int SFBDDebugData::kNValidFieldNumber;
#endif // !_MSC_VER
SFBDDebugData::SFBDDebugData()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.SFBDDebugData)
}
void SFBDDebugData::InitAsDefaultInstance() {
}
SFBDDebugData::SFBDDebugData(const SFBDDebugData& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.SFBDDebugData)
}
void SFBDDebugData::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
sinstancename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
noutportindex_ = 0;
svalue_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
nvalid_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
SFBDDebugData::~SFBDDebugData() {
// @@protoc_insertion_point(destructor:iot_idl.SFBDDebugData)
SharedDtor();
}
void SFBDDebugData::SharedDtor() {
if (sinstancename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete sinstancename_;
}
if (svalue_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete svalue_;
}
if (this != default_instance_) {
}
}
void SFBDDebugData::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* SFBDDebugData::descriptor() {
protobuf_AssignDescriptorsOnce();
return SFBDDebugData_descriptor_;
}
const SFBDDebugData& SFBDDebugData::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_FBD_2eproto();
return *default_instance_;
}
SFBDDebugData* SFBDDebugData::default_instance_ = NULL;
SFBDDebugData* SFBDDebugData::New() const {
return new SFBDDebugData;
}
void SFBDDebugData::Clear() {
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
&reinterpret_cast<SFBDDebugData*>(16)->f) - \
reinterpret_cast<char*>(16))
#define ZR_(first, last) do { \
size_t f = OFFSET_OF_FIELD_(first); \
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
::memset(&first, 0, n); \
} while (0)
if (_has_bits_[0 / 32] & 15) {
ZR_(noutportindex_, nvalid_);
if (has_sinstancename()) {
if (sinstancename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
sinstancename_->clear();
}
}
if (has_svalue()) {
if (svalue_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
svalue_->clear();
}
}
}
#undef OFFSET_OF_FIELD_
#undef ZR_
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool SFBDDebugData::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.SFBDDebugData)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required string sInstanceName = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_sinstancename()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sinstancename().data(), this->sinstancename().length(),
::google::protobuf::internal::WireFormat::PARSE,
"sinstancename");
} else {
goto handle_unusual;
}
if (input->ExpectTag(16)) goto parse_nOutPortIndex;
break;
}
// required int32 nOutPortIndex = 2;
case 2: {
if (tag == 16) {
parse_nOutPortIndex:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &noutportindex_)));
set_has_noutportindex();
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_sValue;
break;
}
// required string sValue = 3;
case 3: {
if (tag == 26) {
parse_sValue:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_svalue()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->svalue().data(), this->svalue().length(),
::google::protobuf::internal::WireFormat::PARSE,
"svalue");
} else {
goto handle_unusual;
}
if (input->ExpectTag(32)) goto parse_nValid;
break;
}
// required int32 nValid = 4;
case 4: {
if (tag == 32) {
parse_nValid:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &nvalid_)));
set_has_nvalid();
} else {
goto handle_unusual;
}
if (input->ExpectAtEnd()) goto success;
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:iot_idl.SFBDDebugData)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.SFBDDebugData)
return false;
#undef DO_
}
void SFBDDebugData::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.SFBDDebugData)
// required string sInstanceName = 1;
if (has_sinstancename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sinstancename().data(), this->sinstancename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"sinstancename");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->sinstancename(), output);
}
// required int32 nOutPortIndex = 2;
if (has_noutportindex()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->noutportindex(), output);
}
// required string sValue = 3;
if (has_svalue()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->svalue().data(), this->svalue().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"svalue");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->svalue(), output);
}
// required int32 nValid = 4;
if (has_nvalid()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->nvalid(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.SFBDDebugData)
}
::google::protobuf::uint8* SFBDDebugData::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SFBDDebugData)
// required string sInstanceName = 1;
if (has_sinstancename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sinstancename().data(), this->sinstancename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"sinstancename");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->sinstancename(), target);
}
// required int32 nOutPortIndex = 2;
if (has_noutportindex()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->noutportindex(), target);
}
// required string sValue = 3;
if (has_svalue()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->svalue().data(), this->svalue().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"svalue");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->svalue(), target);
}
// required int32 nValid = 4;
if (has_nvalid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->nvalid(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SFBDDebugData)
return target;
}
int SFBDDebugData::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string sInstanceName = 1;
if (has_sinstancename()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->sinstancename());
}
// required int32 nOutPortIndex = 2;
if (has_noutportindex()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->noutportindex());
}
// required string sValue = 3;
if (has_svalue()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->svalue());
}
// required int32 nValid = 4;
if (has_nvalid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->nvalid());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void SFBDDebugData::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const SFBDDebugData* source =
::google::protobuf::internal::dynamic_cast_if_available<const SFBDDebugData*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void SFBDDebugData::MergeFrom(const SFBDDebugData& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_sinstancename()) {
set_sinstancename(from.sinstancename());
}
if (from.has_noutportindex()) {
set_noutportindex(from.noutportindex());
}
if (from.has_svalue()) {
set_svalue(from.svalue());
}
if (from.has_nvalid()) {
set_nvalid(from.nvalid());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void SFBDDebugData::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SFBDDebugData::CopyFrom(const SFBDDebugData& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SFBDDebugData::IsInitialized() const {
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
return true;
}
void SFBDDebugData::Swap(SFBDDebugData* other) {
if (other != this) {
std::swap(sinstancename_, other->sinstancename_);
std::swap(noutportindex_, other->noutportindex_);
std::swap(svalue_, other->svalue_);
std::swap(nvalid_, other->nvalid_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata SFBDDebugData::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = SFBDDebugData_descriptor_;
metadata.reflection = SFBDDebugData_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int SFBDDebugRequest::kNGroupIdFieldNumber;
const int SFBDDebugRequest::kSDiagramNameFieldNumber;
#endif // !_MSC_VER
SFBDDebugRequest::SFBDDebugRequest()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.SFBDDebugRequest)
}
void SFBDDebugRequest::InitAsDefaultInstance() {
}
SFBDDebugRequest::SFBDDebugRequest(const SFBDDebugRequest& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.SFBDDebugRequest)
}
void SFBDDebugRequest::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
ngroupid_ = 0;
sdiagramname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
SFBDDebugRequest::~SFBDDebugRequest() {
// @@protoc_insertion_point(destructor:iot_idl.SFBDDebugRequest)
SharedDtor();
}
void SFBDDebugRequest::SharedDtor() {
if (sdiagramname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete sdiagramname_;
}
if (this != default_instance_) {
}
}
void SFBDDebugRequest::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* SFBDDebugRequest::descriptor() {
protobuf_AssignDescriptorsOnce();
return SFBDDebugRequest_descriptor_;
}
const SFBDDebugRequest& SFBDDebugRequest::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_FBD_2eproto();
return *default_instance_;
}
SFBDDebugRequest* SFBDDebugRequest::default_instance_ = NULL;
SFBDDebugRequest* SFBDDebugRequest::New() const {
return new SFBDDebugRequest;
}
void SFBDDebugRequest::Clear() {
if (_has_bits_[0 / 32] & 3) {
ngroupid_ = 0;
if (has_sdiagramname()) {
if (sdiagramname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
sdiagramname_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool SFBDDebugRequest::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.SFBDDebugRequest)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required int32 nGroupId = 1;
case 1: {
if (tag == 8) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &ngroupid_)));
set_has_ngroupid();
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_sDiagramName;
break;
}
// required string sDiagramName = 2;
case 2: {
if (tag == 18) {
parse_sDiagramName:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_sdiagramname()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sdiagramname().data(), this->sdiagramname().length(),
::google::protobuf::internal::WireFormat::PARSE,
"sdiagramname");
} else {
goto handle_unusual;
}
if (input->ExpectAtEnd()) goto success;
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:iot_idl.SFBDDebugRequest)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.SFBDDebugRequest)
return false;
#undef DO_
}
void SFBDDebugRequest::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.SFBDDebugRequest)
// required int32 nGroupId = 1;
if (has_ngroupid()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->ngroupid(), output);
}
// required string sDiagramName = 2;
if (has_sdiagramname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sdiagramname().data(), this->sdiagramname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"sdiagramname");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->sdiagramname(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.SFBDDebugRequest)
}
::google::protobuf::uint8* SFBDDebugRequest::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SFBDDebugRequest)
// required int32 nGroupId = 1;
if (has_ngroupid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->ngroupid(), target);
}
// required string sDiagramName = 2;
if (has_sdiagramname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sdiagramname().data(), this->sdiagramname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"sdiagramname");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->sdiagramname(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SFBDDebugRequest)
return target;
}
int SFBDDebugRequest::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required int32 nGroupId = 1;
if (has_ngroupid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->ngroupid());
}
// required string sDiagramName = 2;
if (has_sdiagramname()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->sdiagramname());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void SFBDDebugRequest::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const SFBDDebugRequest* source =
::google::protobuf::internal::dynamic_cast_if_available<const SFBDDebugRequest*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void SFBDDebugRequest::MergeFrom(const SFBDDebugRequest& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_ngroupid()) {
set_ngroupid(from.ngroupid());
}
if (from.has_sdiagramname()) {
set_sdiagramname(from.sdiagramname());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void SFBDDebugRequest::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SFBDDebugRequest::CopyFrom(const SFBDDebugRequest& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SFBDDebugRequest::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
return true;
}
void SFBDDebugRequest::Swap(SFBDDebugRequest* other) {
if (other != this) {
std::swap(ngroupid_, other->ngroupid_);
std::swap(sdiagramname_, other->sdiagramname_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata SFBDDebugRequest::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = SFBDDebugRequest_descriptor_;
metadata.reflection = SFBDDebugRequest_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int SFBDDebugResponse::kNGroupIdFieldNumber;
const int SFBDDebugResponse::kSDiagramNameFieldNumber;
const int SFBDDebugResponse::kNLastUpdateTimeFieldNumber;
const int SFBDDebugResponse::kVecBlockFieldNumber;
#endif // !_MSC_VER
SFBDDebugResponse::SFBDDebugResponse()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.SFBDDebugResponse)
}
void SFBDDebugResponse::InitAsDefaultInstance() {
}
SFBDDebugResponse::SFBDDebugResponse(const SFBDDebugResponse& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.SFBDDebugResponse)
}
void SFBDDebugResponse::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
ngroupid_ = 0;
sdiagramname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
nlastupdatetime_ = GOOGLE_LONGLONG(0);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
SFBDDebugResponse::~SFBDDebugResponse() {
// @@protoc_insertion_point(destructor:iot_idl.SFBDDebugResponse)
SharedDtor();
}
void SFBDDebugResponse::SharedDtor() {
if (sdiagramname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete sdiagramname_;
}
if (this != default_instance_) {
}
}
void SFBDDebugResponse::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* SFBDDebugResponse::descriptor() {
protobuf_AssignDescriptorsOnce();
return SFBDDebugResponse_descriptor_;
}
const SFBDDebugResponse& SFBDDebugResponse::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_FBD_2eproto();
return *default_instance_;
}
SFBDDebugResponse* SFBDDebugResponse::default_instance_ = NULL;
SFBDDebugResponse* SFBDDebugResponse::New() const {
return new SFBDDebugResponse;
}
void SFBDDebugResponse::Clear() {
if (_has_bits_[0 / 32] & 7) {
ngroupid_ = 0;
if (has_sdiagramname()) {
if (sdiagramname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
sdiagramname_->clear();
}
}
nlastupdatetime_ = GOOGLE_LONGLONG(0);
}
vecblock_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool SFBDDebugResponse::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.SFBDDebugResponse)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required int32 nGroupId = 1;
case 1: {
if (tag == 8) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &ngroupid_)));
set_has_ngroupid();
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_sDiagramName;
break;
}
// required string sDiagramName = 2;
case 2: {
if (tag == 18) {
parse_sDiagramName:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_sdiagramname()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sdiagramname().data(), this->sdiagramname().length(),
::google::protobuf::internal::WireFormat::PARSE,
"sdiagramname");
} else {
goto handle_unusual;
}
if (input->ExpectTag(24)) goto parse_nLastUpdateTime;
break;
}
// required int64 nLastUpdateTime = 3;
case 3: {
if (tag == 24) {
parse_nLastUpdateTime:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &nlastupdatetime_)));
set_has_nlastupdatetime();
} else {
goto handle_unusual;
}
if (input->ExpectTag(34)) goto parse_vecBlock;
break;
}
// repeated .iot_idl.SFBDDebugData vecBlock = 4;
case 4: {
if (tag == 34) {
parse_vecBlock:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_vecblock()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(34)) goto parse_vecBlock;
if (input->ExpectAtEnd()) goto success;
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:iot_idl.SFBDDebugResponse)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.SFBDDebugResponse)
return false;
#undef DO_
}
void SFBDDebugResponse::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.SFBDDebugResponse)
// required int32 nGroupId = 1;
if (has_ngroupid()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->ngroupid(), output);
}
// required string sDiagramName = 2;
if (has_sdiagramname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sdiagramname().data(), this->sdiagramname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"sdiagramname");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->sdiagramname(), output);
}
// required int64 nLastUpdateTime = 3;
if (has_nlastupdatetime()) {
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->nlastupdatetime(), output);
}
// repeated .iot_idl.SFBDDebugData vecBlock = 4;
for (int i = 0; i < this->vecblock_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->vecblock(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.SFBDDebugResponse)
}
::google::protobuf::uint8* SFBDDebugResponse::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SFBDDebugResponse)
// required int32 nGroupId = 1;
if (has_ngroupid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->ngroupid(), target);
}
// required string sDiagramName = 2;
if (has_sdiagramname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->sdiagramname().data(), this->sdiagramname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"sdiagramname");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->sdiagramname(), target);
}
// required int64 nLastUpdateTime = 3;
if (has_nlastupdatetime()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->nlastupdatetime(), target);
}
// repeated .iot_idl.SFBDDebugData vecBlock = 4;
for (int i = 0; i < this->vecblock_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->vecblock(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SFBDDebugResponse)
return target;
}
int SFBDDebugResponse::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required int32 nGroupId = 1;
if (has_ngroupid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->ngroupid());
}
// required string sDiagramName = 2;
if (has_sdiagramname()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->sdiagramname());
}
// required int64 nLastUpdateTime = 3;
if (has_nlastupdatetime()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->nlastupdatetime());
}
}
// repeated .iot_idl.SFBDDebugData vecBlock = 4;
total_size += 1 * this->vecblock_size();
for (int i = 0; i < this->vecblock_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->vecblock(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void SFBDDebugResponse::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const SFBDDebugResponse* source =
::google::protobuf::internal::dynamic_cast_if_available<const SFBDDebugResponse*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void SFBDDebugResponse::MergeFrom(const SFBDDebugResponse& from) {
GOOGLE_CHECK_NE(&from, this);
vecblock_.MergeFrom(from.vecblock_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_ngroupid()) {
set_ngroupid(from.ngroupid());
}
if (from.has_sdiagramname()) {
set_sdiagramname(from.sdiagramname());
}
if (from.has_nlastupdatetime()) {
set_nlastupdatetime(from.nlastupdatetime());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void SFBDDebugResponse::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SFBDDebugResponse::CopyFrom(const SFBDDebugResponse& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SFBDDebugResponse::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->vecblock())) return false;
return true;
}
void SFBDDebugResponse::Swap(SFBDDebugResponse* other) {
if (other != this) {
std::swap(ngroupid_, other->ngroupid_);
std::swap(sdiagramname_, other->sdiagramname_);
std::swap(nlastupdatetime_, other->nlastupdatetime_);
vecblock_.Swap(&other->vecblock_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata SFBDDebugResponse::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = SFBDDebugResponse_descriptor_;
metadata.reflection = SFBDDebugResponse_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace iot_idl
// @@protoc_insertion_point(global_scope)