Files
QTradeProgram/include/Proto/GetUserInfo.pb.cc
2025-08-15 15:57:31 +08:00

2806 lines
100 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GetUserInfo.proto
#include "GetUserInfo.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 GetUserInfo {
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 GetUserInfo
namespace protobuf_GetUserInfo_2eproto {
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 = &::GetUserInfo::_C2S_default_instance_;
new (ptr) ::GetUserInfo::C2S();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::GetUserInfo::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
{
void* ptr = &::GetUserInfo::_S2C_default_instance_;
new (ptr) ::GetUserInfo::S2C();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::GetUserInfo::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_GetUserInfo_2eproto::InitDefaultsC2S();
{
void* ptr = &::GetUserInfo::_Request_default_instance_;
new (ptr) ::GetUserInfo::Request();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::GetUserInfo::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_GetUserInfo_2eproto::InitDefaultsS2C();
{
void* ptr = &::GetUserInfo::_Response_default_instance_;
new (ptr) ::GetUserInfo::Response();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::GetUserInfo::Response::InitAsDefaultInstance();
}
void InitDefaultsResponse() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl);
}
::google::protobuf::Metadata file_level_metadata[4];
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::C2S, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::C2S, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::C2S, flag_),
0,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, nickname_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, avatarurl_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, apilevel_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, hkqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, usqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, cnqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, isneedagreedisclaimer_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, userid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, updatetype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, webkey_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, webjumpurlhead_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, hkoptionqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, hasusoptionqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, hkfutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, subquota_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, historyklquota_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, usfutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, usoptionqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, userattribution_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, updatewhatsnew_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, usindexqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, usotcqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, uscmefutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, uscbotfutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, usnymexfutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, uscomexfutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, uscboefutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, sgfutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, jpfutureqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, isappnnormm_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, shqotright_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::S2C, szqotright_),
0,
1,
2,
6,
7,
8,
16,
10,
9,
3,
4,
11,
17,
12,
13,
14,
15,
19,
20,
5,
21,
22,
23,
24,
25,
26,
27,
28,
29,
18,
30,
31,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Request, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Request, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Request, c2s_),
0,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Response, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Response, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Response, rettype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Response, retmsg_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Response, errcode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::GetUserInfo::Response, s2c_),
3,
0,
2,
1,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 6, sizeof(::GetUserInfo::C2S)},
{ 7, 44, sizeof(::GetUserInfo::S2C)},
{ 76, 82, sizeof(::GetUserInfo::Request)},
{ 83, 92, sizeof(::GetUserInfo::Response)},
};
static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::GetUserInfo::_C2S_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::GetUserInfo::_S2C_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::GetUserInfo::_Request_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::GetUserInfo::_Response_default_instance_),
};
void protobuf_AssignDescriptors() {
AddDescriptors();
::google::protobuf::MessageFactory* factory = NULL;
AssignDescriptors(
"GetUserInfo.proto", schemas, file_default_instances, TableStruct::offsets, factory,
file_level_metadata, file_level_enum_descriptors, 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, 4);
}
void AddDescriptorsImpl() {
InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\021GetUserInfo.proto\022\013GetUserInfo\032\014Common"
".proto\"\023\n\003C2S\022\014\n\004flag\030\002 \001(\005\"\373\005\n\003S2C\022\020\n\010n"
"ickName\030\001 \001(\t\022\021\n\tavatarUrl\030\002 \001(\t\022\020\n\010apiL"
"evel\030\003 \001(\t\022\022\n\nhkQotRight\030\004 \001(\005\022\022\n\nusQotR"
"ight\030\005 \001(\005\022\022\n\ncnQotRight\030\006 \001(\005\022\035\n\025isNeed"
"AgreeDisclaimer\030\007 \001(\010\022\016\n\006userID\030\010 \001(\003\022\022\n"
"\nupdateType\030\t \001(\005\022\016\n\006webKey\030\n \001(\t\022\026\n\016web"
"JumpUrlHead\030\022 \001(\t\022\030\n\020hkOptionQotRight\030\013 "
"\001(\005\022\033\n\023hasUSOptionQotRight\030\014 \001(\010\022\030\n\020hkFu"
"tureQotRight\030\r \001(\005\022\020\n\010subQuota\030\016 \001(\005\022\026\n\016"
"historyKLQuota\030\017 \001(\005\022\030\n\020usFutureQotRight"
"\030\020 \001(\005\022\030\n\020usOptionQotRight\030\021 \001(\005\022\027\n\017user"
"Attribution\030\023 \001(\005\022\026\n\016updateWhatsNew\030\024 \001("
"\t\022\027\n\017usIndexQotRight\030\025 \001(\005\022\025\n\rusOtcQotRi"
"ght\030\026 \001(\005\022\033\n\023usCMEFutureQotRight\030\027 \001(\005\022\034"
"\n\024usCBOTFutureQotRight\030\030 \001(\005\022\035\n\025usNYMEXF"
"utureQotRight\030\031 \001(\005\022\035\n\025usCOMEXFutureQotR"
"ight\030\032 \001(\005\022\034\n\024usCBOEFutureQotRight\030\033 \001(\005"
"\022\030\n\020sgFutureQotRight\030\034 \001(\005\022\030\n\020jpFutureQo"
"tRight\030\035 \001(\005\022\023\n\013isAppNNOrMM\030\036 \001(\010\022\022\n\nshQ"
"otRight\030\037 \001(\005\022\022\n\nszQotRight\030 \001(\005\"(\n\007Req"
"uest\022\035\n\003c2s\030\001 \002(\0132\020.GetUserInfo.C2S\"a\n\010R"
"esponse\022\025\n\007retType\030\001 \002(\005:\004-400\022\016\n\006retMsg"
"\030\002 \001(\t\022\017\n\007errCode\030\003 \001(\005\022\035\n\003s2c\030\004 \001(\0132\020.G"
"etUserInfo.S2C*N\n\nUpdateType\022\023\n\017UpdateTy"
"pe_None\020\000\022\025\n\021UpdateType_Advice\020\001\022\024\n\020Upda"
"teType_Force\020\002*\256\001\n\rUserInfoField\022\027\n\023User"
"InfoField_Basic\020\001\022\025\n\021UserInfoField_API\020\002"
"\022\032\n\026UserInfoField_QotRight\020\004\022\034\n\030UserInfo"
"Field_Disclaimer\020\010\022\030\n\024UserInfoField_Upda"
"te\020\020\022\031\n\024UserInfoField_WebKey\020\200\020BB\n\023com.f"
"utu.openapi.pbZ+github.com/futuopen/ftap"
"i4go/pb/getuserinfo"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 1299);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"GetUserInfo.proto", &protobuf_RegisterTypes);
::protobuf_Common_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_GetUserInfo_2eproto
namespace GetUserInfo {
const ::google::protobuf::EnumDescriptor* UpdateType_descriptor() {
protobuf_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_GetUserInfo_2eproto::file_level_enum_descriptors[0];
}
bool UpdateType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
const ::google::protobuf::EnumDescriptor* UserInfoField_descriptor() {
protobuf_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_GetUserInfo_2eproto::file_level_enum_descriptors[1];
}
bool UserInfoField_IsValid(int value) {
switch (value) {
case 1:
case 2:
case 4:
case 8:
case 16:
case 2048:
return true;
default:
return false;
}
}
// ===================================================================
void C2S::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int C2S::kFlagFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
C2S::C2S()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
::protobuf_GetUserInfo_2eproto::InitDefaultsC2S();
}
SharedCtor();
// @@protoc_insertion_point(constructor:GetUserInfo.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_);
flag_ = from.flag_;
// @@protoc_insertion_point(copy_constructor:GetUserInfo.C2S)
}
void C2S::SharedCtor() {
_cached_size_ = 0;
flag_ = 0;
}
C2S::~C2S() {
// @@protoc_insertion_point(destructor:GetUserInfo.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_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_GetUserInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const C2S& C2S::default_instance() {
::protobuf_GetUserInfo_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:GetUserInfo.C2S)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
flag_ = 0;
_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:GetUserInfo.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 int32 flag = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
set_has_flag();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &flag_)));
} 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:GetUserInfo.C2S)
return true;
failure:
// @@protoc_insertion_point(parse_failure:GetUserInfo.C2S)
return false;
#undef DO_
}
void C2S::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:GetUserInfo.C2S)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional int32 flag = 2;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->flag(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:GetUserInfo.C2S)
}
::google::protobuf::uint8* C2S::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:GetUserInfo.C2S)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional int32 flag = 2;
if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->flag(), 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:GetUserInfo.C2S)
return target;
}
size_t C2S::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:GetUserInfo.C2S)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
// optional int32 flag = 2;
if (has_flag()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->flag());
}
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:GetUserInfo.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:GetUserInfo.C2S)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:GetUserInfo.C2S)
MergeFrom(*source);
}
}
void C2S::MergeFrom(const C2S& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:GetUserInfo.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_flag()) {
set_flag(from.flag());
}
}
void C2S::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:GetUserInfo.C2S)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void C2S::CopyFrom(const C2S& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:GetUserInfo.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(flag_, other->flag_);
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_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_GetUserInfo_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void S2C::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int S2C::kNickNameFieldNumber;
const int S2C::kAvatarUrlFieldNumber;
const int S2C::kApiLevelFieldNumber;
const int S2C::kHkQotRightFieldNumber;
const int S2C::kUsQotRightFieldNumber;
const int S2C::kCnQotRightFieldNumber;
const int S2C::kIsNeedAgreeDisclaimerFieldNumber;
const int S2C::kUserIDFieldNumber;
const int S2C::kUpdateTypeFieldNumber;
const int S2C::kWebKeyFieldNumber;
const int S2C::kWebJumpUrlHeadFieldNumber;
const int S2C::kHkOptionQotRightFieldNumber;
const int S2C::kHasUSOptionQotRightFieldNumber;
const int S2C::kHkFutureQotRightFieldNumber;
const int S2C::kSubQuotaFieldNumber;
const int S2C::kHistoryKLQuotaFieldNumber;
const int S2C::kUsFutureQotRightFieldNumber;
const int S2C::kUsOptionQotRightFieldNumber;
const int S2C::kUserAttributionFieldNumber;
const int S2C::kUpdateWhatsNewFieldNumber;
const int S2C::kUsIndexQotRightFieldNumber;
const int S2C::kUsOtcQotRightFieldNumber;
const int S2C::kUsCMEFutureQotRightFieldNumber;
const int S2C::kUsCBOTFutureQotRightFieldNumber;
const int S2C::kUsNYMEXFutureQotRightFieldNumber;
const int S2C::kUsCOMEXFutureQotRightFieldNumber;
const int S2C::kUsCBOEFutureQotRightFieldNumber;
const int S2C::kSgFutureQotRightFieldNumber;
const int S2C::kJpFutureQotRightFieldNumber;
const int S2C::kIsAppNNOrMMFieldNumber;
const int S2C::kShQotRightFieldNumber;
const int S2C::kSzQotRightFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
S2C::S2C()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
::protobuf_GetUserInfo_2eproto::InitDefaultsS2C();
}
SharedCtor();
// @@protoc_insertion_point(constructor:GetUserInfo.S2C)
}
S2C::S2C(const S2C& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
nickname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_nickname()) {
nickname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nickname_);
}
avatarurl_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_avatarurl()) {
avatarurl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.avatarurl_);
}
apilevel_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_apilevel()) {
apilevel_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.apilevel_);
}
webkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_webkey()) {
webkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.webkey_);
}
webjumpurlhead_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_webjumpurlhead()) {
webjumpurlhead_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.webjumpurlhead_);
}
updatewhatsnew_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_updatewhatsnew()) {
updatewhatsnew_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.updatewhatsnew_);
}
::memcpy(&hkqotright_, &from.hkqotright_,
static_cast<size_t>(reinterpret_cast<char*>(&szqotright_) -
reinterpret_cast<char*>(&hkqotright_)) + sizeof(szqotright_));
// @@protoc_insertion_point(copy_constructor:GetUserInfo.S2C)
}
void S2C::SharedCtor() {
_cached_size_ = 0;
nickname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
avatarurl_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
apilevel_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
webkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
webjumpurlhead_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
updatewhatsnew_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&hkqotright_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&szqotright_) -
reinterpret_cast<char*>(&hkqotright_)) + sizeof(szqotright_));
}
S2C::~S2C() {
// @@protoc_insertion_point(destructor:GetUserInfo.S2C)
SharedDtor();
}
void S2C::SharedDtor() {
nickname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
avatarurl_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
apilevel_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
webkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
webjumpurlhead_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
updatewhatsnew_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
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_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_GetUserInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const S2C& S2C::default_instance() {
::protobuf_GetUserInfo_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:GetUserInfo.S2C)
::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 & 63u) {
if (cached_has_bits & 0x00000001u) {
GOOGLE_DCHECK(!nickname_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*nickname_.UnsafeRawStringPointer())->clear();
}
if (cached_has_bits & 0x00000002u) {
GOOGLE_DCHECK(!avatarurl_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*avatarurl_.UnsafeRawStringPointer())->clear();
}
if (cached_has_bits & 0x00000004u) {
GOOGLE_DCHECK(!apilevel_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*apilevel_.UnsafeRawStringPointer())->clear();
}
if (cached_has_bits & 0x00000008u) {
GOOGLE_DCHECK(!webkey_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*webkey_.UnsafeRawStringPointer())->clear();
}
if (cached_has_bits & 0x00000010u) {
GOOGLE_DCHECK(!webjumpurlhead_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*webjumpurlhead_.UnsafeRawStringPointer())->clear();
}
if (cached_has_bits & 0x00000020u) {
GOOGLE_DCHECK(!updatewhatsnew_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*updatewhatsnew_.UnsafeRawStringPointer())->clear();
}
}
if (cached_has_bits & 192u) {
::memset(&hkqotright_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&usqotright_) -
reinterpret_cast<char*>(&hkqotright_)) + sizeof(usqotright_));
}
if (cached_has_bits & 65280u) {
::memset(&cnqotright_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&usfutureqotright_) -
reinterpret_cast<char*>(&cnqotright_)) + sizeof(usfutureqotright_));
}
if (cached_has_bits & 16711680u) {
::memset(&isneedagreedisclaimer_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&uscmefutureqotright_) -
reinterpret_cast<char*>(&isneedagreedisclaimer_)) + sizeof(uscmefutureqotright_));
}
if (cached_has_bits & 4278190080u) {
::memset(&uscbotfutureqotright_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&szqotright_) -
reinterpret_cast<char*>(&uscbotfutureqotright_)) + sizeof(szqotright_));
}
_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:GetUserInfo.S2C)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional string nickName = 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_nickname()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->nickname().data(), static_cast<int>(this->nickname().length()),
::google::protobuf::internal::WireFormat::PARSE,
"GetUserInfo.S2C.nickName");
} else {
goto handle_unusual;
}
break;
}
// optional string avatarUrl = 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_avatarurl()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->avatarurl().data(), static_cast<int>(this->avatarurl().length()),
::google::protobuf::internal::WireFormat::PARSE,
"GetUserInfo.S2C.avatarUrl");
} else {
goto handle_unusual;
}
break;
}
// optional string apiLevel = 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_apilevel()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->apilevel().data(), static_cast<int>(this->apilevel().length()),
::google::protobuf::internal::WireFormat::PARSE,
"GetUserInfo.S2C.apiLevel");
} else {
goto handle_unusual;
}
break;
}
// optional int32 hkQotRight = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
set_has_hkqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &hkqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usQotRight = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
set_has_usqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &usqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 cnQotRight = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
set_has_cnqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &cnqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional bool isNeedAgreeDisclaimer = 7;
case 7: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
set_has_isneedagreedisclaimer();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &isneedagreedisclaimer_)));
} else {
goto handle_unusual;
}
break;
}
// optional int64 userID = 8;
case 8: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
set_has_userid();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &userid_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 updateType = 9;
case 9: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
set_has_updatetype();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &updatetype_)));
} else {
goto handle_unusual;
}
break;
}
// optional string webKey = 10;
case 10: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_webkey()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->webkey().data(), static_cast<int>(this->webkey().length()),
::google::protobuf::internal::WireFormat::PARSE,
"GetUserInfo.S2C.webKey");
} else {
goto handle_unusual;
}
break;
}
// optional int32 hkOptionQotRight = 11;
case 11: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
set_has_hkoptionqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &hkoptionqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional bool hasUSOptionQotRight = 12;
case 12: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
set_has_hasusoptionqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &hasusoptionqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 hkFutureQotRight = 13;
case 13: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
set_has_hkfutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &hkfutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 subQuota = 14;
case 14: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
set_has_subquota();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &subquota_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 historyKLQuota = 15;
case 15: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
set_has_historyklquota();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &historyklquota_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usFutureQotRight = 16;
case 16: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
set_has_usfutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &usfutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usOptionQotRight = 17;
case 17: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
set_has_usoptionqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &usoptionqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional string webJumpUrlHead = 18;
case 18: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_webjumpurlhead()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->webjumpurlhead().data(), static_cast<int>(this->webjumpurlhead().length()),
::google::protobuf::internal::WireFormat::PARSE,
"GetUserInfo.S2C.webJumpUrlHead");
} else {
goto handle_unusual;
}
break;
}
// optional int32 userAttribution = 19;
case 19: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
set_has_userattribution();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &userattribution_)));
} else {
goto handle_unusual;
}
break;
}
// optional string updateWhatsNew = 20;
case 20: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_updatewhatsnew()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->updatewhatsnew().data(), static_cast<int>(this->updatewhatsnew().length()),
::google::protobuf::internal::WireFormat::PARSE,
"GetUserInfo.S2C.updateWhatsNew");
} else {
goto handle_unusual;
}
break;
}
// optional int32 usIndexQotRight = 21;
case 21: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(168u /* 168 & 0xFF */)) {
set_has_usindexqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &usindexqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usOtcQotRight = 22;
case 22: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(176u /* 176 & 0xFF */)) {
set_has_usotcqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &usotcqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usCMEFutureQotRight = 23;
case 23: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
set_has_uscmefutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &uscmefutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usCBOTFutureQotRight = 24;
case 24: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(192u /* 192 & 0xFF */)) {
set_has_uscbotfutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &uscbotfutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usNYMEXFutureQotRight = 25;
case 25: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(200u /* 200 & 0xFF */)) {
set_has_usnymexfutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &usnymexfutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usCOMEXFutureQotRight = 26;
case 26: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(208u /* 208 & 0xFF */)) {
set_has_uscomexfutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &uscomexfutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 usCBOEFutureQotRight = 27;
case 27: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(216u /* 216 & 0xFF */)) {
set_has_uscboefutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &uscboefutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 sgFutureQotRight = 28;
case 28: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(224u /* 224 & 0xFF */)) {
set_has_sgfutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &sgfutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 jpFutureQotRight = 29;
case 29: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(232u /* 232 & 0xFF */)) {
set_has_jpfutureqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &jpfutureqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional bool isAppNNOrMM = 30;
case 30: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(240u /* 240 & 0xFF */)) {
set_has_isappnnormm();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &isappnnormm_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 shQotRight = 31;
case 31: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(248u /* 248 & 0xFF */)) {
set_has_shqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &shqotright_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 szQotRight = 32;
case 32: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(0u /* 256 & 0xFF */)) {
set_has_szqotright();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &szqotright_)));
} 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:GetUserInfo.S2C)
return true;
failure:
// @@protoc_insertion_point(parse_failure:GetUserInfo.S2C)
return false;
#undef DO_
}
void S2C::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:GetUserInfo.S2C)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional string nickName = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->nickname().data(), static_cast<int>(this->nickname().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.nickName");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->nickname(), output);
}
// optional string avatarUrl = 2;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->avatarurl().data(), static_cast<int>(this->avatarurl().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.avatarUrl");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->avatarurl(), output);
}
// optional string apiLevel = 3;
if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->apilevel().data(), static_cast<int>(this->apilevel().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.apiLevel");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->apilevel(), output);
}
// optional int32 hkQotRight = 4;
if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->hkqotright(), output);
}
// optional int32 usQotRight = 5;
if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->usqotright(), output);
}
// optional int32 cnQotRight = 6;
if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->cnqotright(), output);
}
// optional bool isNeedAgreeDisclaimer = 7;
if (cached_has_bits & 0x00010000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->isneedagreedisclaimer(), output);
}
// optional int64 userID = 8;
if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteInt64(8, this->userid(), output);
}
// optional int32 updateType = 9;
if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->updatetype(), output);
}
// optional string webKey = 10;
if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->webkey().data(), static_cast<int>(this->webkey().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.webKey");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10, this->webkey(), output);
}
// optional int32 hkOptionQotRight = 11;
if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->hkoptionqotright(), output);
}
// optional bool hasUSOptionQotRight = 12;
if (cached_has_bits & 0x00020000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(12, this->hasusoptionqotright(), output);
}
// optional int32 hkFutureQotRight = 13;
if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->hkfutureqotright(), output);
}
// optional int32 subQuota = 14;
if (cached_has_bits & 0x00002000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->subquota(), output);
}
// optional int32 historyKLQuota = 15;
if (cached_has_bits & 0x00004000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->historyklquota(), output);
}
// optional int32 usFutureQotRight = 16;
if (cached_has_bits & 0x00008000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->usfutureqotright(), output);
}
// optional int32 usOptionQotRight = 17;
if (cached_has_bits & 0x00080000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->usoptionqotright(), output);
}
// optional string webJumpUrlHead = 18;
if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->webjumpurlhead().data(), static_cast<int>(this->webjumpurlhead().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.webJumpUrlHead");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
18, this->webjumpurlhead(), output);
}
// optional int32 userAttribution = 19;
if (cached_has_bits & 0x00100000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(19, this->userattribution(), output);
}
// optional string updateWhatsNew = 20;
if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->updatewhatsnew().data(), static_cast<int>(this->updatewhatsnew().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.updateWhatsNew");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
20, this->updatewhatsnew(), output);
}
// optional int32 usIndexQotRight = 21;
if (cached_has_bits & 0x00200000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(21, this->usindexqotright(), output);
}
// optional int32 usOtcQotRight = 22;
if (cached_has_bits & 0x00400000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(22, this->usotcqotright(), output);
}
// optional int32 usCMEFutureQotRight = 23;
if (cached_has_bits & 0x00800000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(23, this->uscmefutureqotright(), output);
}
// optional int32 usCBOTFutureQotRight = 24;
if (cached_has_bits & 0x01000000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(24, this->uscbotfutureqotright(), output);
}
// optional int32 usNYMEXFutureQotRight = 25;
if (cached_has_bits & 0x02000000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(25, this->usnymexfutureqotright(), output);
}
// optional int32 usCOMEXFutureQotRight = 26;
if (cached_has_bits & 0x04000000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(26, this->uscomexfutureqotright(), output);
}
// optional int32 usCBOEFutureQotRight = 27;
if (cached_has_bits & 0x08000000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(27, this->uscboefutureqotright(), output);
}
// optional int32 sgFutureQotRight = 28;
if (cached_has_bits & 0x10000000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(28, this->sgfutureqotright(), output);
}
// optional int32 jpFutureQotRight = 29;
if (cached_has_bits & 0x20000000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(29, this->jpfutureqotright(), output);
}
// optional bool isAppNNOrMM = 30;
if (cached_has_bits & 0x00040000u) {
::google::protobuf::internal::WireFormatLite::WriteBool(30, this->isappnnormm(), output);
}
// optional int32 shQotRight = 31;
if (cached_has_bits & 0x40000000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(31, this->shqotright(), output);
}
// optional int32 szQotRight = 32;
if (cached_has_bits & 0x80000000u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(32, this->szqotright(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:GetUserInfo.S2C)
}
::google::protobuf::uint8* S2C::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:GetUserInfo.S2C)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional string nickName = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->nickname().data(), static_cast<int>(this->nickname().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.nickName");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->nickname(), target);
}
// optional string avatarUrl = 2;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->avatarurl().data(), static_cast<int>(this->avatarurl().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.avatarUrl");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->avatarurl(), target);
}
// optional string apiLevel = 3;
if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->apilevel().data(), static_cast<int>(this->apilevel().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.apiLevel");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->apilevel(), target);
}
// optional int32 hkQotRight = 4;
if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->hkqotright(), target);
}
// optional int32 usQotRight = 5;
if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->usqotright(), target);
}
// optional int32 cnQotRight = 6;
if (cached_has_bits & 0x00000100u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->cnqotright(), target);
}
// optional bool isNeedAgreeDisclaimer = 7;
if (cached_has_bits & 0x00010000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->isneedagreedisclaimer(), target);
}
// optional int64 userID = 8;
if (cached_has_bits & 0x00000400u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(8, this->userid(), target);
}
// optional int32 updateType = 9;
if (cached_has_bits & 0x00000200u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->updatetype(), target);
}
// optional string webKey = 10;
if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->webkey().data(), static_cast<int>(this->webkey().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.webKey");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10, this->webkey(), target);
}
// optional int32 hkOptionQotRight = 11;
if (cached_has_bits & 0x00000800u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->hkoptionqotright(), target);
}
// optional bool hasUSOptionQotRight = 12;
if (cached_has_bits & 0x00020000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->hasusoptionqotright(), target);
}
// optional int32 hkFutureQotRight = 13;
if (cached_has_bits & 0x00001000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->hkfutureqotright(), target);
}
// optional int32 subQuota = 14;
if (cached_has_bits & 0x00002000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->subquota(), target);
}
// optional int32 historyKLQuota = 15;
if (cached_has_bits & 0x00004000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->historyklquota(), target);
}
// optional int32 usFutureQotRight = 16;
if (cached_has_bits & 0x00008000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->usfutureqotright(), target);
}
// optional int32 usOptionQotRight = 17;
if (cached_has_bits & 0x00080000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->usoptionqotright(), target);
}
// optional string webJumpUrlHead = 18;
if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->webjumpurlhead().data(), static_cast<int>(this->webjumpurlhead().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.webJumpUrlHead");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
18, this->webjumpurlhead(), target);
}
// optional int32 userAttribution = 19;
if (cached_has_bits & 0x00100000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(19, this->userattribution(), target);
}
// optional string updateWhatsNew = 20;
if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->updatewhatsnew().data(), static_cast<int>(this->updatewhatsnew().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"GetUserInfo.S2C.updateWhatsNew");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
20, this->updatewhatsnew(), target);
}
// optional int32 usIndexQotRight = 21;
if (cached_has_bits & 0x00200000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(21, this->usindexqotright(), target);
}
// optional int32 usOtcQotRight = 22;
if (cached_has_bits & 0x00400000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(22, this->usotcqotright(), target);
}
// optional int32 usCMEFutureQotRight = 23;
if (cached_has_bits & 0x00800000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(23, this->uscmefutureqotright(), target);
}
// optional int32 usCBOTFutureQotRight = 24;
if (cached_has_bits & 0x01000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(24, this->uscbotfutureqotright(), target);
}
// optional int32 usNYMEXFutureQotRight = 25;
if (cached_has_bits & 0x02000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(25, this->usnymexfutureqotright(), target);
}
// optional int32 usCOMEXFutureQotRight = 26;
if (cached_has_bits & 0x04000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(26, this->uscomexfutureqotright(), target);
}
// optional int32 usCBOEFutureQotRight = 27;
if (cached_has_bits & 0x08000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(27, this->uscboefutureqotright(), target);
}
// optional int32 sgFutureQotRight = 28;
if (cached_has_bits & 0x10000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(28, this->sgfutureqotright(), target);
}
// optional int32 jpFutureQotRight = 29;
if (cached_has_bits & 0x20000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(29, this->jpfutureqotright(), target);
}
// optional bool isAppNNOrMM = 30;
if (cached_has_bits & 0x00040000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(30, this->isappnnormm(), target);
}
// optional int32 shQotRight = 31;
if (cached_has_bits & 0x40000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(31, this->shqotright(), target);
}
// optional int32 szQotRight = 32;
if (cached_has_bits & 0x80000000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(32, this->szqotright(), 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:GetUserInfo.S2C)
return target;
}
size_t S2C::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:GetUserInfo.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 / 32] & 255u) {
// optional string nickName = 1;
if (has_nickname()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->nickname());
}
// optional string avatarUrl = 2;
if (has_avatarurl()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->avatarurl());
}
// optional string apiLevel = 3;
if (has_apilevel()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->apilevel());
}
// optional string webKey = 10;
if (has_webkey()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->webkey());
}
// optional string webJumpUrlHead = 18;
if (has_webjumpurlhead()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->webjumpurlhead());
}
// optional string updateWhatsNew = 20;
if (has_updatewhatsnew()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->updatewhatsnew());
}
// optional int32 hkQotRight = 4;
if (has_hkqotright()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->hkqotright());
}
// optional int32 usQotRight = 5;
if (has_usqotright()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->usqotright());
}
}
if (_has_bits_[8 / 32] & 65280u) {
// optional int32 cnQotRight = 6;
if (has_cnqotright()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->cnqotright());
}
// optional int32 updateType = 9;
if (has_updatetype()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->updatetype());
}
// optional int64 userID = 8;
if (has_userid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->userid());
}
// optional int32 hkOptionQotRight = 11;
if (has_hkoptionqotright()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->hkoptionqotright());
}
// optional int32 hkFutureQotRight = 13;
if (has_hkfutureqotright()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->hkfutureqotright());
}
// optional int32 subQuota = 14;
if (has_subquota()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->subquota());
}
// optional int32 historyKLQuota = 15;
if (has_historyklquota()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->historyklquota());
}
// optional int32 usFutureQotRight = 16;
if (has_usfutureqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->usfutureqotright());
}
}
if (_has_bits_[16 / 32] & 16711680u) {
// optional bool isNeedAgreeDisclaimer = 7;
if (has_isneedagreedisclaimer()) {
total_size += 1 + 1;
}
// optional bool hasUSOptionQotRight = 12;
if (has_hasusoptionqotright()) {
total_size += 1 + 1;
}
// optional bool isAppNNOrMM = 30;
if (has_isappnnormm()) {
total_size += 2 + 1;
}
// optional int32 usOptionQotRight = 17;
if (has_usoptionqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->usoptionqotright());
}
// optional int32 userAttribution = 19;
if (has_userattribution()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->userattribution());
}
// optional int32 usIndexQotRight = 21;
if (has_usindexqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->usindexqotright());
}
// optional int32 usOtcQotRight = 22;
if (has_usotcqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->usotcqotright());
}
// optional int32 usCMEFutureQotRight = 23;
if (has_uscmefutureqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->uscmefutureqotright());
}
}
if (_has_bits_[24 / 32] & 4278190080u) {
// optional int32 usCBOTFutureQotRight = 24;
if (has_uscbotfutureqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->uscbotfutureqotright());
}
// optional int32 usNYMEXFutureQotRight = 25;
if (has_usnymexfutureqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->usnymexfutureqotright());
}
// optional int32 usCOMEXFutureQotRight = 26;
if (has_uscomexfutureqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->uscomexfutureqotright());
}
// optional int32 usCBOEFutureQotRight = 27;
if (has_uscboefutureqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->uscboefutureqotright());
}
// optional int32 sgFutureQotRight = 28;
if (has_sgfutureqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->sgfutureqotright());
}
// optional int32 jpFutureQotRight = 29;
if (has_jpfutureqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->jpfutureqotright());
}
// optional int32 shQotRight = 31;
if (has_shqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->shqotright());
}
// optional int32 szQotRight = 32;
if (has_szqotright()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->szqotright());
}
}
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:GetUserInfo.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:GetUserInfo.S2C)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:GetUserInfo.S2C)
MergeFrom(*source);
}
}
void S2C::MergeFrom(const S2C& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:GetUserInfo.S2C)
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 & 255u) {
if (cached_has_bits & 0x00000001u) {
set_has_nickname();
nickname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nickname_);
}
if (cached_has_bits & 0x00000002u) {
set_has_avatarurl();
avatarurl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.avatarurl_);
}
if (cached_has_bits & 0x00000004u) {
set_has_apilevel();
apilevel_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.apilevel_);
}
if (cached_has_bits & 0x00000008u) {
set_has_webkey();
webkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.webkey_);
}
if (cached_has_bits & 0x00000010u) {
set_has_webjumpurlhead();
webjumpurlhead_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.webjumpurlhead_);
}
if (cached_has_bits & 0x00000020u) {
set_has_updatewhatsnew();
updatewhatsnew_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.updatewhatsnew_);
}
if (cached_has_bits & 0x00000040u) {
hkqotright_ = from.hkqotright_;
}
if (cached_has_bits & 0x00000080u) {
usqotright_ = from.usqotright_;
}
_has_bits_[0] |= cached_has_bits;
}
if (cached_has_bits & 65280u) {
if (cached_has_bits & 0x00000100u) {
cnqotright_ = from.cnqotright_;
}
if (cached_has_bits & 0x00000200u) {
updatetype_ = from.updatetype_;
}
if (cached_has_bits & 0x00000400u) {
userid_ = from.userid_;
}
if (cached_has_bits & 0x00000800u) {
hkoptionqotright_ = from.hkoptionqotright_;
}
if (cached_has_bits & 0x00001000u) {
hkfutureqotright_ = from.hkfutureqotright_;
}
if (cached_has_bits & 0x00002000u) {
subquota_ = from.subquota_;
}
if (cached_has_bits & 0x00004000u) {
historyklquota_ = from.historyklquota_;
}
if (cached_has_bits & 0x00008000u) {
usfutureqotright_ = from.usfutureqotright_;
}
_has_bits_[0] |= cached_has_bits;
}
if (cached_has_bits & 16711680u) {
if (cached_has_bits & 0x00010000u) {
isneedagreedisclaimer_ = from.isneedagreedisclaimer_;
}
if (cached_has_bits & 0x00020000u) {
hasusoptionqotright_ = from.hasusoptionqotright_;
}
if (cached_has_bits & 0x00040000u) {
isappnnormm_ = from.isappnnormm_;
}
if (cached_has_bits & 0x00080000u) {
usoptionqotright_ = from.usoptionqotright_;
}
if (cached_has_bits & 0x00100000u) {
userattribution_ = from.userattribution_;
}
if (cached_has_bits & 0x00200000u) {
usindexqotright_ = from.usindexqotright_;
}
if (cached_has_bits & 0x00400000u) {
usotcqotright_ = from.usotcqotright_;
}
if (cached_has_bits & 0x00800000u) {
uscmefutureqotright_ = from.uscmefutureqotright_;
}
_has_bits_[0] |= cached_has_bits;
}
if (cached_has_bits & 4278190080u) {
if (cached_has_bits & 0x01000000u) {
uscbotfutureqotright_ = from.uscbotfutureqotright_;
}
if (cached_has_bits & 0x02000000u) {
usnymexfutureqotright_ = from.usnymexfutureqotright_;
}
if (cached_has_bits & 0x04000000u) {
uscomexfutureqotright_ = from.uscomexfutureqotright_;
}
if (cached_has_bits & 0x08000000u) {
uscboefutureqotright_ = from.uscboefutureqotright_;
}
if (cached_has_bits & 0x10000000u) {
sgfutureqotright_ = from.sgfutureqotright_;
}
if (cached_has_bits & 0x20000000u) {
jpfutureqotright_ = from.jpfutureqotright_;
}
if (cached_has_bits & 0x40000000u) {
shqotright_ = from.shqotright_;
}
if (cached_has_bits & 0x80000000u) {
szqotright_ = from.szqotright_;
}
_has_bits_[0] |= cached_has_bits;
}
}
void S2C::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:GetUserInfo.S2C)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void S2C::CopyFrom(const S2C& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:GetUserInfo.S2C)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool S2C::IsInitialized() const {
return true;
}
void S2C::Swap(S2C* other) {
if (other == this) return;
InternalSwap(other);
}
void S2C::InternalSwap(S2C* other) {
using std::swap;
nickname_.Swap(&other->nickname_);
avatarurl_.Swap(&other->avatarurl_);
apilevel_.Swap(&other->apilevel_);
webkey_.Swap(&other->webkey_);
webjumpurlhead_.Swap(&other->webjumpurlhead_);
updatewhatsnew_.Swap(&other->updatewhatsnew_);
swap(hkqotright_, other->hkqotright_);
swap(usqotright_, other->usqotright_);
swap(cnqotright_, other->cnqotright_);
swap(updatetype_, other->updatetype_);
swap(userid_, other->userid_);
swap(hkoptionqotright_, other->hkoptionqotright_);
swap(hkfutureqotright_, other->hkfutureqotright_);
swap(subquota_, other->subquota_);
swap(historyklquota_, other->historyklquota_);
swap(usfutureqotright_, other->usfutureqotright_);
swap(isneedagreedisclaimer_, other->isneedagreedisclaimer_);
swap(hasusoptionqotright_, other->hasusoptionqotright_);
swap(isappnnormm_, other->isappnnormm_);
swap(usoptionqotright_, other->usoptionqotright_);
swap(userattribution_, other->userattribution_);
swap(usindexqotright_, other->usindexqotright_);
swap(usotcqotright_, other->usotcqotright_);
swap(uscmefutureqotright_, other->uscmefutureqotright_);
swap(uscbotfutureqotright_, other->uscbotfutureqotright_);
swap(usnymexfutureqotright_, other->usnymexfutureqotright_);
swap(uscomexfutureqotright_, other->uscomexfutureqotright_);
swap(uscboefutureqotright_, other->uscboefutureqotright_);
swap(sgfutureqotright_, other->sgfutureqotright_);
swap(jpfutureqotright_, other->jpfutureqotright_);
swap(shqotright_, other->shqotright_);
swap(szqotright_, other->szqotright_);
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_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_GetUserInfo_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void Request::InitAsDefaultInstance() {
::GetUserInfo::_Request_default_instance_._instance.get_mutable()->c2s_ = const_cast< ::GetUserInfo::C2S*>(
::GetUserInfo::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_GetUserInfo_2eproto::InitDefaultsRequest();
}
SharedCtor();
// @@protoc_insertion_point(constructor:GetUserInfo.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 ::GetUserInfo::C2S(*from.c2s_);
} else {
c2s_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:GetUserInfo.Request)
}
void Request::SharedCtor() {
_cached_size_ = 0;
c2s_ = NULL;
}
Request::~Request() {
// @@protoc_insertion_point(destructor:GetUserInfo.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_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_GetUserInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Request& Request::default_instance() {
::protobuf_GetUserInfo_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:GetUserInfo.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:GetUserInfo.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 .GetUserInfo.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:GetUserInfo.Request)
return true;
failure:
// @@protoc_insertion_point(parse_failure:GetUserInfo.Request)
return false;
#undef DO_
}
void Request::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:GetUserInfo.Request)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required .GetUserInfo.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:GetUserInfo.Request)
}
::google::protobuf::uint8* Request::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:GetUserInfo.Request)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required .GetUserInfo.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:GetUserInfo.Request)
return target;
}
size_t Request::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:GetUserInfo.Request)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
// required .GetUserInfo.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:GetUserInfo.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:GetUserInfo.Request)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:GetUserInfo.Request)
MergeFrom(*source);
}
}
void Request::MergeFrom(const Request& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:GetUserInfo.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()->::GetUserInfo::C2S::MergeFrom(from.c2s());
}
}
void Request::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:GetUserInfo.Request)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Request::CopyFrom(const Request& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:GetUserInfo.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_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_GetUserInfo_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void Response::InitAsDefaultInstance() {
::GetUserInfo::_Response_default_instance_._instance.get_mutable()->s2c_ = const_cast< ::GetUserInfo::S2C*>(
::GetUserInfo::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_GetUserInfo_2eproto::InitDefaultsResponse();
}
SharedCtor();
// @@protoc_insertion_point(constructor:GetUserInfo.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 ::GetUserInfo::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:GetUserInfo.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:GetUserInfo.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_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_GetUserInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Response& Response::default_instance() {
::protobuf_GetUserInfo_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:GetUserInfo.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:GetUserInfo.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,
"GetUserInfo.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 .GetUserInfo.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:GetUserInfo.Response)
return true;
failure:
// @@protoc_insertion_point(parse_failure:GetUserInfo.Response)
return false;
#undef DO_
}
void Response::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:GetUserInfo.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,
"GetUserInfo.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 .GetUserInfo.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:GetUserInfo.Response)
}
::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:GetUserInfo.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,
"GetUserInfo.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 .GetUserInfo.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:GetUserInfo.Response)
return target;
}
size_t Response::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:GetUserInfo.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 .GetUserInfo.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:GetUserInfo.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:GetUserInfo.Response)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:GetUserInfo.Response)
MergeFrom(*source);
}
}
void Response::MergeFrom(const Response& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:GetUserInfo.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()->::GetUserInfo::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:GetUserInfo.Response)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Response::CopyFrom(const Response& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:GetUserInfo.Response)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Response::IsInitialized() const {
if ((_has_bits_[0] & 0x00000008) != 0x00000008) 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_GetUserInfo_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_GetUserInfo_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
} // namespace GetUserInfo
// @@protoc_insertion_point(global_scope)