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

3465 lines
121 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Qot_GetOptionChain.proto
#include "Qot_GetOptionChain.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_GetOptionChain {
class DataFilterDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<DataFilter>
_instance;
} _DataFilter_default_instance_;
class C2SDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<C2S>
_instance;
} _C2S_default_instance_;
class OptionItemDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<OptionItem>
_instance;
} _OptionItem_default_instance_;
class OptionChainDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<OptionChain>
_instance;
} _OptionChain_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_GetOptionChain
namespace protobuf_Qot_5fGetOptionChain_2eproto {
void InitDefaultsDataFilterImpl() {
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_GetOptionChain::_DataFilter_default_instance_;
new (ptr) ::Qot_GetOptionChain::DataFilter();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::Qot_GetOptionChain::DataFilter::InitAsDefaultInstance();
}
void InitDefaultsDataFilter() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDataFilterImpl);
}
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();
protobuf_Qot_5fGetOptionChain_2eproto::InitDefaultsDataFilter();
{
void* ptr = &::Qot_GetOptionChain::_C2S_default_instance_;
new (ptr) ::Qot_GetOptionChain::C2S();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::Qot_GetOptionChain::C2S::InitAsDefaultInstance();
}
void InitDefaultsC2S() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsC2SImpl);
}
void InitDefaultsOptionItemImpl() {
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::InitDefaultsSecurityStaticInfo();
{
void* ptr = &::Qot_GetOptionChain::_OptionItem_default_instance_;
new (ptr) ::Qot_GetOptionChain::OptionItem();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::Qot_GetOptionChain::OptionItem::InitAsDefaultInstance();
}
void InitDefaultsOptionItem() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOptionItemImpl);
}
void InitDefaultsOptionChainImpl() {
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_5fGetOptionChain_2eproto::InitDefaultsOptionItem();
{
void* ptr = &::Qot_GetOptionChain::_OptionChain_default_instance_;
new (ptr) ::Qot_GetOptionChain::OptionChain();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::Qot_GetOptionChain::OptionChain::InitAsDefaultInstance();
}
void InitDefaultsOptionChain() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOptionChainImpl);
}
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_5fGetOptionChain_2eproto::InitDefaultsOptionChain();
{
void* ptr = &::Qot_GetOptionChain::_S2C_default_instance_;
new (ptr) ::Qot_GetOptionChain::S2C();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::Qot_GetOptionChain::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_5fGetOptionChain_2eproto::InitDefaultsC2S();
{
void* ptr = &::Qot_GetOptionChain::_Request_default_instance_;
new (ptr) ::Qot_GetOptionChain::Request();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::Qot_GetOptionChain::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_5fGetOptionChain_2eproto::InitDefaultsS2C();
{
void* ptr = &::Qot_GetOptionChain::_Response_default_instance_;
new (ptr) ::Qot_GetOptionChain::Response();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::Qot_GetOptionChain::Response::InitAsDefaultInstance();
}
void InitDefaultsResponse() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResponseImpl);
}
::google::protobuf::Metadata file_level_metadata[7];
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, impliedvolatilitymin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, impliedvolatilitymax_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, deltamin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, deltamax_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, gammamin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, gammamax_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, vegamin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, vegamax_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, thetamin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, thetamax_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, rhomin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, rhomax_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, netopeninterestmin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, netopeninterestmax_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, openinterestmin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, openinterestmax_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, volmin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::DataFilter, volmax_),
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, owner_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, indexoptiontype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, condition_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, begintime_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, endtime_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::C2S, datafilter_),
2,
6,
4,
5,
0,
1,
3,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionItem, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionItem, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionItem, call_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionItem, put_),
0,
1,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionChain, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionChain, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionChain, striketime_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionChain, option_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::OptionChain, striketimestamp_),
0,
~0u,
1,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::S2C, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::S2C, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::S2C, optionchain_),
~0u,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Request, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Request, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Request, c2s_),
0,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Response, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Response, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Response, rettype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Response, retmsg_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Response, errcode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Qot_GetOptionChain::Response, s2c_),
3,
0,
2,
1,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 23, sizeof(::Qot_GetOptionChain::DataFilter)},
{ 41, 53, sizeof(::Qot_GetOptionChain::C2S)},
{ 60, 67, sizeof(::Qot_GetOptionChain::OptionItem)},
{ 69, 77, sizeof(::Qot_GetOptionChain::OptionChain)},
{ 80, 86, sizeof(::Qot_GetOptionChain::S2C)},
{ 87, 93, sizeof(::Qot_GetOptionChain::Request)},
{ 94, 103, sizeof(::Qot_GetOptionChain::Response)},
};
static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetOptionChain::_DataFilter_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetOptionChain::_C2S_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetOptionChain::_OptionItem_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetOptionChain::_OptionChain_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetOptionChain::_S2C_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetOptionChain::_Request_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&::Qot_GetOptionChain::_Response_default_instance_),
};
void protobuf_AssignDescriptors() {
AddDescriptors();
::google::protobuf::MessageFactory* factory = NULL;
AssignDescriptors(
"Qot_GetOptionChain.proto", schemas, file_default_instances, TableStruct::offsets, factory,
file_level_metadata, file_level_enum_descriptors, NULL);
}
void protobuf_AssignDescriptorsOnce() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
}
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7);
}
void AddDescriptorsImpl() {
InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\030Qot_GetOptionChain.proto\022\022Qot_GetOptio"
"nChain\032\014Common.proto\032\020Qot_Common.proto\"\200"
"\003\n\nDataFilter\022\034\n\024impliedVolatilityMin\030\001 "
"\001(\001\022\034\n\024impliedVolatilityMax\030\002 \001(\001\022\020\n\010del"
"taMin\030\003 \001(\001\022\020\n\010deltaMax\030\004 \001(\001\022\020\n\010gammaMi"
"n\030\005 \001(\001\022\020\n\010gammaMax\030\006 \001(\001\022\017\n\007vegaMin\030\007 \001"
"(\001\022\017\n\007vegaMax\030\010 \001(\001\022\020\n\010thetaMin\030\t \001(\001\022\020\n"
"\010thetaMax\030\n \001(\001\022\016\n\006rhoMin\030\013 \001(\001\022\016\n\006rhoMa"
"x\030\014 \001(\001\022\032\n\022netOpenInterestMin\030\r \001(\001\022\032\n\022n"
"etOpenInterestMax\030\016 \001(\001\022\027\n\017openInterestM"
"in\030\017 \001(\001\022\027\n\017openInterestMax\030\020 \001(\001\022\016\n\006vol"
"Min\030\021 \001(\001\022\016\n\006volMax\030\022 \001(\001\"\274\001\n\003C2S\022#\n\005own"
"er\030\001 \002(\0132\024.Qot_Common.Security\022\027\n\017indexO"
"ptionType\030\006 \001(\005\022\014\n\004type\030\002 \001(\005\022\021\n\tconditi"
"on\030\003 \001(\005\022\021\n\tbeginTime\030\004 \002(\t\022\017\n\007endTime\030\005"
" \002(\t\0222\n\ndataFilter\030\007 \001(\0132\036.Qot_GetOption"
"Chain.DataFilter\"g\n\nOptionItem\022,\n\004call\030\001"
" \001(\0132\036.Qot_Common.SecurityStaticInfo\022+\n\003"
"put\030\002 \001(\0132\036.Qot_Common.SecurityStaticInf"
"o\"j\n\013OptionChain\022\022\n\nstrikeTime\030\001 \002(\t\022.\n\006"
"option\030\002 \003(\0132\036.Qot_GetOptionChain.Option"
"Item\022\027\n\017strikeTimestamp\030\003 \001(\001\";\n\003S2C\0224\n\013"
"optionChain\030\001 \003(\0132\037.Qot_GetOptionChain.O"
"ptionChain\"/\n\007Request\022$\n\003c2s\030\001 \002(\0132\027.Qot"
"_GetOptionChain.C2S\"h\n\010Response\022\025\n\007retTy"
"pe\030\001 \002(\005:\004-400\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007errCod"
"e\030\003 \001(\005\022$\n\003s2c\030\004 \001(\0132\027.Qot_GetOptionChai"
"n.S2C*b\n\016OptionCondType\022\031\n\025OptionCondTyp"
"e_Unknow\020\000\022\031\n\025OptionCondType_WithIn\020\001\022\032\n"
"\026OptionCondType_Outside\020\002BH\n\023com.futu.op"
"enapi.pbZ1github.com/futuopen/ftapi4go/p"
"b/qotgetoptionchain"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 1259);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"Qot_GetOptionChain.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_5fGetOptionChain_2eproto
namespace Qot_GetOptionChain {
const ::google::protobuf::EnumDescriptor* OptionCondType_descriptor() {
protobuf_Qot_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_Qot_5fGetOptionChain_2eproto::file_level_enum_descriptors[0];
}
bool OptionCondType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
// ===================================================================
void DataFilter::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int DataFilter::kImpliedVolatilityMinFieldNumber;
const int DataFilter::kImpliedVolatilityMaxFieldNumber;
const int DataFilter::kDeltaMinFieldNumber;
const int DataFilter::kDeltaMaxFieldNumber;
const int DataFilter::kGammaMinFieldNumber;
const int DataFilter::kGammaMaxFieldNumber;
const int DataFilter::kVegaMinFieldNumber;
const int DataFilter::kVegaMaxFieldNumber;
const int DataFilter::kThetaMinFieldNumber;
const int DataFilter::kThetaMaxFieldNumber;
const int DataFilter::kRhoMinFieldNumber;
const int DataFilter::kRhoMaxFieldNumber;
const int DataFilter::kNetOpenInterestMinFieldNumber;
const int DataFilter::kNetOpenInterestMaxFieldNumber;
const int DataFilter::kOpenInterestMinFieldNumber;
const int DataFilter::kOpenInterestMaxFieldNumber;
const int DataFilter::kVolMinFieldNumber;
const int DataFilter::kVolMaxFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
DataFilter::DataFilter()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
::protobuf_Qot_5fGetOptionChain_2eproto::InitDefaultsDataFilter();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Qot_GetOptionChain.DataFilter)
}
DataFilter::DataFilter(const DataFilter& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&impliedvolatilitymin_, &from.impliedvolatilitymin_,
static_cast<size_t>(reinterpret_cast<char*>(&volmax_) -
reinterpret_cast<char*>(&impliedvolatilitymin_)) + sizeof(volmax_));
// @@protoc_insertion_point(copy_constructor:Qot_GetOptionChain.DataFilter)
}
void DataFilter::SharedCtor() {
_cached_size_ = 0;
::memset(&impliedvolatilitymin_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&volmax_) -
reinterpret_cast<char*>(&impliedvolatilitymin_)) + sizeof(volmax_));
}
DataFilter::~DataFilter() {
// @@protoc_insertion_point(destructor:Qot_GetOptionChain.DataFilter)
SharedDtor();
}
void DataFilter::SharedDtor() {
}
void DataFilter::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DataFilter::descriptor() {
::protobuf_Qot_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const DataFilter& DataFilter::default_instance() {
::protobuf_Qot_5fGetOptionChain_2eproto::InitDefaultsDataFilter();
return *internal_default_instance();
}
DataFilter* DataFilter::New(::google::protobuf::Arena* arena) const {
DataFilter* n = new DataFilter;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void DataFilter::Clear() {
// @@protoc_insertion_point(message_clear_start:Qot_GetOptionChain.DataFilter)
::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 & 255u) {
::memset(&impliedvolatilitymin_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&vegamax_) -
reinterpret_cast<char*>(&impliedvolatilitymin_)) + sizeof(vegamax_));
}
if (cached_has_bits & 65280u) {
::memset(&thetamin_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&openinterestmax_) -
reinterpret_cast<char*>(&thetamin_)) + sizeof(openinterestmax_));
}
if (cached_has_bits & 196608u) {
::memset(&volmin_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&volmax_) -
reinterpret_cast<char*>(&volmin_)) + sizeof(volmax_));
}
_has_bits_.Clear();
_internal_metadata_.Clear();
}
bool DataFilter::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_GetOptionChain.DataFilter)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional double impliedVolatilityMin = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
set_has_impliedvolatilitymin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &impliedvolatilitymin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double impliedVolatilityMax = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
set_has_impliedvolatilitymax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &impliedvolatilitymax_)));
} else {
goto handle_unusual;
}
break;
}
// optional double deltaMin = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
set_has_deltamin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &deltamin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double deltaMax = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
set_has_deltamax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &deltamax_)));
} else {
goto handle_unusual;
}
break;
}
// optional double gammaMin = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
set_has_gammamin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &gammamin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double gammaMax = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
set_has_gammamax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &gammamax_)));
} else {
goto handle_unusual;
}
break;
}
// optional double vegaMin = 7;
case 7: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
set_has_vegamin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &vegamin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double vegaMax = 8;
case 8: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
set_has_vegamax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &vegamax_)));
} else {
goto handle_unusual;
}
break;
}
// optional double thetaMin = 9;
case 9: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
set_has_thetamin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &thetamin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double thetaMax = 10;
case 10: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {
set_has_thetamax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &thetamax_)));
} else {
goto handle_unusual;
}
break;
}
// optional double rhoMin = 11;
case 11: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) {
set_has_rhomin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &rhomin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double rhoMax = 12;
case 12: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) {
set_has_rhomax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &rhomax_)));
} else {
goto handle_unusual;
}
break;
}
// optional double netOpenInterestMin = 13;
case 13: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) {
set_has_netopeninterestmin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &netopeninterestmin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double netOpenInterestMax = 14;
case 14: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(113u /* 113 & 0xFF */)) {
set_has_netopeninterestmax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &netopeninterestmax_)));
} else {
goto handle_unusual;
}
break;
}
// optional double openInterestMin = 15;
case 15: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) {
set_has_openinterestmin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &openinterestmin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double openInterestMax = 16;
case 16: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(129u /* 129 & 0xFF */)) {
set_has_openinterestmax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &openinterestmax_)));
} else {
goto handle_unusual;
}
break;
}
// optional double volMin = 17;
case 17: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(137u /* 137 & 0xFF */)) {
set_has_volmin();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &volmin_)));
} else {
goto handle_unusual;
}
break;
}
// optional double volMax = 18;
case 18: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(145u /* 145 & 0xFF */)) {
set_has_volmax();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &volmax_)));
} 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_GetOptionChain.DataFilter)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Qot_GetOptionChain.DataFilter)
return false;
#undef DO_
}
void DataFilter::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Qot_GetOptionChain.DataFilter)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional double impliedVolatilityMin = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->impliedvolatilitymin(), output);
}
// optional double impliedVolatilityMax = 2;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->impliedvolatilitymax(), output);
}
// optional double deltaMin = 3;
if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->deltamin(), output);
}
// optional double deltaMax = 4;
if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->deltamax(), output);
}
// optional double gammaMin = 5;
if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->gammamin(), output);
}
// optional double gammaMax = 6;
if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->gammamax(), output);
}
// optional double vegaMin = 7;
if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->vegamin(), output);
}
// optional double vegaMax = 8;
if (cached_has_bits & 0x00000080u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->vegamax(), output);
}
// optional double thetaMin = 9;
if (cached_has_bits & 0x00000100u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->thetamin(), output);
}
// optional double thetaMax = 10;
if (cached_has_bits & 0x00000200u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->thetamax(), output);
}
// optional double rhoMin = 11;
if (cached_has_bits & 0x00000400u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->rhomin(), output);
}
// optional double rhoMax = 12;
if (cached_has_bits & 0x00000800u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(12, this->rhomax(), output);
}
// optional double netOpenInterestMin = 13;
if (cached_has_bits & 0x00001000u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->netopeninterestmin(), output);
}
// optional double netOpenInterestMax = 14;
if (cached_has_bits & 0x00002000u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(14, this->netopeninterestmax(), output);
}
// optional double openInterestMin = 15;
if (cached_has_bits & 0x00004000u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(15, this->openinterestmin(), output);
}
// optional double openInterestMax = 16;
if (cached_has_bits & 0x00008000u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->openinterestmax(), output);
}
// optional double volMin = 17;
if (cached_has_bits & 0x00010000u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->volmin(), output);
}
// optional double volMax = 18;
if (cached_has_bits & 0x00020000u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(18, this->volmax(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:Qot_GetOptionChain.DataFilter)
}
::google::protobuf::uint8* DataFilter::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetOptionChain.DataFilter)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional double impliedVolatilityMin = 1;
if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->impliedvolatilitymin(), target);
}
// optional double impliedVolatilityMax = 2;
if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->impliedvolatilitymax(), target);
}
// optional double deltaMin = 3;
if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->deltamin(), target);
}
// optional double deltaMax = 4;
if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->deltamax(), target);
}
// optional double gammaMin = 5;
if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->gammamin(), target);
}
// optional double gammaMax = 6;
if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->gammamax(), target);
}
// optional double vegaMin = 7;
if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->vegamin(), target);
}
// optional double vegaMax = 8;
if (cached_has_bits & 0x00000080u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->vegamax(), target);
}
// optional double thetaMin = 9;
if (cached_has_bits & 0x00000100u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->thetamin(), target);
}
// optional double thetaMax = 10;
if (cached_has_bits & 0x00000200u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->thetamax(), target);
}
// optional double rhoMin = 11;
if (cached_has_bits & 0x00000400u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->rhomin(), target);
}
// optional double rhoMax = 12;
if (cached_has_bits & 0x00000800u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(12, this->rhomax(), target);
}
// optional double netOpenInterestMin = 13;
if (cached_has_bits & 0x00001000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->netopeninterestmin(), target);
}
// optional double netOpenInterestMax = 14;
if (cached_has_bits & 0x00002000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(14, this->netopeninterestmax(), target);
}
// optional double openInterestMin = 15;
if (cached_has_bits & 0x00004000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(15, this->openinterestmin(), target);
}
// optional double openInterestMax = 16;
if (cached_has_bits & 0x00008000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->openinterestmax(), target);
}
// optional double volMin = 17;
if (cached_has_bits & 0x00010000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->volmin(), target);
}
// optional double volMax = 18;
if (cached_has_bits & 0x00020000u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(18, this->volmax(), 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_GetOptionChain.DataFilter)
return target;
}
size_t DataFilter::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Qot_GetOptionChain.DataFilter)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
if (_has_bits_[0 / 32] & 255u) {
// optional double impliedVolatilityMin = 1;
if (has_impliedvolatilitymin()) {
total_size += 1 + 8;
}
// optional double impliedVolatilityMax = 2;
if (has_impliedvolatilitymax()) {
total_size += 1 + 8;
}
// optional double deltaMin = 3;
if (has_deltamin()) {
total_size += 1 + 8;
}
// optional double deltaMax = 4;
if (has_deltamax()) {
total_size += 1 + 8;
}
// optional double gammaMin = 5;
if (has_gammamin()) {
total_size += 1 + 8;
}
// optional double gammaMax = 6;
if (has_gammamax()) {
total_size += 1 + 8;
}
// optional double vegaMin = 7;
if (has_vegamin()) {
total_size += 1 + 8;
}
// optional double vegaMax = 8;
if (has_vegamax()) {
total_size += 1 + 8;
}
}
if (_has_bits_[8 / 32] & 65280u) {
// optional double thetaMin = 9;
if (has_thetamin()) {
total_size += 1 + 8;
}
// optional double thetaMax = 10;
if (has_thetamax()) {
total_size += 1 + 8;
}
// optional double rhoMin = 11;
if (has_rhomin()) {
total_size += 1 + 8;
}
// optional double rhoMax = 12;
if (has_rhomax()) {
total_size += 1 + 8;
}
// optional double netOpenInterestMin = 13;
if (has_netopeninterestmin()) {
total_size += 1 + 8;
}
// optional double netOpenInterestMax = 14;
if (has_netopeninterestmax()) {
total_size += 1 + 8;
}
// optional double openInterestMin = 15;
if (has_openinterestmin()) {
total_size += 1 + 8;
}
// optional double openInterestMax = 16;
if (has_openinterestmax()) {
total_size += 2 + 8;
}
}
if (_has_bits_[16 / 32] & 196608u) {
// optional double volMin = 17;
if (has_volmin()) {
total_size += 2 + 8;
}
// optional double volMax = 18;
if (has_volmax()) {
total_size += 2 + 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 DataFilter::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Qot_GetOptionChain.DataFilter)
GOOGLE_DCHECK_NE(&from, this);
const DataFilter* source =
::google::protobuf::internal::DynamicCastToGenerated<const DataFilter>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_GetOptionChain.DataFilter)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetOptionChain.DataFilter)
MergeFrom(*source);
}
}
void DataFilter::MergeFrom(const DataFilter& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetOptionChain.DataFilter)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 255u) {
if (cached_has_bits & 0x00000001u) {
impliedvolatilitymin_ = from.impliedvolatilitymin_;
}
if (cached_has_bits & 0x00000002u) {
impliedvolatilitymax_ = from.impliedvolatilitymax_;
}
if (cached_has_bits & 0x00000004u) {
deltamin_ = from.deltamin_;
}
if (cached_has_bits & 0x00000008u) {
deltamax_ = from.deltamax_;
}
if (cached_has_bits & 0x00000010u) {
gammamin_ = from.gammamin_;
}
if (cached_has_bits & 0x00000020u) {
gammamax_ = from.gammamax_;
}
if (cached_has_bits & 0x00000040u) {
vegamin_ = from.vegamin_;
}
if (cached_has_bits & 0x00000080u) {
vegamax_ = from.vegamax_;
}
_has_bits_[0] |= cached_has_bits;
}
if (cached_has_bits & 65280u) {
if (cached_has_bits & 0x00000100u) {
thetamin_ = from.thetamin_;
}
if (cached_has_bits & 0x00000200u) {
thetamax_ = from.thetamax_;
}
if (cached_has_bits & 0x00000400u) {
rhomin_ = from.rhomin_;
}
if (cached_has_bits & 0x00000800u) {
rhomax_ = from.rhomax_;
}
if (cached_has_bits & 0x00001000u) {
netopeninterestmin_ = from.netopeninterestmin_;
}
if (cached_has_bits & 0x00002000u) {
netopeninterestmax_ = from.netopeninterestmax_;
}
if (cached_has_bits & 0x00004000u) {
openinterestmin_ = from.openinterestmin_;
}
if (cached_has_bits & 0x00008000u) {
openinterestmax_ = from.openinterestmax_;
}
_has_bits_[0] |= cached_has_bits;
}
if (cached_has_bits & 196608u) {
if (cached_has_bits & 0x00010000u) {
volmin_ = from.volmin_;
}
if (cached_has_bits & 0x00020000u) {
volmax_ = from.volmax_;
}
_has_bits_[0] |= cached_has_bits;
}
}
void DataFilter::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetOptionChain.DataFilter)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DataFilter::CopyFrom(const DataFilter& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetOptionChain.DataFilter)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DataFilter::IsInitialized() const {
return true;
}
void DataFilter::Swap(DataFilter* other) {
if (other == this) return;
InternalSwap(other);
}
void DataFilter::InternalSwap(DataFilter* other) {
using std::swap;
swap(impliedvolatilitymin_, other->impliedvolatilitymin_);
swap(impliedvolatilitymax_, other->impliedvolatilitymax_);
swap(deltamin_, other->deltamin_);
swap(deltamax_, other->deltamax_);
swap(gammamin_, other->gammamin_);
swap(gammamax_, other->gammamax_);
swap(vegamin_, other->vegamin_);
swap(vegamax_, other->vegamax_);
swap(thetamin_, other->thetamin_);
swap(thetamax_, other->thetamax_);
swap(rhomin_, other->rhomin_);
swap(rhomax_, other->rhomax_);
swap(netopeninterestmin_, other->netopeninterestmin_);
swap(netopeninterestmax_, other->netopeninterestmax_);
swap(openinterestmin_, other->openinterestmin_);
swap(openinterestmax_, other->openinterestmax_);
swap(volmin_, other->volmin_);
swap(volmax_, other->volmax_);
swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata DataFilter::GetMetadata() const {
protobuf_Qot_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void C2S::InitAsDefaultInstance() {
::Qot_GetOptionChain::_C2S_default_instance_._instance.get_mutable()->owner_ = const_cast< ::Qot_Common::Security*>(
::Qot_Common::Security::internal_default_instance());
::Qot_GetOptionChain::_C2S_default_instance_._instance.get_mutable()->datafilter_ = const_cast< ::Qot_GetOptionChain::DataFilter*>(
::Qot_GetOptionChain::DataFilter::internal_default_instance());
}
void C2S::clear_owner() {
if (owner_ != NULL) owner_->Clear();
clear_has_owner();
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int C2S::kOwnerFieldNumber;
const int C2S::kIndexOptionTypeFieldNumber;
const int C2S::kTypeFieldNumber;
const int C2S::kConditionFieldNumber;
const int C2S::kBeginTimeFieldNumber;
const int C2S::kEndTimeFieldNumber;
const int C2S::kDataFilterFieldNumber;
#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_5fGetOptionChain_2eproto::InitDefaultsC2S();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Qot_GetOptionChain.C2S)
}
C2S::C2S(const C2S& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
begintime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_begintime()) {
begintime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.begintime_);
}
endtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_endtime()) {
endtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.endtime_);
}
if (from.has_owner()) {
owner_ = new ::Qot_Common::Security(*from.owner_);
} else {
owner_ = NULL;
}
if (from.has_datafilter()) {
datafilter_ = new ::Qot_GetOptionChain::DataFilter(*from.datafilter_);
} else {
datafilter_ = NULL;
}
::memcpy(&type_, &from.type_,
static_cast<size_t>(reinterpret_cast<char*>(&indexoptiontype_) -
reinterpret_cast<char*>(&type_)) + sizeof(indexoptiontype_));
// @@protoc_insertion_point(copy_constructor:Qot_GetOptionChain.C2S)
}
void C2S::SharedCtor() {
_cached_size_ = 0;
begintime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
endtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&owner_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&indexoptiontype_) -
reinterpret_cast<char*>(&owner_)) + sizeof(indexoptiontype_));
}
C2S::~C2S() {
// @@protoc_insertion_point(destructor:Qot_GetOptionChain.C2S)
SharedDtor();
}
void C2S::SharedDtor() {
begintime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
endtime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete owner_;
if (this != internal_default_instance()) delete datafilter_;
}
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_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const C2S& C2S::default_instance() {
::protobuf_Qot_5fGetOptionChain_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_GetOptionChain.C2S)
::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 & 15u) {
if (cached_has_bits & 0x00000001u) {
GOOGLE_DCHECK(!begintime_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*begintime_.UnsafeRawStringPointer())->clear();
}
if (cached_has_bits & 0x00000002u) {
GOOGLE_DCHECK(!endtime_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*endtime_.UnsafeRawStringPointer())->clear();
}
if (cached_has_bits & 0x00000004u) {
GOOGLE_DCHECK(owner_ != NULL);
owner_->Clear();
}
if (cached_has_bits & 0x00000008u) {
GOOGLE_DCHECK(datafilter_ != NULL);
datafilter_->Clear();
}
}
if (cached_has_bits & 112u) {
::memset(&type_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&indexoptiontype_) -
reinterpret_cast<char*>(&type_)) + sizeof(indexoptiontype_));
}
_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_GetOptionChain.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)) {
// required .Qot_Common.Security owner = 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_owner()));
} else {
goto handle_unusual;
}
break;
}
// optional int32 type = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
set_has_type();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &type_)));
} else {
goto handle_unusual;
}
break;
}
// optional int32 condition = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
set_has_condition();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &condition_)));
} else {
goto handle_unusual;
}
break;
}
// required string beginTime = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_begintime()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->begintime().data(), static_cast<int>(this->begintime().length()),
::google::protobuf::internal::WireFormat::PARSE,
"Qot_GetOptionChain.C2S.beginTime");
} else {
goto handle_unusual;
}
break;
}
// required string endTime = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_endtime()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->endtime().data(), static_cast<int>(this->endtime().length()),
::google::protobuf::internal::WireFormat::PARSE,
"Qot_GetOptionChain.C2S.endTime");
} else {
goto handle_unusual;
}
break;
}
// optional int32 indexOptionType = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
set_has_indexoptiontype();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &indexoptiontype_)));
} else {
goto handle_unusual;
}
break;
}
// optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
case 7: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
input, mutable_datafilter()));
} 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_GetOptionChain.C2S)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Qot_GetOptionChain.C2S)
return false;
#undef DO_
}
void C2S::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Qot_GetOptionChain.C2S)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required .Qot_Common.Security owner = 1;
if (cached_has_bits & 0x00000004u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->owner_, output);
}
// optional int32 type = 2;
if (cached_has_bits & 0x00000010u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->type(), output);
}
// optional int32 condition = 3;
if (cached_has_bits & 0x00000020u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->condition(), output);
}
// required string beginTime = 4;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->begintime().data(), static_cast<int>(this->begintime().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"Qot_GetOptionChain.C2S.beginTime");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->begintime(), output);
}
// required string endTime = 5;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->endtime().data(), static_cast<int>(this->endtime().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"Qot_GetOptionChain.C2S.endTime");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->endtime(), output);
}
// optional int32 indexOptionType = 6;
if (cached_has_bits & 0x00000040u) {
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->indexoptiontype(), output);
}
// optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
if (cached_has_bits & 0x00000008u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, *this->datafilter_, output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:Qot_GetOptionChain.C2S)
}
::google::protobuf::uint8* C2S::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetOptionChain.C2S)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required .Qot_Common.Security owner = 1;
if (cached_has_bits & 0x00000004u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
1, *this->owner_, deterministic, target);
}
// optional int32 type = 2;
if (cached_has_bits & 0x00000010u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->type(), target);
}
// optional int32 condition = 3;
if (cached_has_bits & 0x00000020u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->condition(), target);
}
// required string beginTime = 4;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->begintime().data(), static_cast<int>(this->begintime().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"Qot_GetOptionChain.C2S.beginTime");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->begintime(), target);
}
// required string endTime = 5;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->endtime().data(), static_cast<int>(this->endtime().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"Qot_GetOptionChain.C2S.endTime");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->endtime(), target);
}
// optional int32 indexOptionType = 6;
if (cached_has_bits & 0x00000040u) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->indexoptiontype(), target);
}
// optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
if (cached_has_bits & 0x00000008u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
7, *this->datafilter_, 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_GetOptionChain.C2S)
return target;
}
size_t C2S::RequiredFieldsByteSizeFallback() const {
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:Qot_GetOptionChain.C2S)
size_t total_size = 0;
if (has_begintime()) {
// required string beginTime = 4;
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->begintime());
}
if (has_endtime()) {
// required string endTime = 5;
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->endtime());
}
if (has_owner()) {
// required .Qot_Common.Security owner = 1;
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*this->owner_);
}
return total_size;
}
size_t C2S::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Qot_GetOptionChain.C2S)
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] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
// required string beginTime = 4;
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->begintime());
// required string endTime = 5;
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->endtime());
// required .Qot_Common.Security owner = 1;
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*this->owner_);
} else {
total_size += RequiredFieldsByteSizeFallback();
}
if (_has_bits_[0 / 32] & 120u) {
// optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
if (has_datafilter()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*this->datafilter_);
}
// optional int32 type = 2;
if (has_type()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->type());
}
// optional int32 condition = 3;
if (has_condition()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->condition());
}
// optional int32 indexOptionType = 6;
if (has_indexoptiontype()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->indexoptiontype());
}
}
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_GetOptionChain.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_GetOptionChain.C2S)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetOptionChain.C2S)
MergeFrom(*source);
}
}
void C2S::MergeFrom(const C2S& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetOptionChain.C2S)
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 & 127u) {
if (cached_has_bits & 0x00000001u) {
set_has_begintime();
begintime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.begintime_);
}
if (cached_has_bits & 0x00000002u) {
set_has_endtime();
endtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.endtime_);
}
if (cached_has_bits & 0x00000004u) {
mutable_owner()->::Qot_Common::Security::MergeFrom(from.owner());
}
if (cached_has_bits & 0x00000008u) {
mutable_datafilter()->::Qot_GetOptionChain::DataFilter::MergeFrom(from.datafilter());
}
if (cached_has_bits & 0x00000010u) {
type_ = from.type_;
}
if (cached_has_bits & 0x00000020u) {
condition_ = from.condition_;
}
if (cached_has_bits & 0x00000040u) {
indexoptiontype_ = from.indexoptiontype_;
}
_has_bits_[0] |= cached_has_bits;
}
}
void C2S::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetOptionChain.C2S)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void C2S::CopyFrom(const C2S& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetOptionChain.C2S)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool C2S::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
if (has_owner()) {
if (!this->owner_->IsInitialized()) return false;
}
return true;
}
void C2S::Swap(C2S* other) {
if (other == this) return;
InternalSwap(other);
}
void C2S::InternalSwap(C2S* other) {
using std::swap;
begintime_.Swap(&other->begintime_);
endtime_.Swap(&other->endtime_);
swap(owner_, other->owner_);
swap(datafilter_, other->datafilter_);
swap(type_, other->type_);
swap(condition_, other->condition_);
swap(indexoptiontype_, other->indexoptiontype_);
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_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void OptionItem::InitAsDefaultInstance() {
::Qot_GetOptionChain::_OptionItem_default_instance_._instance.get_mutable()->call_ = const_cast< ::Qot_Common::SecurityStaticInfo*>(
::Qot_Common::SecurityStaticInfo::internal_default_instance());
::Qot_GetOptionChain::_OptionItem_default_instance_._instance.get_mutable()->put_ = const_cast< ::Qot_Common::SecurityStaticInfo*>(
::Qot_Common::SecurityStaticInfo::internal_default_instance());
}
void OptionItem::clear_call() {
if (call_ != NULL) call_->Clear();
clear_has_call();
}
void OptionItem::clear_put() {
if (put_ != NULL) put_->Clear();
clear_has_put();
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int OptionItem::kCallFieldNumber;
const int OptionItem::kPutFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
OptionItem::OptionItem()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
::protobuf_Qot_5fGetOptionChain_2eproto::InitDefaultsOptionItem();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Qot_GetOptionChain.OptionItem)
}
OptionItem::OptionItem(const OptionItem& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_call()) {
call_ = new ::Qot_Common::SecurityStaticInfo(*from.call_);
} else {
call_ = NULL;
}
if (from.has_put()) {
put_ = new ::Qot_Common::SecurityStaticInfo(*from.put_);
} else {
put_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:Qot_GetOptionChain.OptionItem)
}
void OptionItem::SharedCtor() {
_cached_size_ = 0;
::memset(&call_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&put_) -
reinterpret_cast<char*>(&call_)) + sizeof(put_));
}
OptionItem::~OptionItem() {
// @@protoc_insertion_point(destructor:Qot_GetOptionChain.OptionItem)
SharedDtor();
}
void OptionItem::SharedDtor() {
if (this != internal_default_instance()) delete call_;
if (this != internal_default_instance()) delete put_;
}
void OptionItem::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* OptionItem::descriptor() {
::protobuf_Qot_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const OptionItem& OptionItem::default_instance() {
::protobuf_Qot_5fGetOptionChain_2eproto::InitDefaultsOptionItem();
return *internal_default_instance();
}
OptionItem* OptionItem::New(::google::protobuf::Arena* arena) const {
OptionItem* n = new OptionItem;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void OptionItem::Clear() {
// @@protoc_insertion_point(message_clear_start:Qot_GetOptionChain.OptionItem)
::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(call_ != NULL);
call_->Clear();
}
if (cached_has_bits & 0x00000002u) {
GOOGLE_DCHECK(put_ != NULL);
put_->Clear();
}
}
_has_bits_.Clear();
_internal_metadata_.Clear();
}
bool OptionItem::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_GetOptionChain.OptionItem)
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 .Qot_Common.SecurityStaticInfo call = 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_call()));
} else {
goto handle_unusual;
}
break;
}
// optional .Qot_Common.SecurityStaticInfo put = 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_put()));
} 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_GetOptionChain.OptionItem)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Qot_GetOptionChain.OptionItem)
return false;
#undef DO_
}
void OptionItem::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Qot_GetOptionChain.OptionItem)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional .Qot_Common.SecurityStaticInfo call = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->call_, output);
}
// optional .Qot_Common.SecurityStaticInfo put = 2;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, *this->put_, output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:Qot_GetOptionChain.OptionItem)
}
::google::protobuf::uint8* OptionItem::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetOptionChain.OptionItem)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional .Qot_Common.SecurityStaticInfo call = 1;
if (cached_has_bits & 0x00000001u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
1, *this->call_, deterministic, target);
}
// optional .Qot_Common.SecurityStaticInfo put = 2;
if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
2, *this->put_, 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_GetOptionChain.OptionItem)
return target;
}
size_t OptionItem::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Qot_GetOptionChain.OptionItem)
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 .Qot_Common.SecurityStaticInfo call = 1;
if (has_call()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*this->call_);
}
// optional .Qot_Common.SecurityStaticInfo put = 2;
if (has_put()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSize(
*this->put_);
}
}
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 OptionItem::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Qot_GetOptionChain.OptionItem)
GOOGLE_DCHECK_NE(&from, this);
const OptionItem* source =
::google::protobuf::internal::DynamicCastToGenerated<const OptionItem>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_GetOptionChain.OptionItem)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetOptionChain.OptionItem)
MergeFrom(*source);
}
}
void OptionItem::MergeFrom(const OptionItem& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetOptionChain.OptionItem)
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) {
mutable_call()->::Qot_Common::SecurityStaticInfo::MergeFrom(from.call());
}
if (cached_has_bits & 0x00000002u) {
mutable_put()->::Qot_Common::SecurityStaticInfo::MergeFrom(from.put());
}
}
}
void OptionItem::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetOptionChain.OptionItem)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void OptionItem::CopyFrom(const OptionItem& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetOptionChain.OptionItem)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool OptionItem::IsInitialized() const {
if (has_call()) {
if (!this->call_->IsInitialized()) return false;
}
if (has_put()) {
if (!this->put_->IsInitialized()) return false;
}
return true;
}
void OptionItem::Swap(OptionItem* other) {
if (other == this) return;
InternalSwap(other);
}
void OptionItem::InternalSwap(OptionItem* other) {
using std::swap;
swap(call_, other->call_);
swap(put_, other->put_);
swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata OptionItem::GetMetadata() const {
protobuf_Qot_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void OptionChain::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int OptionChain::kStrikeTimeFieldNumber;
const int OptionChain::kOptionFieldNumber;
const int OptionChain::kStrikeTimestampFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
OptionChain::OptionChain()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
::protobuf_Qot_5fGetOptionChain_2eproto::InitDefaultsOptionChain();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Qot_GetOptionChain.OptionChain)
}
OptionChain::OptionChain(const OptionChain& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0),
option_(from.option_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
striketime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_striketime()) {
striketime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.striketime_);
}
striketimestamp_ = from.striketimestamp_;
// @@protoc_insertion_point(copy_constructor:Qot_GetOptionChain.OptionChain)
}
void OptionChain::SharedCtor() {
_cached_size_ = 0;
striketime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
striketimestamp_ = 0;
}
OptionChain::~OptionChain() {
// @@protoc_insertion_point(destructor:Qot_GetOptionChain.OptionChain)
SharedDtor();
}
void OptionChain::SharedDtor() {
striketime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void OptionChain::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* OptionChain::descriptor() {
::protobuf_Qot_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const OptionChain& OptionChain::default_instance() {
::protobuf_Qot_5fGetOptionChain_2eproto::InitDefaultsOptionChain();
return *internal_default_instance();
}
OptionChain* OptionChain::New(::google::protobuf::Arena* arena) const {
OptionChain* n = new OptionChain;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void OptionChain::Clear() {
// @@protoc_insertion_point(message_clear_start:Qot_GetOptionChain.OptionChain)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
option_.Clear();
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000001u) {
GOOGLE_DCHECK(!striketime_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
(*striketime_.UnsafeRawStringPointer())->clear();
}
striketimestamp_ = 0;
_has_bits_.Clear();
_internal_metadata_.Clear();
}
bool OptionChain::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_GetOptionChain.OptionChain)
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 string strikeTime = 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_striketime()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->striketime().data(), static_cast<int>(this->striketime().length()),
::google::protobuf::internal::WireFormat::PARSE,
"Qot_GetOptionChain.OptionChain.strikeTime");
} else {
goto handle_unusual;
}
break;
}
// repeated .Qot_GetOptionChain.OptionItem option = 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, add_option()));
} else {
goto handle_unusual;
}
break;
}
// optional double strikeTimestamp = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
set_has_striketimestamp();
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &striketimestamp_)));
} 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_GetOptionChain.OptionChain)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Qot_GetOptionChain.OptionChain)
return false;
#undef DO_
}
void OptionChain::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Qot_GetOptionChain.OptionChain)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required string strikeTime = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->striketime().data(), static_cast<int>(this->striketime().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"Qot_GetOptionChain.OptionChain.strikeTime");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1, this->striketime(), output);
}
// repeated .Qot_GetOptionChain.OptionItem option = 2;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->option_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->option(static_cast<int>(i)), output);
}
// optional double strikeTimestamp = 3;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->striketimestamp(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:Qot_GetOptionChain.OptionChain)
}
::google::protobuf::uint8* OptionChain::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetOptionChain.OptionChain)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required string strikeTime = 1;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->striketime().data(), static_cast<int>(this->striketime().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"Qot_GetOptionChain.OptionChain.strikeTime");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->striketime(), target);
}
// repeated .Qot_GetOptionChain.OptionItem option = 2;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->option_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
2, this->option(static_cast<int>(i)), deterministic, target);
}
// optional double strikeTimestamp = 3;
if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->striketimestamp(), 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_GetOptionChain.OptionChain)
return target;
}
size_t OptionChain::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Qot_GetOptionChain.OptionChain)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
// required string strikeTime = 1;
if (has_striketime()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->striketime());
}
// repeated .Qot_GetOptionChain.OptionItem option = 2;
{
unsigned int count = static_cast<unsigned int>(this->option_size());
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(
this->option(static_cast<int>(i)));
}
}
// optional double strikeTimestamp = 3;
if (has_striketimestamp()) {
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 OptionChain::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Qot_GetOptionChain.OptionChain)
GOOGLE_DCHECK_NE(&from, this);
const OptionChain* source =
::google::protobuf::internal::DynamicCastToGenerated<const OptionChain>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Qot_GetOptionChain.OptionChain)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetOptionChain.OptionChain)
MergeFrom(*source);
}
}
void OptionChain::MergeFrom(const OptionChain& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetOptionChain.OptionChain)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
option_.MergeFrom(from.option_);
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 3u) {
if (cached_has_bits & 0x00000001u) {
set_has_striketime();
striketime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.striketime_);
}
if (cached_has_bits & 0x00000002u) {
striketimestamp_ = from.striketimestamp_;
}
_has_bits_[0] |= cached_has_bits;
}
}
void OptionChain::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetOptionChain.OptionChain)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void OptionChain::CopyFrom(const OptionChain& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetOptionChain.OptionChain)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool OptionChain::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (!::google::protobuf::internal::AllAreInitialized(this->option())) return false;
return true;
}
void OptionChain::Swap(OptionChain* other) {
if (other == this) return;
InternalSwap(other);
}
void OptionChain::InternalSwap(OptionChain* other) {
using std::swap;
option_.InternalSwap(&other->option_);
striketime_.Swap(&other->striketime_);
swap(striketimestamp_, other->striketimestamp_);
swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata OptionChain::GetMetadata() const {
protobuf_Qot_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void S2C::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int S2C::kOptionChainFieldNumber;
#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_5fGetOptionChain_2eproto::InitDefaultsS2C();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Qot_GetOptionChain.S2C)
}
S2C::S2C(const S2C& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_),
_cached_size_(0),
optionchain_(from.optionchain_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:Qot_GetOptionChain.S2C)
}
void S2C::SharedCtor() {
_cached_size_ = 0;
}
S2C::~S2C() {
// @@protoc_insertion_point(destructor:Qot_GetOptionChain.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_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const S2C& S2C::default_instance() {
::protobuf_Qot_5fGetOptionChain_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_GetOptionChain.S2C)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
optionchain_.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_GetOptionChain.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_GetOptionChain.OptionChain optionChain = 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_optionchain()));
} 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_GetOptionChain.S2C)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Qot_GetOptionChain.S2C)
return false;
#undef DO_
}
void S2C::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Qot_GetOptionChain.S2C)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->optionchain_size()); i < n; i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->optionchain(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_GetOptionChain.S2C)
}
::google::protobuf::uint8* S2C::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetOptionChain.S2C)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->optionchain_size()); i < n; i++) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageToArray(
1, this->optionchain(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_GetOptionChain.S2C)
return target;
}
size_t S2C::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Qot_GetOptionChain.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_GetOptionChain.OptionChain optionChain = 1;
{
unsigned int count = static_cast<unsigned int>(this->optionchain_size());
total_size += 1UL * count;
for (unsigned int i = 0; i < count; i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(
this->optionchain(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_GetOptionChain.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_GetOptionChain.S2C)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetOptionChain.S2C)
MergeFrom(*source);
}
}
void S2C::MergeFrom(const S2C& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetOptionChain.S2C)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
optionchain_.MergeFrom(from.optionchain_);
}
void S2C::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetOptionChain.S2C)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void S2C::CopyFrom(const S2C& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetOptionChain.S2C)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool S2C::IsInitialized() const {
if (!::google::protobuf::internal::AllAreInitialized(this->optionchain())) return false;
return true;
}
void S2C::Swap(S2C* other) {
if (other == this) return;
InternalSwap(other);
}
void S2C::InternalSwap(S2C* other) {
using std::swap;
optionchain_.InternalSwap(&other->optionchain_);
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_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void Request::InitAsDefaultInstance() {
::Qot_GetOptionChain::_Request_default_instance_._instance.get_mutable()->c2s_ = const_cast< ::Qot_GetOptionChain::C2S*>(
::Qot_GetOptionChain::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_5fGetOptionChain_2eproto::InitDefaultsRequest();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Qot_GetOptionChain.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_GetOptionChain::C2S(*from.c2s_);
} else {
c2s_ = NULL;
}
// @@protoc_insertion_point(copy_constructor:Qot_GetOptionChain.Request)
}
void Request::SharedCtor() {
_cached_size_ = 0;
c2s_ = NULL;
}
Request::~Request() {
// @@protoc_insertion_point(destructor:Qot_GetOptionChain.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_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Request& Request::default_instance() {
::protobuf_Qot_5fGetOptionChain_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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.Request)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Qot_GetOptionChain.Request)
return false;
#undef DO_
}
void Request::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Qot_GetOptionChain.Request)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required .Qot_GetOptionChain.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_GetOptionChain.Request)
}
::google::protobuf::uint8* Request::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetOptionChain.Request)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required .Qot_GetOptionChain.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_GetOptionChain.Request)
return target;
}
size_t Request::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Qot_GetOptionChain.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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.Request)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetOptionChain.Request)
MergeFrom(*source);
}
}
void Request::MergeFrom(const Request& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetOptionChain.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_GetOptionChain::C2S::MergeFrom(from.c2s());
}
}
void Request::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Qot_GetOptionChain.Request)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Request::CopyFrom(const Request& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetOptionChain.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_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages];
}
// ===================================================================
void Response::InitAsDefaultInstance() {
::Qot_GetOptionChain::_Response_default_instance_._instance.get_mutable()->s2c_ = const_cast< ::Qot_GetOptionChain::S2C*>(
::Qot_GetOptionChain::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_5fGetOptionChain_2eproto::InitDefaultsResponse();
}
SharedCtor();
// @@protoc_insertion_point(constructor:Qot_GetOptionChain.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_GetOptionChain::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_GetOptionChain.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_GetOptionChain.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_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const Response& Response::default_instance() {
::protobuf_Qot_5fGetOptionChain_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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.Response)
return true;
failure:
// @@protoc_insertion_point(parse_failure:Qot_GetOptionChain.Response)
return false;
#undef DO_
}
void Response::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:Qot_GetOptionChain.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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.Response)
}
::google::protobuf::uint8* Response::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:Qot_GetOptionChain.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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.Response)
return target;
}
size_t Response::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Qot_GetOptionChain.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_GetOptionChain.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_GetOptionChain.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_GetOptionChain.Response)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:Qot_GetOptionChain.Response)
MergeFrom(*source);
}
}
void Response::MergeFrom(const Response& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Qot_GetOptionChain.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_GetOptionChain::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_GetOptionChain.Response)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Response::CopyFrom(const Response& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Qot_GetOptionChain.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_5fGetOptionChain_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_Qot_5fGetOptionChain_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
} // namespace Qot_GetOptionChain
// @@protoc_insertion_point(global_scope)