2002 lines
71 KiB
C++
2002 lines
71 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Qot_RequestHistoryKLQuota.proto
|
|
|
|
#include "Qot_RequestHistoryKLQuota.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
#include <google/protobuf/stubs/port.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>
|
|
// This is a temporary google only hack
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
#include "third_party/protobuf/version.h"
|
|
#endif
|
|
// @@protoc_insertion_point(includes)
|
|
namespace Qot_RequestHistoryKLQuota {
|
|
class DetailItemDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<DetailItem>
|
|
_instance;
|
|
} _DetailItem_default_instance_;
|
|
class C2SDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<C2S>
|
|
_instance;
|
|
} _C2S_default_instance_;
|
|
class S2CDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<S2C>
|
|
_instance;
|
|
} _S2C_default_instance_;
|
|
class RequestDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<Request>
|
|
_instance;
|
|
} _Request_default_instance_;
|
|
class ResponseDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<Response>
|
|
_instance;
|
|
} _Response_default_instance_;
|
|
} // namespace Qot_RequestHistoryKLQuota
|
|
namespace protobuf_Qot_5fRequestHistoryKLQuota_2eproto {
|
|
void InitDefaultsDetailItemImpl() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
#else
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
protobuf_Qot_5fCommon_2eproto::InitDefaultsSecurity();
|
|
{
|
|
void* ptr = &::Qot_RequestHistoryKLQuota::_DetailItem_default_instance_;
|
|
new (ptr) ::Qot_RequestHistoryKLQuota::DetailItem();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_RequestHistoryKLQuota::DetailItem::InitAsDefaultInstance();
|
|
}
|
|
|
|
void InitDefaultsDetailItem() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDetailItemImpl);
|
|
}
|
|
|
|
void InitDefaultsC2SImpl() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
#else
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
{
|
|
void* ptr = &::Qot_RequestHistoryKLQuota::_C2S_default_instance_;
|
|
new (ptr) ::Qot_RequestHistoryKLQuota::C2S();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_RequestHistoryKLQuota::C2S::InitAsDefaultInstance();
|
|
}
|
|
|
|
void InitDefaultsC2S() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsC2SImpl);
|
|
}
|
|
|
|
void InitDefaultsS2CImpl() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
#else
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsDetailItem();
|
|
{
|
|
void* ptr = &::Qot_RequestHistoryKLQuota::_S2C_default_instance_;
|
|
new (ptr) ::Qot_RequestHistoryKLQuota::S2C();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_RequestHistoryKLQuota::S2C::InitAsDefaultInstance();
|
|
}
|
|
|
|
void InitDefaultsS2C() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsS2CImpl);
|
|
}
|
|
|
|
void InitDefaultsRequestImpl() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
#else
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsC2S();
|
|
{
|
|
void* ptr = &::Qot_RequestHistoryKLQuota::_Request_default_instance_;
|
|
new (ptr) ::Qot_RequestHistoryKLQuota::Request();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_RequestHistoryKLQuota::Request::InitAsDefaultInstance();
|
|
}
|
|
|
|
void InitDefaultsRequest() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRequestImpl);
|
|
}
|
|
|
|
void InitDefaultsResponseImpl() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
#else
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsS2C();
|
|
{
|
|
void* ptr = &::Qot_RequestHistoryKLQuota::_Response_default_instance_;
|
|
new (ptr) ::Qot_RequestHistoryKLQuota::Response();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_RequestHistoryKLQuota::Response::InitAsDefaultInstance();
|
|
}
|
|
|
|
void InitDefaultsResponse() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl);
|
|
}
|
|
|
|
::google::protobuf::Metadata file_level_metadata[5];
|
|
|
|
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::DetailItem, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::DetailItem, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::DetailItem, security_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::DetailItem, name_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::DetailItem, requesttime_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::DetailItem, requesttimestamp_),
|
|
2,
|
|
1,
|
|
0,
|
|
3,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::C2S, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::C2S, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::C2S, bgetdetail_),
|
|
0,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::S2C, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::S2C, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::S2C, usedquota_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::S2C, remainquota_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::S2C, detaillist_),
|
|
0,
|
|
1,
|
|
~0u,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Request, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Request, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Request, c2s_),
|
|
0,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Response, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Response, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Response, rettype_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Response, retmsg_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Response, errcode_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_RequestHistoryKLQuota::Response, s2c_),
|
|
3,
|
|
0,
|
|
2,
|
|
1,
|
|
};
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, 9, sizeof(::Qot_RequestHistoryKLQuota::DetailItem)},
|
|
{ 13, 19, sizeof(::Qot_RequestHistoryKLQuota::C2S)},
|
|
{ 20, 28, sizeof(::Qot_RequestHistoryKLQuota::S2C)},
|
|
{ 31, 37, sizeof(::Qot_RequestHistoryKLQuota::Request)},
|
|
{ 38, 47, sizeof(::Qot_RequestHistoryKLQuota::Response)},
|
|
};
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_RequestHistoryKLQuota::_DetailItem_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_RequestHistoryKLQuota::_C2S_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_RequestHistoryKLQuota::_S2C_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_RequestHistoryKLQuota::_Request_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_RequestHistoryKLQuota::_Response_default_instance_),
|
|
};
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
AddDescriptors();
|
|
::google::protobuf::MessageFactory* factory = NULL;
|
|
AssignDescriptors(
|
|
"Qot_RequestHistoryKLQuota.proto", schemas, file_default_instances, TableStruct::offsets, factory,
|
|
file_level_metadata, NULL, NULL);
|
|
}
|
|
|
|
void protobuf_AssignDescriptorsOnce() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
|
|
}
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
void protobuf_RegisterTypes(const ::std::string&) {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
|
|
}
|
|
|
|
void AddDescriptorsImpl() {
|
|
InitDefaults();
|
|
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
"\n\037Qot_RequestHistoryKLQuota.proto\022\031Qot_R"
|
|
"equestHistoryKLQuota\032\014Common.proto\032\020Qot_"
|
|
"Common.proto\"q\n\nDetailItem\022&\n\010security\030\001"
|
|
" \002(\0132\024.Qot_Common.Security\022\014\n\004name\030\004 \001(\t"
|
|
"\022\023\n\013requestTime\030\002 \002(\t\022\030\n\020requestTimeStam"
|
|
"p\030\003 \001(\003\"\031\n\003C2S\022\022\n\nbGetDetail\030\002 \001(\010\"h\n\003S2"
|
|
"C\022\021\n\tusedQuota\030\001 \002(\005\022\023\n\013remainQuota\030\002 \002("
|
|
"\005\0229\n\ndetailList\030\003 \003(\0132%.Qot_RequestHisto"
|
|
"ryKLQuota.DetailItem\"6\n\007Request\022+\n\003c2s\030\001"
|
|
" \002(\0132\036.Qot_RequestHistoryKLQuota.C2S\"o\n\010"
|
|
"Response\022\025\n\007retType\030\001 \002(\005:\004-400\022\016\n\006retMs"
|
|
"g\030\002 \001(\t\022\017\n\007errCode\030\003 \001(\005\022+\n\003s2c\030\004 \001(\0132\036."
|
|
"Qot_RequestHistoryKLQuota.S2CBO\n\023com.fut"
|
|
"u.openapi.pbZ8github.com/futuopen/ftapi4"
|
|
"go/pb/qotrequesthistoryklquota"
|
|
};
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
descriptor, 590);
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
"Qot_RequestHistoryKLQuota.proto", &protobuf_RegisterTypes);
|
|
::protobuf_Common_2eproto::AddDescriptors();
|
|
::protobuf_Qot_5fCommon_2eproto::AddDescriptors();
|
|
}
|
|
|
|
void AddDescriptors() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
|
}
|
|
// Force AddDescriptors() to be called at dynamic initialization time.
|
|
struct StaticDescriptorInitializer {
|
|
StaticDescriptorInitializer() {
|
|
AddDescriptors();
|
|
}
|
|
} static_descriptor_initializer;
|
|
} // namespace protobuf_Qot_5fRequestHistoryKLQuota_2eproto
|
|
namespace Qot_RequestHistoryKLQuota {
|
|
|
|
// ===================================================================
|
|
|
|
void DetailItem::InitAsDefaultInstance() {
|
|
::Qot_RequestHistoryKLQuota::_DetailItem_default_instance_._instance.get_mutable()->security_ = const_cast< ::Qot_Common::Security*>(
|
|
::Qot_Common::Security::internal_default_instance());
|
|
}
|
|
void DetailItem::clear_security() {
|
|
if (security_ != NULL) security_->Clear();
|
|
clear_has_security();
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int DetailItem::kSecurityFieldNumber;
|
|
const int DetailItem::kNameFieldNumber;
|
|
const int DetailItem::kRequestTimeFieldNumber;
|
|
const int DetailItem::kRequestTimeStampFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
DetailItem::DetailItem()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsDetailItem();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_RequestHistoryKLQuota.DetailItem)
|
|
}
|
|
DetailItem::DetailItem(const DetailItem& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
requesttime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_requesttime()) {
|
|
requesttime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.requesttime_);
|
|
}
|
|
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_name()) {
|
|
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
if (from.has_security()) {
|
|
security_ = new ::Qot_Common::Security(*from.security_);
|
|
} else {
|
|
security_ = NULL;
|
|
}
|
|
requesttimestamp_ = from.requesttimestamp_;
|
|
// @@protoc_insertion_point(copy_constructor:Qot_RequestHistoryKLQuota.DetailItem)
|
|
}
|
|
|
|
void DetailItem::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
requesttime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&security_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&requesttimestamp_) -
|
|
reinterpret_cast<char*>(&security_)) + sizeof(requesttimestamp_));
|
|
}
|
|
|
|
DetailItem::~DetailItem() {
|
|
// @@protoc_insertion_point(destructor:Qot_RequestHistoryKLQuota.DetailItem)
|
|
SharedDtor();
|
|
}
|
|
|
|
void DetailItem::SharedDtor() {
|
|
requesttime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (this != internal_default_instance()) delete security_;
|
|
}
|
|
|
|
void DetailItem::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* DetailItem::descriptor() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const DetailItem& DetailItem::default_instance() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsDetailItem();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
DetailItem* DetailItem::New(::google::protobuf::Arena* arena) const {
|
|
DetailItem* n = new DetailItem;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void DetailItem::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 7u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
GOOGLE_DCHECK(!requesttime_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*requesttime_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*name_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
GOOGLE_DCHECK(security_ != NULL);
|
|
security_->Clear();
|
|
}
|
|
}
|
|
requesttimestamp_ = GOOGLE_LONGLONG(0);
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool DetailItem::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required .Qot_Common.Security security = 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_security()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string requestTime = 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_requesttime()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->requesttime().data(), static_cast<int>(this->requesttime().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_RequestHistoryKLQuota.DetailItem.requestTime");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional int64 requestTimeStamp = 3;
|
|
case 3: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
|
|
set_has_requesttimestamp();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &requesttimestamp_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional string name = 4;
|
|
case 4: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_name()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_RequestHistoryKLQuota.DetailItem.name");
|
|
} 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;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:Qot_RequestHistoryKLQuota.DetailItem)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_RequestHistoryKLQuota.DetailItem)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void DetailItem::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required .Qot_Common.Security security = 1;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1, *this->security_, output);
|
|
}
|
|
|
|
// required string requestTime = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->requesttime().data(), static_cast<int>(this->requesttime().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_RequestHistoryKLQuota.DetailItem.requestTime");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->requesttime(), output);
|
|
}
|
|
|
|
// optional int64 requestTimeStamp = 3;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->requesttimestamp(), output);
|
|
}
|
|
|
|
// optional string name = 4;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_RequestHistoryKLQuota.DetailItem.name");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->name(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:Qot_RequestHistoryKLQuota.DetailItem)
|
|
}
|
|
|
|
::google::protobuf::uint8* DetailItem::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required .Qot_Common.Security security = 1;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, *this->security_, deterministic, target);
|
|
}
|
|
|
|
// required string requestTime = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->requesttime().data(), static_cast<int>(this->requesttime().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_RequestHistoryKLQuota.DetailItem.requestTime");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->requesttime(), target);
|
|
}
|
|
|
|
// optional int64 requestTimeStamp = 3;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->requesttimestamp(), target);
|
|
}
|
|
|
|
// optional string name = 4;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_RequestHistoryKLQuota.DetailItem.name");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
4, this->name(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:Qot_RequestHistoryKLQuota.DetailItem)
|
|
return target;
|
|
}
|
|
|
|
size_t DetailItem::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
size_t total_size = 0;
|
|
|
|
if (has_requesttime()) {
|
|
// required string requestTime = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->requesttime());
|
|
}
|
|
|
|
if (has_security()) {
|
|
// required .Qot_Common.Security security = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*this->security_);
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t DetailItem::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
if (((_has_bits_[0] & 0x00000005) ^ 0x00000005) == 0) { // All required fields are present.
|
|
// required string requestTime = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->requesttime());
|
|
|
|
// required .Qot_Common.Security security = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*this->security_);
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
// optional string name = 4;
|
|
if (has_name()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
// optional int64 requestTimeStamp = 3;
|
|
if (has_requesttimestamp()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->requesttimestamp());
|
|
}
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = cached_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void DetailItem::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const DetailItem* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const DetailItem>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_RequestHistoryKLQuota.DetailItem)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_RequestHistoryKLQuota.DetailItem)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void DetailItem::MergeFrom(const DetailItem& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 15u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
set_has_requesttime();
|
|
requesttime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.requesttime_);
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
set_has_name();
|
|
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
mutable_security()->::Qot_Common::Security::MergeFrom(from.security());
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
requesttimestamp_ = from.requesttimestamp_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void DetailItem::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void DetailItem::CopyFrom(const DetailItem& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_RequestHistoryKLQuota.DetailItem)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool DetailItem::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false;
|
|
if (has_security()) {
|
|
if (!this->security_->IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void DetailItem::Swap(DetailItem* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void DetailItem::InternalSwap(DetailItem* other) {
|
|
using std::swap;
|
|
requesttime_.Swap(&other->requesttime_);
|
|
name_.Swap(&other->name_);
|
|
swap(security_, other->security_);
|
|
swap(requesttimestamp_, other->requesttimestamp_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::google::protobuf::Metadata DetailItem::GetMetadata() const {
|
|
protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void C2S::InitAsDefaultInstance() {
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int C2S::kBGetDetailFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
C2S::C2S()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsC2S();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_RequestHistoryKLQuota.C2S)
|
|
}
|
|
C2S::C2S(const C2S& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
bgetdetail_ = from.bgetdetail_;
|
|
// @@protoc_insertion_point(copy_constructor:Qot_RequestHistoryKLQuota.C2S)
|
|
}
|
|
|
|
void C2S::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
bgetdetail_ = false;
|
|
}
|
|
|
|
C2S::~C2S() {
|
|
// @@protoc_insertion_point(destructor:Qot_RequestHistoryKLQuota.C2S)
|
|
SharedDtor();
|
|
}
|
|
|
|
void C2S::SharedDtor() {
|
|
}
|
|
|
|
void C2S::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* C2S::descriptor() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const C2S& C2S::default_instance() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsC2S();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
C2S* C2S::New(::google::protobuf::Arena* arena) const {
|
|
C2S* n = new C2S;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void C2S::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Qot_RequestHistoryKLQuota.C2S)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
bgetdetail_ = false;
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool C2S::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:Qot_RequestHistoryKLQuota.C2S)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional bool bGetDetail = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
set_has_bgetdetail();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
input, &bgetdetail_)));
|
|
} 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;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:Qot_RequestHistoryKLQuota.C2S)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_RequestHistoryKLQuota.C2S)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void C2S::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_RequestHistoryKLQuota.C2S)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// optional bool bGetDetail = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bgetdetail(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:Qot_RequestHistoryKLQuota.C2S)
|
|
}
|
|
|
|
::google::protobuf::uint8* C2S::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_RequestHistoryKLQuota.C2S)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// optional bool bGetDetail = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bgetdetail(), target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:Qot_RequestHistoryKLQuota.C2S)
|
|
return target;
|
|
}
|
|
|
|
size_t C2S::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_RequestHistoryKLQuota.C2S)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
// optional bool bGetDetail = 2;
|
|
if (has_bgetdetail()) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = cached_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void C2S::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Qot_RequestHistoryKLQuota.C2S)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const C2S* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const C2S>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_RequestHistoryKLQuota.C2S)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_RequestHistoryKLQuota.C2S)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void C2S::MergeFrom(const C2S& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_RequestHistoryKLQuota.C2S)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.has_bgetdetail()) {
|
|
set_bgetdetail(from.bgetdetail());
|
|
}
|
|
}
|
|
|
|
void C2S::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_RequestHistoryKLQuota.C2S)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void C2S::CopyFrom(const C2S& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_RequestHistoryKLQuota.C2S)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool C2S::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void C2S::Swap(C2S* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void C2S::InternalSwap(C2S* other) {
|
|
using std::swap;
|
|
swap(bgetdetail_, other->bgetdetail_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::google::protobuf::Metadata C2S::GetMetadata() const {
|
|
protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void S2C::InitAsDefaultInstance() {
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int S2C::kUsedQuotaFieldNumber;
|
|
const int S2C::kRemainQuotaFieldNumber;
|
|
const int S2C::kDetailListFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
S2C::S2C()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsS2C();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_RequestHistoryKLQuota.S2C)
|
|
}
|
|
S2C::S2C(const S2C& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0),
|
|
detaillist_(from.detaillist_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::memcpy(&usedquota_, &from.usedquota_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&remainquota_) -
|
|
reinterpret_cast<char*>(&usedquota_)) + sizeof(remainquota_));
|
|
// @@protoc_insertion_point(copy_constructor:Qot_RequestHistoryKLQuota.S2C)
|
|
}
|
|
|
|
void S2C::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
::memset(&usedquota_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&remainquota_) -
|
|
reinterpret_cast<char*>(&usedquota_)) + sizeof(remainquota_));
|
|
}
|
|
|
|
S2C::~S2C() {
|
|
// @@protoc_insertion_point(destructor:Qot_RequestHistoryKLQuota.S2C)
|
|
SharedDtor();
|
|
}
|
|
|
|
void S2C::SharedDtor() {
|
|
}
|
|
|
|
void S2C::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* S2C::descriptor() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const S2C& S2C::default_instance() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsS2C();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
S2C* S2C::New(::google::protobuf::Arena* arena) const {
|
|
S2C* n = new S2C;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void S2C::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Qot_RequestHistoryKLQuota.S2C)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
detaillist_.Clear();
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 3u) {
|
|
::memset(&usedquota_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&remainquota_) -
|
|
reinterpret_cast<char*>(&usedquota_)) + sizeof(remainquota_));
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool S2C::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:Qot_RequestHistoryKLQuota.S2C)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int32 usedQuota = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
set_has_usedquota();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &usedquota_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required int32 remainQuota = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
set_has_remainquota();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &remainquota_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated .Qot_RequestHistoryKLQuota.DetailItem detailList = 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, add_detaillist()));
|
|
} 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;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:Qot_RequestHistoryKLQuota.S2C)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_RequestHistoryKLQuota.S2C)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void S2C::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_RequestHistoryKLQuota.S2C)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required int32 usedQuota = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->usedquota(), output);
|
|
}
|
|
|
|
// required int32 remainQuota = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->remainquota(), output);
|
|
}
|
|
|
|
// repeated .Qot_RequestHistoryKLQuota.DetailItem detailList = 3;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->detaillist_size()); i < n; i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
3, this->detaillist(static_cast<int>(i)), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:Qot_RequestHistoryKLQuota.S2C)
|
|
}
|
|
|
|
::google::protobuf::uint8* S2C::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_RequestHistoryKLQuota.S2C)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required int32 usedQuota = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->usedquota(), target);
|
|
}
|
|
|
|
// required int32 remainQuota = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->remainquota(), target);
|
|
}
|
|
|
|
// repeated .Qot_RequestHistoryKLQuota.DetailItem detailList = 3;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->detaillist_size()); i < n; i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
3, this->detaillist(static_cast<int>(i)), deterministic, target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:Qot_RequestHistoryKLQuota.S2C)
|
|
return target;
|
|
}
|
|
|
|
size_t S2C::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:Qot_RequestHistoryKLQuota.S2C)
|
|
size_t total_size = 0;
|
|
|
|
if (has_usedquota()) {
|
|
// required int32 usedQuota = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->usedquota());
|
|
}
|
|
|
|
if (has_remainquota()) {
|
|
// required int32 remainQuota = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->remainquota());
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t S2C::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_RequestHistoryKLQuota.S2C)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
|
|
// required int32 usedQuota = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->usedquota());
|
|
|
|
// required int32 remainQuota = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->remainquota());
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
// repeated .Qot_RequestHistoryKLQuota.DetailItem detailList = 3;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->detaillist_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
this->detaillist(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = cached_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void S2C::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Qot_RequestHistoryKLQuota.S2C)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const S2C* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const S2C>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_RequestHistoryKLQuota.S2C)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_RequestHistoryKLQuota.S2C)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void S2C::MergeFrom(const S2C& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_RequestHistoryKLQuota.S2C)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
detaillist_.MergeFrom(from.detaillist_);
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 3u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
usedquota_ = from.usedquota_;
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
remainquota_ = from.remainquota_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void S2C::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_RequestHistoryKLQuota.S2C)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void S2C::CopyFrom(const S2C& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_RequestHistoryKLQuota.S2C)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool S2C::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->detaillist())) return false;
|
|
return true;
|
|
}
|
|
|
|
void S2C::Swap(S2C* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void S2C::InternalSwap(S2C* other) {
|
|
using std::swap;
|
|
detaillist_.InternalSwap(&other->detaillist_);
|
|
swap(usedquota_, other->usedquota_);
|
|
swap(remainquota_, other->remainquota_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::google::protobuf::Metadata S2C::GetMetadata() const {
|
|
protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void Request::InitAsDefaultInstance() {
|
|
::Qot_RequestHistoryKLQuota::_Request_default_instance_._instance.get_mutable()->c2s_ = const_cast< ::Qot_RequestHistoryKLQuota::C2S*>(
|
|
::Qot_RequestHistoryKLQuota::C2S::internal_default_instance());
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int Request::kC2SFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
Request::Request()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsRequest();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_RequestHistoryKLQuota.Request)
|
|
}
|
|
Request::Request(const Request& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
if (from.has_c2s()) {
|
|
c2s_ = new ::Qot_RequestHistoryKLQuota::C2S(*from.c2s_);
|
|
} else {
|
|
c2s_ = NULL;
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:Qot_RequestHistoryKLQuota.Request)
|
|
}
|
|
|
|
void Request::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
c2s_ = NULL;
|
|
}
|
|
|
|
Request::~Request() {
|
|
// @@protoc_insertion_point(destructor:Qot_RequestHistoryKLQuota.Request)
|
|
SharedDtor();
|
|
}
|
|
|
|
void Request::SharedDtor() {
|
|
if (this != internal_default_instance()) delete c2s_;
|
|
}
|
|
|
|
void Request::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* Request::descriptor() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const Request& Request::default_instance() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsRequest();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
Request* Request::New(::google::protobuf::Arena* arena) const {
|
|
Request* n = new Request;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void Request::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Qot_RequestHistoryKLQuota.Request)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 0x00000001u) {
|
|
GOOGLE_DCHECK(c2s_ != NULL);
|
|
c2s_->Clear();
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool Request::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:Qot_RequestHistoryKLQuota.Request)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required .Qot_RequestHistoryKLQuota.C2S c2s = 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_c2s()));
|
|
} 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;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:Qot_RequestHistoryKLQuota.Request)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_RequestHistoryKLQuota.Request)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void Request::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_RequestHistoryKLQuota.Request)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required .Qot_RequestHistoryKLQuota.C2S c2s = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1, *this->c2s_, output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:Qot_RequestHistoryKLQuota.Request)
|
|
}
|
|
|
|
::google::protobuf::uint8* Request::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_RequestHistoryKLQuota.Request)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required .Qot_RequestHistoryKLQuota.C2S c2s = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, *this->c2s_, deterministic, target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:Qot_RequestHistoryKLQuota.Request)
|
|
return target;
|
|
}
|
|
|
|
size_t Request::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_RequestHistoryKLQuota.Request)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
// required .Qot_RequestHistoryKLQuota.C2S c2s = 1;
|
|
if (has_c2s()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*this->c2s_);
|
|
}
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = cached_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void Request::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Qot_RequestHistoryKLQuota.Request)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const Request* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const Request>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_RequestHistoryKLQuota.Request)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_RequestHistoryKLQuota.Request)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void Request::MergeFrom(const Request& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_RequestHistoryKLQuota.Request)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.has_c2s()) {
|
|
mutable_c2s()->::Qot_RequestHistoryKLQuota::C2S::MergeFrom(from.c2s());
|
|
}
|
|
}
|
|
|
|
void Request::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_RequestHistoryKLQuota.Request)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void Request::CopyFrom(const Request& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_RequestHistoryKLQuota.Request)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Request::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
return true;
|
|
}
|
|
|
|
void Request::Swap(Request* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void Request::InternalSwap(Request* other) {
|
|
using std::swap;
|
|
swap(c2s_, other->c2s_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::google::protobuf::Metadata Request::GetMetadata() const {
|
|
protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void Response::InitAsDefaultInstance() {
|
|
::Qot_RequestHistoryKLQuota::_Response_default_instance_._instance.get_mutable()->s2c_ = const_cast< ::Qot_RequestHistoryKLQuota::S2C*>(
|
|
::Qot_RequestHistoryKLQuota::S2C::internal_default_instance());
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int Response::kRetTypeFieldNumber;
|
|
const int Response::kRetMsgFieldNumber;
|
|
const int Response::kErrCodeFieldNumber;
|
|
const int Response::kS2CFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
Response::Response()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsResponse();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_RequestHistoryKLQuota.Response)
|
|
}
|
|
Response::Response(const Response& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
retmsg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_retmsg()) {
|
|
retmsg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retmsg_);
|
|
}
|
|
if (from.has_s2c()) {
|
|
s2c_ = new ::Qot_RequestHistoryKLQuota::S2C(*from.s2c_);
|
|
} else {
|
|
s2c_ = NULL;
|
|
}
|
|
::memcpy(&errcode_, &from.errcode_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&rettype_) -
|
|
reinterpret_cast<char*>(&errcode_)) + sizeof(rettype_));
|
|
// @@protoc_insertion_point(copy_constructor:Qot_RequestHistoryKLQuota.Response)
|
|
}
|
|
|
|
void Response::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
retmsg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&s2c_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&errcode_) -
|
|
reinterpret_cast<char*>(&s2c_)) + sizeof(errcode_));
|
|
rettype_ = -400;
|
|
}
|
|
|
|
Response::~Response() {
|
|
// @@protoc_insertion_point(destructor:Qot_RequestHistoryKLQuota.Response)
|
|
SharedDtor();
|
|
}
|
|
|
|
void Response::SharedDtor() {
|
|
retmsg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (this != internal_default_instance()) delete s2c_;
|
|
}
|
|
|
|
void Response::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* Response::descriptor() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const Response& Response::default_instance() {
|
|
::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::InitDefaultsResponse();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
Response* Response::New(::google::protobuf::Arena* arena) const {
|
|
Response* n = new Response;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void Response::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Qot_RequestHistoryKLQuota.Response)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 3u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
GOOGLE_DCHECK(!retmsg_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*retmsg_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
GOOGLE_DCHECK(s2c_ != NULL);
|
|
s2c_->Clear();
|
|
}
|
|
}
|
|
if (cached_has_bits & 12u) {
|
|
errcode_ = 0;
|
|
rettype_ = -400;
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool Response::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:Qot_RequestHistoryKLQuota.Response)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int32 retType = 1 [default = -400];
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
set_has_rettype();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &rettype_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional string retMsg = 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_retmsg()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->retmsg().data(), static_cast<int>(this->retmsg().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_RequestHistoryKLQuota.Response.retMsg");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional int32 errCode = 3;
|
|
case 3: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
|
|
set_has_errcode();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &errcode_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional .Qot_RequestHistoryKLQuota.S2C s2c = 4;
|
|
case 4: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_s2c()));
|
|
} 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;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:Qot_RequestHistoryKLQuota.Response)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_RequestHistoryKLQuota.Response)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void Response::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_RequestHistoryKLQuota.Response)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required int32 retType = 1 [default = -400];
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->rettype(), output);
|
|
}
|
|
|
|
// optional string retMsg = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->retmsg().data(), static_cast<int>(this->retmsg().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_RequestHistoryKLQuota.Response.retMsg");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->retmsg(), output);
|
|
}
|
|
|
|
// optional int32 errCode = 3;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->errcode(), output);
|
|
}
|
|
|
|
// optional .Qot_RequestHistoryKLQuota.S2C s2c = 4;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
4, *this->s2c_, output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:Qot_RequestHistoryKLQuota.Response)
|
|
}
|
|
|
|
::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_RequestHistoryKLQuota.Response)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required int32 retType = 1 [default = -400];
|
|
if (cached_has_bits & 0x00000008u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->rettype(), target);
|
|
}
|
|
|
|
// optional string retMsg = 2;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->retmsg().data(), static_cast<int>(this->retmsg().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_RequestHistoryKLQuota.Response.retMsg");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->retmsg(), target);
|
|
}
|
|
|
|
// optional int32 errCode = 3;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->errcode(), target);
|
|
}
|
|
|
|
// optional .Qot_RequestHistoryKLQuota.S2C s2c = 4;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
4, *this->s2c_, deterministic, target);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:Qot_RequestHistoryKLQuota.Response)
|
|
return target;
|
|
}
|
|
|
|
size_t Response::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_RequestHistoryKLQuota.Response)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
// required int32 retType = 1 [default = -400];
|
|
if (has_rettype()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->rettype());
|
|
}
|
|
if (_has_bits_[0 / 32] & 7u) {
|
|
// optional string retMsg = 2;
|
|
if (has_retmsg()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->retmsg());
|
|
}
|
|
|
|
// optional .Qot_RequestHistoryKLQuota.S2C s2c = 4;
|
|
if (has_s2c()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*this->s2c_);
|
|
}
|
|
|
|
// optional int32 errCode = 3;
|
|
if (has_errcode()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->errcode());
|
|
}
|
|
|
|
}
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = cached_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void Response::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Qot_RequestHistoryKLQuota.Response)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const Response* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const Response>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_RequestHistoryKLQuota.Response)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_RequestHistoryKLQuota.Response)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void Response::MergeFrom(const Response& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_RequestHistoryKLQuota.Response)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 15u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
set_has_retmsg();
|
|
retmsg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retmsg_);
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
mutable_s2c()->::Qot_RequestHistoryKLQuota::S2C::MergeFrom(from.s2c());
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
errcode_ = from.errcode_;
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
rettype_ = from.rettype_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void Response::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_RequestHistoryKLQuota.Response)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void Response::CopyFrom(const Response& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_RequestHistoryKLQuota.Response)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Response::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false;
|
|
if (has_s2c()) {
|
|
if (!this->s2c_->IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void Response::Swap(Response* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void Response::InternalSwap(Response* other) {
|
|
using std::swap;
|
|
retmsg_.Swap(&other->retmsg_);
|
|
swap(s2c_, other->s2c_);
|
|
swap(errcode_, other->errcode_);
|
|
swap(rettype_, other->rettype_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::google::protobuf::Metadata Response::GetMetadata() const {
|
|
protobuf_Qot_5fRequestHistoryKLQuota_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fRequestHistoryKLQuota_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace Qot_RequestHistoryKLQuota
|
|
|
|
// @@protoc_insertion_point(global_scope)
|