HM-SPMS/platform/src/idl_files/RdbServerMessage.pb.cc
2025-03-12 18:03:56 +08:00

4928 lines
161 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RdbServerMessage.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "RdbServerMessage.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* RdbCondition_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbCondition_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbRecord_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbRecord_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbUpdateValue_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbUpdateValue_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbQuery_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbQuery_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbInsert_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbInsert_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbRemove_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbRemove_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbUpdate_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbUpdate_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbLockTable_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbLockTable_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbRet_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbRet_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbRequest_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbRequest_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbReply_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbReply_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbReplace_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbReplace_reflection_ = NULL;
const ::google::protobuf::Descriptor* RdbSynUpdate_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RdbSynUpdate_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* enRdbServerMessage_descriptor_ = NULL;
} // namespace
void protobuf_AssignDesc_RdbServerMessage_2eproto() {
protobuf_AddDesc_RdbServerMessage_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"RdbServerMessage.proto");
GOOGLE_CHECK(file != NULL);
RdbCondition_descriptor_ = file->message_type(0);
static const int RdbCondition_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbCondition, enlogic_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbCondition, enrelation_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbCondition, strcolumnname_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbCondition, msgvalue_),
};
RdbCondition_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbCondition_descriptor_,
RdbCondition::default_instance_,
RdbCondition_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbCondition, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbCondition, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbCondition));
RdbRecord_descriptor_ = file->message_type(1);
static const int RdbRecord_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRecord, msgvaluearray_),
};
RdbRecord_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbRecord_descriptor_,
RdbRecord::default_instance_,
RdbRecord_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRecord, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRecord, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbRecord));
RdbUpdateValue_descriptor_ = file->message_type(2);
static const int RdbUpdateValue_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdateValue, strcolumnname_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdateValue, msgvalue_),
};
RdbUpdateValue_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbUpdateValue_descriptor_,
RdbUpdateValue::default_instance_,
RdbUpdateValue_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdateValue, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdateValue, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbUpdateValue));
RdbQuery_descriptor_ = file->message_type(3);
static const int RdbQuery_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbQuery, strtablename_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbQuery, strselectcolnamearr_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbQuery, strordercolnamearr_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbQuery, msgcondition_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbQuery, nasc_),
};
RdbQuery_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbQuery_descriptor_,
RdbQuery::default_instance_,
RdbQuery_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbQuery, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbQuery, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbQuery));
RdbInsert_descriptor_ = file->message_type(4);
static const int RdbInsert_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbInsert, strtablename_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbInsert, strcolumnname_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbInsert, msgdata_),
};
RdbInsert_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbInsert_descriptor_,
RdbInsert::default_instance_,
RdbInsert_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbInsert, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbInsert, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbInsert));
RdbRemove_descriptor_ = file->message_type(5);
static const int RdbRemove_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRemove, strtablename_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRemove, msgcondtionarray_),
};
RdbRemove_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbRemove_descriptor_,
RdbRemove::default_instance_,
RdbRemove_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRemove, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRemove, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbRemove));
RdbUpdate_descriptor_ = file->message_type(6);
static const int RdbUpdate_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdate, strtablename_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdate, msgcondition_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdate, msgupdatevalue_),
};
RdbUpdate_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbUpdate_descriptor_,
RdbUpdate::default_instance_,
RdbUpdate_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdate, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbUpdate, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbUpdate));
RdbLockTable_descriptor_ = file->message_type(7);
static const int RdbLockTable_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbLockTable, strtablename_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbLockTable, block_),
};
RdbLockTable_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbLockTable_descriptor_,
RdbLockTable::default_instance_,
RdbLockTable_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbLockTable, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbLockTable, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbLockTable));
RdbRet_descriptor_ = file->message_type(8);
static const int RdbRet_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRet, ret_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRet, msgrecord_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRet, strerr_),
};
RdbRet_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbRet_descriptor_,
RdbRet::default_instance_,
RdbRet_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRet, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRet, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbRet));
RdbRequest_descriptor_ = file->message_type(9);
static const int RdbRequest_offsets_[7] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, strsessionid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, strpackageid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, msgquery_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, msginsert_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, msgremove_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, msgupdate_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, msglock_),
};
RdbRequest_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbRequest_descriptor_,
RdbRequest::default_instance_,
RdbRequest_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbRequest, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbRequest));
RdbReply_descriptor_ = file->message_type(10);
static const int RdbReply_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReply, strsessionid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReply, strpackageid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReply, ret_),
};
RdbReply_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbReply_descriptor_,
RdbReply::default_instance_,
RdbReply_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReply, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReply, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbReply));
RdbReplace_descriptor_ = file->message_type(11);
static const int RdbReplace_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReplace, strsessionid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReplace, strtablename_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReplace, msgupdate_),
};
RdbReplace_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbReplace_descriptor_,
RdbReplace::default_instance_,
RdbReplace_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReplace, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbReplace, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbReplace));
RdbSynUpdate_descriptor_ = file->message_type(12);
static const int RdbSynUpdate_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbSynUpdate, msgcondition_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbSynUpdate, msgupdatevalue_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbSynUpdate, strkeys_),
};
RdbSynUpdate_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RdbSynUpdate_descriptor_,
RdbSynUpdate::default_instance_,
RdbSynUpdate_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbSynUpdate, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RdbSynUpdate, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RdbSynUpdate));
enRdbServerMessage_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_RdbServerMessage_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbCondition_descriptor_, &RdbCondition::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbRecord_descriptor_, &RdbRecord::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbUpdateValue_descriptor_, &RdbUpdateValue::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbQuery_descriptor_, &RdbQuery::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbInsert_descriptor_, &RdbInsert::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbRemove_descriptor_, &RdbRemove::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbUpdate_descriptor_, &RdbUpdate::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbLockTable_descriptor_, &RdbLockTable::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbRet_descriptor_, &RdbRet::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbRequest_descriptor_, &RdbRequest::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbReply_descriptor_, &RdbReply::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbReplace_descriptor_, &RdbReplace::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RdbSynUpdate_descriptor_, &RdbSynUpdate::default_instance());
}
} // namespace
void protobuf_ShutdownFile_RdbServerMessage_2eproto() {
delete RdbCondition::default_instance_;
delete RdbCondition_reflection_;
delete RdbRecord::default_instance_;
delete RdbRecord_reflection_;
delete RdbUpdateValue::default_instance_;
delete RdbUpdateValue_reflection_;
delete RdbQuery::default_instance_;
delete RdbQuery_reflection_;
delete RdbInsert::default_instance_;
delete RdbInsert_reflection_;
delete RdbRemove::default_instance_;
delete RdbRemove_reflection_;
delete RdbUpdate::default_instance_;
delete RdbUpdate_reflection_;
delete RdbLockTable::default_instance_;
delete RdbLockTable_reflection_;
delete RdbRet::default_instance_;
delete RdbRet_reflection_;
delete RdbRequest::default_instance_;
delete RdbRequest_reflection_;
delete RdbReply::default_instance_;
delete RdbReply_reflection_;
delete RdbReplace::default_instance_;
delete RdbReplace_reflection_;
delete RdbSynUpdate::default_instance_;
delete RdbSynUpdate_reflection_;
}
void protobuf_AddDesc_RdbServerMessage_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::iot_idl::protobuf_AddDesc_Public_2eproto();
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\026RdbServerMessage.proto\022\007iot_idl\032\014Publi"
"c.proto\"\251\001\n\014RdbCondition\022*\n\007enLogic\030\001 \001("
"\0162\031.iot_idl.ENConditionLogic\0220\n\nenRelati"
"on\030\002 \002(\0162\034.iot_idl.ENConditionRelation\022\025"
"\n\rstrColumnName\030\003 \002(\t\022$\n\010msgValue\030\005 \002(\0132"
"\022.iot_idl.SVariable\"6\n\tRdbRecord\022)\n\rmsgV"
"alueArray\030\001 \003(\0132\022.iot_idl.SVariable\"M\n\016R"
"dbUpdateValue\022\025\n\rstrColumnName\030\001 \002(\t\022$\n\010"
"msgValue\030\002 \002(\0132\022.iot_idl.SVariable\"\227\001\n\010R"
"dbQuery\022\024\n\014strTableName\030\001 \002(\t\022\033\n\023strSele"
"ctColNameArr\030\002 \003(\t\022\032\n\022strOrderColNameArr"
"\030\003 \003(\t\022+\n\014msgCondition\030\004 \003(\0132\025.iot_idl.R"
"dbCondition\022\017\n\004nAsc\030\005 \001(\005:\0011\"]\n\tRdbInser"
"t\022\024\n\014strTableName\030\001 \002(\t\022\025\n\rstrColumnName"
"\030\002 \003(\t\022#\n\007msgData\030\003 \003(\0132\022.iot_idl.RdbRec"
"ord\"R\n\tRdbRemove\022\024\n\014strTableName\030\001 \002(\t\022/"
"\n\020msgCondtionArray\030\002 \003(\0132\025.iot_idl.RdbCo"
"ndition\"\177\n\tRdbUpdate\022\024\n\014strTableName\030\001 \002"
"(\t\022+\n\014msgCondition\030\002 \003(\0132\025.iot_idl.RdbCo"
"ndition\022/\n\016msgUpdateValue\030\003 \003(\0132\027.iot_id"
"l.RdbUpdateValue\"3\n\014RdbLockTable\022\024\n\014strT"
"ableName\030\001 \002(\t\022\r\n\005bLock\030\002 \002(\010\"O\n\006RdbRet\022"
"\016\n\003ret\030\002 \002(\005:\0010\022%\n\tmsgRecord\030\003 \003(\0132\022.iot"
"_idl.RdbRecord\022\016\n\006strErr\030\004 \001(\t\"\372\001\n\nRdbRe"
"quest\022\024\n\014strSessionID\030\001 \002(\t\022\024\n\014strPackag"
"eId\030\002 \002(\t\022#\n\010msgQuery\030\004 \001(\0132\021.iot_idl.Rd"
"bQuery\022%\n\tmsgInsert\030\005 \001(\0132\022.iot_idl.RdbI"
"nsert\022%\n\tmsgRemove\030\006 \001(\0132\022.iot_idl.RdbRe"
"move\022%\n\tmsgUpdate\030\007 \001(\0132\022.iot_idl.RdbUpd"
"ate\022&\n\007msgLock\030\010 \001(\0132\025.iot_idl.RdbLockTa"
"ble\"T\n\010RdbReply\022\024\n\014strSessionID\030\001 \002(\t\022\024\n"
"\014strPackageId\030\003 \002(\t\022\034\n\003ret\030\002 \002(\0132\017.iot_i"
"dl.RdbRet\"b\n\nRdbReplace\022\024\n\014strSessionID\030"
"\001 \002(\t\022\024\n\014strTableName\030\002 \002(\t\022(\n\tmsgUpdate"
"\030\003 \003(\0132\025.iot_idl.RdbSynUpdate\"}\n\014RdbSynU"
"pdate\022+\n\014msgCondition\030\001 \003(\0132\025.iot_idl.Rd"
"bCondition\022/\n\016msgUpdateValue\030\002 \003(\0132\027.iot"
"_idl.RdbUpdateValue\022\017\n\007strKeys\030\003 \001(\t*\371\001\n"
"\022enRdbServerMessage\022\036\n\032MT_DBMS_RTDATA_NE"
"T_REQUEST\020\001\022\035\n\031MT_DBMS_RTDATA_NET_REPLAY"
"\020\002\022 \n\034MT_DBMS_RTDATA_NET_DELETECLI\020\003\022\035\n\031"
"MT_DBMS_RTDATA_SYN_SUDDEN\020\004\022\033\n\027MT_DBMS_R"
"TDATA_SYN_SNAP\020\005\022#\n\037MT_DBMS_RTDATA_SYN_S"
"NAP_REQUEST\020\006\022!\n\035MT_DBMS_RTDATA_SYN_VALU"
"ETABLE\020\007", 1768);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"RdbServerMessage.proto", &protobuf_RegisterTypes);
RdbCondition::default_instance_ = new RdbCondition();
RdbRecord::default_instance_ = new RdbRecord();
RdbUpdateValue::default_instance_ = new RdbUpdateValue();
RdbQuery::default_instance_ = new RdbQuery();
RdbInsert::default_instance_ = new RdbInsert();
RdbRemove::default_instance_ = new RdbRemove();
RdbUpdate::default_instance_ = new RdbUpdate();
RdbLockTable::default_instance_ = new RdbLockTable();
RdbRet::default_instance_ = new RdbRet();
RdbRequest::default_instance_ = new RdbRequest();
RdbReply::default_instance_ = new RdbReply();
RdbReplace::default_instance_ = new RdbReplace();
RdbSynUpdate::default_instance_ = new RdbSynUpdate();
RdbCondition::default_instance_->InitAsDefaultInstance();
RdbRecord::default_instance_->InitAsDefaultInstance();
RdbUpdateValue::default_instance_->InitAsDefaultInstance();
RdbQuery::default_instance_->InitAsDefaultInstance();
RdbInsert::default_instance_->InitAsDefaultInstance();
RdbRemove::default_instance_->InitAsDefaultInstance();
RdbUpdate::default_instance_->InitAsDefaultInstance();
RdbLockTable::default_instance_->InitAsDefaultInstance();
RdbRet::default_instance_->InitAsDefaultInstance();
RdbRequest::default_instance_->InitAsDefaultInstance();
RdbReply::default_instance_->InitAsDefaultInstance();
RdbReplace::default_instance_->InitAsDefaultInstance();
RdbSynUpdate::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_RdbServerMessage_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_RdbServerMessage_2eproto {
StaticDescriptorInitializer_RdbServerMessage_2eproto() {
protobuf_AddDesc_RdbServerMessage_2eproto();
}
} static_descriptor_initializer_RdbServerMessage_2eproto_;
const ::google::protobuf::EnumDescriptor* enRdbServerMessage_descriptor() {
protobuf_AssignDescriptorsOnce();
return enRdbServerMessage_descriptor_;
}
bool enRdbServerMessage_IsValid(int value) {
switch(value) {
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
return true;
default:
return false;
}
}
// ===================================================================
#ifndef _MSC_VER
const int RdbCondition::kEnLogicFieldNumber;
const int RdbCondition::kEnRelationFieldNumber;
const int RdbCondition::kStrColumnNameFieldNumber;
const int RdbCondition::kMsgValueFieldNumber;
#endif // !_MSC_VER
RdbCondition::RdbCondition()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbCondition)
}
void RdbCondition::InitAsDefaultInstance() {
msgvalue_ = const_cast< ::iot_idl::SVariable*>(&::iot_idl::SVariable::default_instance());
}
RdbCondition::RdbCondition(const RdbCondition& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbCondition)
}
void RdbCondition::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
enlogic_ = 0;
enrelation_ = 0;
strcolumnname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
msgvalue_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbCondition::~RdbCondition() {
// @@protoc_insertion_point(destructor:iot_idl.RdbCondition)
SharedDtor();
}
void RdbCondition::SharedDtor() {
if (strcolumnname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strcolumnname_;
}
if (this != default_instance_) {
delete msgvalue_;
}
}
void RdbCondition::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbCondition::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbCondition_descriptor_;
}
const RdbCondition& RdbCondition::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbCondition* RdbCondition::default_instance_ = NULL;
RdbCondition* RdbCondition::New() const {
return new RdbCondition;
}
void RdbCondition::Clear() {
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
&reinterpret_cast<RdbCondition*>(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_(enlogic_, enrelation_);
if (has_strcolumnname()) {
if (strcolumnname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strcolumnname_->clear();
}
}
if (has_msgvalue()) {
if (msgvalue_ != NULL) msgvalue_->::iot_idl::SVariable::Clear();
}
}
#undef OFFSET_OF_FIELD_
#undef ZR_
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbCondition::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbCondition)
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)) {
// optional .iot_idl.ENConditionLogic enLogic = 1;
case 1: {
if (tag == 8) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::iot_idl::ENConditionLogic_IsValid(value)) {
set_enlogic(static_cast< ::iot_idl::ENConditionLogic >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_unusual;
}
if (input->ExpectTag(16)) goto parse_enRelation;
break;
}
// required .iot_idl.ENConditionRelation enRelation = 2;
case 2: {
if (tag == 16) {
parse_enRelation:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::iot_idl::ENConditionRelation_IsValid(value)) {
set_enrelation(static_cast< ::iot_idl::ENConditionRelation >(value));
} else {
mutable_unknown_fields()->AddVarint(2, value);
}
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_strColumnName;
break;
}
// required string strColumnName = 3;
case 3: {
if (tag == 26) {
parse_strColumnName:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strcolumnname()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname().data(), this->strcolumnname().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strcolumnname");
} else {
goto handle_unusual;
}
if (input->ExpectTag(42)) goto parse_msgValue;
break;
}
// required .iot_idl.SVariable msgValue = 5;
case 5: {
if (tag == 42) {
parse_msgValue:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_msgvalue()));
} 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.RdbCondition)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbCondition)
return false;
#undef DO_
}
void RdbCondition::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbCondition)
// optional .iot_idl.ENConditionLogic enLogic = 1;
if (has_enlogic()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->enlogic(), output);
}
// required .iot_idl.ENConditionRelation enRelation = 2;
if (has_enrelation()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->enrelation(), output);
}
// required string strColumnName = 3;
if (has_strcolumnname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname().data(), this->strcolumnname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strcolumnname");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->strcolumnname(), output);
}
// required .iot_idl.SVariable msgValue = 5;
if (has_msgvalue()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->msgvalue(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbCondition)
}
::google::protobuf::uint8* RdbCondition::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbCondition)
// optional .iot_idl.ENConditionLogic enLogic = 1;
if (has_enlogic()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->enlogic(), target);
}
// required .iot_idl.ENConditionRelation enRelation = 2;
if (has_enrelation()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->enrelation(), target);
}
// required string strColumnName = 3;
if (has_strcolumnname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname().data(), this->strcolumnname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strcolumnname");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->strcolumnname(), target);
}
// required .iot_idl.SVariable msgValue = 5;
if (has_msgvalue()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->msgvalue(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbCondition)
return target;
}
int RdbCondition::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .iot_idl.ENConditionLogic enLogic = 1;
if (has_enlogic()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->enlogic());
}
// required .iot_idl.ENConditionRelation enRelation = 2;
if (has_enrelation()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->enrelation());
}
// required string strColumnName = 3;
if (has_strcolumnname()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strcolumnname());
}
// required .iot_idl.SVariable msgValue = 5;
if (has_msgvalue()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgvalue());
}
}
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 RdbCondition::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbCondition* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbCondition*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbCondition::MergeFrom(const RdbCondition& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_enlogic()) {
set_enlogic(from.enlogic());
}
if (from.has_enrelation()) {
set_enrelation(from.enrelation());
}
if (from.has_strcolumnname()) {
set_strcolumnname(from.strcolumnname());
}
if (from.has_msgvalue()) {
mutable_msgvalue()->::iot_idl::SVariable::MergeFrom(from.msgvalue());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbCondition::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbCondition::CopyFrom(const RdbCondition& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbCondition::IsInitialized() const {
if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false;
if (has_msgvalue()) {
if (!this->msgvalue().IsInitialized()) return false;
}
return true;
}
void RdbCondition::Swap(RdbCondition* other) {
if (other != this) {
std::swap(enlogic_, other->enlogic_);
std::swap(enrelation_, other->enrelation_);
std::swap(strcolumnname_, other->strcolumnname_);
std::swap(msgvalue_, other->msgvalue_);
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 RdbCondition::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbCondition_descriptor_;
metadata.reflection = RdbCondition_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbRecord::kMsgValueArrayFieldNumber;
#endif // !_MSC_VER
RdbRecord::RdbRecord()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbRecord)
}
void RdbRecord::InitAsDefaultInstance() {
}
RdbRecord::RdbRecord(const RdbRecord& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbRecord)
}
void RdbRecord::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbRecord::~RdbRecord() {
// @@protoc_insertion_point(destructor:iot_idl.RdbRecord)
SharedDtor();
}
void RdbRecord::SharedDtor() {
if (this != default_instance_) {
}
}
void RdbRecord::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbRecord::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbRecord_descriptor_;
}
const RdbRecord& RdbRecord::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbRecord* RdbRecord::default_instance_ = NULL;
RdbRecord* RdbRecord::New() const {
return new RdbRecord;
}
void RdbRecord::Clear() {
msgvaluearray_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbRecord::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbRecord)
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)) {
// repeated .iot_idl.SVariable msgValueArray = 1;
case 1: {
if (tag == 10) {
parse_msgValueArray:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgvaluearray()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(10)) goto parse_msgValueArray;
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.RdbRecord)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbRecord)
return false;
#undef DO_
}
void RdbRecord::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbRecord)
// repeated .iot_idl.SVariable msgValueArray = 1;
for (int i = 0; i < this->msgvaluearray_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->msgvaluearray(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbRecord)
}
::google::protobuf::uint8* RdbRecord::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbRecord)
// repeated .iot_idl.SVariable msgValueArray = 1;
for (int i = 0; i < this->msgvaluearray_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->msgvaluearray(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbRecord)
return target;
}
int RdbRecord::ByteSize() const {
int total_size = 0;
// repeated .iot_idl.SVariable msgValueArray = 1;
total_size += 1 * this->msgvaluearray_size();
for (int i = 0; i < this->msgvaluearray_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgvaluearray(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 RdbRecord::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbRecord* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbRecord*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbRecord::MergeFrom(const RdbRecord& from) {
GOOGLE_CHECK_NE(&from, this);
msgvaluearray_.MergeFrom(from.msgvaluearray_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbRecord::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbRecord::CopyFrom(const RdbRecord& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbRecord::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->msgvaluearray())) return false;
return true;
}
void RdbRecord::Swap(RdbRecord* other) {
if (other != this) {
msgvaluearray_.Swap(&other->msgvaluearray_);
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 RdbRecord::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbRecord_descriptor_;
metadata.reflection = RdbRecord_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbUpdateValue::kStrColumnNameFieldNumber;
const int RdbUpdateValue::kMsgValueFieldNumber;
#endif // !_MSC_VER
RdbUpdateValue::RdbUpdateValue()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbUpdateValue)
}
void RdbUpdateValue::InitAsDefaultInstance() {
msgvalue_ = const_cast< ::iot_idl::SVariable*>(&::iot_idl::SVariable::default_instance());
}
RdbUpdateValue::RdbUpdateValue(const RdbUpdateValue& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbUpdateValue)
}
void RdbUpdateValue::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strcolumnname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
msgvalue_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbUpdateValue::~RdbUpdateValue() {
// @@protoc_insertion_point(destructor:iot_idl.RdbUpdateValue)
SharedDtor();
}
void RdbUpdateValue::SharedDtor() {
if (strcolumnname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strcolumnname_;
}
if (this != default_instance_) {
delete msgvalue_;
}
}
void RdbUpdateValue::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbUpdateValue::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbUpdateValue_descriptor_;
}
const RdbUpdateValue& RdbUpdateValue::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbUpdateValue* RdbUpdateValue::default_instance_ = NULL;
RdbUpdateValue* RdbUpdateValue::New() const {
return new RdbUpdateValue;
}
void RdbUpdateValue::Clear() {
if (_has_bits_[0 / 32] & 3) {
if (has_strcolumnname()) {
if (strcolumnname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strcolumnname_->clear();
}
}
if (has_msgvalue()) {
if (msgvalue_ != NULL) msgvalue_->::iot_idl::SVariable::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbUpdateValue::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbUpdateValue)
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 strColumnName = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strcolumnname()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname().data(), this->strcolumnname().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strcolumnname");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_msgValue;
break;
}
// required .iot_idl.SVariable msgValue = 2;
case 2: {
if (tag == 18) {
parse_msgValue:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_msgvalue()));
} 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.RdbUpdateValue)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbUpdateValue)
return false;
#undef DO_
}
void RdbUpdateValue::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbUpdateValue)
// required string strColumnName = 1;
if (has_strcolumnname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname().data(), this->strcolumnname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strcolumnname");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strcolumnname(), output);
}
// required .iot_idl.SVariable msgValue = 2;
if (has_msgvalue()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->msgvalue(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbUpdateValue)
}
::google::protobuf::uint8* RdbUpdateValue::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbUpdateValue)
// required string strColumnName = 1;
if (has_strcolumnname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname().data(), this->strcolumnname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strcolumnname");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strcolumnname(), target);
}
// required .iot_idl.SVariable msgValue = 2;
if (has_msgvalue()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->msgvalue(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbUpdateValue)
return target;
}
int RdbUpdateValue::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strColumnName = 1;
if (has_strcolumnname()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strcolumnname());
}
// required .iot_idl.SVariable msgValue = 2;
if (has_msgvalue()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgvalue());
}
}
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 RdbUpdateValue::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbUpdateValue* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbUpdateValue*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbUpdateValue::MergeFrom(const RdbUpdateValue& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strcolumnname()) {
set_strcolumnname(from.strcolumnname());
}
if (from.has_msgvalue()) {
mutable_msgvalue()->::iot_idl::SVariable::MergeFrom(from.msgvalue());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbUpdateValue::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbUpdateValue::CopyFrom(const RdbUpdateValue& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbUpdateValue::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_msgvalue()) {
if (!this->msgvalue().IsInitialized()) return false;
}
return true;
}
void RdbUpdateValue::Swap(RdbUpdateValue* other) {
if (other != this) {
std::swap(strcolumnname_, other->strcolumnname_);
std::swap(msgvalue_, other->msgvalue_);
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 RdbUpdateValue::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbUpdateValue_descriptor_;
metadata.reflection = RdbUpdateValue_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbQuery::kStrTableNameFieldNumber;
const int RdbQuery::kStrSelectColNameArrFieldNumber;
const int RdbQuery::kStrOrderColNameArrFieldNumber;
const int RdbQuery::kMsgConditionFieldNumber;
const int RdbQuery::kNAscFieldNumber;
#endif // !_MSC_VER
RdbQuery::RdbQuery()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbQuery)
}
void RdbQuery::InitAsDefaultInstance() {
}
RdbQuery::RdbQuery(const RdbQuery& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbQuery)
}
void RdbQuery::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strtablename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
nasc_ = 1;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbQuery::~RdbQuery() {
// @@protoc_insertion_point(destructor:iot_idl.RdbQuery)
SharedDtor();
}
void RdbQuery::SharedDtor() {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strtablename_;
}
if (this != default_instance_) {
}
}
void RdbQuery::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbQuery::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbQuery_descriptor_;
}
const RdbQuery& RdbQuery::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbQuery* RdbQuery::default_instance_ = NULL;
RdbQuery* RdbQuery::New() const {
return new RdbQuery;
}
void RdbQuery::Clear() {
if (_has_bits_[0 / 32] & 17) {
if (has_strtablename()) {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strtablename_->clear();
}
}
nasc_ = 1;
}
strselectcolnamearr_.Clear();
strordercolnamearr_.Clear();
msgcondition_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbQuery::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbQuery)
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 strTableName = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strtablename()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strtablename");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_strSelectColNameArr;
break;
}
// repeated string strSelectColNameArr = 2;
case 2: {
if (tag == 18) {
parse_strSelectColNameArr:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_strselectcolnamearr()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strselectcolnamearr(this->strselectcolnamearr_size() - 1).data(),
this->strselectcolnamearr(this->strselectcolnamearr_size() - 1).length(),
::google::protobuf::internal::WireFormat::PARSE,
"strselectcolnamearr");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_strSelectColNameArr;
if (input->ExpectTag(26)) goto parse_strOrderColNameArr;
break;
}
// repeated string strOrderColNameArr = 3;
case 3: {
if (tag == 26) {
parse_strOrderColNameArr:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_strordercolnamearr()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strordercolnamearr(this->strordercolnamearr_size() - 1).data(),
this->strordercolnamearr(this->strordercolnamearr_size() - 1).length(),
::google::protobuf::internal::WireFormat::PARSE,
"strordercolnamearr");
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_strOrderColNameArr;
if (input->ExpectTag(34)) goto parse_msgCondition;
break;
}
// repeated .iot_idl.RdbCondition msgCondition = 4;
case 4: {
if (tag == 34) {
parse_msgCondition:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgcondition()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(34)) goto parse_msgCondition;
if (input->ExpectTag(40)) goto parse_nAsc;
break;
}
// optional int32 nAsc = 5 [default = 1];
case 5: {
if (tag == 40) {
parse_nAsc:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &nasc_)));
set_has_nasc();
} 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.RdbQuery)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbQuery)
return false;
#undef DO_
}
void RdbQuery::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbQuery)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strtablename(), output);
}
// repeated string strSelectColNameArr = 2;
for (int i = 0; i < this->strselectcolnamearr_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strselectcolnamearr(i).data(), this->strselectcolnamearr(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strselectcolnamearr");
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->strselectcolnamearr(i), output);
}
// repeated string strOrderColNameArr = 3;
for (int i = 0; i < this->strordercolnamearr_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strordercolnamearr(i).data(), this->strordercolnamearr(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strordercolnamearr");
::google::protobuf::internal::WireFormatLite::WriteString(
3, this->strordercolnamearr(i), output);
}
// repeated .iot_idl.RdbCondition msgCondition = 4;
for (int i = 0; i < this->msgcondition_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->msgcondition(i), output);
}
// optional int32 nAsc = 5 [default = 1];
if (has_nasc()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->nasc(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbQuery)
}
::google::protobuf::uint8* RdbQuery::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbQuery)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strtablename(), target);
}
// repeated string strSelectColNameArr = 2;
for (int i = 0; i < this->strselectcolnamearr_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strselectcolnamearr(i).data(), this->strselectcolnamearr(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strselectcolnamearr");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(2, this->strselectcolnamearr(i), target);
}
// repeated string strOrderColNameArr = 3;
for (int i = 0; i < this->strordercolnamearr_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strordercolnamearr(i).data(), this->strordercolnamearr(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strordercolnamearr");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(3, this->strordercolnamearr(i), target);
}
// repeated .iot_idl.RdbCondition msgCondition = 4;
for (int i = 0; i < this->msgcondition_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->msgcondition(i), target);
}
// optional int32 nAsc = 5 [default = 1];
if (has_nasc()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->nasc(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbQuery)
return target;
}
int RdbQuery::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strTableName = 1;
if (has_strtablename()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strtablename());
}
// optional int32 nAsc = 5 [default = 1];
if (has_nasc()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->nasc());
}
}
// repeated string strSelectColNameArr = 2;
total_size += 1 * this->strselectcolnamearr_size();
for (int i = 0; i < this->strselectcolnamearr_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->strselectcolnamearr(i));
}
// repeated string strOrderColNameArr = 3;
total_size += 1 * this->strordercolnamearr_size();
for (int i = 0; i < this->strordercolnamearr_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->strordercolnamearr(i));
}
// repeated .iot_idl.RdbCondition msgCondition = 4;
total_size += 1 * this->msgcondition_size();
for (int i = 0; i < this->msgcondition_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgcondition(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 RdbQuery::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbQuery* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbQuery*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbQuery::MergeFrom(const RdbQuery& from) {
GOOGLE_CHECK_NE(&from, this);
strselectcolnamearr_.MergeFrom(from.strselectcolnamearr_);
strordercolnamearr_.MergeFrom(from.strordercolnamearr_);
msgcondition_.MergeFrom(from.msgcondition_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strtablename()) {
set_strtablename(from.strtablename());
}
if (from.has_nasc()) {
set_nasc(from.nasc());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbQuery::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbQuery::CopyFrom(const RdbQuery& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbQuery::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->msgcondition())) return false;
return true;
}
void RdbQuery::Swap(RdbQuery* other) {
if (other != this) {
std::swap(strtablename_, other->strtablename_);
strselectcolnamearr_.Swap(&other->strselectcolnamearr_);
strordercolnamearr_.Swap(&other->strordercolnamearr_);
msgcondition_.Swap(&other->msgcondition_);
std::swap(nasc_, other->nasc_);
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 RdbQuery::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbQuery_descriptor_;
metadata.reflection = RdbQuery_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbInsert::kStrTableNameFieldNumber;
const int RdbInsert::kStrColumnNameFieldNumber;
const int RdbInsert::kMsgDataFieldNumber;
#endif // !_MSC_VER
RdbInsert::RdbInsert()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbInsert)
}
void RdbInsert::InitAsDefaultInstance() {
}
RdbInsert::RdbInsert(const RdbInsert& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbInsert)
}
void RdbInsert::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strtablename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbInsert::~RdbInsert() {
// @@protoc_insertion_point(destructor:iot_idl.RdbInsert)
SharedDtor();
}
void RdbInsert::SharedDtor() {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strtablename_;
}
if (this != default_instance_) {
}
}
void RdbInsert::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbInsert::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbInsert_descriptor_;
}
const RdbInsert& RdbInsert::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbInsert* RdbInsert::default_instance_ = NULL;
RdbInsert* RdbInsert::New() const {
return new RdbInsert;
}
void RdbInsert::Clear() {
if (has_strtablename()) {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strtablename_->clear();
}
}
strcolumnname_.Clear();
msgdata_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbInsert::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbInsert)
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 strTableName = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strtablename()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strtablename");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_strColumnName;
break;
}
// repeated string strColumnName = 2;
case 2: {
if (tag == 18) {
parse_strColumnName:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_strcolumnname()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname(this->strcolumnname_size() - 1).data(),
this->strcolumnname(this->strcolumnname_size() - 1).length(),
::google::protobuf::internal::WireFormat::PARSE,
"strcolumnname");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_strColumnName;
if (input->ExpectTag(26)) goto parse_msgData;
break;
}
// repeated .iot_idl.RdbRecord msgData = 3;
case 3: {
if (tag == 26) {
parse_msgData:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgdata()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_msgData;
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.RdbInsert)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbInsert)
return false;
#undef DO_
}
void RdbInsert::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbInsert)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strtablename(), output);
}
// repeated string strColumnName = 2;
for (int i = 0; i < this->strcolumnname_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname(i).data(), this->strcolumnname(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strcolumnname");
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->strcolumnname(i), output);
}
// repeated .iot_idl.RdbRecord msgData = 3;
for (int i = 0; i < this->msgdata_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->msgdata(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbInsert)
}
::google::protobuf::uint8* RdbInsert::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbInsert)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strtablename(), target);
}
// repeated string strColumnName = 2;
for (int i = 0; i < this->strcolumnname_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strcolumnname(i).data(), this->strcolumnname(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strcolumnname");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(2, this->strcolumnname(i), target);
}
// repeated .iot_idl.RdbRecord msgData = 3;
for (int i = 0; i < this->msgdata_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->msgdata(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbInsert)
return target;
}
int RdbInsert::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strTableName = 1;
if (has_strtablename()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strtablename());
}
}
// repeated string strColumnName = 2;
total_size += 1 * this->strcolumnname_size();
for (int i = 0; i < this->strcolumnname_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->strcolumnname(i));
}
// repeated .iot_idl.RdbRecord msgData = 3;
total_size += 1 * this->msgdata_size();
for (int i = 0; i < this->msgdata_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgdata(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 RdbInsert::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbInsert* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbInsert*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbInsert::MergeFrom(const RdbInsert& from) {
GOOGLE_CHECK_NE(&from, this);
strcolumnname_.MergeFrom(from.strcolumnname_);
msgdata_.MergeFrom(from.msgdata_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strtablename()) {
set_strtablename(from.strtablename());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbInsert::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbInsert::CopyFrom(const RdbInsert& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbInsert::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->msgdata())) return false;
return true;
}
void RdbInsert::Swap(RdbInsert* other) {
if (other != this) {
std::swap(strtablename_, other->strtablename_);
strcolumnname_.Swap(&other->strcolumnname_);
msgdata_.Swap(&other->msgdata_);
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 RdbInsert::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbInsert_descriptor_;
metadata.reflection = RdbInsert_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbRemove::kStrTableNameFieldNumber;
const int RdbRemove::kMsgCondtionArrayFieldNumber;
#endif // !_MSC_VER
RdbRemove::RdbRemove()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbRemove)
}
void RdbRemove::InitAsDefaultInstance() {
}
RdbRemove::RdbRemove(const RdbRemove& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbRemove)
}
void RdbRemove::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strtablename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbRemove::~RdbRemove() {
// @@protoc_insertion_point(destructor:iot_idl.RdbRemove)
SharedDtor();
}
void RdbRemove::SharedDtor() {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strtablename_;
}
if (this != default_instance_) {
}
}
void RdbRemove::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbRemove::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbRemove_descriptor_;
}
const RdbRemove& RdbRemove::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbRemove* RdbRemove::default_instance_ = NULL;
RdbRemove* RdbRemove::New() const {
return new RdbRemove;
}
void RdbRemove::Clear() {
if (has_strtablename()) {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strtablename_->clear();
}
}
msgcondtionarray_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbRemove::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbRemove)
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 strTableName = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strtablename()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strtablename");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_msgCondtionArray;
break;
}
// repeated .iot_idl.RdbCondition msgCondtionArray = 2;
case 2: {
if (tag == 18) {
parse_msgCondtionArray:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgcondtionarray()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_msgCondtionArray;
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.RdbRemove)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbRemove)
return false;
#undef DO_
}
void RdbRemove::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbRemove)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strtablename(), output);
}
// repeated .iot_idl.RdbCondition msgCondtionArray = 2;
for (int i = 0; i < this->msgcondtionarray_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->msgcondtionarray(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbRemove)
}
::google::protobuf::uint8* RdbRemove::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbRemove)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strtablename(), target);
}
// repeated .iot_idl.RdbCondition msgCondtionArray = 2;
for (int i = 0; i < this->msgcondtionarray_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->msgcondtionarray(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbRemove)
return target;
}
int RdbRemove::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strTableName = 1;
if (has_strtablename()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strtablename());
}
}
// repeated .iot_idl.RdbCondition msgCondtionArray = 2;
total_size += 1 * this->msgcondtionarray_size();
for (int i = 0; i < this->msgcondtionarray_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgcondtionarray(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 RdbRemove::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbRemove* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbRemove*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbRemove::MergeFrom(const RdbRemove& from) {
GOOGLE_CHECK_NE(&from, this);
msgcondtionarray_.MergeFrom(from.msgcondtionarray_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strtablename()) {
set_strtablename(from.strtablename());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbRemove::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbRemove::CopyFrom(const RdbRemove& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbRemove::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->msgcondtionarray())) return false;
return true;
}
void RdbRemove::Swap(RdbRemove* other) {
if (other != this) {
std::swap(strtablename_, other->strtablename_);
msgcondtionarray_.Swap(&other->msgcondtionarray_);
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 RdbRemove::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbRemove_descriptor_;
metadata.reflection = RdbRemove_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbUpdate::kStrTableNameFieldNumber;
const int RdbUpdate::kMsgConditionFieldNumber;
const int RdbUpdate::kMsgUpdateValueFieldNumber;
#endif // !_MSC_VER
RdbUpdate::RdbUpdate()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbUpdate)
}
void RdbUpdate::InitAsDefaultInstance() {
}
RdbUpdate::RdbUpdate(const RdbUpdate& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbUpdate)
}
void RdbUpdate::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strtablename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbUpdate::~RdbUpdate() {
// @@protoc_insertion_point(destructor:iot_idl.RdbUpdate)
SharedDtor();
}
void RdbUpdate::SharedDtor() {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strtablename_;
}
if (this != default_instance_) {
}
}
void RdbUpdate::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbUpdate::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbUpdate_descriptor_;
}
const RdbUpdate& RdbUpdate::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbUpdate* RdbUpdate::default_instance_ = NULL;
RdbUpdate* RdbUpdate::New() const {
return new RdbUpdate;
}
void RdbUpdate::Clear() {
if (has_strtablename()) {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strtablename_->clear();
}
}
msgcondition_.Clear();
msgupdatevalue_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbUpdate::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbUpdate)
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 strTableName = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strtablename()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strtablename");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_msgCondition;
break;
}
// repeated .iot_idl.RdbCondition msgCondition = 2;
case 2: {
if (tag == 18) {
parse_msgCondition:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgcondition()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_msgCondition;
if (input->ExpectTag(26)) goto parse_msgUpdateValue;
break;
}
// repeated .iot_idl.RdbUpdateValue msgUpdateValue = 3;
case 3: {
if (tag == 26) {
parse_msgUpdateValue:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgupdatevalue()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_msgUpdateValue;
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.RdbUpdate)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbUpdate)
return false;
#undef DO_
}
void RdbUpdate::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbUpdate)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strtablename(), output);
}
// repeated .iot_idl.RdbCondition msgCondition = 2;
for (int i = 0; i < this->msgcondition_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->msgcondition(i), output);
}
// repeated .iot_idl.RdbUpdateValue msgUpdateValue = 3;
for (int i = 0; i < this->msgupdatevalue_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->msgupdatevalue(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbUpdate)
}
::google::protobuf::uint8* RdbUpdate::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbUpdate)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strtablename(), target);
}
// repeated .iot_idl.RdbCondition msgCondition = 2;
for (int i = 0; i < this->msgcondition_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->msgcondition(i), target);
}
// repeated .iot_idl.RdbUpdateValue msgUpdateValue = 3;
for (int i = 0; i < this->msgupdatevalue_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->msgupdatevalue(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbUpdate)
return target;
}
int RdbUpdate::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strTableName = 1;
if (has_strtablename()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strtablename());
}
}
// repeated .iot_idl.RdbCondition msgCondition = 2;
total_size += 1 * this->msgcondition_size();
for (int i = 0; i < this->msgcondition_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgcondition(i));
}
// repeated .iot_idl.RdbUpdateValue msgUpdateValue = 3;
total_size += 1 * this->msgupdatevalue_size();
for (int i = 0; i < this->msgupdatevalue_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgupdatevalue(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 RdbUpdate::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbUpdate* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbUpdate*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbUpdate::MergeFrom(const RdbUpdate& from) {
GOOGLE_CHECK_NE(&from, this);
msgcondition_.MergeFrom(from.msgcondition_);
msgupdatevalue_.MergeFrom(from.msgupdatevalue_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strtablename()) {
set_strtablename(from.strtablename());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbUpdate::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbUpdate::CopyFrom(const RdbUpdate& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbUpdate::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->msgcondition())) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->msgupdatevalue())) return false;
return true;
}
void RdbUpdate::Swap(RdbUpdate* other) {
if (other != this) {
std::swap(strtablename_, other->strtablename_);
msgcondition_.Swap(&other->msgcondition_);
msgupdatevalue_.Swap(&other->msgupdatevalue_);
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 RdbUpdate::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbUpdate_descriptor_;
metadata.reflection = RdbUpdate_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbLockTable::kStrTableNameFieldNumber;
const int RdbLockTable::kBLockFieldNumber;
#endif // !_MSC_VER
RdbLockTable::RdbLockTable()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbLockTable)
}
void RdbLockTable::InitAsDefaultInstance() {
}
RdbLockTable::RdbLockTable(const RdbLockTable& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbLockTable)
}
void RdbLockTable::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strtablename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
block_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbLockTable::~RdbLockTable() {
// @@protoc_insertion_point(destructor:iot_idl.RdbLockTable)
SharedDtor();
}
void RdbLockTable::SharedDtor() {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strtablename_;
}
if (this != default_instance_) {
}
}
void RdbLockTable::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbLockTable::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbLockTable_descriptor_;
}
const RdbLockTable& RdbLockTable::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbLockTable* RdbLockTable::default_instance_ = NULL;
RdbLockTable* RdbLockTable::New() const {
return new RdbLockTable;
}
void RdbLockTable::Clear() {
if (_has_bits_[0 / 32] & 3) {
if (has_strtablename()) {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strtablename_->clear();
}
}
block_ = false;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbLockTable::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbLockTable)
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 strTableName = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strtablename()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strtablename");
} else {
goto handle_unusual;
}
if (input->ExpectTag(16)) goto parse_bLock;
break;
}
// required bool bLock = 2;
case 2: {
if (tag == 16) {
parse_bLock:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &block_)));
set_has_block();
} 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.RdbLockTable)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbLockTable)
return false;
#undef DO_
}
void RdbLockTable::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbLockTable)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strtablename(), output);
}
// required bool bLock = 2;
if (has_block()) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->block(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbLockTable)
}
::google::protobuf::uint8* RdbLockTable::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbLockTable)
// required string strTableName = 1;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strtablename(), target);
}
// required bool bLock = 2;
if (has_block()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->block(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbLockTable)
return target;
}
int RdbLockTable::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strTableName = 1;
if (has_strtablename()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strtablename());
}
// required bool bLock = 2;
if (has_block()) {
total_size += 1 + 1;
}
}
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 RdbLockTable::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbLockTable* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbLockTable*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbLockTable::MergeFrom(const RdbLockTable& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strtablename()) {
set_strtablename(from.strtablename());
}
if (from.has_block()) {
set_block(from.block());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbLockTable::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbLockTable::CopyFrom(const RdbLockTable& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbLockTable::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
return true;
}
void RdbLockTable::Swap(RdbLockTable* other) {
if (other != this) {
std::swap(strtablename_, other->strtablename_);
std::swap(block_, other->block_);
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 RdbLockTable::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbLockTable_descriptor_;
metadata.reflection = RdbLockTable_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbRet::kRetFieldNumber;
const int RdbRet::kMsgRecordFieldNumber;
const int RdbRet::kStrErrFieldNumber;
#endif // !_MSC_VER
RdbRet::RdbRet()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbRet)
}
void RdbRet::InitAsDefaultInstance() {
}
RdbRet::RdbRet(const RdbRet& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbRet)
}
void RdbRet::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
ret_ = 0;
strerr_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbRet::~RdbRet() {
// @@protoc_insertion_point(destructor:iot_idl.RdbRet)
SharedDtor();
}
void RdbRet::SharedDtor() {
if (strerr_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strerr_;
}
if (this != default_instance_) {
}
}
void RdbRet::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbRet::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbRet_descriptor_;
}
const RdbRet& RdbRet::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbRet* RdbRet::default_instance_ = NULL;
RdbRet* RdbRet::New() const {
return new RdbRet;
}
void RdbRet::Clear() {
if (_has_bits_[0 / 32] & 5) {
ret_ = 0;
if (has_strerr()) {
if (strerr_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strerr_->clear();
}
}
}
msgrecord_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbRet::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbRet)
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 ret = 2 [default = 0];
case 2: {
if (tag == 16) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &ret_)));
set_has_ret();
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_msgRecord;
break;
}
// repeated .iot_idl.RdbRecord msgRecord = 3;
case 3: {
if (tag == 26) {
parse_msgRecord:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgrecord()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_msgRecord;
if (input->ExpectTag(34)) goto parse_strErr;
break;
}
// optional string strErr = 4;
case 4: {
if (tag == 34) {
parse_strErr:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strerr()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strerr().data(), this->strerr().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strerr");
} 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.RdbRet)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbRet)
return false;
#undef DO_
}
void RdbRet::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbRet)
// required int32 ret = 2 [default = 0];
if (has_ret()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ret(), output);
}
// repeated .iot_idl.RdbRecord msgRecord = 3;
for (int i = 0; i < this->msgrecord_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->msgrecord(i), output);
}
// optional string strErr = 4;
if (has_strerr()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strerr().data(), this->strerr().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strerr");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->strerr(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbRet)
}
::google::protobuf::uint8* RdbRet::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbRet)
// required int32 ret = 2 [default = 0];
if (has_ret()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ret(), target);
}
// repeated .iot_idl.RdbRecord msgRecord = 3;
for (int i = 0; i < this->msgrecord_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->msgrecord(i), target);
}
// optional string strErr = 4;
if (has_strerr()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strerr().data(), this->strerr().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strerr");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->strerr(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbRet)
return target;
}
int RdbRet::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required int32 ret = 2 [default = 0];
if (has_ret()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->ret());
}
// optional string strErr = 4;
if (has_strerr()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strerr());
}
}
// repeated .iot_idl.RdbRecord msgRecord = 3;
total_size += 1 * this->msgrecord_size();
for (int i = 0; i < this->msgrecord_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgrecord(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 RdbRet::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbRet* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbRet*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbRet::MergeFrom(const RdbRet& from) {
GOOGLE_CHECK_NE(&from, this);
msgrecord_.MergeFrom(from.msgrecord_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_ret()) {
set_ret(from.ret());
}
if (from.has_strerr()) {
set_strerr(from.strerr());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbRet::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbRet::CopyFrom(const RdbRet& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbRet::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->msgrecord())) return false;
return true;
}
void RdbRet::Swap(RdbRet* other) {
if (other != this) {
std::swap(ret_, other->ret_);
msgrecord_.Swap(&other->msgrecord_);
std::swap(strerr_, other->strerr_);
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 RdbRet::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbRet_descriptor_;
metadata.reflection = RdbRet_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbRequest::kStrSessionIDFieldNumber;
const int RdbRequest::kStrPackageIdFieldNumber;
const int RdbRequest::kMsgQueryFieldNumber;
const int RdbRequest::kMsgInsertFieldNumber;
const int RdbRequest::kMsgRemoveFieldNumber;
const int RdbRequest::kMsgUpdateFieldNumber;
const int RdbRequest::kMsgLockFieldNumber;
#endif // !_MSC_VER
RdbRequest::RdbRequest()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbRequest)
}
void RdbRequest::InitAsDefaultInstance() {
msgquery_ = const_cast< ::iot_idl::RdbQuery*>(&::iot_idl::RdbQuery::default_instance());
msginsert_ = const_cast< ::iot_idl::RdbInsert*>(&::iot_idl::RdbInsert::default_instance());
msgremove_ = const_cast< ::iot_idl::RdbRemove*>(&::iot_idl::RdbRemove::default_instance());
msgupdate_ = const_cast< ::iot_idl::RdbUpdate*>(&::iot_idl::RdbUpdate::default_instance());
msglock_ = const_cast< ::iot_idl::RdbLockTable*>(&::iot_idl::RdbLockTable::default_instance());
}
RdbRequest::RdbRequest(const RdbRequest& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbRequest)
}
void RdbRequest::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
strpackageid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
msgquery_ = NULL;
msginsert_ = NULL;
msgremove_ = NULL;
msgupdate_ = NULL;
msglock_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbRequest::~RdbRequest() {
// @@protoc_insertion_point(destructor:iot_idl.RdbRequest)
SharedDtor();
}
void RdbRequest::SharedDtor() {
if (strsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strsessionid_;
}
if (strpackageid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strpackageid_;
}
if (this != default_instance_) {
delete msgquery_;
delete msginsert_;
delete msgremove_;
delete msgupdate_;
delete msglock_;
}
}
void RdbRequest::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbRequest::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbRequest_descriptor_;
}
const RdbRequest& RdbRequest::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbRequest* RdbRequest::default_instance_ = NULL;
RdbRequest* RdbRequest::New() const {
return new RdbRequest;
}
void RdbRequest::Clear() {
if (_has_bits_[0 / 32] & 127) {
if (has_strsessionid()) {
if (strsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strsessionid_->clear();
}
}
if (has_strpackageid()) {
if (strpackageid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strpackageid_->clear();
}
}
if (has_msgquery()) {
if (msgquery_ != NULL) msgquery_->::iot_idl::RdbQuery::Clear();
}
if (has_msginsert()) {
if (msginsert_ != NULL) msginsert_->::iot_idl::RdbInsert::Clear();
}
if (has_msgremove()) {
if (msgremove_ != NULL) msgremove_->::iot_idl::RdbRemove::Clear();
}
if (has_msgupdate()) {
if (msgupdate_ != NULL) msgupdate_->::iot_idl::RdbUpdate::Clear();
}
if (has_msglock()) {
if (msglock_ != NULL) msglock_->::iot_idl::RdbLockTable::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbRequest::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbRequest)
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 strSessionID = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strsessionid()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strsessionid");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_strPackageId;
break;
}
// required string strPackageId = 2;
case 2: {
if (tag == 18) {
parse_strPackageId:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strpackageid()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strpackageid().data(), this->strpackageid().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strpackageid");
} else {
goto handle_unusual;
}
if (input->ExpectTag(34)) goto parse_msgQuery;
break;
}
// optional .iot_idl.RdbQuery msgQuery = 4;
case 4: {
if (tag == 34) {
parse_msgQuery:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_msgquery()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(42)) goto parse_msgInsert;
break;
}
// optional .iot_idl.RdbInsert msgInsert = 5;
case 5: {
if (tag == 42) {
parse_msgInsert:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_msginsert()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(50)) goto parse_msgRemove;
break;
}
// optional .iot_idl.RdbRemove msgRemove = 6;
case 6: {
if (tag == 50) {
parse_msgRemove:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_msgremove()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(58)) goto parse_msgUpdate;
break;
}
// optional .iot_idl.RdbUpdate msgUpdate = 7;
case 7: {
if (tag == 58) {
parse_msgUpdate:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_msgupdate()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(66)) goto parse_msgLock;
break;
}
// optional .iot_idl.RdbLockTable msgLock = 8;
case 8: {
if (tag == 66) {
parse_msgLock:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_msglock()));
} 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.RdbRequest)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbRequest)
return false;
#undef DO_
}
void RdbRequest::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbRequest)
// required string strSessionID = 1;
if (has_strsessionid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strsessionid");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strsessionid(), output);
}
// required string strPackageId = 2;
if (has_strpackageid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strpackageid().data(), this->strpackageid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strpackageid");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->strpackageid(), output);
}
// optional .iot_idl.RdbQuery msgQuery = 4;
if (has_msgquery()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->msgquery(), output);
}
// optional .iot_idl.RdbInsert msgInsert = 5;
if (has_msginsert()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->msginsert(), output);
}
// optional .iot_idl.RdbRemove msgRemove = 6;
if (has_msgremove()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, this->msgremove(), output);
}
// optional .iot_idl.RdbUpdate msgUpdate = 7;
if (has_msgupdate()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, this->msgupdate(), output);
}
// optional .iot_idl.RdbLockTable msgLock = 8;
if (has_msglock()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, this->msglock(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbRequest)
}
::google::protobuf::uint8* RdbRequest::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbRequest)
// required string strSessionID = 1;
if (has_strsessionid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strsessionid");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strsessionid(), target);
}
// required string strPackageId = 2;
if (has_strpackageid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strpackageid().data(), this->strpackageid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strpackageid");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->strpackageid(), target);
}
// optional .iot_idl.RdbQuery msgQuery = 4;
if (has_msgquery()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->msgquery(), target);
}
// optional .iot_idl.RdbInsert msgInsert = 5;
if (has_msginsert()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->msginsert(), target);
}
// optional .iot_idl.RdbRemove msgRemove = 6;
if (has_msgremove()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
6, this->msgremove(), target);
}
// optional .iot_idl.RdbUpdate msgUpdate = 7;
if (has_msgupdate()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
7, this->msgupdate(), target);
}
// optional .iot_idl.RdbLockTable msgLock = 8;
if (has_msglock()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
8, this->msglock(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbRequest)
return target;
}
int RdbRequest::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strSessionID = 1;
if (has_strsessionid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strsessionid());
}
// required string strPackageId = 2;
if (has_strpackageid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strpackageid());
}
// optional .iot_idl.RdbQuery msgQuery = 4;
if (has_msgquery()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgquery());
}
// optional .iot_idl.RdbInsert msgInsert = 5;
if (has_msginsert()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msginsert());
}
// optional .iot_idl.RdbRemove msgRemove = 6;
if (has_msgremove()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgremove());
}
// optional .iot_idl.RdbUpdate msgUpdate = 7;
if (has_msgupdate()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgupdate());
}
// optional .iot_idl.RdbLockTable msgLock = 8;
if (has_msglock()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msglock());
}
}
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 RdbRequest::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbRequest* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbRequest*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbRequest::MergeFrom(const RdbRequest& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strsessionid()) {
set_strsessionid(from.strsessionid());
}
if (from.has_strpackageid()) {
set_strpackageid(from.strpackageid());
}
if (from.has_msgquery()) {
mutable_msgquery()->::iot_idl::RdbQuery::MergeFrom(from.msgquery());
}
if (from.has_msginsert()) {
mutable_msginsert()->::iot_idl::RdbInsert::MergeFrom(from.msginsert());
}
if (from.has_msgremove()) {
mutable_msgremove()->::iot_idl::RdbRemove::MergeFrom(from.msgremove());
}
if (from.has_msgupdate()) {
mutable_msgupdate()->::iot_idl::RdbUpdate::MergeFrom(from.msgupdate());
}
if (from.has_msglock()) {
mutable_msglock()->::iot_idl::RdbLockTable::MergeFrom(from.msglock());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbRequest::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbRequest::CopyFrom(const RdbRequest& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbRequest::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_msgquery()) {
if (!this->msgquery().IsInitialized()) return false;
}
if (has_msginsert()) {
if (!this->msginsert().IsInitialized()) return false;
}
if (has_msgremove()) {
if (!this->msgremove().IsInitialized()) return false;
}
if (has_msgupdate()) {
if (!this->msgupdate().IsInitialized()) return false;
}
if (has_msglock()) {
if (!this->msglock().IsInitialized()) return false;
}
return true;
}
void RdbRequest::Swap(RdbRequest* other) {
if (other != this) {
std::swap(strsessionid_, other->strsessionid_);
std::swap(strpackageid_, other->strpackageid_);
std::swap(msgquery_, other->msgquery_);
std::swap(msginsert_, other->msginsert_);
std::swap(msgremove_, other->msgremove_);
std::swap(msgupdate_, other->msgupdate_);
std::swap(msglock_, other->msglock_);
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 RdbRequest::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbRequest_descriptor_;
metadata.reflection = RdbRequest_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbReply::kStrSessionIDFieldNumber;
const int RdbReply::kStrPackageIdFieldNumber;
const int RdbReply::kRetFieldNumber;
#endif // !_MSC_VER
RdbReply::RdbReply()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbReply)
}
void RdbReply::InitAsDefaultInstance() {
ret_ = const_cast< ::iot_idl::RdbRet*>(&::iot_idl::RdbRet::default_instance());
}
RdbReply::RdbReply(const RdbReply& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbReply)
}
void RdbReply::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
strpackageid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
ret_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbReply::~RdbReply() {
// @@protoc_insertion_point(destructor:iot_idl.RdbReply)
SharedDtor();
}
void RdbReply::SharedDtor() {
if (strsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strsessionid_;
}
if (strpackageid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strpackageid_;
}
if (this != default_instance_) {
delete ret_;
}
}
void RdbReply::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbReply::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbReply_descriptor_;
}
const RdbReply& RdbReply::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbReply* RdbReply::default_instance_ = NULL;
RdbReply* RdbReply::New() const {
return new RdbReply;
}
void RdbReply::Clear() {
if (_has_bits_[0 / 32] & 7) {
if (has_strsessionid()) {
if (strsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strsessionid_->clear();
}
}
if (has_strpackageid()) {
if (strpackageid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strpackageid_->clear();
}
}
if (has_ret()) {
if (ret_ != NULL) ret_->::iot_idl::RdbRet::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbReply::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbReply)
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 strSessionID = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strsessionid()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strsessionid");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_ret;
break;
}
// required .iot_idl.RdbRet ret = 2;
case 2: {
if (tag == 18) {
parse_ret:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_ret()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_strPackageId;
break;
}
// required string strPackageId = 3;
case 3: {
if (tag == 26) {
parse_strPackageId:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strpackageid()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strpackageid().data(), this->strpackageid().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strpackageid");
} 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.RdbReply)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbReply)
return false;
#undef DO_
}
void RdbReply::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbReply)
// required string strSessionID = 1;
if (has_strsessionid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strsessionid");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strsessionid(), output);
}
// required .iot_idl.RdbRet ret = 2;
if (has_ret()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->ret(), output);
}
// required string strPackageId = 3;
if (has_strpackageid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strpackageid().data(), this->strpackageid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strpackageid");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->strpackageid(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbReply)
}
::google::protobuf::uint8* RdbReply::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbReply)
// required string strSessionID = 1;
if (has_strsessionid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strsessionid");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strsessionid(), target);
}
// required .iot_idl.RdbRet ret = 2;
if (has_ret()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->ret(), target);
}
// required string strPackageId = 3;
if (has_strpackageid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strpackageid().data(), this->strpackageid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strpackageid");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->strpackageid(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbReply)
return target;
}
int RdbReply::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strSessionID = 1;
if (has_strsessionid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strsessionid());
}
// required string strPackageId = 3;
if (has_strpackageid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strpackageid());
}
// required .iot_idl.RdbRet ret = 2;
if (has_ret()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->ret());
}
}
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 RdbReply::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbReply* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbReply*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbReply::MergeFrom(const RdbReply& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strsessionid()) {
set_strsessionid(from.strsessionid());
}
if (from.has_strpackageid()) {
set_strpackageid(from.strpackageid());
}
if (from.has_ret()) {
mutable_ret()->::iot_idl::RdbRet::MergeFrom(from.ret());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbReply::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbReply::CopyFrom(const RdbReply& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbReply::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
if (has_ret()) {
if (!this->ret().IsInitialized()) return false;
}
return true;
}
void RdbReply::Swap(RdbReply* other) {
if (other != this) {
std::swap(strsessionid_, other->strsessionid_);
std::swap(strpackageid_, other->strpackageid_);
std::swap(ret_, other->ret_);
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 RdbReply::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbReply_descriptor_;
metadata.reflection = RdbReply_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbReplace::kStrSessionIDFieldNumber;
const int RdbReplace::kStrTableNameFieldNumber;
const int RdbReplace::kMsgUpdateFieldNumber;
#endif // !_MSC_VER
RdbReplace::RdbReplace()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbReplace)
}
void RdbReplace::InitAsDefaultInstance() {
}
RdbReplace::RdbReplace(const RdbReplace& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbReplace)
}
void RdbReplace::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
strtablename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbReplace::~RdbReplace() {
// @@protoc_insertion_point(destructor:iot_idl.RdbReplace)
SharedDtor();
}
void RdbReplace::SharedDtor() {
if (strsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strsessionid_;
}
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strtablename_;
}
if (this != default_instance_) {
}
}
void RdbReplace::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbReplace::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbReplace_descriptor_;
}
const RdbReplace& RdbReplace::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbReplace* RdbReplace::default_instance_ = NULL;
RdbReplace* RdbReplace::New() const {
return new RdbReplace;
}
void RdbReplace::Clear() {
if (_has_bits_[0 / 32] & 3) {
if (has_strsessionid()) {
if (strsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strsessionid_->clear();
}
}
if (has_strtablename()) {
if (strtablename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strtablename_->clear();
}
}
}
msgupdate_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbReplace::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbReplace)
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 strSessionID = 1;
case 1: {
if (tag == 10) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strsessionid()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strsessionid");
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_strTableName;
break;
}
// required string strTableName = 2;
case 2: {
if (tag == 18) {
parse_strTableName:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strtablename()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strtablename");
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_msgUpdate;
break;
}
// repeated .iot_idl.RdbSynUpdate msgUpdate = 3;
case 3: {
if (tag == 26) {
parse_msgUpdate:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgupdate()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(26)) goto parse_msgUpdate;
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.RdbReplace)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbReplace)
return false;
#undef DO_
}
void RdbReplace::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbReplace)
// required string strSessionID = 1;
if (has_strsessionid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strsessionid");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->strsessionid(), output);
}
// required string strTableName = 2;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->strtablename(), output);
}
// repeated .iot_idl.RdbSynUpdate msgUpdate = 3;
for (int i = 0; i < this->msgupdate_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->msgupdate(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbReplace)
}
::google::protobuf::uint8* RdbReplace::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbReplace)
// required string strSessionID = 1;
if (has_strsessionid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strsessionid().data(), this->strsessionid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strsessionid");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->strsessionid(), target);
}
// required string strTableName = 2;
if (has_strtablename()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strtablename().data(), this->strtablename().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strtablename");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->strtablename(), target);
}
// repeated .iot_idl.RdbSynUpdate msgUpdate = 3;
for (int i = 0; i < this->msgupdate_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->msgupdate(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbReplace)
return target;
}
int RdbReplace::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string strSessionID = 1;
if (has_strsessionid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strsessionid());
}
// required string strTableName = 2;
if (has_strtablename()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strtablename());
}
}
// repeated .iot_idl.RdbSynUpdate msgUpdate = 3;
total_size += 1 * this->msgupdate_size();
for (int i = 0; i < this->msgupdate_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgupdate(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 RdbReplace::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbReplace* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbReplace*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbReplace::MergeFrom(const RdbReplace& from) {
GOOGLE_CHECK_NE(&from, this);
msgupdate_.MergeFrom(from.msgupdate_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_strsessionid()) {
set_strsessionid(from.strsessionid());
}
if (from.has_strtablename()) {
set_strtablename(from.strtablename());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbReplace::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbReplace::CopyFrom(const RdbReplace& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbReplace::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->msgupdate())) return false;
return true;
}
void RdbReplace::Swap(RdbReplace* other) {
if (other != this) {
std::swap(strsessionid_, other->strsessionid_);
std::swap(strtablename_, other->strtablename_);
msgupdate_.Swap(&other->msgupdate_);
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 RdbReplace::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbReplace_descriptor_;
metadata.reflection = RdbReplace_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RdbSynUpdate::kMsgConditionFieldNumber;
const int RdbSynUpdate::kMsgUpdateValueFieldNumber;
const int RdbSynUpdate::kStrKeysFieldNumber;
#endif // !_MSC_VER
RdbSynUpdate::RdbSynUpdate()
: ::google::protobuf::Message() {
SharedCtor();
// @@protoc_insertion_point(constructor:iot_idl.RdbSynUpdate)
}
void RdbSynUpdate::InitAsDefaultInstance() {
}
RdbSynUpdate::RdbSynUpdate(const RdbSynUpdate& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:iot_idl.RdbSynUpdate)
}
void RdbSynUpdate::SharedCtor() {
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
strkeys_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RdbSynUpdate::~RdbSynUpdate() {
// @@protoc_insertion_point(destructor:iot_idl.RdbSynUpdate)
SharedDtor();
}
void RdbSynUpdate::SharedDtor() {
if (strkeys_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete strkeys_;
}
if (this != default_instance_) {
}
}
void RdbSynUpdate::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RdbSynUpdate::descriptor() {
protobuf_AssignDescriptorsOnce();
return RdbSynUpdate_descriptor_;
}
const RdbSynUpdate& RdbSynUpdate::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_RdbServerMessage_2eproto();
return *default_instance_;
}
RdbSynUpdate* RdbSynUpdate::default_instance_ = NULL;
RdbSynUpdate* RdbSynUpdate::New() const {
return new RdbSynUpdate;
}
void RdbSynUpdate::Clear() {
if (has_strkeys()) {
if (strkeys_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
strkeys_->clear();
}
}
msgcondition_.Clear();
msgupdatevalue_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RdbSynUpdate::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:iot_idl.RdbSynUpdate)
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)) {
// repeated .iot_idl.RdbCondition msgCondition = 1;
case 1: {
if (tag == 10) {
parse_msgCondition:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgcondition()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(10)) goto parse_msgCondition;
if (input->ExpectTag(18)) goto parse_msgUpdateValue;
break;
}
// repeated .iot_idl.RdbUpdateValue msgUpdateValue = 2;
case 2: {
if (tag == 18) {
parse_msgUpdateValue:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_msgupdatevalue()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_msgUpdateValue;
if (input->ExpectTag(26)) goto parse_strKeys;
break;
}
// optional string strKeys = 3;
case 3: {
if (tag == 26) {
parse_strKeys:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_strkeys()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strkeys().data(), this->strkeys().length(),
::google::protobuf::internal::WireFormat::PARSE,
"strkeys");
} 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.RdbSynUpdate)
return true;
failure:
// @@protoc_insertion_point(parse_failure:iot_idl.RdbSynUpdate)
return false;
#undef DO_
}
void RdbSynUpdate::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:iot_idl.RdbSynUpdate)
// repeated .iot_idl.RdbCondition msgCondition = 1;
for (int i = 0; i < this->msgcondition_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->msgcondition(i), output);
}
// repeated .iot_idl.RdbUpdateValue msgUpdateValue = 2;
for (int i = 0; i < this->msgupdatevalue_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->msgupdatevalue(i), output);
}
// optional string strKeys = 3;
if (has_strkeys()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strkeys().data(), this->strkeys().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strkeys");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->strkeys(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:iot_idl.RdbSynUpdate)
}
::google::protobuf::uint8* RdbSynUpdate::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.RdbSynUpdate)
// repeated .iot_idl.RdbCondition msgCondition = 1;
for (int i = 0; i < this->msgcondition_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->msgcondition(i), target);
}
// repeated .iot_idl.RdbUpdateValue msgUpdateValue = 2;
for (int i = 0; i < this->msgupdatevalue_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->msgupdatevalue(i), target);
}
// optional string strKeys = 3;
if (has_strkeys()) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->strkeys().data(), this->strkeys().length(),
::google::protobuf::internal::WireFormat::SERIALIZE,
"strkeys");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->strkeys(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.RdbSynUpdate)
return target;
}
int RdbSynUpdate::ByteSize() const {
int total_size = 0;
if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) {
// optional string strKeys = 3;
if (has_strkeys()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->strkeys());
}
}
// repeated .iot_idl.RdbCondition msgCondition = 1;
total_size += 1 * this->msgcondition_size();
for (int i = 0; i < this->msgcondition_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgcondition(i));
}
// repeated .iot_idl.RdbUpdateValue msgUpdateValue = 2;
total_size += 1 * this->msgupdatevalue_size();
for (int i = 0; i < this->msgupdatevalue_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->msgupdatevalue(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 RdbSynUpdate::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RdbSynUpdate* source =
::google::protobuf::internal::dynamic_cast_if_available<const RdbSynUpdate*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RdbSynUpdate::MergeFrom(const RdbSynUpdate& from) {
GOOGLE_CHECK_NE(&from, this);
msgcondition_.MergeFrom(from.msgcondition_);
msgupdatevalue_.MergeFrom(from.msgupdatevalue_);
if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) {
if (from.has_strkeys()) {
set_strkeys(from.strkeys());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RdbSynUpdate::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RdbSynUpdate::CopyFrom(const RdbSynUpdate& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RdbSynUpdate::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->msgcondition())) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->msgupdatevalue())) return false;
return true;
}
void RdbSynUpdate::Swap(RdbSynUpdate* other) {
if (other != this) {
msgcondition_.Swap(&other->msgcondition_);
msgupdatevalue_.Swap(&other->msgupdatevalue_);
std::swap(strkeys_, other->strkeys_);
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 RdbSynUpdate::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RdbSynUpdate_descriptor_;
metadata.reflection = RdbSynUpdate_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace iot_idl
// @@protoc_insertion_point(global_scope)