grpc/protoc/market_data.pb.cc
2024-12-09 19:29:55 +08:00

2204 lines
98 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: market_data.proto
// Protobuf C++ Version: 5.28.1
#include "market_data.pb.h"
#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/wire_format_lite.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"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace market_data {
inline constexpr ResMsg::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: other_params_{},
other_msg_{},
signame_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
instrumentid_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
offset_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
dir_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
sigvalue_{0},
sigflag_{0},
vol_{0},
_cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR ResMsg::ResMsg(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct ResMsgDefaultTypeInternal {
PROTOBUF_CONSTEXPR ResMsgDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~ResMsgDefaultTypeInternal() {}
union {
ResMsg _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResMsgDefaultTypeInternal _ResMsg_default_instance_;
inline constexpr MsgReply::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: message_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
_cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR MsgReply::MsgReply(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct MsgReplyDefaultTypeInternal {
PROTOBUF_CONSTEXPR MsgReplyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~MsgReplyDefaultTypeInternal() {}
union {
MsgReply _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MsgReplyDefaultTypeInternal _MsgReply_default_instance_;
inline constexpr CThostFtdcDepthMarketDataField::Impl_::Impl_(
::_pbi::ConstantInitialized) noexcept
: tradingday_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
reserve1_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
exchangeid_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
reserve2_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
updatetime_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
actionday_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
instrumentid_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
exchangeinstid_(
&::google::protobuf::internal::fixed_address_empty_string,
::_pbi::ConstantInitialized()),
lastprice_{0},
presettlementprice_{0},
precloseprice_{0},
preopeninterest_{0},
openprice_{0},
highestprice_{0},
lowestprice_{0},
turnover_{0},
openinterest_{0},
closeprice_{0},
settlementprice_{0},
upperlimitprice_{0},
volume_{0},
updatemillisec_{0},
lowerlimitprice_{0},
predelta_{0},
currdelta_{0},
bidprice1_{0},
askprice1_{0},
bidvolume1_{0},
askvolume1_{0},
bidprice2_{0},
askprice2_{0},
bidvolume2_{0},
askvolume2_{0},
bidprice3_{0},
askprice3_{0},
bidvolume3_{0},
askvolume3_{0},
bidprice4_{0},
askprice4_{0},
bidvolume4_{0},
askvolume4_{0},
bidprice5_{0},
askprice5_{0},
bidvolume5_{0},
askvolume5_{0},
averageprice_{0},
_cached_size_{0} {}
template <typename>
PROTOBUF_CONSTEXPR CThostFtdcDepthMarketDataField::CThostFtdcDepthMarketDataField(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(_class_data_.base()),
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(),
#endif // PROTOBUF_CUSTOM_VTABLE
_impl_(::_pbi::ConstantInitialized()) {
}
struct CThostFtdcDepthMarketDataFieldDefaultTypeInternal {
PROTOBUF_CONSTEXPR CThostFtdcDepthMarketDataFieldDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
~CThostFtdcDepthMarketDataFieldDefaultTypeInternal() {}
union {
CThostFtdcDepthMarketDataField _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CThostFtdcDepthMarketDataFieldDefaultTypeInternal _CThostFtdcDepthMarketDataField_default_instance_;
} // namespace market_data
static constexpr const ::_pb::EnumDescriptor**
file_level_enum_descriptors_market_5fdata_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor**
file_level_service_descriptors_market_5fdata_2eproto = nullptr;
const ::uint32_t
TableStruct_market_5fdata_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.tradingday_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.reserve1_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.exchangeid_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.reserve2_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.lastprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.presettlementprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.precloseprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.preopeninterest_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.openprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.highestprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.lowestprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.volume_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.turnover_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.openinterest_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.closeprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.settlementprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.upperlimitprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.lowerlimitprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.predelta_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.currdelta_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.updatetime_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.updatemillisec_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidprice1_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidvolume1_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askprice1_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askvolume1_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidprice2_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidvolume2_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askprice2_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askvolume2_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidprice3_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidvolume3_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askprice3_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askvolume3_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidprice4_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidvolume4_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askprice4_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askvolume4_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidprice5_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.bidvolume5_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askprice5_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.askvolume5_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.averageprice_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.actionday_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.instrumentid_),
PROTOBUF_FIELD_OFFSET(::market_data::CThostFtdcDepthMarketDataField, _impl_.exchangeinstid_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.signame_),
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.instrumentid_),
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.sigflag_),
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.sigvalue_),
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.offset_),
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.dir_),
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.vol_),
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.other_params_),
PROTOBUF_FIELD_OFFSET(::market_data::ResMsg, _impl_.other_msg_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::market_data::MsgReply, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
~0u, // no _split_
~0u, // no sizeof(Split)
PROTOBUF_FIELD_OFFSET(::market_data::MsgReply, _impl_.message_),
};
static const ::_pbi::MigrationSchema
schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{0, -1, -1, sizeof(::market_data::CThostFtdcDepthMarketDataField)},
{54, -1, -1, sizeof(::market_data::ResMsg)},
{71, -1, -1, sizeof(::market_data::MsgReply)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::market_data::_CThostFtdcDepthMarketDataField_default_instance_._instance,
&::market_data::_ResMsg_default_instance_._instance,
&::market_data::_MsgReply_default_instance_._instance,
};
const char descriptor_table_protodef_market_5fdata_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
protodesc_cold) = {
"\n\021market_data.proto\022\013market_data\"\316\007\n\036CTh"
"ostFtdcDepthMarketDataField\022\022\n\nTradingDa"
"y\030\001 \001(\t\022\020\n\010reserve1\030\002 \001(\t\022\022\n\nExchangeID\030"
"\003 \001(\t\022\020\n\010reserve2\030\004 \001(\t\022\021\n\tLastPrice\030\005 \001"
"(\001\022\032\n\022PreSettlementPrice\030\006 \001(\001\022\025\n\rPreClo"
"sePrice\030\007 \001(\001\022\027\n\017PreOpenInterest\030\010 \001(\001\022\021"
"\n\tOpenPrice\030\t \001(\001\022\024\n\014HighestPrice\030\n \001(\001\022"
"\023\n\013LowestPrice\030\013 \001(\001\022\016\n\006Volume\030\014 \001(\005\022\020\n\010"
"Turnover\030\r \001(\001\022\024\n\014OpenInterest\030\016 \001(\001\022\022\n\n"
"ClosePrice\030\017 \001(\001\022\027\n\017SettlementPrice\030\020 \001("
"\001\022\027\n\017UpperLimitPrice\030\021 \001(\001\022\027\n\017LowerLimit"
"Price\030\022 \001(\001\022\020\n\010PreDelta\030\023 \001(\001\022\021\n\tCurrDel"
"ta\030\024 \001(\001\022\022\n\nUpdateTime\030\025 \001(\t\022\026\n\016UpdateMi"
"llisec\030\026 \001(\005\022\021\n\tBidPrice1\030\027 \001(\001\022\022\n\nBidVo"
"lume1\030\030 \001(\005\022\021\n\tAskPrice1\030\031 \001(\001\022\022\n\nAskVol"
"ume1\030\032 \001(\005\022\021\n\tBidPrice2\030\033 \001(\001\022\022\n\nBidVolu"
"me2\030\034 \001(\005\022\021\n\tAskPrice2\030\035 \001(\001\022\022\n\nAskVolum"
"e2\030\036 \001(\005\022\021\n\tBidPrice3\030\037 \001(\001\022\022\n\nBidVolume"
"3\030 \001(\005\022\021\n\tAskPrice3\030! \001(\001\022\022\n\nAskVolume3"
"\030\" \001(\005\022\021\n\tBidPrice4\030# \001(\001\022\022\n\nBidVolume4\030"
"$ \001(\005\022\021\n\tAskPrice4\030% \001(\001\022\022\n\nAskVolume4\030&"
" \001(\005\022\021\n\tBidPrice5\030\' \001(\001\022\022\n\nBidVolume5\030( "
"\001(\005\022\021\n\tAskPrice5\030) \001(\001\022\022\n\nAskVolume5\030* \001"
"(\005\022\024\n\014AveragePrice\030+ \001(\001\022\021\n\tActionDay\030, "
"\001(\t\022\024\n\014InstrumentID\030- \001(\t\022\026\n\016ExchangeIns"
"tID\030. \001(\t\"\245\001\n\006ResMsg\022\017\n\007signame\030\001 \001(\t\022\024\n"
"\014InstrumentID\030\002 \001(\t\022\017\n\007sigflag\030\003 \001(\005\022\020\n\010"
"sigvalue\030\004 \001(\001\022\016\n\006offset\030\005 \001(\t\022\013\n\003dir\030\006 "
"\001(\t\022\013\n\003vol\030\007 \001(\005\022\024\n\014other_params\030\010 \003(\001\022\021"
"\n\tother_msg\030\t \003(\t\"\033\n\010MsgReply\022\017\n\007message"
"\030\001 \001(\t2\231\001\n\013TestService\022P\n\010GetData1\022+.mar"
"ket_data.CThostFtdcDepthMarketDataField\032"
"\025.market_data.MsgReply\"\000\0228\n\010GetData2\022\023.m"
"arket_data.ResMsg\032\025.market_data.MsgReply"
"\"\000B2\n\033io.grpc.example.market_dataB\013marke"
"t_dataP\001\242\002\003HLWb\006proto3"
};
static ::absl::once_flag descriptor_table_market_5fdata_2eproto_once;
PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_market_5fdata_2eproto = {
false,
false,
1422,
descriptor_table_protodef_market_5fdata_2eproto,
"market_data.proto",
&descriptor_table_market_5fdata_2eproto_once,
nullptr,
0,
3,
schemas,
file_default_instances,
TableStruct_market_5fdata_2eproto::offsets,
file_level_enum_descriptors_market_5fdata_2eproto,
file_level_service_descriptors_market_5fdata_2eproto,
};
namespace market_data {
// ===================================================================
class CThostFtdcDepthMarketDataField::_Internal {
public:
};
CThostFtdcDepthMarketDataField::CThostFtdcDepthMarketDataField(::google::protobuf::Arena* arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(arena, _class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:market_data.CThostFtdcDepthMarketDataField)
}
inline PROTOBUF_NDEBUG_INLINE CThostFtdcDepthMarketDataField::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
const Impl_& from, const ::market_data::CThostFtdcDepthMarketDataField& from_msg)
: tradingday_(arena, from.tradingday_),
reserve1_(arena, from.reserve1_),
exchangeid_(arena, from.exchangeid_),
reserve2_(arena, from.reserve2_),
updatetime_(arena, from.updatetime_),
actionday_(arena, from.actionday_),
instrumentid_(arena, from.instrumentid_),
exchangeinstid_(arena, from.exchangeinstid_),
_cached_size_{0} {}
CThostFtdcDepthMarketDataField::CThostFtdcDepthMarketDataField(
::google::protobuf::Arena* arena,
const CThostFtdcDepthMarketDataField& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(arena, _class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
CThostFtdcDepthMarketDataField* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char *>(&_impl_) +
offsetof(Impl_, lastprice_),
reinterpret_cast<const char *>(&from._impl_) +
offsetof(Impl_, lastprice_),
offsetof(Impl_, averageprice_) -
offsetof(Impl_, lastprice_) +
sizeof(Impl_::averageprice_));
// @@protoc_insertion_point(copy_constructor:market_data.CThostFtdcDepthMarketDataField)
}
inline PROTOBUF_NDEBUG_INLINE CThostFtdcDepthMarketDataField::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: tradingday_(arena),
reserve1_(arena),
exchangeid_(arena),
reserve2_(arena),
updatetime_(arena),
actionday_(arena),
instrumentid_(arena),
exchangeinstid_(arena),
_cached_size_{0} {}
inline void CThostFtdcDepthMarketDataField::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char *>(&_impl_) +
offsetof(Impl_, lastprice_),
0,
offsetof(Impl_, averageprice_) -
offsetof(Impl_, lastprice_) +
sizeof(Impl_::averageprice_));
}
CThostFtdcDepthMarketDataField::~CThostFtdcDepthMarketDataField() {
// @@protoc_insertion_point(destructor:market_data.CThostFtdcDepthMarketDataField)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void CThostFtdcDepthMarketDataField::SharedDtor() {
ABSL_DCHECK(GetArena() == nullptr);
_impl_.tradingday_.Destroy();
_impl_.reserve1_.Destroy();
_impl_.exchangeid_.Destroy();
_impl_.reserve2_.Destroy();
_impl_.updatetime_.Destroy();
_impl_.actionday_.Destroy();
_impl_.instrumentid_.Destroy();
_impl_.exchangeinstid_.Destroy();
_impl_.~Impl_();
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::MessageLite::ClassDataFull
CThostFtdcDepthMarketDataField::_class_data_ = {
::google::protobuf::Message::ClassData{
&_CThostFtdcDepthMarketDataField_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&CThostFtdcDepthMarketDataField::MergeImpl,
#if defined(PROTOBUF_CUSTOM_VTABLE)
::google::protobuf::Message::GetDeleteImpl<CThostFtdcDepthMarketDataField>(),
::google::protobuf::Message::GetNewImpl<CThostFtdcDepthMarketDataField>(),
::google::protobuf::Message::GetClearImpl<CThostFtdcDepthMarketDataField>(), &CThostFtdcDepthMarketDataField::ByteSizeLong,
&CThostFtdcDepthMarketDataField::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_._cached_size_),
false,
},
&CThostFtdcDepthMarketDataField::kDescriptorMethods,
&descriptor_table_market_5fdata_2eproto,
nullptr, // tracker
};
const ::google::protobuf::MessageLite::ClassData* CThostFtdcDepthMarketDataField::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
return _class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<5, 46, 0, 172, 7> CThostFtdcDepthMarketDataField::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
46, 248, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
0, // skipmap
offsetof(decltype(_table_), field_entries),
46, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::market_data::CThostFtdcDepthMarketDataField>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// string TradingDay = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.tradingday_)}},
// string reserve1 = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.reserve1_)}},
// string ExchangeID = 3;
{::_pbi::TcParser::FastUS1,
{26, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.exchangeid_)}},
// string reserve2 = 4;
{::_pbi::TcParser::FastUS1,
{34, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.reserve2_)}},
// double LastPrice = 5;
{::_pbi::TcParser::FastF64S1,
{41, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.lastprice_)}},
// double PreSettlementPrice = 6;
{::_pbi::TcParser::FastF64S1,
{49, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.presettlementprice_)}},
// double PreClosePrice = 7;
{::_pbi::TcParser::FastF64S1,
{57, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.precloseprice_)}},
// double PreOpenInterest = 8;
{::_pbi::TcParser::FastF64S1,
{65, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.preopeninterest_)}},
// double OpenPrice = 9;
{::_pbi::TcParser::FastF64S1,
{73, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.openprice_)}},
// double HighestPrice = 10;
{::_pbi::TcParser::FastF64S1,
{81, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.highestprice_)}},
// double LowestPrice = 11;
{::_pbi::TcParser::FastF64S1,
{89, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.lowestprice_)}},
// int32 Volume = 12;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CThostFtdcDepthMarketDataField, _impl_.volume_), 63>(),
{96, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.volume_)}},
// double Turnover = 13;
{::_pbi::TcParser::FastF64S1,
{105, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.turnover_)}},
// double OpenInterest = 14;
{::_pbi::TcParser::FastF64S1,
{113, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.openinterest_)}},
// double ClosePrice = 15;
{::_pbi::TcParser::FastF64S1,
{121, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.closeprice_)}},
// double SettlementPrice = 16;
{::_pbi::TcParser::FastF64S2,
{385, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.settlementprice_)}},
// double UpperLimitPrice = 17;
{::_pbi::TcParser::FastF64S2,
{393, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.upperlimitprice_)}},
// double LowerLimitPrice = 18;
{::_pbi::TcParser::FastF64S2,
{401, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.lowerlimitprice_)}},
// double PreDelta = 19;
{::_pbi::TcParser::FastF64S2,
{409, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.predelta_)}},
// double CurrDelta = 20;
{::_pbi::TcParser::FastF64S2,
{417, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.currdelta_)}},
// string UpdateTime = 21;
{::_pbi::TcParser::FastUS2,
{426, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.updatetime_)}},
// int32 UpdateMillisec = 22;
{::_pbi::TcParser::FastV32S2,
{432, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.updatemillisec_)}},
// double BidPrice1 = 23;
{::_pbi::TcParser::FastF64S2,
{441, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidprice1_)}},
// int32 BidVolume1 = 24;
{::_pbi::TcParser::FastV32S2,
{448, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidvolume1_)}},
// double AskPrice1 = 25;
{::_pbi::TcParser::FastF64S2,
{457, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askprice1_)}},
// int32 AskVolume1 = 26;
{::_pbi::TcParser::FastV32S2,
{464, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askvolume1_)}},
// double BidPrice2 = 27;
{::_pbi::TcParser::FastF64S2,
{473, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidprice2_)}},
// int32 BidVolume2 = 28;
{::_pbi::TcParser::FastV32S2,
{480, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidvolume2_)}},
// double AskPrice2 = 29;
{::_pbi::TcParser::FastF64S2,
{489, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askprice2_)}},
// int32 AskVolume2 = 30;
{::_pbi::TcParser::FastV32S2,
{496, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askvolume2_)}},
// double BidPrice3 = 31;
{::_pbi::TcParser::FastF64S2,
{505, 63, 0, PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidprice3_)}},
}}, {{
33, 0, 1,
49152, 32,
65535, 65535
}}, {{
// string TradingDay = 1;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.tradingday_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string reserve1 = 2;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.reserve1_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string ExchangeID = 3;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.exchangeid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string reserve2 = 4;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.reserve2_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// double LastPrice = 5;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.lastprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double PreSettlementPrice = 6;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.presettlementprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double PreClosePrice = 7;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.precloseprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double PreOpenInterest = 8;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.preopeninterest_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double OpenPrice = 9;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.openprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double HighestPrice = 10;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.highestprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double LowestPrice = 11;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.lowestprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 Volume = 12;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.volume_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double Turnover = 13;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.turnover_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double OpenInterest = 14;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.openinterest_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double ClosePrice = 15;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.closeprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double SettlementPrice = 16;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.settlementprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double UpperLimitPrice = 17;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.upperlimitprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double LowerLimitPrice = 18;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.lowerlimitprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double PreDelta = 19;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.predelta_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// double CurrDelta = 20;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.currdelta_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// string UpdateTime = 21;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.updatetime_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// int32 UpdateMillisec = 22;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.updatemillisec_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double BidPrice1 = 23;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidprice1_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 BidVolume1 = 24;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidvolume1_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double AskPrice1 = 25;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askprice1_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 AskVolume1 = 26;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askvolume1_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double BidPrice2 = 27;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidprice2_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 BidVolume2 = 28;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidvolume2_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double AskPrice2 = 29;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askprice2_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 AskVolume2 = 30;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askvolume2_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double BidPrice3 = 31;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidprice3_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 BidVolume3 = 32;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidvolume3_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double AskPrice3 = 33;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askprice3_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 AskVolume3 = 34;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askvolume3_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double BidPrice4 = 35;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidprice4_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 BidVolume4 = 36;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidvolume4_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double AskPrice4 = 37;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askprice4_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 AskVolume4 = 38;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askvolume4_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double BidPrice5 = 39;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidprice5_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 BidVolume5 = 40;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.bidvolume5_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double AskPrice5 = 41;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askprice5_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// int32 AskVolume5 = 42;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.askvolume5_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double AveragePrice = 43;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.averageprice_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// string ActionDay = 44;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.actionday_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string InstrumentID = 45;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.instrumentid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string ExchangeInstID = 46;
{PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.exchangeinstid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\52\12\10\12\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\12\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\11\14\16\0"
"market_data.CThostFtdcDepthMarketDataField"
"TradingDay"
"reserve1"
"ExchangeID"
"reserve2"
"UpdateTime"
"ActionDay"
"InstrumentID"
"ExchangeInstID"
}},
};
PROTOBUF_NOINLINE void CThostFtdcDepthMarketDataField::Clear() {
// @@protoc_insertion_point(message_clear_start:market_data.CThostFtdcDepthMarketDataField)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.tradingday_.ClearToEmpty();
_impl_.reserve1_.ClearToEmpty();
_impl_.exchangeid_.ClearToEmpty();
_impl_.reserve2_.ClearToEmpty();
_impl_.updatetime_.ClearToEmpty();
_impl_.actionday_.ClearToEmpty();
_impl_.instrumentid_.ClearToEmpty();
_impl_.exchangeinstid_.ClearToEmpty();
::memset(&_impl_.lastprice_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.averageprice_) -
reinterpret_cast<char*>(&_impl_.lastprice_)) + sizeof(_impl_.averageprice_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* CThostFtdcDepthMarketDataField::_InternalSerialize(
const MessageLite& base, ::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) {
const CThostFtdcDepthMarketDataField& this_ = static_cast<const CThostFtdcDepthMarketDataField&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* CThostFtdcDepthMarketDataField::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
const CThostFtdcDepthMarketDataField& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(serialize_to_array_start:market_data.CThostFtdcDepthMarketDataField)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string TradingDay = 1;
if (!this_._internal_tradingday().empty()) {
const std::string& _s = this_._internal_tradingday();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.CThostFtdcDepthMarketDataField.TradingDay");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// string reserve1 = 2;
if (!this_._internal_reserve1().empty()) {
const std::string& _s = this_._internal_reserve1();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.CThostFtdcDepthMarketDataField.reserve1");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// string ExchangeID = 3;
if (!this_._internal_exchangeid().empty()) {
const std::string& _s = this_._internal_exchangeid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.CThostFtdcDepthMarketDataField.ExchangeID");
target = stream->WriteStringMaybeAliased(3, _s, target);
}
// string reserve2 = 4;
if (!this_._internal_reserve2().empty()) {
const std::string& _s = this_._internal_reserve2();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.CThostFtdcDepthMarketDataField.reserve2");
target = stream->WriteStringMaybeAliased(4, _s, target);
}
// double LastPrice = 5;
if (::absl::bit_cast<::uint64_t>(this_._internal_lastprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
5, this_._internal_lastprice(), target);
}
// double PreSettlementPrice = 6;
if (::absl::bit_cast<::uint64_t>(this_._internal_presettlementprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
6, this_._internal_presettlementprice(), target);
}
// double PreClosePrice = 7;
if (::absl::bit_cast<::uint64_t>(this_._internal_precloseprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
7, this_._internal_precloseprice(), target);
}
// double PreOpenInterest = 8;
if (::absl::bit_cast<::uint64_t>(this_._internal_preopeninterest()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8, this_._internal_preopeninterest(), target);
}
// double OpenPrice = 9;
if (::absl::bit_cast<::uint64_t>(this_._internal_openprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
9, this_._internal_openprice(), target);
}
// double HighestPrice = 10;
if (::absl::bit_cast<::uint64_t>(this_._internal_highestprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
10, this_._internal_highestprice(), target);
}
// double LowestPrice = 11;
if (::absl::bit_cast<::uint64_t>(this_._internal_lowestprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
11, this_._internal_lowestprice(), target);
}
// int32 Volume = 12;
if (this_._internal_volume() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<12>(
stream, this_._internal_volume(), target);
}
// double Turnover = 13;
if (::absl::bit_cast<::uint64_t>(this_._internal_turnover()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
13, this_._internal_turnover(), target);
}
// double OpenInterest = 14;
if (::absl::bit_cast<::uint64_t>(this_._internal_openinterest()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
14, this_._internal_openinterest(), target);
}
// double ClosePrice = 15;
if (::absl::bit_cast<::uint64_t>(this_._internal_closeprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
15, this_._internal_closeprice(), target);
}
// double SettlementPrice = 16;
if (::absl::bit_cast<::uint64_t>(this_._internal_settlementprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
16, this_._internal_settlementprice(), target);
}
// double UpperLimitPrice = 17;
if (::absl::bit_cast<::uint64_t>(this_._internal_upperlimitprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
17, this_._internal_upperlimitprice(), target);
}
// double LowerLimitPrice = 18;
if (::absl::bit_cast<::uint64_t>(this_._internal_lowerlimitprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
18, this_._internal_lowerlimitprice(), target);
}
// double PreDelta = 19;
if (::absl::bit_cast<::uint64_t>(this_._internal_predelta()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
19, this_._internal_predelta(), target);
}
// double CurrDelta = 20;
if (::absl::bit_cast<::uint64_t>(this_._internal_currdelta()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
20, this_._internal_currdelta(), target);
}
// string UpdateTime = 21;
if (!this_._internal_updatetime().empty()) {
const std::string& _s = this_._internal_updatetime();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.CThostFtdcDepthMarketDataField.UpdateTime");
target = stream->WriteStringMaybeAliased(21, _s, target);
}
// int32 UpdateMillisec = 22;
if (this_._internal_updatemillisec() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
22, this_._internal_updatemillisec(), target);
}
// double BidPrice1 = 23;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice1()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
23, this_._internal_bidprice1(), target);
}
// int32 BidVolume1 = 24;
if (this_._internal_bidvolume1() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
24, this_._internal_bidvolume1(), target);
}
// double AskPrice1 = 25;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice1()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
25, this_._internal_askprice1(), target);
}
// int32 AskVolume1 = 26;
if (this_._internal_askvolume1() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
26, this_._internal_askvolume1(), target);
}
// double BidPrice2 = 27;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice2()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
27, this_._internal_bidprice2(), target);
}
// int32 BidVolume2 = 28;
if (this_._internal_bidvolume2() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
28, this_._internal_bidvolume2(), target);
}
// double AskPrice2 = 29;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice2()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
29, this_._internal_askprice2(), target);
}
// int32 AskVolume2 = 30;
if (this_._internal_askvolume2() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
30, this_._internal_askvolume2(), target);
}
// double BidPrice3 = 31;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice3()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
31, this_._internal_bidprice3(), target);
}
// int32 BidVolume3 = 32;
if (this_._internal_bidvolume3() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
32, this_._internal_bidvolume3(), target);
}
// double AskPrice3 = 33;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice3()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
33, this_._internal_askprice3(), target);
}
// int32 AskVolume3 = 34;
if (this_._internal_askvolume3() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
34, this_._internal_askvolume3(), target);
}
// double BidPrice4 = 35;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice4()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
35, this_._internal_bidprice4(), target);
}
// int32 BidVolume4 = 36;
if (this_._internal_bidvolume4() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
36, this_._internal_bidvolume4(), target);
}
// double AskPrice4 = 37;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice4()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
37, this_._internal_askprice4(), target);
}
// int32 AskVolume4 = 38;
if (this_._internal_askvolume4() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
38, this_._internal_askvolume4(), target);
}
// double BidPrice5 = 39;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice5()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
39, this_._internal_bidprice5(), target);
}
// int32 BidVolume5 = 40;
if (this_._internal_bidvolume5() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
40, this_._internal_bidvolume5(), target);
}
// double AskPrice5 = 41;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice5()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
41, this_._internal_askprice5(), target);
}
// int32 AskVolume5 = 42;
if (this_._internal_askvolume5() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(
42, this_._internal_askvolume5(), target);
}
// double AveragePrice = 43;
if (::absl::bit_cast<::uint64_t>(this_._internal_averageprice()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
43, this_._internal_averageprice(), target);
}
// string ActionDay = 44;
if (!this_._internal_actionday().empty()) {
const std::string& _s = this_._internal_actionday();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.CThostFtdcDepthMarketDataField.ActionDay");
target = stream->WriteStringMaybeAliased(44, _s, target);
}
// string InstrumentID = 45;
if (!this_._internal_instrumentid().empty()) {
const std::string& _s = this_._internal_instrumentid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.CThostFtdcDepthMarketDataField.InstrumentID");
target = stream->WriteStringMaybeAliased(45, _s, target);
}
// string ExchangeInstID = 46;
if (!this_._internal_exchangeinstid().empty()) {
const std::string& _s = this_._internal_exchangeinstid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.CThostFtdcDepthMarketDataField.ExchangeInstID");
target = stream->WriteStringMaybeAliased(46, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:market_data.CThostFtdcDepthMarketDataField)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t CThostFtdcDepthMarketDataField::ByteSizeLong(const MessageLite& base) {
const CThostFtdcDepthMarketDataField& this_ = static_cast<const CThostFtdcDepthMarketDataField&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t CThostFtdcDepthMarketDataField::ByteSizeLong() const {
const CThostFtdcDepthMarketDataField& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:market_data.CThostFtdcDepthMarketDataField)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
{
// string TradingDay = 1;
if (!this_._internal_tradingday().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_tradingday());
}
// string reserve1 = 2;
if (!this_._internal_reserve1().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_reserve1());
}
// string ExchangeID = 3;
if (!this_._internal_exchangeid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_exchangeid());
}
// string reserve2 = 4;
if (!this_._internal_reserve2().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_reserve2());
}
// string UpdateTime = 21;
if (!this_._internal_updatetime().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_updatetime());
}
// string ActionDay = 44;
if (!this_._internal_actionday().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_actionday());
}
// string InstrumentID = 45;
if (!this_._internal_instrumentid().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_instrumentid());
}
// string ExchangeInstID = 46;
if (!this_._internal_exchangeinstid().empty()) {
total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_exchangeinstid());
}
// double LastPrice = 5;
if (::absl::bit_cast<::uint64_t>(this_._internal_lastprice()) != 0) {
total_size += 9;
}
// double PreSettlementPrice = 6;
if (::absl::bit_cast<::uint64_t>(this_._internal_presettlementprice()) != 0) {
total_size += 9;
}
// double PreClosePrice = 7;
if (::absl::bit_cast<::uint64_t>(this_._internal_precloseprice()) != 0) {
total_size += 9;
}
// double PreOpenInterest = 8;
if (::absl::bit_cast<::uint64_t>(this_._internal_preopeninterest()) != 0) {
total_size += 9;
}
// double OpenPrice = 9;
if (::absl::bit_cast<::uint64_t>(this_._internal_openprice()) != 0) {
total_size += 9;
}
// double HighestPrice = 10;
if (::absl::bit_cast<::uint64_t>(this_._internal_highestprice()) != 0) {
total_size += 9;
}
// double LowestPrice = 11;
if (::absl::bit_cast<::uint64_t>(this_._internal_lowestprice()) != 0) {
total_size += 9;
}
// double Turnover = 13;
if (::absl::bit_cast<::uint64_t>(this_._internal_turnover()) != 0) {
total_size += 9;
}
// double OpenInterest = 14;
if (::absl::bit_cast<::uint64_t>(this_._internal_openinterest()) != 0) {
total_size += 9;
}
// double ClosePrice = 15;
if (::absl::bit_cast<::uint64_t>(this_._internal_closeprice()) != 0) {
total_size += 9;
}
// double SettlementPrice = 16;
if (::absl::bit_cast<::uint64_t>(this_._internal_settlementprice()) != 0) {
total_size += 10;
}
// double UpperLimitPrice = 17;
if (::absl::bit_cast<::uint64_t>(this_._internal_upperlimitprice()) != 0) {
total_size += 10;
}
// int32 Volume = 12;
if (this_._internal_volume() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_volume());
}
// int32 UpdateMillisec = 22;
if (this_._internal_updatemillisec() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_updatemillisec());
}
// double LowerLimitPrice = 18;
if (::absl::bit_cast<::uint64_t>(this_._internal_lowerlimitprice()) != 0) {
total_size += 10;
}
// double PreDelta = 19;
if (::absl::bit_cast<::uint64_t>(this_._internal_predelta()) != 0) {
total_size += 10;
}
// double CurrDelta = 20;
if (::absl::bit_cast<::uint64_t>(this_._internal_currdelta()) != 0) {
total_size += 10;
}
// double BidPrice1 = 23;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice1()) != 0) {
total_size += 10;
}
// double AskPrice1 = 25;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice1()) != 0) {
total_size += 10;
}
// int32 BidVolume1 = 24;
if (this_._internal_bidvolume1() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_bidvolume1());
}
// int32 AskVolume1 = 26;
if (this_._internal_askvolume1() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_askvolume1());
}
// double BidPrice2 = 27;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice2()) != 0) {
total_size += 10;
}
// double AskPrice2 = 29;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice2()) != 0) {
total_size += 10;
}
// int32 BidVolume2 = 28;
if (this_._internal_bidvolume2() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_bidvolume2());
}
// int32 AskVolume2 = 30;
if (this_._internal_askvolume2() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_askvolume2());
}
// double BidPrice3 = 31;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice3()) != 0) {
total_size += 10;
}
// double AskPrice3 = 33;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice3()) != 0) {
total_size += 10;
}
// int32 BidVolume3 = 32;
if (this_._internal_bidvolume3() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_bidvolume3());
}
// int32 AskVolume3 = 34;
if (this_._internal_askvolume3() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_askvolume3());
}
// double BidPrice4 = 35;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice4()) != 0) {
total_size += 10;
}
// double AskPrice4 = 37;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice4()) != 0) {
total_size += 10;
}
// int32 BidVolume4 = 36;
if (this_._internal_bidvolume4() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_bidvolume4());
}
// int32 AskVolume4 = 38;
if (this_._internal_askvolume4() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_askvolume4());
}
// double BidPrice5 = 39;
if (::absl::bit_cast<::uint64_t>(this_._internal_bidprice5()) != 0) {
total_size += 10;
}
// double AskPrice5 = 41;
if (::absl::bit_cast<::uint64_t>(this_._internal_askprice5()) != 0) {
total_size += 10;
}
// int32 BidVolume5 = 40;
if (this_._internal_bidvolume5() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_bidvolume5());
}
// int32 AskVolume5 = 42;
if (this_._internal_askvolume5() != 0) {
total_size += 2 + ::_pbi::WireFormatLite::Int32Size(
this_._internal_askvolume5());
}
// double AveragePrice = 43;
if (::absl::bit_cast<::uint64_t>(this_._internal_averageprice()) != 0) {
total_size += 10;
}
}
return this_.MaybeComputeUnknownFieldsSize(total_size,
&this_._impl_._cached_size_);
}
void CThostFtdcDepthMarketDataField::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<CThostFtdcDepthMarketDataField*>(&to_msg);
auto& from = static_cast<const CThostFtdcDepthMarketDataField&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:market_data.CThostFtdcDepthMarketDataField)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_tradingday().empty()) {
_this->_internal_set_tradingday(from._internal_tradingday());
}
if (!from._internal_reserve1().empty()) {
_this->_internal_set_reserve1(from._internal_reserve1());
}
if (!from._internal_exchangeid().empty()) {
_this->_internal_set_exchangeid(from._internal_exchangeid());
}
if (!from._internal_reserve2().empty()) {
_this->_internal_set_reserve2(from._internal_reserve2());
}
if (!from._internal_updatetime().empty()) {
_this->_internal_set_updatetime(from._internal_updatetime());
}
if (!from._internal_actionday().empty()) {
_this->_internal_set_actionday(from._internal_actionday());
}
if (!from._internal_instrumentid().empty()) {
_this->_internal_set_instrumentid(from._internal_instrumentid());
}
if (!from._internal_exchangeinstid().empty()) {
_this->_internal_set_exchangeinstid(from._internal_exchangeinstid());
}
if (::absl::bit_cast<::uint64_t>(from._internal_lastprice()) != 0) {
_this->_impl_.lastprice_ = from._impl_.lastprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_presettlementprice()) != 0) {
_this->_impl_.presettlementprice_ = from._impl_.presettlementprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_precloseprice()) != 0) {
_this->_impl_.precloseprice_ = from._impl_.precloseprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_preopeninterest()) != 0) {
_this->_impl_.preopeninterest_ = from._impl_.preopeninterest_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_openprice()) != 0) {
_this->_impl_.openprice_ = from._impl_.openprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_highestprice()) != 0) {
_this->_impl_.highestprice_ = from._impl_.highestprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_lowestprice()) != 0) {
_this->_impl_.lowestprice_ = from._impl_.lowestprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_turnover()) != 0) {
_this->_impl_.turnover_ = from._impl_.turnover_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_openinterest()) != 0) {
_this->_impl_.openinterest_ = from._impl_.openinterest_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_closeprice()) != 0) {
_this->_impl_.closeprice_ = from._impl_.closeprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_settlementprice()) != 0) {
_this->_impl_.settlementprice_ = from._impl_.settlementprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_upperlimitprice()) != 0) {
_this->_impl_.upperlimitprice_ = from._impl_.upperlimitprice_;
}
if (from._internal_volume() != 0) {
_this->_impl_.volume_ = from._impl_.volume_;
}
if (from._internal_updatemillisec() != 0) {
_this->_impl_.updatemillisec_ = from._impl_.updatemillisec_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_lowerlimitprice()) != 0) {
_this->_impl_.lowerlimitprice_ = from._impl_.lowerlimitprice_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_predelta()) != 0) {
_this->_impl_.predelta_ = from._impl_.predelta_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_currdelta()) != 0) {
_this->_impl_.currdelta_ = from._impl_.currdelta_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_bidprice1()) != 0) {
_this->_impl_.bidprice1_ = from._impl_.bidprice1_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_askprice1()) != 0) {
_this->_impl_.askprice1_ = from._impl_.askprice1_;
}
if (from._internal_bidvolume1() != 0) {
_this->_impl_.bidvolume1_ = from._impl_.bidvolume1_;
}
if (from._internal_askvolume1() != 0) {
_this->_impl_.askvolume1_ = from._impl_.askvolume1_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_bidprice2()) != 0) {
_this->_impl_.bidprice2_ = from._impl_.bidprice2_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_askprice2()) != 0) {
_this->_impl_.askprice2_ = from._impl_.askprice2_;
}
if (from._internal_bidvolume2() != 0) {
_this->_impl_.bidvolume2_ = from._impl_.bidvolume2_;
}
if (from._internal_askvolume2() != 0) {
_this->_impl_.askvolume2_ = from._impl_.askvolume2_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_bidprice3()) != 0) {
_this->_impl_.bidprice3_ = from._impl_.bidprice3_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_askprice3()) != 0) {
_this->_impl_.askprice3_ = from._impl_.askprice3_;
}
if (from._internal_bidvolume3() != 0) {
_this->_impl_.bidvolume3_ = from._impl_.bidvolume3_;
}
if (from._internal_askvolume3() != 0) {
_this->_impl_.askvolume3_ = from._impl_.askvolume3_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_bidprice4()) != 0) {
_this->_impl_.bidprice4_ = from._impl_.bidprice4_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_askprice4()) != 0) {
_this->_impl_.askprice4_ = from._impl_.askprice4_;
}
if (from._internal_bidvolume4() != 0) {
_this->_impl_.bidvolume4_ = from._impl_.bidvolume4_;
}
if (from._internal_askvolume4() != 0) {
_this->_impl_.askvolume4_ = from._impl_.askvolume4_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_bidprice5()) != 0) {
_this->_impl_.bidprice5_ = from._impl_.bidprice5_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_askprice5()) != 0) {
_this->_impl_.askprice5_ = from._impl_.askprice5_;
}
if (from._internal_bidvolume5() != 0) {
_this->_impl_.bidvolume5_ = from._impl_.bidvolume5_;
}
if (from._internal_askvolume5() != 0) {
_this->_impl_.askvolume5_ = from._impl_.askvolume5_;
}
if (::absl::bit_cast<::uint64_t>(from._internal_averageprice()) != 0) {
_this->_impl_.averageprice_ = from._impl_.averageprice_;
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void CThostFtdcDepthMarketDataField::CopyFrom(const CThostFtdcDepthMarketDataField& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:market_data.CThostFtdcDepthMarketDataField)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CThostFtdcDepthMarketDataField::InternalSwap(CThostFtdcDepthMarketDataField* PROTOBUF_RESTRICT other) {
using std::swap;
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tradingday_, &other->_impl_.tradingday_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reserve1_, &other->_impl_.reserve1_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.exchangeid_, &other->_impl_.exchangeid_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.reserve2_, &other->_impl_.reserve2_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.updatetime_, &other->_impl_.updatetime_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.actionday_, &other->_impl_.actionday_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.instrumentid_, &other->_impl_.instrumentid_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.exchangeinstid_, &other->_impl_.exchangeinstid_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.averageprice_)
+ sizeof(CThostFtdcDepthMarketDataField::_impl_.averageprice_)
- PROTOBUF_FIELD_OFFSET(CThostFtdcDepthMarketDataField, _impl_.lastprice_)>(
reinterpret_cast<char*>(&_impl_.lastprice_),
reinterpret_cast<char*>(&other->_impl_.lastprice_));
}
::google::protobuf::Metadata CThostFtdcDepthMarketDataField::GetMetadata() const {
return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================
class ResMsg::_Internal {
public:
};
ResMsg::ResMsg(::google::protobuf::Arena* arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(arena, _class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:market_data.ResMsg)
}
inline PROTOBUF_NDEBUG_INLINE ResMsg::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
const Impl_& from, const ::market_data::ResMsg& from_msg)
: other_params_{visibility, arena, from.other_params_},
other_msg_{visibility, arena, from.other_msg_},
signame_(arena, from.signame_),
instrumentid_(arena, from.instrumentid_),
offset_(arena, from.offset_),
dir_(arena, from.dir_),
_cached_size_{0} {}
ResMsg::ResMsg(
::google::protobuf::Arena* arena,
const ResMsg& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(arena, _class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
ResMsg* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
::memcpy(reinterpret_cast<char *>(&_impl_) +
offsetof(Impl_, sigvalue_),
reinterpret_cast<const char *>(&from._impl_) +
offsetof(Impl_, sigvalue_),
offsetof(Impl_, vol_) -
offsetof(Impl_, sigvalue_) +
sizeof(Impl_::vol_));
// @@protoc_insertion_point(copy_constructor:market_data.ResMsg)
}
inline PROTOBUF_NDEBUG_INLINE ResMsg::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: other_params_{visibility, arena},
other_msg_{visibility, arena},
signame_(arena),
instrumentid_(arena),
offset_(arena),
dir_(arena),
_cached_size_{0} {}
inline void ResMsg::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
::memset(reinterpret_cast<char *>(&_impl_) +
offsetof(Impl_, sigvalue_),
0,
offsetof(Impl_, vol_) -
offsetof(Impl_, sigvalue_) +
sizeof(Impl_::vol_));
}
ResMsg::~ResMsg() {
// @@protoc_insertion_point(destructor:market_data.ResMsg)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void ResMsg::SharedDtor() {
ABSL_DCHECK(GetArena() == nullptr);
_impl_.signame_.Destroy();
_impl_.instrumentid_.Destroy();
_impl_.offset_.Destroy();
_impl_.dir_.Destroy();
_impl_.~Impl_();
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::MessageLite::ClassDataFull
ResMsg::_class_data_ = {
::google::protobuf::Message::ClassData{
&_ResMsg_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&ResMsg::MergeImpl,
#if defined(PROTOBUF_CUSTOM_VTABLE)
::google::protobuf::Message::GetDeleteImpl<ResMsg>(),
::google::protobuf::Message::GetNewImpl<ResMsg>(),
::google::protobuf::Message::GetClearImpl<ResMsg>(), &ResMsg::ByteSizeLong,
&ResMsg::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(ResMsg, _impl_._cached_size_),
false,
},
&ResMsg::kDescriptorMethods,
&descriptor_table_market_5fdata_2eproto,
nullptr, // tracker
};
const ::google::protobuf::MessageLite::ClassData* ResMsg::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
return _class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<4, 9, 0, 72, 2> ResMsg::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
9, 120, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294966784, // skipmap
offsetof(decltype(_table_), field_entries),
9, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::market_data::ResMsg>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
{::_pbi::TcParser::MiniParse, {}},
// string signame = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.signame_)}},
// string InstrumentID = 2;
{::_pbi::TcParser::FastUS1,
{18, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.instrumentid_)}},
// int32 sigflag = 3;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResMsg, _impl_.sigflag_), 63>(),
{24, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.sigflag_)}},
// double sigvalue = 4;
{::_pbi::TcParser::FastF64S1,
{33, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.sigvalue_)}},
// string offset = 5;
{::_pbi::TcParser::FastUS1,
{42, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.offset_)}},
// string dir = 6;
{::_pbi::TcParser::FastUS1,
{50, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.dir_)}},
// int32 vol = 7;
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResMsg, _impl_.vol_), 63>(),
{56, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.vol_)}},
// repeated double other_params = 8;
{::_pbi::TcParser::FastF64P1,
{66, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.other_params_)}},
// repeated string other_msg = 9;
{::_pbi::TcParser::FastUR1,
{74, 63, 0, PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.other_msg_)}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
{::_pbi::TcParser::MiniParse, {}},
}}, {{
65535, 65535
}}, {{
// string signame = 1;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.signame_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string InstrumentID = 2;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.instrumentid_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// int32 sigflag = 3;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.sigflag_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// double sigvalue = 4;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.sigvalue_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kDouble)},
// string offset = 5;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.offset_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// string dir = 6;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.dir_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
// int32 vol = 7;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.vol_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kInt32)},
// repeated double other_params = 8;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.other_params_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
// repeated string other_msg = 9;
{PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.other_msg_), 0, 0,
(0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
}},
// no aux_entries
{{
"\22\7\14\0\0\6\3\0\0\11\0\0\0\0\0\0"
"market_data.ResMsg"
"signame"
"InstrumentID"
"offset"
"dir"
"other_msg"
}},
};
PROTOBUF_NOINLINE void ResMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:market_data.ResMsg)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.other_params_.Clear();
_impl_.other_msg_.Clear();
_impl_.signame_.ClearToEmpty();
_impl_.instrumentid_.ClearToEmpty();
_impl_.offset_.ClearToEmpty();
_impl_.dir_.ClearToEmpty();
::memset(&_impl_.sigvalue_, 0, static_cast<::size_t>(
reinterpret_cast<char*>(&_impl_.vol_) -
reinterpret_cast<char*>(&_impl_.sigvalue_)) + sizeof(_impl_.vol_));
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* ResMsg::_InternalSerialize(
const MessageLite& base, ::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) {
const ResMsg& this_ = static_cast<const ResMsg&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* ResMsg::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
const ResMsg& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(serialize_to_array_start:market_data.ResMsg)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string signame = 1;
if (!this_._internal_signame().empty()) {
const std::string& _s = this_._internal_signame();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.ResMsg.signame");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
// string InstrumentID = 2;
if (!this_._internal_instrumentid().empty()) {
const std::string& _s = this_._internal_instrumentid();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.ResMsg.InstrumentID");
target = stream->WriteStringMaybeAliased(2, _s, target);
}
// int32 sigflag = 3;
if (this_._internal_sigflag() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<3>(
stream, this_._internal_sigflag(), target);
}
// double sigvalue = 4;
if (::absl::bit_cast<::uint64_t>(this_._internal_sigvalue()) != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(
4, this_._internal_sigvalue(), target);
}
// string offset = 5;
if (!this_._internal_offset().empty()) {
const std::string& _s = this_._internal_offset();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.ResMsg.offset");
target = stream->WriteStringMaybeAliased(5, _s, target);
}
// string dir = 6;
if (!this_._internal_dir().empty()) {
const std::string& _s = this_._internal_dir();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.ResMsg.dir");
target = stream->WriteStringMaybeAliased(6, _s, target);
}
// int32 vol = 7;
if (this_._internal_vol() != 0) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32ToArrayWithField<7>(
stream, this_._internal_vol(), target);
}
// repeated double other_params = 8;
if (this_._internal_other_params_size() > 0) {
target = stream->WriteFixedPacked(8, this_._internal_other_params(), target);
}
// repeated string other_msg = 9;
for (int i = 0, n = this_._internal_other_msg_size(); i < n; ++i) {
const auto& s = this_._internal_other_msg().Get(i);
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.ResMsg.other_msg");
target = stream->WriteString(9, s, target);
}
if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:market_data.ResMsg)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t ResMsg::ByteSizeLong(const MessageLite& base) {
const ResMsg& this_ = static_cast<const ResMsg&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ResMsg::ByteSizeLong() const {
const ResMsg& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:market_data.ResMsg)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
::_pbi::Prefetch5LinesFrom7Lines(&this_);
{
// repeated double other_params = 8;
{
std::size_t data_size = std::size_t{8} *
::_pbi::FromIntSize(this_._internal_other_params_size())
;
std::size_t tag_size = data_size == 0
? 0
: 1 + ::_pbi::WireFormatLite::Int32Size(
static_cast<int32_t>(data_size))
;
total_size += tag_size + data_size;
}
// repeated string other_msg = 9;
{
total_size +=
1 * ::google::protobuf::internal::FromIntSize(this_._internal_other_msg().size());
for (int i = 0, n = this_._internal_other_msg().size(); i < n; ++i) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_other_msg().Get(i));
}
}
}
{
// string signame = 1;
if (!this_._internal_signame().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_signame());
}
// string InstrumentID = 2;
if (!this_._internal_instrumentid().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_instrumentid());
}
// string offset = 5;
if (!this_._internal_offset().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_offset());
}
// string dir = 6;
if (!this_._internal_dir().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_dir());
}
// double sigvalue = 4;
if (::absl::bit_cast<::uint64_t>(this_._internal_sigvalue()) != 0) {
total_size += 9;
}
// int32 sigflag = 3;
if (this_._internal_sigflag() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_sigflag());
}
// int32 vol = 7;
if (this_._internal_vol() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
this_._internal_vol());
}
}
return this_.MaybeComputeUnknownFieldsSize(total_size,
&this_._impl_._cached_size_);
}
void ResMsg::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<ResMsg*>(&to_msg);
auto& from = static_cast<const ResMsg&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:market_data.ResMsg)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_internal_mutable_other_params()->MergeFrom(from._internal_other_params());
_this->_internal_mutable_other_msg()->MergeFrom(from._internal_other_msg());
if (!from._internal_signame().empty()) {
_this->_internal_set_signame(from._internal_signame());
}
if (!from._internal_instrumentid().empty()) {
_this->_internal_set_instrumentid(from._internal_instrumentid());
}
if (!from._internal_offset().empty()) {
_this->_internal_set_offset(from._internal_offset());
}
if (!from._internal_dir().empty()) {
_this->_internal_set_dir(from._internal_dir());
}
if (::absl::bit_cast<::uint64_t>(from._internal_sigvalue()) != 0) {
_this->_impl_.sigvalue_ = from._impl_.sigvalue_;
}
if (from._internal_sigflag() != 0) {
_this->_impl_.sigflag_ = from._impl_.sigflag_;
}
if (from._internal_vol() != 0) {
_this->_impl_.vol_ = from._impl_.vol_;
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void ResMsg::CopyFrom(const ResMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:market_data.ResMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ResMsg::InternalSwap(ResMsg* PROTOBUF_RESTRICT other) {
using std::swap;
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.other_params_.InternalSwap(&other->_impl_.other_params_);
_impl_.other_msg_.InternalSwap(&other->_impl_.other_msg_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signame_, &other->_impl_.signame_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.instrumentid_, &other->_impl_.instrumentid_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.offset_, &other->_impl_.offset_, arena);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dir_, &other->_impl_.dir_, arena);
::google::protobuf::internal::memswap<
PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.vol_)
+ sizeof(ResMsg::_impl_.vol_)
- PROTOBUF_FIELD_OFFSET(ResMsg, _impl_.sigvalue_)>(
reinterpret_cast<char*>(&_impl_.sigvalue_),
reinterpret_cast<char*>(&other->_impl_.sigvalue_));
}
::google::protobuf::Metadata ResMsg::GetMetadata() const {
return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================
class MsgReply::_Internal {
public:
};
MsgReply::MsgReply(::google::protobuf::Arena* arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(arena, _class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
SharedCtor(arena);
// @@protoc_insertion_point(arena_constructor:market_data.MsgReply)
}
inline PROTOBUF_NDEBUG_INLINE MsgReply::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
const Impl_& from, const ::market_data::MsgReply& from_msg)
: message_(arena, from.message_),
_cached_size_{0} {}
MsgReply::MsgReply(
::google::protobuf::Arena* arena,
const MsgReply& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
: ::google::protobuf::Message(arena, _class_data_.base()) {
#else // PROTOBUF_CUSTOM_VTABLE
: ::google::protobuf::Message(arena) {
#endif // PROTOBUF_CUSTOM_VTABLE
MsgReply* const _this = this;
(void)_this;
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
from._internal_metadata_);
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
// @@protoc_insertion_point(copy_constructor:market_data.MsgReply)
}
inline PROTOBUF_NDEBUG_INLINE MsgReply::Impl_::Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena)
: message_(arena),
_cached_size_{0} {}
inline void MsgReply::SharedCtor(::_pb::Arena* arena) {
new (&_impl_) Impl_(internal_visibility(), arena);
}
MsgReply::~MsgReply() {
// @@protoc_insertion_point(destructor:market_data.MsgReply)
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
SharedDtor();
}
inline void MsgReply::SharedDtor() {
ABSL_DCHECK(GetArena() == nullptr);
_impl_.message_.Destroy();
_impl_.~Impl_();
}
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::MessageLite::ClassDataFull
MsgReply::_class_data_ = {
::google::protobuf::Message::ClassData{
&_MsgReply_default_instance_._instance,
&_table_.header,
nullptr, // OnDemandRegisterArenaDtor
nullptr, // IsInitialized
&MsgReply::MergeImpl,
#if defined(PROTOBUF_CUSTOM_VTABLE)
::google::protobuf::Message::GetDeleteImpl<MsgReply>(),
::google::protobuf::Message::GetNewImpl<MsgReply>(),
::google::protobuf::Message::GetClearImpl<MsgReply>(), &MsgReply::ByteSizeLong,
&MsgReply::_InternalSerialize,
#endif // PROTOBUF_CUSTOM_VTABLE
PROTOBUF_FIELD_OFFSET(MsgReply, _impl_._cached_size_),
false,
},
&MsgReply::kDescriptorMethods,
&descriptor_table_market_5fdata_2eproto,
nullptr, // tracker
};
const ::google::protobuf::MessageLite::ClassData* MsgReply::GetClassData() const {
::google::protobuf::internal::PrefetchToLocalCache(&_class_data_);
::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table);
return _class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 36, 2> MsgReply::_table_ = {
{
0, // no _has_bits_
0, // no _extensions_
1, 0, // max_field_number, fast_idx_mask
offsetof(decltype(_table_), field_lookup_table),
4294967294, // skipmap
offsetof(decltype(_table_), field_entries),
1, // num_field_entries
0, // num_aux_entries
offsetof(decltype(_table_), field_names), // no aux_entries
_class_data_.base(),
nullptr, // post_loop_handler
::_pbi::TcParser::GenericFallback, // fallback
#ifdef PROTOBUF_PREFETCH_PARSE_TABLE
::_pbi::TcParser::GetTable<::market_data::MsgReply>(), // to_prefetch
#endif // PROTOBUF_PREFETCH_PARSE_TABLE
}, {{
// string message = 1;
{::_pbi::TcParser::FastUS1,
{10, 63, 0, PROTOBUF_FIELD_OFFSET(MsgReply, _impl_.message_)}},
}}, {{
65535, 65535
}}, {{
// string message = 1;
{PROTOBUF_FIELD_OFFSET(MsgReply, _impl_.message_), 0, 0,
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
}},
// no aux_entries
{{
"\24\7\0\0\0\0\0\0"
"market_data.MsgReply"
"message"
}},
};
PROTOBUF_NOINLINE void MsgReply::Clear() {
// @@protoc_insertion_point(message_clear_start:market_data.MsgReply)
::google::protobuf::internal::TSanWrite(&_impl_);
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.message_.ClearToEmpty();
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* MsgReply::_InternalSerialize(
const MessageLite& base, ::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) {
const MsgReply& this_ = static_cast<const MsgReply&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::uint8_t* MsgReply::_InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
const MsgReply& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(serialize_to_array_start:market_data.MsgReply)
::uint32_t cached_has_bits = 0;
(void)cached_has_bits;
// string message = 1;
if (!this_._internal_message().empty()) {
const std::string& _s = this_._internal_message();
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "market_data.MsgReply.message");
target = stream->WriteStringMaybeAliased(1, _s, target);
}
if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
target =
::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:market_data.MsgReply)
return target;
}
#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t MsgReply::ByteSizeLong(const MessageLite& base) {
const MsgReply& this_ = static_cast<const MsgReply&>(base);
#else // PROTOBUF_CUSTOM_VTABLE
::size_t MsgReply::ByteSizeLong() const {
const MsgReply& this_ = *this;
#endif // PROTOBUF_CUSTOM_VTABLE
// @@protoc_insertion_point(message_byte_size_start:market_data.MsgReply)
::size_t total_size = 0;
::uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void)cached_has_bits;
{
// string message = 1;
if (!this_._internal_message().empty()) {
total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
this_._internal_message());
}
}
return this_.MaybeComputeUnknownFieldsSize(total_size,
&this_._impl_._cached_size_);
}
void MsgReply::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
auto* const _this = static_cast<MsgReply*>(&to_msg);
auto& from = static_cast<const MsgReply&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:market_data.MsgReply)
ABSL_DCHECK_NE(&from, _this);
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_message().empty()) {
_this->_internal_set_message(from._internal_message());
}
_this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
}
void MsgReply::CopyFrom(const MsgReply& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:market_data.MsgReply)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void MsgReply::InternalSwap(MsgReply* PROTOBUF_RESTRICT other) {
using std::swap;
auto* arena = GetArena();
ABSL_DCHECK_EQ(arena, other->GetArena());
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena);
}
::google::protobuf::Metadata MsgReply::GetMetadata() const {
return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
}
// @@protoc_insertion_point(namespace_scope)
} // namespace market_data
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
_static_init2_ PROTOBUF_UNUSED =
(::_pbi::AddDescriptors(&descriptor_table_market_5fdata_2eproto),
::std::false_type{});
#include "google/protobuf/port_undef.inc"