|
@@ -23,6 +23,8 @@ namespace protobuf_table_2eproto {
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_customer;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_reply;
|
|
|
extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_tb_type;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_rec_reply;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_table_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_rec_type;
|
|
|
} // namespace protobuf_table_2eproto
|
|
|
class tb_customerDefaultTypeInternal {
|
|
|
public:
|
|
@@ -158,8 +160,11 @@ static void InitDefaultsview() {
|
|
|
::view::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-::google::protobuf::internal::SCCInfo<0> scc_info_view =
|
|
|
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsview}, {}};
|
|
|
+::google::protobuf::internal::SCCInfo<3> scc_info_view =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsview}, {
|
|
|
+ &protobuf_table_2eproto::scc_info_tb_customer.base,
|
|
|
+ &protobuf_table_2eproto::scc_info_rec_type.base,
|
|
|
+ &protobuf_table_2eproto::scc_info_rec_reply.base,}};
|
|
|
|
|
|
void InitDefaults() {
|
|
|
::google::protobuf::internal::InitSCC(&scc_info_tb_customer.base);
|
|
@@ -203,9 +208,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, customer_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, type_id_),
|
|
|
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_id_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_name_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_content_),
|
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::tb_reply, reply_gen_time_),
|
|
@@ -232,15 +235,18 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUT
|
|
|
~0u, // no _extensions_
|
|
|
~0u, // no _oneof_case_
|
|
|
~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, customer_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, types_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::view, replys_),
|
|
|
};
|
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
{ 0, -1, sizeof(::tb_customer)},
|
|
|
{ 15, -1, sizeof(::tb_type)},
|
|
|
{ 24, -1, sizeof(::tb_reply)},
|
|
|
- { 35, -1, sizeof(::rec_customer)},
|
|
|
- { 41, -1, sizeof(::rec_type)},
|
|
|
- { 47, -1, sizeof(::rec_reply)},
|
|
|
- { 53, -1, sizeof(::view)},
|
|
|
+ { 33, -1, sizeof(::rec_customer)},
|
|
|
+ { 39, -1, sizeof(::rec_type)},
|
|
|
+ { 45, -1, sizeof(::rec_reply)},
|
|
|
+ { 51, -1, sizeof(::view)},
|
|
|
};
|
|
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
@@ -283,17 +289,18 @@ void AddDescriptorsImpl() {
|
|
|
"\017customer_enable\030\t \001(\010\022\031\n\021customer_gen_t"
|
|
|
"ime\030\n \001(\t\"Y\n\007tb_type\022\023\n\013customer_id\030\001 \001("
|
|
|
"\t\022\017\n\007type_id\030\002 \001(\t\022\021\n\ttype_name\030\003 \001(\t\022\025\n"
|
|
|
- "\rtype_gen_time\030\004 \001(\t\"\205\001\n\010tb_reply\022\023\n\013cus"
|
|
|
- "tomer_id\030\001 \001(\t\022\017\n\007type_id\030\002 \001(\t\022\020\n\010reply"
|
|
|
- "_id\030\003 \001(\t\022\022\n\nreply_name\030\004 \001(\t\022\025\n\rreply_c"
|
|
|
- "ontent\030\005 \001(\t\022\026\n\016reply_gen_time\030\006 \001(\t\"/\n\014"
|
|
|
+ "\rtype_gen_time\030\004 \001(\t\"^\n\010tb_reply\022\017\n\007type"
|
|
|
+ "_id\030\001 \001(\t\022\022\n\nreply_name\030\002 \001(\t\022\025\n\rreply_c"
|
|
|
+ "ontent\030\003 \001(\t\022\026\n\016reply_gen_time\030\004 \001(\t\"/\n\014"
|
|
|
"rec_customer\022\037\n\tcustomers\030\001 \003(\0132\014.tb_cus"
|
|
|
"tomer\"#\n\010rec_type\022\027\n\005types\030\001 \003(\0132\010.tb_ty"
|
|
|
"pe\"&\n\trec_reply\022\031\n\006replys\030\001 \003(\0132\t.tb_rep"
|
|
|
- "ly\"\006\n\004viewb\006proto3"
|
|
|
+ "ly\"\\\n\004view\022\036\n\010customer\030\001 \001(\0132\014.tb_custom"
|
|
|
+ "er\022\030\n\005types\030\002 \001(\0132\t.rec_type\022\032\n\006replys\030\003"
|
|
|
+ " \001(\0132\n.rec_replyb\006proto3"
|
|
|
};
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
- descriptor, 658);
|
|
|
+ descriptor, 704);
|
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
"table.proto", &protobuf_RegisterTypes);
|
|
|
}
|
|
@@ -1456,9 +1463,7 @@ void tb_type::InternalSwap(tb_type* other) {
|
|
|
void tb_reply::InitAsDefaultInstance() {
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
-const int tb_reply::kCustomerIdFieldNumber;
|
|
|
const int tb_reply::kTypeIdFieldNumber;
|
|
|
-const int tb_reply::kReplyIdFieldNumber;
|
|
|
const int tb_reply::kReplyNameFieldNumber;
|
|
|
const int tb_reply::kReplyContentFieldNumber;
|
|
|
const int tb_reply::kReplyGenTimeFieldNumber;
|
|
@@ -1475,18 +1480,10 @@ tb_reply::tb_reply(const tb_reply& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
- customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- if (from.customer_id().size() > 0) {
|
|
|
- customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
|
|
|
- }
|
|
|
type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.type_id().size() > 0) {
|
|
|
type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
|
|
|
}
|
|
|
- reply_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- if (from.reply_id().size() > 0) {
|
|
|
- reply_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_id_);
|
|
|
- }
|
|
|
reply_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.reply_name().size() > 0) {
|
|
|
reply_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_name_);
|
|
@@ -1503,9 +1500,7 @@ tb_reply::tb_reply(const tb_reply& from)
|
|
|
}
|
|
|
|
|
|
void tb_reply::SharedCtor() {
|
|
|
- customer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
type_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- reply_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_content_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_gen_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
@@ -1517,9 +1512,7 @@ tb_reply::~tb_reply() {
|
|
|
}
|
|
|
|
|
|
void tb_reply::SharedDtor() {
|
|
|
- customer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
type_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- reply_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_content_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_gen_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
@@ -1545,9 +1538,7 @@ void tb_reply::Clear() {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- customer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
type_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
- reply_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_content_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
reply_gen_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
@@ -1564,26 +1555,10 @@ bool tb_reply::MergePartialFromCodedStream(
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
- // string customer_id = 1;
|
|
|
+ // string type_id = 1;
|
|
|
case 1: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
- input, this->mutable_customer_id()));
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
|
|
|
- ::google::protobuf::internal::WireFormatLite::PARSE,
|
|
|
- "tb_reply.customer_id"));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // string type_id = 2;
|
|
|
- case 2: {
|
|
|
- if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
input, this->mutable_type_id()));
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
@@ -1596,26 +1571,10 @@ bool tb_reply::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // string reply_id = 3;
|
|
|
- case 3: {
|
|
|
- if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
- input, this->mutable_reply_id()));
|
|
|
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
- this->reply_id().data(), static_cast<int>(this->reply_id().length()),
|
|
|
- ::google::protobuf::internal::WireFormatLite::PARSE,
|
|
|
- "tb_reply.reply_id"));
|
|
|
- } else {
|
|
|
- goto handle_unusual;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- // string reply_name = 4;
|
|
|
- case 4: {
|
|
|
+ // string reply_name = 2;
|
|
|
+ case 2: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
input, this->mutable_reply_name()));
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
@@ -1628,10 +1587,10 @@ bool tb_reply::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // string reply_content = 5;
|
|
|
- case 5: {
|
|
|
+ // string reply_content = 3;
|
|
|
+ case 3: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
|
|
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
input, this->mutable_reply_content()));
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
@@ -1644,10 +1603,10 @@ bool tb_reply::MergePartialFromCodedStream(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- // string reply_gen_time = 6;
|
|
|
- case 6: {
|
|
|
+ // string reply_gen_time = 4;
|
|
|
+ case 4: {
|
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
|
|
|
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
input, this->mutable_reply_gen_time()));
|
|
|
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
@@ -1686,64 +1645,44 @@ void tb_reply::SerializeWithCachedSizes(
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- // string customer_id = 1;
|
|
|
- if (this->customer_id().size() > 0) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
|
|
|
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
- "tb_reply.customer_id");
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 1, this->customer_id(), output);
|
|
|
- }
|
|
|
-
|
|
|
- // string type_id = 2;
|
|
|
+ // string type_id = 1;
|
|
|
if (this->type_id().size() > 0) {
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->type_id().data(), static_cast<int>(this->type_id().length()),
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
"tb_reply.type_id");
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 2, this->type_id(), output);
|
|
|
+ 1, this->type_id(), output);
|
|
|
}
|
|
|
|
|
|
- // string reply_id = 3;
|
|
|
- if (this->reply_id().size() > 0) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
- this->reply_id().data(), static_cast<int>(this->reply_id().length()),
|
|
|
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
- "tb_reply.reply_id");
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 3, this->reply_id(), output);
|
|
|
- }
|
|
|
-
|
|
|
- // string reply_name = 4;
|
|
|
+ // string reply_name = 2;
|
|
|
if (this->reply_name().size() > 0) {
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->reply_name().data(), static_cast<int>(this->reply_name().length()),
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
"tb_reply.reply_name");
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 4, this->reply_name(), output);
|
|
|
+ 2, this->reply_name(), output);
|
|
|
}
|
|
|
|
|
|
- // string reply_content = 5;
|
|
|
+ // string reply_content = 3;
|
|
|
if (this->reply_content().size() > 0) {
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->reply_content().data(), static_cast<int>(this->reply_content().length()),
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
"tb_reply.reply_content");
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 5, this->reply_content(), output);
|
|
|
+ 3, this->reply_content(), output);
|
|
|
}
|
|
|
|
|
|
- // string reply_gen_time = 6;
|
|
|
+ // string reply_gen_time = 4;
|
|
|
if (this->reply_gen_time().size() > 0) {
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->reply_gen_time().data(), static_cast<int>(this->reply_gen_time().length()),
|
|
|
::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
"tb_reply.reply_gen_time");
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
- 6, this->reply_gen_time(), output);
|
|
|
+ 4, this->reply_gen_time(), output);
|
|
|
}
|
|
|
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
@@ -1760,18 +1699,7 @@ void tb_reply::SerializeWithCachedSizes(
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- // string customer_id = 1;
|
|
|
- if (this->customer_id().size() > 0) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
- this->customer_id().data(), static_cast<int>(this->customer_id().length()),
|
|
|
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
- "tb_reply.customer_id");
|
|
|
- target =
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 1, this->customer_id(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // string type_id = 2;
|
|
|
+ // string type_id = 1;
|
|
|
if (this->type_id().size() > 0) {
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->type_id().data(), static_cast<int>(this->type_id().length()),
|
|
@@ -1779,21 +1707,10 @@ void tb_reply::SerializeWithCachedSizes(
|
|
|
"tb_reply.type_id");
|
|
|
target =
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 2, this->type_id(), target);
|
|
|
- }
|
|
|
-
|
|
|
- // string reply_id = 3;
|
|
|
- if (this->reply_id().size() > 0) {
|
|
|
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
- this->reply_id().data(), static_cast<int>(this->reply_id().length()),
|
|
|
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
- "tb_reply.reply_id");
|
|
|
- target =
|
|
|
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 3, this->reply_id(), target);
|
|
|
+ 1, this->type_id(), target);
|
|
|
}
|
|
|
|
|
|
- // string reply_name = 4;
|
|
|
+ // string reply_name = 2;
|
|
|
if (this->reply_name().size() > 0) {
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->reply_name().data(), static_cast<int>(this->reply_name().length()),
|
|
@@ -1801,10 +1718,10 @@ void tb_reply::SerializeWithCachedSizes(
|
|
|
"tb_reply.reply_name");
|
|
|
target =
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 4, this->reply_name(), target);
|
|
|
+ 2, this->reply_name(), target);
|
|
|
}
|
|
|
|
|
|
- // string reply_content = 5;
|
|
|
+ // string reply_content = 3;
|
|
|
if (this->reply_content().size() > 0) {
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->reply_content().data(), static_cast<int>(this->reply_content().length()),
|
|
@@ -1812,10 +1729,10 @@ void tb_reply::SerializeWithCachedSizes(
|
|
|
"tb_reply.reply_content");
|
|
|
target =
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 5, this->reply_content(), target);
|
|
|
+ 3, this->reply_content(), target);
|
|
|
}
|
|
|
|
|
|
- // string reply_gen_time = 6;
|
|
|
+ // string reply_gen_time = 4;
|
|
|
if (this->reply_gen_time().size() > 0) {
|
|
|
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
this->reply_gen_time().data(), static_cast<int>(this->reply_gen_time().length()),
|
|
@@ -1823,7 +1740,7 @@ void tb_reply::SerializeWithCachedSizes(
|
|
|
"tb_reply.reply_gen_time");
|
|
|
target =
|
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
- 6, this->reply_gen_time(), target);
|
|
|
+ 4, this->reply_gen_time(), target);
|
|
|
}
|
|
|
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
@@ -1843,42 +1760,28 @@ size_t tb_reply::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
}
|
|
|
- // string customer_id = 1;
|
|
|
- if (this->customer_id().size() > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
- this->customer_id());
|
|
|
- }
|
|
|
-
|
|
|
- // string type_id = 2;
|
|
|
+ // string type_id = 1;
|
|
|
if (this->type_id().size() > 0) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
this->type_id());
|
|
|
}
|
|
|
|
|
|
- // string reply_id = 3;
|
|
|
- if (this->reply_id().size() > 0) {
|
|
|
- total_size += 1 +
|
|
|
- ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
- this->reply_id());
|
|
|
- }
|
|
|
-
|
|
|
- // string reply_name = 4;
|
|
|
+ // string reply_name = 2;
|
|
|
if (this->reply_name().size() > 0) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
this->reply_name());
|
|
|
}
|
|
|
|
|
|
- // string reply_content = 5;
|
|
|
+ // string reply_content = 3;
|
|
|
if (this->reply_content().size() > 0) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
this->reply_content());
|
|
|
}
|
|
|
|
|
|
- // string reply_gen_time = 6;
|
|
|
+ // string reply_gen_time = 4;
|
|
|
if (this->reply_gen_time().size() > 0) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
@@ -1912,18 +1815,10 @@ void tb_reply::MergeFrom(const tb_reply& from) {
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
- if (from.customer_id().size() > 0) {
|
|
|
-
|
|
|
- customer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.customer_id_);
|
|
|
- }
|
|
|
if (from.type_id().size() > 0) {
|
|
|
|
|
|
type_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_id_);
|
|
|
}
|
|
|
- if (from.reply_id().size() > 0) {
|
|
|
-
|
|
|
- reply_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_id_);
|
|
|
- }
|
|
|
if (from.reply_name().size() > 0) {
|
|
|
|
|
|
reply_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reply_name_);
|
|
@@ -1962,12 +1857,8 @@ void tb_reply::Swap(tb_reply* other) {
|
|
|
}
|
|
|
void tb_reply::InternalSwap(tb_reply* other) {
|
|
|
using std::swap;
|
|
|
- customer_id_.Swap(&other->customer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
- GetArenaNoVirtual());
|
|
|
type_id_.Swap(&other->type_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
GetArenaNoVirtual());
|
|
|
- reply_id_.Swap(&other->reply_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
- GetArenaNoVirtual());
|
|
|
reply_name_.Swap(&other->reply_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
GetArenaNoVirtual());
|
|
|
reply_content_.Swap(&other->reply_content_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
@@ -2673,8 +2564,17 @@ void rec_reply::InternalSwap(rec_reply* other) {
|
|
|
// ===================================================================
|
|
|
|
|
|
void view::InitAsDefaultInstance() {
|
|
|
+ ::_view_default_instance_._instance.get_mutable()->customer_ = const_cast< ::tb_customer*>(
|
|
|
+ ::tb_customer::internal_default_instance());
|
|
|
+ ::_view_default_instance_._instance.get_mutable()->types_ = const_cast< ::rec_type*>(
|
|
|
+ ::rec_type::internal_default_instance());
|
|
|
+ ::_view_default_instance_._instance.get_mutable()->replys_ = const_cast< ::rec_reply*>(
|
|
|
+ ::rec_reply::internal_default_instance());
|
|
|
}
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int view::kCustomerFieldNumber;
|
|
|
+const int view::kTypesFieldNumber;
|
|
|
+const int view::kReplysFieldNumber;
|
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
|
|
view::view()
|
|
@@ -2688,10 +2588,28 @@ view::view(const view& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ if (from.has_customer()) {
|
|
|
+ customer_ = new ::tb_customer(*from.customer_);
|
|
|
+ } else {
|
|
|
+ customer_ = NULL;
|
|
|
+ }
|
|
|
+ if (from.has_types()) {
|
|
|
+ types_ = new ::rec_type(*from.types_);
|
|
|
+ } else {
|
|
|
+ types_ = NULL;
|
|
|
+ }
|
|
|
+ if (from.has_replys()) {
|
|
|
+ replys_ = new ::rec_reply(*from.replys_);
|
|
|
+ } else {
|
|
|
+ replys_ = NULL;
|
|
|
+ }
|
|
|
// @@protoc_insertion_point(copy_constructor:view)
|
|
|
}
|
|
|
|
|
|
void view::SharedCtor() {
|
|
|
+ ::memset(&customer_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&replys_) -
|
|
|
+ reinterpret_cast<char*>(&customer_)) + sizeof(replys_));
|
|
|
}
|
|
|
|
|
|
view::~view() {
|
|
@@ -2700,6 +2618,9 @@ view::~view() {
|
|
|
}
|
|
|
|
|
|
void view::SharedDtor() {
|
|
|
+ if (this != internal_default_instance()) delete customer_;
|
|
|
+ if (this != internal_default_instance()) delete types_;
|
|
|
+ if (this != internal_default_instance()) delete replys_;
|
|
|
}
|
|
|
|
|
|
void view::SetCachedSize(int size) const {
|
|
@@ -2722,6 +2643,18 @@ void view::Clear() {
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ if (GetArenaNoVirtual() == NULL && customer_ != NULL) {
|
|
|
+ delete customer_;
|
|
|
+ }
|
|
|
+ customer_ = NULL;
|
|
|
+ if (GetArenaNoVirtual() == NULL && types_ != NULL) {
|
|
|
+ delete types_;
|
|
|
+ }
|
|
|
+ types_ = NULL;
|
|
|
+ if (GetArenaNoVirtual() == NULL && replys_ != NULL) {
|
|
|
+ delete replys_;
|
|
|
+ }
|
|
|
+ replys_ = NULL;
|
|
|
_internal_metadata_.Clear();
|
|
|
}
|
|
|
|
|
@@ -2734,12 +2667,53 @@ bool view::MergePartialFromCodedStream(
|
|
|
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
- handle_unusual:
|
|
|
- if (tag == 0) {
|
|
|
- goto success;
|
|
|
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
|
+ // .tb_customer customer = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_customer()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // .rec_type types = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_types()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // .rec_reply replys = 3;
|
|
|
+ case 3: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_replys()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
- DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
- input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
}
|
|
|
success:
|
|
|
// @@protoc_insertion_point(parse_success:view)
|
|
@@ -2756,6 +2730,24 @@ void view::SerializeWithCachedSizes(
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ // .tb_customer customer = 1;
|
|
|
+ if (this->has_customer()) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 1, this->_internal_customer(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // .rec_type types = 2;
|
|
|
+ if (this->has_types()) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 2, this->_internal_types(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // .rec_reply replys = 3;
|
|
|
+ if (this->has_replys()) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 3, this->_internal_replys(), output);
|
|
|
+ }
|
|
|
+
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
@@ -2770,6 +2762,27 @@ void view::SerializeWithCachedSizes(
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ // .tb_customer customer = 1;
|
|
|
+ if (this->has_customer()) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 1, this->_internal_customer(), deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // .rec_type types = 2;
|
|
|
+ if (this->has_types()) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 2, this->_internal_types(), deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // .rec_reply replys = 3;
|
|
|
+ if (this->has_replys()) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 3, this->_internal_replys(), deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
@@ -2787,6 +2800,27 @@ size_t view::ByteSizeLong() const {
|
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
(::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
}
|
|
|
+ // .tb_customer customer = 1;
|
|
|
+ if (this->has_customer()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *customer_);
|
|
|
+ }
|
|
|
+
|
|
|
+ // .rec_type types = 2;
|
|
|
+ if (this->has_types()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *types_);
|
|
|
+ }
|
|
|
+
|
|
|
+ // .rec_reply replys = 3;
|
|
|
+ if (this->has_replys()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *replys_);
|
|
|
+ }
|
|
|
+
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
@@ -2814,6 +2848,15 @@ void view::MergeFrom(const view& from) {
|
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
(void) cached_has_bits;
|
|
|
|
|
|
+ if (from.has_customer()) {
|
|
|
+ mutable_customer()->::tb_customer::MergeFrom(from.customer());
|
|
|
+ }
|
|
|
+ if (from.has_types()) {
|
|
|
+ mutable_types()->::rec_type::MergeFrom(from.types());
|
|
|
+ }
|
|
|
+ if (from.has_replys()) {
|
|
|
+ mutable_replys()->::rec_reply::MergeFrom(from.replys());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void view::CopyFrom(const ::google::protobuf::Message& from) {
|
|
@@ -2840,6 +2883,9 @@ void view::Swap(view* other) {
|
|
|
}
|
|
|
void view::InternalSwap(view* other) {
|
|
|
using std::swap;
|
|
|
+ swap(customer_, other->customer_);
|
|
|
+ swap(types_, other->types_);
|
|
|
+ swap(replys_, other->replys_);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
}
|
|
|
|