3087 lines
112 KiB
C++
3087 lines
112 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Qot_GetFutureInfo.proto
|
|
|
|
#include "Qot_GetFutureInfo.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_GetFutureInfo {
|
|
class TradeTimeDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<TradeTime>
|
|
_instance;
|
|
} _TradeTime_default_instance_;
|
|
class FutureInfoDefaultTypeInternal {
|
|
public:
|
|
::google::protobuf::internal::ExplicitlyConstructed<FutureInfo>
|
|
_instance;
|
|
} _FutureInfo_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_GetFutureInfo
|
|
namespace protobuf_Qot_5fGetFutureInfo_2eproto {
|
|
void InitDefaultsTradeTimeImpl() {
|
|
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_GetFutureInfo::_TradeTime_default_instance_;
|
|
new (ptr) ::Qot_GetFutureInfo::TradeTime();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_GetFutureInfo::TradeTime::InitAsDefaultInstance();
|
|
}
|
|
|
|
void InitDefaultsTradeTime() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTradeTimeImpl);
|
|
}
|
|
|
|
void InitDefaultsFutureInfoImpl() {
|
|
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();
|
|
protobuf_Qot_5fGetFutureInfo_2eproto::InitDefaultsTradeTime();
|
|
{
|
|
void* ptr = &::Qot_GetFutureInfo::_FutureInfo_default_instance_;
|
|
new (ptr) ::Qot_GetFutureInfo::FutureInfo();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_GetFutureInfo::FutureInfo::InitAsDefaultInstance();
|
|
}
|
|
|
|
void InitDefaultsFutureInfo() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFutureInfoImpl);
|
|
}
|
|
|
|
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
|
|
protobuf_Qot_5fCommon_2eproto::InitDefaultsSecurity();
|
|
{
|
|
void* ptr = &::Qot_GetFutureInfo::_C2S_default_instance_;
|
|
new (ptr) ::Qot_GetFutureInfo::C2S();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_GetFutureInfo::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_5fGetFutureInfo_2eproto::InitDefaultsFutureInfo();
|
|
{
|
|
void* ptr = &::Qot_GetFutureInfo::_S2C_default_instance_;
|
|
new (ptr) ::Qot_GetFutureInfo::S2C();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_GetFutureInfo::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_5fGetFutureInfo_2eproto::InitDefaultsC2S();
|
|
{
|
|
void* ptr = &::Qot_GetFutureInfo::_Request_default_instance_;
|
|
new (ptr) ::Qot_GetFutureInfo::Request();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_GetFutureInfo::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_5fGetFutureInfo_2eproto::InitDefaultsS2C();
|
|
{
|
|
void* ptr = &::Qot_GetFutureInfo::_Response_default_instance_;
|
|
new (ptr) ::Qot_GetFutureInfo::Response();
|
|
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::Qot_GetFutureInfo::Response::InitAsDefaultInstance();
|
|
}
|
|
|
|
void InitDefaultsResponse() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl);
|
|
}
|
|
|
|
::google::protobuf::Metadata file_level_metadata[6];
|
|
|
|
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::TradeTime, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::TradeTime, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::TradeTime, begin_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::TradeTime, end_),
|
|
0,
|
|
1,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, name_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, security_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, lasttradetime_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, lasttradetimestamp_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, owner_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, ownerother_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, exchange_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, contracttype_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, contractsize_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, contractsizeunit_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, quotecurrency_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, minvar_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, minvarunit_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, quoteunit_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, tradetime_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, timezone_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, exchangeformaturl_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::FutureInfo, origin_),
|
|
0,
|
|
11,
|
|
1,
|
|
14,
|
|
12,
|
|
2,
|
|
3,
|
|
4,
|
|
15,
|
|
5,
|
|
6,
|
|
16,
|
|
7,
|
|
8,
|
|
~0u,
|
|
9,
|
|
10,
|
|
13,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::C2S, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::C2S, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::C2S, securitylist_),
|
|
~0u,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::S2C, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::S2C, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::S2C, futureinfolist_),
|
|
~0u,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Request, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Request, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Request, c2s_),
|
|
0,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Response, _has_bits_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Response, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Response, rettype_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Response, retmsg_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Response, errcode_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetFutureInfo::Response, s2c_),
|
|
3,
|
|
0,
|
|
2,
|
|
1,
|
|
};
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, 7, sizeof(::Qot_GetFutureInfo::TradeTime)},
|
|
{ 9, 32, sizeof(::Qot_GetFutureInfo::FutureInfo)},
|
|
{ 50, 56, sizeof(::Qot_GetFutureInfo::C2S)},
|
|
{ 57, 63, sizeof(::Qot_GetFutureInfo::S2C)},
|
|
{ 64, 70, sizeof(::Qot_GetFutureInfo::Request)},
|
|
{ 71, 80, sizeof(::Qot_GetFutureInfo::Response)},
|
|
};
|
|
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetFutureInfo::_TradeTime_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetFutureInfo::_FutureInfo_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetFutureInfo::_C2S_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetFutureInfo::_S2C_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetFutureInfo::_Request_default_instance_),
|
|
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetFutureInfo::_Response_default_instance_),
|
|
};
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
AddDescriptors();
|
|
::google::protobuf::MessageFactory* factory = NULL;
|
|
AssignDescriptors(
|
|
"Qot_GetFutureInfo.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, 6);
|
|
}
|
|
|
|
void AddDescriptorsImpl() {
|
|
InitDefaults();
|
|
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
"\n\027Qot_GetFutureInfo.proto\022\021Qot_GetFuture"
|
|
"Info\032\014Common.proto\032\020Qot_Common.proto\"\'\n\t"
|
|
"TradeTime\022\r\n\005begin\030\001 \001(\001\022\013\n\003end\030\002 \001(\001\"\330\003"
|
|
"\n\nFutureInfo\022\014\n\004name\030\001 \002(\t\022&\n\010security\030\002"
|
|
" \002(\0132\024.Qot_Common.Security\022\025\n\rlastTradeT"
|
|
"ime\030\003 \002(\t\022\032\n\022lastTradeTimestamp\030\004 \001(\001\022#\n"
|
|
"\005owner\030\005 \001(\0132\024.Qot_Common.Security\022\022\n\now"
|
|
"nerOther\030\006 \002(\t\022\020\n\010exchange\030\007 \002(\t\022\024\n\014cont"
|
|
"ractType\030\010 \002(\t\022\024\n\014contractSize\030\t \002(\001\022\030\n\020"
|
|
"contractSizeUnit\030\n \002(\t\022\025\n\rquoteCurrency\030"
|
|
"\013 \002(\t\022\016\n\006minVar\030\014 \002(\001\022\022\n\nminVarUnit\030\r \002("
|
|
"\t\022\021\n\tquoteUnit\030\016 \001(\t\022/\n\ttradeTime\030\017 \003(\0132"
|
|
"\034.Qot_GetFutureInfo.TradeTime\022\020\n\010timeZon"
|
|
"e\030\020 \002(\t\022\031\n\021exchangeFormatUrl\030\021 \002(\t\022$\n\006or"
|
|
"igin\030\022 \001(\0132\024.Qot_Common.Security\"1\n\003C2S\022"
|
|
"*\n\014securityList\030\001 \003(\0132\024.Qot_Common.Secur"
|
|
"ity\"<\n\003S2C\0225\n\016futureInfoList\030\001 \003(\0132\035.Qot"
|
|
"_GetFutureInfo.FutureInfo\".\n\007Request\022#\n\003"
|
|
"c2s\030\001 \002(\0132\026.Qot_GetFutureInfo.C2S\"g\n\010Res"
|
|
"ponse\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#\n\003s2c\030\004 \001(\0132\026.Qot"
|
|
"_GetFutureInfo.S2CBG\n\023com.futu.openapi.p"
|
|
"bZ0github.com/futuopen/ftapi4go/pb/qotge"
|
|
"tfutureinfo"
|
|
};
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
descriptor, 931);
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
"Qot_GetFutureInfo.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_5fGetFutureInfo_2eproto
|
|
namespace Qot_GetFutureInfo {
|
|
|
|
// ===================================================================
|
|
|
|
void TradeTime::InitAsDefaultInstance() {
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int TradeTime::kBeginFieldNumber;
|
|
const int TradeTime::kEndFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
TradeTime::TradeTime()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
::protobuf_Qot_5fGetFutureInfo_2eproto::InitDefaultsTradeTime();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_GetFutureInfo.TradeTime)
|
|
}
|
|
TradeTime::TradeTime(const TradeTime& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::memcpy(&begin_, &from.begin_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&end_) -
|
|
reinterpret_cast<char*>(&begin_)) + sizeof(end_));
|
|
// @@protoc_insertion_point(copy_constructor:Qot_GetFutureInfo.TradeTime)
|
|
}
|
|
|
|
void TradeTime::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
::memset(&begin_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&end_) -
|
|
reinterpret_cast<char*>(&begin_)) + sizeof(end_));
|
|
}
|
|
|
|
TradeTime::~TradeTime() {
|
|
// @@protoc_insertion_point(destructor:Qot_GetFutureInfo.TradeTime)
|
|
SharedDtor();
|
|
}
|
|
|
|
void TradeTime::SharedDtor() {
|
|
}
|
|
|
|
void TradeTime::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* TradeTime::descriptor() {
|
|
::protobuf_Qot_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const TradeTime& TradeTime::default_instance() {
|
|
::protobuf_Qot_5fGetFutureInfo_2eproto::InitDefaultsTradeTime();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
TradeTime* TradeTime::New(::google::protobuf::Arena* arena) const {
|
|
TradeTime* n = new TradeTime;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void TradeTime::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Qot_GetFutureInfo.TradeTime)
|
|
::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) {
|
|
::memset(&begin_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&end_) -
|
|
reinterpret_cast<char*>(&begin_)) + sizeof(end_));
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool TradeTime::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_GetFutureInfo.TradeTime)
|
|
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 double begin = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
|
|
set_has_begin();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
input, &begin_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional double end = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
|
|
set_has_end();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
input, &end_)));
|
|
} 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_GetFutureInfo.TradeTime)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_GetFutureInfo.TradeTime)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void TradeTime::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_GetFutureInfo.TradeTime)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// optional double begin = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->begin(), output);
|
|
}
|
|
|
|
// optional double end = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->end(), output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:Qot_GetFutureInfo.TradeTime)
|
|
}
|
|
|
|
::google::protobuf::uint8* TradeTime::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetFutureInfo.TradeTime)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// optional double begin = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->begin(), target);
|
|
}
|
|
|
|
// optional double end = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->end(), 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_GetFutureInfo.TradeTime)
|
|
return target;
|
|
}
|
|
|
|
size_t TradeTime::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_GetFutureInfo.TradeTime)
|
|
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] & 3u) {
|
|
// optional double begin = 1;
|
|
if (has_begin()) {
|
|
total_size += 1 + 8;
|
|
}
|
|
|
|
// optional double end = 2;
|
|
if (has_end()) {
|
|
total_size += 1 + 8;
|
|
}
|
|
|
|
}
|
|
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 TradeTime::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Qot_GetFutureInfo.TradeTime)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const TradeTime* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const TradeTime>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_GetFutureInfo.TradeTime)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetFutureInfo.TradeTime)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void TradeTime::MergeFrom(const TradeTime& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetFutureInfo.TradeTime)
|
|
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 & 3u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
begin_ = from.begin_;
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
end_ = from.end_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void TradeTime::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetFutureInfo.TradeTime)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void TradeTime::CopyFrom(const TradeTime& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetFutureInfo.TradeTime)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool TradeTime::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void TradeTime::Swap(TradeTime* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void TradeTime::InternalSwap(TradeTime* other) {
|
|
using std::swap;
|
|
swap(begin_, other->begin_);
|
|
swap(end_, other->end_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::google::protobuf::Metadata TradeTime::GetMetadata() const {
|
|
protobuf_Qot_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void FutureInfo::InitAsDefaultInstance() {
|
|
::Qot_GetFutureInfo::_FutureInfo_default_instance_._instance.get_mutable()->security_ = const_cast< ::Qot_Common::Security*>(
|
|
::Qot_Common::Security::internal_default_instance());
|
|
::Qot_GetFutureInfo::_FutureInfo_default_instance_._instance.get_mutable()->owner_ = const_cast< ::Qot_Common::Security*>(
|
|
::Qot_Common::Security::internal_default_instance());
|
|
::Qot_GetFutureInfo::_FutureInfo_default_instance_._instance.get_mutable()->origin_ = const_cast< ::Qot_Common::Security*>(
|
|
::Qot_Common::Security::internal_default_instance());
|
|
}
|
|
void FutureInfo::clear_security() {
|
|
if (security_ != NULL) security_->Clear();
|
|
clear_has_security();
|
|
}
|
|
void FutureInfo::clear_owner() {
|
|
if (owner_ != NULL) owner_->Clear();
|
|
clear_has_owner();
|
|
}
|
|
void FutureInfo::clear_origin() {
|
|
if (origin_ != NULL) origin_->Clear();
|
|
clear_has_origin();
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int FutureInfo::kNameFieldNumber;
|
|
const int FutureInfo::kSecurityFieldNumber;
|
|
const int FutureInfo::kLastTradeTimeFieldNumber;
|
|
const int FutureInfo::kLastTradeTimestampFieldNumber;
|
|
const int FutureInfo::kOwnerFieldNumber;
|
|
const int FutureInfo::kOwnerOtherFieldNumber;
|
|
const int FutureInfo::kExchangeFieldNumber;
|
|
const int FutureInfo::kContractTypeFieldNumber;
|
|
const int FutureInfo::kContractSizeFieldNumber;
|
|
const int FutureInfo::kContractSizeUnitFieldNumber;
|
|
const int FutureInfo::kQuoteCurrencyFieldNumber;
|
|
const int FutureInfo::kMinVarFieldNumber;
|
|
const int FutureInfo::kMinVarUnitFieldNumber;
|
|
const int FutureInfo::kQuoteUnitFieldNumber;
|
|
const int FutureInfo::kTradeTimeFieldNumber;
|
|
const int FutureInfo::kTimeZoneFieldNumber;
|
|
const int FutureInfo::kExchangeFormatUrlFieldNumber;
|
|
const int FutureInfo::kOriginFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
FutureInfo::FutureInfo()
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
::protobuf_Qot_5fGetFutureInfo_2eproto::InitDefaultsFutureInfo();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_GetFutureInfo.FutureInfo)
|
|
}
|
|
FutureInfo::FutureInfo(const FutureInfo& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0),
|
|
tradetime_(from.tradetime_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_name()) {
|
|
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
lasttradetime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_lasttradetime()) {
|
|
lasttradetime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lasttradetime_);
|
|
}
|
|
ownerother_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_ownerother()) {
|
|
ownerother_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ownerother_);
|
|
}
|
|
exchange_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_exchange()) {
|
|
exchange_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exchange_);
|
|
}
|
|
contracttype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_contracttype()) {
|
|
contracttype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.contracttype_);
|
|
}
|
|
contractsizeunit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_contractsizeunit()) {
|
|
contractsizeunit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.contractsizeunit_);
|
|
}
|
|
quotecurrency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_quotecurrency()) {
|
|
quotecurrency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.quotecurrency_);
|
|
}
|
|
minvarunit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_minvarunit()) {
|
|
minvarunit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.minvarunit_);
|
|
}
|
|
quoteunit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_quoteunit()) {
|
|
quoteunit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.quoteunit_);
|
|
}
|
|
timezone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_timezone()) {
|
|
timezone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.timezone_);
|
|
}
|
|
exchangeformaturl_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (from.has_exchangeformaturl()) {
|
|
exchangeformaturl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exchangeformaturl_);
|
|
}
|
|
if (from.has_security()) {
|
|
security_ = new ::Qot_Common::Security(*from.security_);
|
|
} else {
|
|
security_ = NULL;
|
|
}
|
|
if (from.has_owner()) {
|
|
owner_ = new ::Qot_Common::Security(*from.owner_);
|
|
} else {
|
|
owner_ = NULL;
|
|
}
|
|
if (from.has_origin()) {
|
|
origin_ = new ::Qot_Common::Security(*from.origin_);
|
|
} else {
|
|
origin_ = NULL;
|
|
}
|
|
::memcpy(&lasttradetimestamp_, &from.lasttradetimestamp_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&minvar_) -
|
|
reinterpret_cast<char*>(&lasttradetimestamp_)) + sizeof(minvar_));
|
|
// @@protoc_insertion_point(copy_constructor:Qot_GetFutureInfo.FutureInfo)
|
|
}
|
|
|
|
void FutureInfo::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
lasttradetime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
ownerother_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
exchange_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
contracttype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
contractsizeunit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
quotecurrency_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
minvarunit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
quoteunit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
timezone_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
exchangeformaturl_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&security_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&minvar_) -
|
|
reinterpret_cast<char*>(&security_)) + sizeof(minvar_));
|
|
}
|
|
|
|
FutureInfo::~FutureInfo() {
|
|
// @@protoc_insertion_point(destructor:Qot_GetFutureInfo.FutureInfo)
|
|
SharedDtor();
|
|
}
|
|
|
|
void FutureInfo::SharedDtor() {
|
|
name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
lasttradetime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
ownerother_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
exchange_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
contracttype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
contractsizeunit_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
quotecurrency_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
minvarunit_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
quoteunit_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
timezone_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
exchangeformaturl_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
if (this != internal_default_instance()) delete security_;
|
|
if (this != internal_default_instance()) delete owner_;
|
|
if (this != internal_default_instance()) delete origin_;
|
|
}
|
|
|
|
void FutureInfo::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* FutureInfo::descriptor() {
|
|
::protobuf_Qot_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const FutureInfo& FutureInfo::default_instance() {
|
|
::protobuf_Qot_5fGetFutureInfo_2eproto::InitDefaultsFutureInfo();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
FutureInfo* FutureInfo::New(::google::protobuf::Arena* arena) const {
|
|
FutureInfo* n = new FutureInfo;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void FutureInfo::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Qot_GetFutureInfo.FutureInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
tradetime_.Clear();
|
|
cached_has_bits = _has_bits_[0];
|
|
if (cached_has_bits & 255u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*name_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
GOOGLE_DCHECK(!lasttradetime_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*lasttradetime_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
GOOGLE_DCHECK(!ownerother_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*ownerother_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
GOOGLE_DCHECK(!exchange_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*exchange_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000010u) {
|
|
GOOGLE_DCHECK(!contracttype_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*contracttype_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000020u) {
|
|
GOOGLE_DCHECK(!contractsizeunit_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*contractsizeunit_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000040u) {
|
|
GOOGLE_DCHECK(!quotecurrency_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*quotecurrency_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000080u) {
|
|
GOOGLE_DCHECK(!minvarunit_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*minvarunit_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
}
|
|
if (cached_has_bits & 16128u) {
|
|
if (cached_has_bits & 0x00000100u) {
|
|
GOOGLE_DCHECK(!quoteunit_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*quoteunit_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000200u) {
|
|
GOOGLE_DCHECK(!timezone_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*timezone_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000400u) {
|
|
GOOGLE_DCHECK(!exchangeformaturl_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
(*exchangeformaturl_.UnsafeRawStringPointer())->clear();
|
|
}
|
|
if (cached_has_bits & 0x00000800u) {
|
|
GOOGLE_DCHECK(security_ != NULL);
|
|
security_->Clear();
|
|
}
|
|
if (cached_has_bits & 0x00001000u) {
|
|
GOOGLE_DCHECK(owner_ != NULL);
|
|
owner_->Clear();
|
|
}
|
|
if (cached_has_bits & 0x00002000u) {
|
|
GOOGLE_DCHECK(origin_ != NULL);
|
|
origin_->Clear();
|
|
}
|
|
}
|
|
if (cached_has_bits & 49152u) {
|
|
::memset(&lasttradetimestamp_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&contractsize_) -
|
|
reinterpret_cast<char*>(&lasttradetimestamp_)) + sizeof(contractsize_));
|
|
}
|
|
minvar_ = 0;
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool FutureInfo::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_GetFutureInfo.FutureInfo)
|
|
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)) {
|
|
// required string name = 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_name()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.name");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required .Qot_Common.Security security = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_security()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string lastTradeTime = 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_lasttradetime()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->lasttradetime().data(), static_cast<int>(this->lasttradetime().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.lastTradeTime");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional double lastTradeTimestamp = 4;
|
|
case 4: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
|
|
set_has_lasttradetimestamp();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
input, &lasttradetimestamp_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional .Qot_Common.Security owner = 5;
|
|
case 5: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_owner()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string ownerOther = 6;
|
|
case 6: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_ownerother()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->ownerother().data(), static_cast<int>(this->ownerother().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.ownerOther");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string exchange = 7;
|
|
case 7: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_exchange()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->exchange().data(), static_cast<int>(this->exchange().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.exchange");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string contractType = 8;
|
|
case 8: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_contracttype()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->contracttype().data(), static_cast<int>(this->contracttype().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.contractType");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required double contractSize = 9;
|
|
case 9: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
|
|
set_has_contractsize();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
input, &contractsize_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string contractSizeUnit = 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_contractsizeunit()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->contractsizeunit().data(), static_cast<int>(this->contractsizeunit().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.contractSizeUnit");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string quoteCurrency = 11;
|
|
case 11: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_quotecurrency()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->quotecurrency().data(), static_cast<int>(this->quotecurrency().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.quoteCurrency");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required double minVar = 12;
|
|
case 12: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) {
|
|
set_has_minvar();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
input, &minvar_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string minVarUnit = 13;
|
|
case 13: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_minvarunit()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->minvarunit().data(), static_cast<int>(this->minvarunit().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.minVarUnit");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional string quoteUnit = 14;
|
|
case 14: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_quoteunit()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->quoteunit().data(), static_cast<int>(this->quoteunit().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.quoteUnit");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// repeated .Qot_GetFutureInfo.TradeTime tradeTime = 15;
|
|
case 15: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tradetime()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string timeZone = 16;
|
|
case 16: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_timezone()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->timezone().data(), static_cast<int>(this->timezone().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.timeZone");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required string exchangeFormatUrl = 17;
|
|
case 17: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_exchangeformaturl()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->exchangeformaturl().data(), static_cast<int>(this->exchangeformaturl().length()),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"Qot_GetFutureInfo.FutureInfo.exchangeFormatUrl");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// optional .Qot_Common.Security origin = 18;
|
|
case 18: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
input, mutable_origin()));
|
|
} 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_GetFutureInfo.FutureInfo)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_GetFutureInfo.FutureInfo)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void FutureInfo::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_GetFutureInfo.FutureInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required string name = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.name");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->name(), output);
|
|
}
|
|
|
|
// required .Qot_Common.Security security = 2;
|
|
if (cached_has_bits & 0x00000800u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
2, *this->security_, output);
|
|
}
|
|
|
|
// required string lastTradeTime = 3;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->lasttradetime().data(), static_cast<int>(this->lasttradetime().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.lastTradeTime");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->lasttradetime(), output);
|
|
}
|
|
|
|
// optional double lastTradeTimestamp = 4;
|
|
if (cached_has_bits & 0x00004000u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->lasttradetimestamp(), output);
|
|
}
|
|
|
|
// optional .Qot_Common.Security owner = 5;
|
|
if (cached_has_bits & 0x00001000u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
5, *this->owner_, output);
|
|
}
|
|
|
|
// required string ownerOther = 6;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->ownerother().data(), static_cast<int>(this->ownerother().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.ownerOther");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
6, this->ownerother(), output);
|
|
}
|
|
|
|
// required string exchange = 7;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->exchange().data(), static_cast<int>(this->exchange().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.exchange");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
7, this->exchange(), output);
|
|
}
|
|
|
|
// required string contractType = 8;
|
|
if (cached_has_bits & 0x00000010u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->contracttype().data(), static_cast<int>(this->contracttype().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.contractType");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
8, this->contracttype(), output);
|
|
}
|
|
|
|
// required double contractSize = 9;
|
|
if (cached_has_bits & 0x00008000u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->contractsize(), output);
|
|
}
|
|
|
|
// required string contractSizeUnit = 10;
|
|
if (cached_has_bits & 0x00000020u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->contractsizeunit().data(), static_cast<int>(this->contractsizeunit().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.contractSizeUnit");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
10, this->contractsizeunit(), output);
|
|
}
|
|
|
|
// required string quoteCurrency = 11;
|
|
if (cached_has_bits & 0x00000040u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->quotecurrency().data(), static_cast<int>(this->quotecurrency().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.quoteCurrency");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
11, this->quotecurrency(), output);
|
|
}
|
|
|
|
// required double minVar = 12;
|
|
if (cached_has_bits & 0x00010000u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteDouble(12, this->minvar(), output);
|
|
}
|
|
|
|
// required string minVarUnit = 13;
|
|
if (cached_has_bits & 0x00000080u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->minvarunit().data(), static_cast<int>(this->minvarunit().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.minVarUnit");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
13, this->minvarunit(), output);
|
|
}
|
|
|
|
// optional string quoteUnit = 14;
|
|
if (cached_has_bits & 0x00000100u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->quoteunit().data(), static_cast<int>(this->quoteunit().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.quoteUnit");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
14, this->quoteunit(), output);
|
|
}
|
|
|
|
// repeated .Qot_GetFutureInfo.TradeTime tradeTime = 15;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->tradetime_size()); i < n; i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
15, this->tradetime(static_cast<int>(i)), output);
|
|
}
|
|
|
|
// required string timeZone = 16;
|
|
if (cached_has_bits & 0x00000200u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->timezone().data(), static_cast<int>(this->timezone().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.timeZone");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
16, this->timezone(), output);
|
|
}
|
|
|
|
// required string exchangeFormatUrl = 17;
|
|
if (cached_has_bits & 0x00000400u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->exchangeformaturl().data(), static_cast<int>(this->exchangeformaturl().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.exchangeFormatUrl");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
17, this->exchangeformaturl(), output);
|
|
}
|
|
|
|
// optional .Qot_Common.Security origin = 18;
|
|
if (cached_has_bits & 0x00002000u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
18, *this->origin_, output);
|
|
}
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
_internal_metadata_.unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:Qot_GetFutureInfo.FutureInfo)
|
|
}
|
|
|
|
::google::protobuf::uint8* FutureInfo::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetFutureInfo.FutureInfo)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required string name = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->name().data(), static_cast<int>(this->name().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.name");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->name(), target);
|
|
}
|
|
|
|
// required .Qot_Common.Security security = 2;
|
|
if (cached_has_bits & 0x00000800u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
2, *this->security_, deterministic, target);
|
|
}
|
|
|
|
// required string lastTradeTime = 3;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->lasttradetime().data(), static_cast<int>(this->lasttradetime().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.lastTradeTime");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->lasttradetime(), target);
|
|
}
|
|
|
|
// optional double lastTradeTimestamp = 4;
|
|
if (cached_has_bits & 0x00004000u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->lasttradetimestamp(), target);
|
|
}
|
|
|
|
// optional .Qot_Common.Security owner = 5;
|
|
if (cached_has_bits & 0x00001000u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
5, *this->owner_, deterministic, target);
|
|
}
|
|
|
|
// required string ownerOther = 6;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->ownerother().data(), static_cast<int>(this->ownerother().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.ownerOther");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
6, this->ownerother(), target);
|
|
}
|
|
|
|
// required string exchange = 7;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->exchange().data(), static_cast<int>(this->exchange().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.exchange");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
7, this->exchange(), target);
|
|
}
|
|
|
|
// required string contractType = 8;
|
|
if (cached_has_bits & 0x00000010u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->contracttype().data(), static_cast<int>(this->contracttype().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.contractType");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
8, this->contracttype(), target);
|
|
}
|
|
|
|
// required double contractSize = 9;
|
|
if (cached_has_bits & 0x00008000u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->contractsize(), target);
|
|
}
|
|
|
|
// required string contractSizeUnit = 10;
|
|
if (cached_has_bits & 0x00000020u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->contractsizeunit().data(), static_cast<int>(this->contractsizeunit().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.contractSizeUnit");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
10, this->contractsizeunit(), target);
|
|
}
|
|
|
|
// required string quoteCurrency = 11;
|
|
if (cached_has_bits & 0x00000040u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->quotecurrency().data(), static_cast<int>(this->quotecurrency().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.quoteCurrency");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
11, this->quotecurrency(), target);
|
|
}
|
|
|
|
// required double minVar = 12;
|
|
if (cached_has_bits & 0x00010000u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(12, this->minvar(), target);
|
|
}
|
|
|
|
// required string minVarUnit = 13;
|
|
if (cached_has_bits & 0x00000080u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->minvarunit().data(), static_cast<int>(this->minvarunit().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.minVarUnit");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
13, this->minvarunit(), target);
|
|
}
|
|
|
|
// optional string quoteUnit = 14;
|
|
if (cached_has_bits & 0x00000100u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->quoteunit().data(), static_cast<int>(this->quoteunit().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.quoteUnit");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
14, this->quoteunit(), target);
|
|
}
|
|
|
|
// repeated .Qot_GetFutureInfo.TradeTime tradeTime = 15;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->tradetime_size()); i < n; i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
15, this->tradetime(static_cast<int>(i)), deterministic, target);
|
|
}
|
|
|
|
// required string timeZone = 16;
|
|
if (cached_has_bits & 0x00000200u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->timezone().data(), static_cast<int>(this->timezone().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.timeZone");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
16, this->timezone(), target);
|
|
}
|
|
|
|
// required string exchangeFormatUrl = 17;
|
|
if (cached_has_bits & 0x00000400u) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->exchangeformaturl().data(), static_cast<int>(this->exchangeformaturl().length()),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"Qot_GetFutureInfo.FutureInfo.exchangeFormatUrl");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
17, this->exchangeformaturl(), target);
|
|
}
|
|
|
|
// optional .Qot_Common.Security origin = 18;
|
|
if (cached_has_bits & 0x00002000u) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
18, *this->origin_, 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_GetFutureInfo.FutureInfo)
|
|
return target;
|
|
}
|
|
|
|
size_t FutureInfo::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:Qot_GetFutureInfo.FutureInfo)
|
|
size_t total_size = 0;
|
|
|
|
if (has_name()) {
|
|
// required string name = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
}
|
|
|
|
if (has_lasttradetime()) {
|
|
// required string lastTradeTime = 3;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->lasttradetime());
|
|
}
|
|
|
|
if (has_ownerother()) {
|
|
// required string ownerOther = 6;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->ownerother());
|
|
}
|
|
|
|
if (has_exchange()) {
|
|
// required string exchange = 7;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->exchange());
|
|
}
|
|
|
|
if (has_contracttype()) {
|
|
// required string contractType = 8;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->contracttype());
|
|
}
|
|
|
|
if (has_contractsizeunit()) {
|
|
// required string contractSizeUnit = 10;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->contractsizeunit());
|
|
}
|
|
|
|
if (has_quotecurrency()) {
|
|
// required string quoteCurrency = 11;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->quotecurrency());
|
|
}
|
|
|
|
if (has_minvarunit()) {
|
|
// required string minVarUnit = 13;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->minvarunit());
|
|
}
|
|
|
|
if (has_timezone()) {
|
|
// required string timeZone = 16;
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->timezone());
|
|
}
|
|
|
|
if (has_exchangeformaturl()) {
|
|
// required string exchangeFormatUrl = 17;
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->exchangeformaturl());
|
|
}
|
|
|
|
if (has_security()) {
|
|
// required .Qot_Common.Security security = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*this->security_);
|
|
}
|
|
|
|
if (has_contractsize()) {
|
|
// required double contractSize = 9;
|
|
total_size += 1 + 8;
|
|
}
|
|
|
|
if (has_minvar()) {
|
|
// required double minVar = 12;
|
|
total_size += 1 + 8;
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t FutureInfo::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_GetFutureInfo.FutureInfo)
|
|
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] & 0x00018eff) ^ 0x00018eff) == 0) { // All required fields are present.
|
|
// required string name = 1;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->name());
|
|
|
|
// required string lastTradeTime = 3;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->lasttradetime());
|
|
|
|
// required string ownerOther = 6;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->ownerother());
|
|
|
|
// required string exchange = 7;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->exchange());
|
|
|
|
// required string contractType = 8;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->contracttype());
|
|
|
|
// required string contractSizeUnit = 10;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->contractsizeunit());
|
|
|
|
// required string quoteCurrency = 11;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->quotecurrency());
|
|
|
|
// required string minVarUnit = 13;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->minvarunit());
|
|
|
|
// required string timeZone = 16;
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->timezone());
|
|
|
|
// required string exchangeFormatUrl = 17;
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->exchangeformaturl());
|
|
|
|
// required .Qot_Common.Security security = 2;
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*this->security_);
|
|
|
|
// required double contractSize = 9;
|
|
total_size += 1 + 8;
|
|
|
|
// required double minVar = 12;
|
|
total_size += 1 + 8;
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
// repeated .Qot_GetFutureInfo.TradeTime tradeTime = 15;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->tradetime_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
this->tradetime(static_cast<int>(i)));
|
|
}
|
|
}
|
|
|
|
// optional string quoteUnit = 14;
|
|
if (has_quoteunit()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->quoteunit());
|
|
}
|
|
|
|
if (_has_bits_[8 / 32] & 28672u) {
|
|
// optional .Qot_Common.Security owner = 5;
|
|
if (has_owner()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*this->owner_);
|
|
}
|
|
|
|
// optional .Qot_Common.Security origin = 18;
|
|
if (has_origin()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
*this->origin_);
|
|
}
|
|
|
|
// optional double lastTradeTimestamp = 4;
|
|
if (has_lasttradetimestamp()) {
|
|
total_size += 1 + 8;
|
|
}
|
|
|
|
}
|
|
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 FutureInfo::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Qot_GetFutureInfo.FutureInfo)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const FutureInfo* source =
|
|
::google::protobuf::internal::DynamicCastToGenerated<const FutureInfo>(
|
|
&from);
|
|
if (source == NULL) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_GetFutureInfo.FutureInfo)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetFutureInfo.FutureInfo)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void FutureInfo::MergeFrom(const FutureInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetFutureInfo.FutureInfo)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
tradetime_.MergeFrom(from.tradetime_);
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 255u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
set_has_name();
|
|
name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
set_has_lasttradetime();
|
|
lasttradetime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lasttradetime_);
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
set_has_ownerother();
|
|
ownerother_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ownerother_);
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
set_has_exchange();
|
|
exchange_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exchange_);
|
|
}
|
|
if (cached_has_bits & 0x00000010u) {
|
|
set_has_contracttype();
|
|
contracttype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.contracttype_);
|
|
}
|
|
if (cached_has_bits & 0x00000020u) {
|
|
set_has_contractsizeunit();
|
|
contractsizeunit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.contractsizeunit_);
|
|
}
|
|
if (cached_has_bits & 0x00000040u) {
|
|
set_has_quotecurrency();
|
|
quotecurrency_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.quotecurrency_);
|
|
}
|
|
if (cached_has_bits & 0x00000080u) {
|
|
set_has_minvarunit();
|
|
minvarunit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.minvarunit_);
|
|
}
|
|
}
|
|
if (cached_has_bits & 65280u) {
|
|
if (cached_has_bits & 0x00000100u) {
|
|
set_has_quoteunit();
|
|
quoteunit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.quoteunit_);
|
|
}
|
|
if (cached_has_bits & 0x00000200u) {
|
|
set_has_timezone();
|
|
timezone_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.timezone_);
|
|
}
|
|
if (cached_has_bits & 0x00000400u) {
|
|
set_has_exchangeformaturl();
|
|
exchangeformaturl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exchangeformaturl_);
|
|
}
|
|
if (cached_has_bits & 0x00000800u) {
|
|
mutable_security()->::Qot_Common::Security::MergeFrom(from.security());
|
|
}
|
|
if (cached_has_bits & 0x00001000u) {
|
|
mutable_owner()->::Qot_Common::Security::MergeFrom(from.owner());
|
|
}
|
|
if (cached_has_bits & 0x00002000u) {
|
|
mutable_origin()->::Qot_Common::Security::MergeFrom(from.origin());
|
|
}
|
|
if (cached_has_bits & 0x00004000u) {
|
|
lasttradetimestamp_ = from.lasttradetimestamp_;
|
|
}
|
|
if (cached_has_bits & 0x00008000u) {
|
|
contractsize_ = from.contractsize_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
if (cached_has_bits & 0x00010000u) {
|
|
set_minvar(from.minvar());
|
|
}
|
|
}
|
|
|
|
void FutureInfo::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetFutureInfo.FutureInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void FutureInfo::CopyFrom(const FutureInfo& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetFutureInfo.FutureInfo)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool FutureInfo::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00018eff) != 0x00018eff) return false;
|
|
if (has_security()) {
|
|
if (!this->security_->IsInitialized()) return false;
|
|
}
|
|
if (has_owner()) {
|
|
if (!this->owner_->IsInitialized()) return false;
|
|
}
|
|
if (has_origin()) {
|
|
if (!this->origin_->IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void FutureInfo::Swap(FutureInfo* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void FutureInfo::InternalSwap(FutureInfo* other) {
|
|
using std::swap;
|
|
tradetime_.InternalSwap(&other->tradetime_);
|
|
name_.Swap(&other->name_);
|
|
lasttradetime_.Swap(&other->lasttradetime_);
|
|
ownerother_.Swap(&other->ownerother_);
|
|
exchange_.Swap(&other->exchange_);
|
|
contracttype_.Swap(&other->contracttype_);
|
|
contractsizeunit_.Swap(&other->contractsizeunit_);
|
|
quotecurrency_.Swap(&other->quotecurrency_);
|
|
minvarunit_.Swap(&other->minvarunit_);
|
|
quoteunit_.Swap(&other->quoteunit_);
|
|
timezone_.Swap(&other->timezone_);
|
|
exchangeformaturl_.Swap(&other->exchangeformaturl_);
|
|
swap(security_, other->security_);
|
|
swap(owner_, other->owner_);
|
|
swap(origin_, other->origin_);
|
|
swap(lasttradetimestamp_, other->lasttradetimestamp_);
|
|
swap(contractsize_, other->contractsize_);
|
|
swap(minvar_, other->minvar_);
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::google::protobuf::Metadata FutureInfo::GetMetadata() const {
|
|
protobuf_Qot_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void C2S::InitAsDefaultInstance() {
|
|
}
|
|
void C2S::clear_securitylist() {
|
|
securitylist_.Clear();
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int C2S::kSecurityListFieldNumber;
|
|
#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_5fGetFutureInfo_2eproto::InitDefaultsC2S();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_GetFutureInfo.C2S)
|
|
}
|
|
C2S::C2S(const C2S& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0),
|
|
securitylist_(from.securitylist_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:Qot_GetFutureInfo.C2S)
|
|
}
|
|
|
|
void C2S::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
}
|
|
|
|
C2S::~C2S() {
|
|
// @@protoc_insertion_point(destructor:Qot_GetFutureInfo.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_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const C2S& C2S::default_instance() {
|
|
::protobuf_Qot_5fGetFutureInfo_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_GetFutureInfo.C2S)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
securitylist_.Clear();
|
|
_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_GetFutureInfo.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)) {
|
|
// repeated .Qot_Common.Security securityList = 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, add_securitylist()));
|
|
} 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_GetFutureInfo.C2S)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_GetFutureInfo.C2S)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void C2S::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_GetFutureInfo.C2S)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .Qot_Common.Security securityList = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->securitylist_size()); i < n; i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1, this->securitylist(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_GetFutureInfo.C2S)
|
|
}
|
|
|
|
::google::protobuf::uint8* C2S::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetFutureInfo.C2S)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .Qot_Common.Security securityList = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->securitylist_size()); i < n; i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->securitylist(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_GetFutureInfo.C2S)
|
|
return target;
|
|
}
|
|
|
|
size_t C2S::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_GetFutureInfo.C2S)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
// repeated .Qot_Common.Security securityList = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->securitylist_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
this->securitylist(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 C2S::MergeFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Qot_GetFutureInfo.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_GetFutureInfo.C2S)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetFutureInfo.C2S)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void C2S::MergeFrom(const C2S& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetFutureInfo.C2S)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
securitylist_.MergeFrom(from.securitylist_);
|
|
}
|
|
|
|
void C2S::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetFutureInfo.C2S)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void C2S::CopyFrom(const C2S& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetFutureInfo.C2S)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool C2S::IsInitialized() const {
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->securitylist())) return false;
|
|
return true;
|
|
}
|
|
|
|
void C2S::Swap(C2S* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void C2S::InternalSwap(C2S* other) {
|
|
using std::swap;
|
|
securitylist_.InternalSwap(&other->securitylist_);
|
|
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_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void S2C::InitAsDefaultInstance() {
|
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int S2C::kFutureInfoListFieldNumber;
|
|
#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_5fGetFutureInfo_2eproto::InitDefaultsS2C();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_GetFutureInfo.S2C)
|
|
}
|
|
S2C::S2C(const S2C& from)
|
|
: ::google::protobuf::Message(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0),
|
|
futureinfolist_(from.futureinfolist_) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:Qot_GetFutureInfo.S2C)
|
|
}
|
|
|
|
void S2C::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
}
|
|
|
|
S2C::~S2C() {
|
|
// @@protoc_insertion_point(destructor:Qot_GetFutureInfo.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_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const S2C& S2C::default_instance() {
|
|
::protobuf_Qot_5fGetFutureInfo_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_GetFutureInfo.S2C)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
futureinfolist_.Clear();
|
|
_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_GetFutureInfo.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)) {
|
|
// repeated .Qot_GetFutureInfo.FutureInfo futureInfoList = 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, add_futureinfolist()));
|
|
} 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_GetFutureInfo.S2C)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_GetFutureInfo.S2C)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void S2C::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_GetFutureInfo.S2C)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .Qot_GetFutureInfo.FutureInfo futureInfoList = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->futureinfolist_size()); i < n; i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1, this->futureinfolist(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_GetFutureInfo.S2C)
|
|
}
|
|
|
|
::google::protobuf::uint8* S2C::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetFutureInfo.S2C)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// repeated .Qot_GetFutureInfo.FutureInfo futureInfoList = 1;
|
|
for (unsigned int i = 0,
|
|
n = static_cast<unsigned int>(this->futureinfolist_size()); i < n; i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
InternalWriteMessageToArray(
|
|
1, this->futureinfolist(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_GetFutureInfo.S2C)
|
|
return target;
|
|
}
|
|
|
|
size_t S2C::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_GetFutureInfo.S2C)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
_internal_metadata_.unknown_fields());
|
|
}
|
|
// repeated .Qot_GetFutureInfo.FutureInfo futureInfoList = 1;
|
|
{
|
|
unsigned int count = static_cast<unsigned int>(this->futureinfolist_size());
|
|
total_size += 1UL * count;
|
|
for (unsigned int i = 0; i < count; i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
this->futureinfolist(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_GetFutureInfo.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_GetFutureInfo.S2C)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetFutureInfo.S2C)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void S2C::MergeFrom(const S2C& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetFutureInfo.S2C)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
futureinfolist_.MergeFrom(from.futureinfolist_);
|
|
}
|
|
|
|
void S2C::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetFutureInfo.S2C)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void S2C::CopyFrom(const S2C& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetFutureInfo.S2C)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool S2C::IsInitialized() const {
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->futureinfolist())) return false;
|
|
return true;
|
|
}
|
|
|
|
void S2C::Swap(S2C* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void S2C::InternalSwap(S2C* other) {
|
|
using std::swap;
|
|
futureinfolist_.InternalSwap(&other->futureinfolist_);
|
|
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_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void Request::InitAsDefaultInstance() {
|
|
::Qot_GetFutureInfo::_Request_default_instance_._instance.get_mutable()->c2s_ = const_cast< ::Qot_GetFutureInfo::C2S*>(
|
|
::Qot_GetFutureInfo::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_5fGetFutureInfo_2eproto::InitDefaultsRequest();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_GetFutureInfo.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_GetFutureInfo::C2S(*from.c2s_);
|
|
} else {
|
|
c2s_ = NULL;
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:Qot_GetFutureInfo.Request)
|
|
}
|
|
|
|
void Request::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
c2s_ = NULL;
|
|
}
|
|
|
|
Request::~Request() {
|
|
// @@protoc_insertion_point(destructor:Qot_GetFutureInfo.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_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const Request& Request::default_instance() {
|
|
::protobuf_Qot_5fGetFutureInfo_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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.Request)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_GetFutureInfo.Request)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void Request::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_GetFutureInfo.Request)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required .Qot_GetFutureInfo.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_GetFutureInfo.Request)
|
|
}
|
|
|
|
::google::protobuf::uint8* Request::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetFutureInfo.Request)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required .Qot_GetFutureInfo.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_GetFutureInfo.Request)
|
|
return target;
|
|
}
|
|
|
|
size_t Request::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.Request)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetFutureInfo.Request)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void Request::MergeFrom(const Request& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetFutureInfo.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_GetFutureInfo::C2S::MergeFrom(from.c2s());
|
|
}
|
|
}
|
|
|
|
void Request::CopyFrom(const ::google::protobuf::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetFutureInfo.Request)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void Request::CopyFrom(const Request& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetFutureInfo.Request)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Request::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
if (has_c2s()) {
|
|
if (!this->c2s_->IsInitialized()) 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_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
void Response::InitAsDefaultInstance() {
|
|
::Qot_GetFutureInfo::_Response_default_instance_._instance.get_mutable()->s2c_ = const_cast< ::Qot_GetFutureInfo::S2C*>(
|
|
::Qot_GetFutureInfo::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_5fGetFutureInfo_2eproto::InitDefaultsResponse();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:Qot_GetFutureInfo.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_GetFutureInfo::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_GetFutureInfo.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_GetFutureInfo.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_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
}
|
|
|
|
const Response& Response::default_instance() {
|
|
::protobuf_Qot_5fGetFutureInfo_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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.Response)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:Qot_GetFutureInfo.Response)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void Response::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:Qot_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.Response)
|
|
}
|
|
|
|
::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray(
|
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
|
(void)deterministic; // Unused
|
|
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.Response)
|
|
return target;
|
|
}
|
|
|
|
size_t Response::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Qot_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.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_GetFutureInfo.Response)
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetFutureInfo.Response)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void Response::MergeFrom(const Response& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetFutureInfo.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_GetFutureInfo::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_GetFutureInfo.Response)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void Response::CopyFrom(const Response& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetFutureInfo.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_5fGetFutureInfo_2eproto::protobuf_AssignDescriptorsOnce();
|
|
return ::protobuf_Qot_5fGetFutureInfo_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace Qot_GetFutureInfo
|
|
|
|
// @@protoc_insertion_point(global_scope)
|