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

1707 lines
55 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Trd_PlaceOrder.proto
#ifndef PROTOBUF_Trd_5fPlaceOrder_2eproto__INCLUDED
#define PROTOBUF_Trd_5fPlaceOrder_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include "Common.pb.h"
#include "Trd_Common.pb.h"
// @@protoc_insertion_point(includes)
namespace protobuf_Trd_5fPlaceOrder_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[4];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
void InitDefaultsC2SImpl();
void InitDefaultsC2S();
void InitDefaultsS2CImpl();
void InitDefaultsS2C();
void InitDefaultsRequestImpl();
void InitDefaultsRequest();
void InitDefaultsResponseImpl();
void InitDefaultsResponse();
inline void InitDefaults() {
InitDefaultsC2S();
InitDefaultsS2C();
InitDefaultsRequest();
InitDefaultsResponse();
}
} // namespace protobuf_Trd_5fPlaceOrder_2eproto
namespace Trd_PlaceOrder {
class C2S;
class C2SDefaultTypeInternal;
extern C2SDefaultTypeInternal _C2S_default_instance_;
class Request;
class RequestDefaultTypeInternal;
extern RequestDefaultTypeInternal _Request_default_instance_;
class Response;
class ResponseDefaultTypeInternal;
extern ResponseDefaultTypeInternal _Response_default_instance_;
class S2C;
class S2CDefaultTypeInternal;
extern S2CDefaultTypeInternal _S2C_default_instance_;
} // namespace Trd_PlaceOrder
namespace Trd_PlaceOrder {
// ===================================================================
class C2S : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Trd_PlaceOrder.C2S) */ {
public:
C2S();
virtual ~C2S();
C2S(const C2S& from);
inline C2S& operator=(const C2S& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
C2S(C2S&& from) noexcept
: C2S() {
*this = ::std::move(from);
}
inline C2S& operator=(C2S&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const C2S& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const C2S* internal_default_instance() {
return reinterpret_cast<const C2S*>(
&_C2S_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
0;
void Swap(C2S* other);
friend void swap(C2S& a, C2S& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline C2S* New() const PROTOBUF_FINAL { return New(NULL); }
C2S* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const C2S& from);
void MergeFrom(const C2S& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(C2S* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required string code = 5;
bool has_code() const;
void clear_code();
static const int kCodeFieldNumber = 5;
const ::std::string& code() const;
void set_code(const ::std::string& value);
#if LANG_CXX11
void set_code(::std::string&& value);
#endif
void set_code(const char* value);
void set_code(const char* value, size_t size);
::std::string* mutable_code();
::std::string* release_code();
void set_allocated_code(::std::string* code);
// optional string remark = 11;
bool has_remark() const;
void clear_remark();
static const int kRemarkFieldNumber = 11;
const ::std::string& remark() const;
void set_remark(const ::std::string& value);
#if LANG_CXX11
void set_remark(::std::string&& value);
#endif
void set_remark(const char* value);
void set_remark(const char* value, size_t size);
::std::string* mutable_remark();
::std::string* release_remark();
void set_allocated_remark(::std::string* remark);
// required .Common.PacketID packetID = 1;
bool has_packetid() const;
void clear_packetid();
static const int kPacketIDFieldNumber = 1;
const ::Common::PacketID& packetid() const;
::Common::PacketID* release_packetid();
::Common::PacketID* mutable_packetid();
void set_allocated_packetid(::Common::PacketID* packetid);
// required .Trd_Common.TrdHeader header = 2;
bool has_header() const;
void clear_header();
static const int kHeaderFieldNumber = 2;
const ::Trd_Common::TrdHeader& header() const;
::Trd_Common::TrdHeader* release_header();
::Trd_Common::TrdHeader* mutable_header();
void set_allocated_header(::Trd_Common::TrdHeader* header);
// required int32 trdSide = 3;
bool has_trdside() const;
void clear_trdside();
static const int kTrdSideFieldNumber = 3;
::google::protobuf::int32 trdside() const;
void set_trdside(::google::protobuf::int32 value);
// required int32 orderType = 4;
bool has_ordertype() const;
void clear_ordertype();
static const int kOrderTypeFieldNumber = 4;
::google::protobuf::int32 ordertype() const;
void set_ordertype(::google::protobuf::int32 value);
// required double qty = 6;
bool has_qty() const;
void clear_qty();
static const int kQtyFieldNumber = 6;
double qty() const;
void set_qty(double value);
// optional double price = 7;
bool has_price() const;
void clear_price();
static const int kPriceFieldNumber = 7;
double price() const;
void set_price(double value);
// optional double adjustSideAndLimit = 9;
bool has_adjustsideandlimit() const;
void clear_adjustsideandlimit();
static const int kAdjustSideAndLimitFieldNumber = 9;
double adjustsideandlimit() const;
void set_adjustsideandlimit(double value);
// optional int32 secMarket = 10;
bool has_secmarket() const;
void clear_secmarket();
static const int kSecMarketFieldNumber = 10;
::google::protobuf::int32 secmarket() const;
void set_secmarket(::google::protobuf::int32 value);
// optional bool adjustPrice = 8;
bool has_adjustprice() const;
void clear_adjustprice();
static const int kAdjustPriceFieldNumber = 8;
bool adjustprice() const;
void set_adjustprice(bool value);
// optional bool fillOutsideRTH = 13;
bool has_filloutsiderth() const;
void clear_filloutsiderth();
static const int kFillOutsideRTHFieldNumber = 13;
bool filloutsiderth() const;
void set_filloutsiderth(bool value);
// optional int32 timeInForce = 12;
bool has_timeinforce() const;
void clear_timeinforce();
static const int kTimeInForceFieldNumber = 12;
::google::protobuf::int32 timeinforce() const;
void set_timeinforce(::google::protobuf::int32 value);
// optional int32 trailType = 15;
bool has_trailtype() const;
void clear_trailtype();
static const int kTrailTypeFieldNumber = 15;
::google::protobuf::int32 trailtype() const;
void set_trailtype(::google::protobuf::int32 value);
// optional double auxPrice = 14;
bool has_auxprice() const;
void clear_auxprice();
static const int kAuxPriceFieldNumber = 14;
double auxprice() const;
void set_auxprice(double value);
// optional double trailValue = 16;
bool has_trailvalue() const;
void clear_trailvalue();
static const int kTrailValueFieldNumber = 16;
double trailvalue() const;
void set_trailvalue(double value);
// optional double trailSpread = 17;
bool has_trailspread() const;
void clear_trailspread();
static const int kTrailSpreadFieldNumber = 17;
double trailspread() const;
void set_trailspread(double value);
// @@protoc_insertion_point(class_scope:Trd_PlaceOrder.C2S)
private:
void set_has_packetid();
void clear_has_packetid();
void set_has_header();
void clear_has_header();
void set_has_trdside();
void clear_has_trdside();
void set_has_ordertype();
void clear_has_ordertype();
void set_has_code();
void clear_has_code();
void set_has_qty();
void clear_has_qty();
void set_has_price();
void clear_has_price();
void set_has_adjustprice();
void clear_has_adjustprice();
void set_has_adjustsideandlimit();
void clear_has_adjustsideandlimit();
void set_has_secmarket();
void clear_has_secmarket();
void set_has_remark();
void clear_has_remark();
void set_has_timeinforce();
void clear_has_timeinforce();
void set_has_filloutsiderth();
void clear_has_filloutsiderth();
void set_has_auxprice();
void clear_has_auxprice();
void set_has_trailtype();
void clear_has_trailtype();
void set_has_trailvalue();
void clear_has_trailvalue();
void set_has_trailspread();
void clear_has_trailspread();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::internal::ArenaStringPtr code_;
::google::protobuf::internal::ArenaStringPtr remark_;
::Common::PacketID* packetid_;
::Trd_Common::TrdHeader* header_;
::google::protobuf::int32 trdside_;
::google::protobuf::int32 ordertype_;
double qty_;
double price_;
double adjustsideandlimit_;
::google::protobuf::int32 secmarket_;
bool adjustprice_;
bool filloutsiderth_;
::google::protobuf::int32 timeinforce_;
::google::protobuf::int32 trailtype_;
double auxprice_;
double trailvalue_;
double trailspread_;
friend struct ::protobuf_Trd_5fPlaceOrder_2eproto::TableStruct;
friend void ::protobuf_Trd_5fPlaceOrder_2eproto::InitDefaultsC2SImpl();
};
// -------------------------------------------------------------------
class S2C : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Trd_PlaceOrder.S2C) */ {
public:
S2C();
virtual ~S2C();
S2C(const S2C& from);
inline S2C& operator=(const S2C& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
S2C(S2C&& from) noexcept
: S2C() {
*this = ::std::move(from);
}
inline S2C& operator=(S2C&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const S2C& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const S2C* internal_default_instance() {
return reinterpret_cast<const S2C*>(
&_S2C_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
1;
void Swap(S2C* other);
friend void swap(S2C& a, S2C& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline S2C* New() const PROTOBUF_FINAL { return New(NULL); }
S2C* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const S2C& from);
void MergeFrom(const S2C& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(S2C* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string orderIDEx = 3;
bool has_orderidex() const;
void clear_orderidex();
static const int kOrderIDExFieldNumber = 3;
const ::std::string& orderidex() const;
void set_orderidex(const ::std::string& value);
#if LANG_CXX11
void set_orderidex(::std::string&& value);
#endif
void set_orderidex(const char* value);
void set_orderidex(const char* value, size_t size);
::std::string* mutable_orderidex();
::std::string* release_orderidex();
void set_allocated_orderidex(::std::string* orderidex);
// required .Trd_Common.TrdHeader header = 1;
bool has_header() const;
void clear_header();
static const int kHeaderFieldNumber = 1;
const ::Trd_Common::TrdHeader& header() const;
::Trd_Common::TrdHeader* release_header();
::Trd_Common::TrdHeader* mutable_header();
void set_allocated_header(::Trd_Common::TrdHeader* header);
// optional uint64 orderID = 2;
bool has_orderid() const;
void clear_orderid();
static const int kOrderIDFieldNumber = 2;
::google::protobuf::uint64 orderid() const;
void set_orderid(::google::protobuf::uint64 value);
// @@protoc_insertion_point(class_scope:Trd_PlaceOrder.S2C)
private:
void set_has_header();
void clear_has_header();
void set_has_orderid();
void clear_has_orderid();
void set_has_orderidex();
void clear_has_orderidex();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::internal::ArenaStringPtr orderidex_;
::Trd_Common::TrdHeader* header_;
::google::protobuf::uint64 orderid_;
friend struct ::protobuf_Trd_5fPlaceOrder_2eproto::TableStruct;
friend void ::protobuf_Trd_5fPlaceOrder_2eproto::InitDefaultsS2CImpl();
};
// -------------------------------------------------------------------
class Request : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Trd_PlaceOrder.Request) */ {
public:
Request();
virtual ~Request();
Request(const Request& from);
inline Request& operator=(const Request& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
Request(Request&& from) noexcept
: Request() {
*this = ::std::move(from);
}
inline Request& operator=(Request&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Request& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Request* internal_default_instance() {
return reinterpret_cast<const Request*>(
&_Request_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
2;
void Swap(Request* other);
friend void swap(Request& a, Request& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Request* New() const PROTOBUF_FINAL { return New(NULL); }
Request* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const Request& from);
void MergeFrom(const Request& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(Request* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required .Trd_PlaceOrder.C2S c2s = 1;
bool has_c2s() const;
void clear_c2s();
static const int kC2SFieldNumber = 1;
const ::Trd_PlaceOrder::C2S& c2s() const;
::Trd_PlaceOrder::C2S* release_c2s();
::Trd_PlaceOrder::C2S* mutable_c2s();
void set_allocated_c2s(::Trd_PlaceOrder::C2S* c2s);
// @@protoc_insertion_point(class_scope:Trd_PlaceOrder.Request)
private:
void set_has_c2s();
void clear_has_c2s();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::Trd_PlaceOrder::C2S* c2s_;
friend struct ::protobuf_Trd_5fPlaceOrder_2eproto::TableStruct;
friend void ::protobuf_Trd_5fPlaceOrder_2eproto::InitDefaultsRequestImpl();
};
// -------------------------------------------------------------------
class Response : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Trd_PlaceOrder.Response) */ {
public:
Response();
virtual ~Response();
Response(const Response& from);
inline Response& operator=(const Response& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
Response(Response&& from) noexcept
: Response() {
*this = ::std::move(from);
}
inline Response& operator=(Response&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Response& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const Response* internal_default_instance() {
return reinterpret_cast<const Response*>(
&_Response_default_instance_);
}
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
3;
void Swap(Response* other);
friend void swap(Response& a, Response& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline Response* New() const PROTOBUF_FINAL { return New(NULL); }
Response* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CopyFrom(const Response& from);
void MergeFrom(const Response& from);
void Clear() PROTOBUF_FINAL;
bool IsInitialized() const PROTOBUF_FINAL;
size_t ByteSizeLong() const PROTOBUF_FINAL;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void InternalSwap(Response* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string retMsg = 2;
bool has_retmsg() const;
void clear_retmsg();
static const int kRetMsgFieldNumber = 2;
const ::std::string& retmsg() const;
void set_retmsg(const ::std::string& value);
#if LANG_CXX11
void set_retmsg(::std::string&& value);
#endif
void set_retmsg(const char* value);
void set_retmsg(const char* value, size_t size);
::std::string* mutable_retmsg();
::std::string* release_retmsg();
void set_allocated_retmsg(::std::string* retmsg);
// optional .Trd_PlaceOrder.S2C s2c = 4;
bool has_s2c() const;
void clear_s2c();
static const int kS2CFieldNumber = 4;
const ::Trd_PlaceOrder::S2C& s2c() const;
::Trd_PlaceOrder::S2C* release_s2c();
::Trd_PlaceOrder::S2C* mutable_s2c();
void set_allocated_s2c(::Trd_PlaceOrder::S2C* s2c);
// optional int32 errCode = 3;
bool has_errcode() const;
void clear_errcode();
static const int kErrCodeFieldNumber = 3;
::google::protobuf::int32 errcode() const;
void set_errcode(::google::protobuf::int32 value);
// required int32 retType = 1 [default = -400];
bool has_rettype() const;
void clear_rettype();
static const int kRetTypeFieldNumber = 1;
::google::protobuf::int32 rettype() const;
void set_rettype(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:Trd_PlaceOrder.Response)
private:
void set_has_rettype();
void clear_has_rettype();
void set_has_retmsg();
void clear_has_retmsg();
void set_has_errcode();
void clear_has_errcode();
void set_has_s2c();
void clear_has_s2c();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::internal::ArenaStringPtr retmsg_;
::Trd_PlaceOrder::S2C* s2c_;
::google::protobuf::int32 errcode_;
::google::protobuf::int32 rettype_;
friend struct ::protobuf_Trd_5fPlaceOrder_2eproto::TableStruct;
friend void ::protobuf_Trd_5fPlaceOrder_2eproto::InitDefaultsResponseImpl();
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// C2S
// required .Common.PacketID packetID = 1;
inline bool C2S::has_packetid() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void C2S::set_has_packetid() {
_has_bits_[0] |= 0x00000004u;
}
inline void C2S::clear_has_packetid() {
_has_bits_[0] &= ~0x00000004u;
}
inline const ::Common::PacketID& C2S::packetid() const {
const ::Common::PacketID* p = packetid_;
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.packetID)
return p != NULL ? *p : *reinterpret_cast<const ::Common::PacketID*>(
&::Common::_PacketID_default_instance_);
}
inline ::Common::PacketID* C2S::release_packetid() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.C2S.packetID)
clear_has_packetid();
::Common::PacketID* temp = packetid_;
packetid_ = NULL;
return temp;
}
inline ::Common::PacketID* C2S::mutable_packetid() {
set_has_packetid();
if (packetid_ == NULL) {
packetid_ = new ::Common::PacketID;
}
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.C2S.packetID)
return packetid_;
}
inline void C2S::set_allocated_packetid(::Common::PacketID* packetid) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(packetid_);
}
if (packetid) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
packetid = ::google::protobuf::internal::GetOwnedMessage(
message_arena, packetid, submessage_arena);
}
set_has_packetid();
} else {
clear_has_packetid();
}
packetid_ = packetid;
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.C2S.packetID)
}
// required .Trd_Common.TrdHeader header = 2;
inline bool C2S::has_header() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void C2S::set_has_header() {
_has_bits_[0] |= 0x00000008u;
}
inline void C2S::clear_has_header() {
_has_bits_[0] &= ~0x00000008u;
}
inline const ::Trd_Common::TrdHeader& C2S::header() const {
const ::Trd_Common::TrdHeader* p = header_;
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.header)
return p != NULL ? *p : *reinterpret_cast<const ::Trd_Common::TrdHeader*>(
&::Trd_Common::_TrdHeader_default_instance_);
}
inline ::Trd_Common::TrdHeader* C2S::release_header() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.C2S.header)
clear_has_header();
::Trd_Common::TrdHeader* temp = header_;
header_ = NULL;
return temp;
}
inline ::Trd_Common::TrdHeader* C2S::mutable_header() {
set_has_header();
if (header_ == NULL) {
header_ = new ::Trd_Common::TrdHeader;
}
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.C2S.header)
return header_;
}
inline void C2S::set_allocated_header(::Trd_Common::TrdHeader* header) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
}
if (header) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
header = ::google::protobuf::internal::GetOwnedMessage(
message_arena, header, submessage_arena);
}
set_has_header();
} else {
clear_has_header();
}
header_ = header;
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.C2S.header)
}
// required int32 trdSide = 3;
inline bool C2S::has_trdside() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void C2S::set_has_trdside() {
_has_bits_[0] |= 0x00000010u;
}
inline void C2S::clear_has_trdside() {
_has_bits_[0] &= ~0x00000010u;
}
inline void C2S::clear_trdside() {
trdside_ = 0;
clear_has_trdside();
}
inline ::google::protobuf::int32 C2S::trdside() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.trdSide)
return trdside_;
}
inline void C2S::set_trdside(::google::protobuf::int32 value) {
set_has_trdside();
trdside_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.trdSide)
}
// required int32 orderType = 4;
inline bool C2S::has_ordertype() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void C2S::set_has_ordertype() {
_has_bits_[0] |= 0x00000020u;
}
inline void C2S::clear_has_ordertype() {
_has_bits_[0] &= ~0x00000020u;
}
inline void C2S::clear_ordertype() {
ordertype_ = 0;
clear_has_ordertype();
}
inline ::google::protobuf::int32 C2S::ordertype() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.orderType)
return ordertype_;
}
inline void C2S::set_ordertype(::google::protobuf::int32 value) {
set_has_ordertype();
ordertype_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.orderType)
}
// required string code = 5;
inline bool C2S::has_code() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void C2S::set_has_code() {
_has_bits_[0] |= 0x00000001u;
}
inline void C2S::clear_has_code() {
_has_bits_[0] &= ~0x00000001u;
}
inline void C2S::clear_code() {
code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_code();
}
inline const ::std::string& C2S::code() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.code)
return code_.GetNoArena();
}
inline void C2S::set_code(const ::std::string& value) {
set_has_code();
code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.code)
}
#if LANG_CXX11
inline void C2S::set_code(::std::string&& value) {
set_has_code();
code_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Trd_PlaceOrder.C2S.code)
}
#endif
inline void C2S::set_code(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_code();
code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Trd_PlaceOrder.C2S.code)
}
inline void C2S::set_code(const char* value, size_t size) {
set_has_code();
code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Trd_PlaceOrder.C2S.code)
}
inline ::std::string* C2S::mutable_code() {
set_has_code();
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.C2S.code)
return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* C2S::release_code() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.C2S.code)
clear_has_code();
return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void C2S::set_allocated_code(::std::string* code) {
if (code != NULL) {
set_has_code();
} else {
clear_has_code();
}
code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code);
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.C2S.code)
}
// required double qty = 6;
inline bool C2S::has_qty() const {
return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void C2S::set_has_qty() {
_has_bits_[0] |= 0x00000040u;
}
inline void C2S::clear_has_qty() {
_has_bits_[0] &= ~0x00000040u;
}
inline void C2S::clear_qty() {
qty_ = 0;
clear_has_qty();
}
inline double C2S::qty() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.qty)
return qty_;
}
inline void C2S::set_qty(double value) {
set_has_qty();
qty_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.qty)
}
// optional double price = 7;
inline bool C2S::has_price() const {
return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void C2S::set_has_price() {
_has_bits_[0] |= 0x00000080u;
}
inline void C2S::clear_has_price() {
_has_bits_[0] &= ~0x00000080u;
}
inline void C2S::clear_price() {
price_ = 0;
clear_has_price();
}
inline double C2S::price() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.price)
return price_;
}
inline void C2S::set_price(double value) {
set_has_price();
price_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.price)
}
// optional bool adjustPrice = 8;
inline bool C2S::has_adjustprice() const {
return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void C2S::set_has_adjustprice() {
_has_bits_[0] |= 0x00000400u;
}
inline void C2S::clear_has_adjustprice() {
_has_bits_[0] &= ~0x00000400u;
}
inline void C2S::clear_adjustprice() {
adjustprice_ = false;
clear_has_adjustprice();
}
inline bool C2S::adjustprice() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.adjustPrice)
return adjustprice_;
}
inline void C2S::set_adjustprice(bool value) {
set_has_adjustprice();
adjustprice_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.adjustPrice)
}
// optional double adjustSideAndLimit = 9;
inline bool C2S::has_adjustsideandlimit() const {
return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void C2S::set_has_adjustsideandlimit() {
_has_bits_[0] |= 0x00000100u;
}
inline void C2S::clear_has_adjustsideandlimit() {
_has_bits_[0] &= ~0x00000100u;
}
inline void C2S::clear_adjustsideandlimit() {
adjustsideandlimit_ = 0;
clear_has_adjustsideandlimit();
}
inline double C2S::adjustsideandlimit() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.adjustSideAndLimit)
return adjustsideandlimit_;
}
inline void C2S::set_adjustsideandlimit(double value) {
set_has_adjustsideandlimit();
adjustsideandlimit_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.adjustSideAndLimit)
}
// optional int32 secMarket = 10;
inline bool C2S::has_secmarket() const {
return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void C2S::set_has_secmarket() {
_has_bits_[0] |= 0x00000200u;
}
inline void C2S::clear_has_secmarket() {
_has_bits_[0] &= ~0x00000200u;
}
inline void C2S::clear_secmarket() {
secmarket_ = 0;
clear_has_secmarket();
}
inline ::google::protobuf::int32 C2S::secmarket() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.secMarket)
return secmarket_;
}
inline void C2S::set_secmarket(::google::protobuf::int32 value) {
set_has_secmarket();
secmarket_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.secMarket)
}
// optional string remark = 11;
inline bool C2S::has_remark() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void C2S::set_has_remark() {
_has_bits_[0] |= 0x00000002u;
}
inline void C2S::clear_has_remark() {
_has_bits_[0] &= ~0x00000002u;
}
inline void C2S::clear_remark() {
remark_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_remark();
}
inline const ::std::string& C2S::remark() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.remark)
return remark_.GetNoArena();
}
inline void C2S::set_remark(const ::std::string& value) {
set_has_remark();
remark_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.remark)
}
#if LANG_CXX11
inline void C2S::set_remark(::std::string&& value) {
set_has_remark();
remark_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Trd_PlaceOrder.C2S.remark)
}
#endif
inline void C2S::set_remark(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_remark();
remark_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Trd_PlaceOrder.C2S.remark)
}
inline void C2S::set_remark(const char* value, size_t size) {
set_has_remark();
remark_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Trd_PlaceOrder.C2S.remark)
}
inline ::std::string* C2S::mutable_remark() {
set_has_remark();
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.C2S.remark)
return remark_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* C2S::release_remark() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.C2S.remark)
clear_has_remark();
return remark_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void C2S::set_allocated_remark(::std::string* remark) {
if (remark != NULL) {
set_has_remark();
} else {
clear_has_remark();
}
remark_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), remark);
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.C2S.remark)
}
// optional int32 timeInForce = 12;
inline bool C2S::has_timeinforce() const {
return (_has_bits_[0] & 0x00001000u) != 0;
}
inline void C2S::set_has_timeinforce() {
_has_bits_[0] |= 0x00001000u;
}
inline void C2S::clear_has_timeinforce() {
_has_bits_[0] &= ~0x00001000u;
}
inline void C2S::clear_timeinforce() {
timeinforce_ = 0;
clear_has_timeinforce();
}
inline ::google::protobuf::int32 C2S::timeinforce() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.timeInForce)
return timeinforce_;
}
inline void C2S::set_timeinforce(::google::protobuf::int32 value) {
set_has_timeinforce();
timeinforce_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.timeInForce)
}
// optional bool fillOutsideRTH = 13;
inline bool C2S::has_filloutsiderth() const {
return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void C2S::set_has_filloutsiderth() {
_has_bits_[0] |= 0x00000800u;
}
inline void C2S::clear_has_filloutsiderth() {
_has_bits_[0] &= ~0x00000800u;
}
inline void C2S::clear_filloutsiderth() {
filloutsiderth_ = false;
clear_has_filloutsiderth();
}
inline bool C2S::filloutsiderth() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.fillOutsideRTH)
return filloutsiderth_;
}
inline void C2S::set_filloutsiderth(bool value) {
set_has_filloutsiderth();
filloutsiderth_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.fillOutsideRTH)
}
// optional double auxPrice = 14;
inline bool C2S::has_auxprice() const {
return (_has_bits_[0] & 0x00004000u) != 0;
}
inline void C2S::set_has_auxprice() {
_has_bits_[0] |= 0x00004000u;
}
inline void C2S::clear_has_auxprice() {
_has_bits_[0] &= ~0x00004000u;
}
inline void C2S::clear_auxprice() {
auxprice_ = 0;
clear_has_auxprice();
}
inline double C2S::auxprice() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.auxPrice)
return auxprice_;
}
inline void C2S::set_auxprice(double value) {
set_has_auxprice();
auxprice_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.auxPrice)
}
// optional int32 trailType = 15;
inline bool C2S::has_trailtype() const {
return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void C2S::set_has_trailtype() {
_has_bits_[0] |= 0x00002000u;
}
inline void C2S::clear_has_trailtype() {
_has_bits_[0] &= ~0x00002000u;
}
inline void C2S::clear_trailtype() {
trailtype_ = 0;
clear_has_trailtype();
}
inline ::google::protobuf::int32 C2S::trailtype() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.trailType)
return trailtype_;
}
inline void C2S::set_trailtype(::google::protobuf::int32 value) {
set_has_trailtype();
trailtype_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.trailType)
}
// optional double trailValue = 16;
inline bool C2S::has_trailvalue() const {
return (_has_bits_[0] & 0x00008000u) != 0;
}
inline void C2S::set_has_trailvalue() {
_has_bits_[0] |= 0x00008000u;
}
inline void C2S::clear_has_trailvalue() {
_has_bits_[0] &= ~0x00008000u;
}
inline void C2S::clear_trailvalue() {
trailvalue_ = 0;
clear_has_trailvalue();
}
inline double C2S::trailvalue() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.trailValue)
return trailvalue_;
}
inline void C2S::set_trailvalue(double value) {
set_has_trailvalue();
trailvalue_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.trailValue)
}
// optional double trailSpread = 17;
inline bool C2S::has_trailspread() const {
return (_has_bits_[0] & 0x00010000u) != 0;
}
inline void C2S::set_has_trailspread() {
_has_bits_[0] |= 0x00010000u;
}
inline void C2S::clear_has_trailspread() {
_has_bits_[0] &= ~0x00010000u;
}
inline void C2S::clear_trailspread() {
trailspread_ = 0;
clear_has_trailspread();
}
inline double C2S::trailspread() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.C2S.trailSpread)
return trailspread_;
}
inline void C2S::set_trailspread(double value) {
set_has_trailspread();
trailspread_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.C2S.trailSpread)
}
// -------------------------------------------------------------------
// S2C
// required .Trd_Common.TrdHeader header = 1;
inline bool S2C::has_header() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void S2C::set_has_header() {
_has_bits_[0] |= 0x00000002u;
}
inline void S2C::clear_has_header() {
_has_bits_[0] &= ~0x00000002u;
}
inline const ::Trd_Common::TrdHeader& S2C::header() const {
const ::Trd_Common::TrdHeader* p = header_;
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.S2C.header)
return p != NULL ? *p : *reinterpret_cast<const ::Trd_Common::TrdHeader*>(
&::Trd_Common::_TrdHeader_default_instance_);
}
inline ::Trd_Common::TrdHeader* S2C::release_header() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.S2C.header)
clear_has_header();
::Trd_Common::TrdHeader* temp = header_;
header_ = NULL;
return temp;
}
inline ::Trd_Common::TrdHeader* S2C::mutable_header() {
set_has_header();
if (header_ == NULL) {
header_ = new ::Trd_Common::TrdHeader;
}
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.S2C.header)
return header_;
}
inline void S2C::set_allocated_header(::Trd_Common::TrdHeader* header) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
}
if (header) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
header = ::google::protobuf::internal::GetOwnedMessage(
message_arena, header, submessage_arena);
}
set_has_header();
} else {
clear_has_header();
}
header_ = header;
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.S2C.header)
}
// optional uint64 orderID = 2;
inline bool S2C::has_orderid() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void S2C::set_has_orderid() {
_has_bits_[0] |= 0x00000004u;
}
inline void S2C::clear_has_orderid() {
_has_bits_[0] &= ~0x00000004u;
}
inline void S2C::clear_orderid() {
orderid_ = GOOGLE_ULONGLONG(0);
clear_has_orderid();
}
inline ::google::protobuf::uint64 S2C::orderid() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.S2C.orderID)
return orderid_;
}
inline void S2C::set_orderid(::google::protobuf::uint64 value) {
set_has_orderid();
orderid_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.S2C.orderID)
}
// optional string orderIDEx = 3;
inline bool S2C::has_orderidex() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void S2C::set_has_orderidex() {
_has_bits_[0] |= 0x00000001u;
}
inline void S2C::clear_has_orderidex() {
_has_bits_[0] &= ~0x00000001u;
}
inline void S2C::clear_orderidex() {
orderidex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_orderidex();
}
inline const ::std::string& S2C::orderidex() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.S2C.orderIDEx)
return orderidex_.GetNoArena();
}
inline void S2C::set_orderidex(const ::std::string& value) {
set_has_orderidex();
orderidex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.S2C.orderIDEx)
}
#if LANG_CXX11
inline void S2C::set_orderidex(::std::string&& value) {
set_has_orderidex();
orderidex_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Trd_PlaceOrder.S2C.orderIDEx)
}
#endif
inline void S2C::set_orderidex(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_orderidex();
orderidex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Trd_PlaceOrder.S2C.orderIDEx)
}
inline void S2C::set_orderidex(const char* value, size_t size) {
set_has_orderidex();
orderidex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Trd_PlaceOrder.S2C.orderIDEx)
}
inline ::std::string* S2C::mutable_orderidex() {
set_has_orderidex();
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.S2C.orderIDEx)
return orderidex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* S2C::release_orderidex() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.S2C.orderIDEx)
clear_has_orderidex();
return orderidex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void S2C::set_allocated_orderidex(::std::string* orderidex) {
if (orderidex != NULL) {
set_has_orderidex();
} else {
clear_has_orderidex();
}
orderidex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), orderidex);
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.S2C.orderIDEx)
}
// -------------------------------------------------------------------
// Request
// required .Trd_PlaceOrder.C2S c2s = 1;
inline bool Request::has_c2s() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Request::set_has_c2s() {
_has_bits_[0] |= 0x00000001u;
}
inline void Request::clear_has_c2s() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Request::clear_c2s() {
if (c2s_ != NULL) c2s_->Clear();
clear_has_c2s();
}
inline const ::Trd_PlaceOrder::C2S& Request::c2s() const {
const ::Trd_PlaceOrder::C2S* p = c2s_;
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.Request.c2s)
return p != NULL ? *p : *reinterpret_cast<const ::Trd_PlaceOrder::C2S*>(
&::Trd_PlaceOrder::_C2S_default_instance_);
}
inline ::Trd_PlaceOrder::C2S* Request::release_c2s() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.Request.c2s)
clear_has_c2s();
::Trd_PlaceOrder::C2S* temp = c2s_;
c2s_ = NULL;
return temp;
}
inline ::Trd_PlaceOrder::C2S* Request::mutable_c2s() {
set_has_c2s();
if (c2s_ == NULL) {
c2s_ = new ::Trd_PlaceOrder::C2S;
}
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.Request.c2s)
return c2s_;
}
inline void Request::set_allocated_c2s(::Trd_PlaceOrder::C2S* c2s) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete c2s_;
}
if (c2s) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
c2s = ::google::protobuf::internal::GetOwnedMessage(
message_arena, c2s, submessage_arena);
}
set_has_c2s();
} else {
clear_has_c2s();
}
c2s_ = c2s;
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.Request.c2s)
}
// -------------------------------------------------------------------
// Response
// required int32 retType = 1 [default = -400];
inline bool Response::has_rettype() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Response::set_has_rettype() {
_has_bits_[0] |= 0x00000008u;
}
inline void Response::clear_has_rettype() {
_has_bits_[0] &= ~0x00000008u;
}
inline void Response::clear_rettype() {
rettype_ = -400;
clear_has_rettype();
}
inline ::google::protobuf::int32 Response::rettype() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.Response.retType)
return rettype_;
}
inline void Response::set_rettype(::google::protobuf::int32 value) {
set_has_rettype();
rettype_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.Response.retType)
}
// optional string retMsg = 2;
inline bool Response::has_retmsg() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Response::set_has_retmsg() {
_has_bits_[0] |= 0x00000001u;
}
inline void Response::clear_has_retmsg() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Response::clear_retmsg() {
retmsg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_retmsg();
}
inline const ::std::string& Response::retmsg() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.Response.retMsg)
return retmsg_.GetNoArena();
}
inline void Response::set_retmsg(const ::std::string& value) {
set_has_retmsg();
retmsg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.Response.retMsg)
}
#if LANG_CXX11
inline void Response::set_retmsg(::std::string&& value) {
set_has_retmsg();
retmsg_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:Trd_PlaceOrder.Response.retMsg)
}
#endif
inline void Response::set_retmsg(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_retmsg();
retmsg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:Trd_PlaceOrder.Response.retMsg)
}
inline void Response::set_retmsg(const char* value, size_t size) {
set_has_retmsg();
retmsg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:Trd_PlaceOrder.Response.retMsg)
}
inline ::std::string* Response::mutable_retmsg() {
set_has_retmsg();
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.Response.retMsg)
return retmsg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Response::release_retmsg() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.Response.retMsg)
clear_has_retmsg();
return retmsg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Response::set_allocated_retmsg(::std::string* retmsg) {
if (retmsg != NULL) {
set_has_retmsg();
} else {
clear_has_retmsg();
}
retmsg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), retmsg);
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.Response.retMsg)
}
// optional int32 errCode = 3;
inline bool Response::has_errcode() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void Response::set_has_errcode() {
_has_bits_[0] |= 0x00000004u;
}
inline void Response::clear_has_errcode() {
_has_bits_[0] &= ~0x00000004u;
}
inline void Response::clear_errcode() {
errcode_ = 0;
clear_has_errcode();
}
inline ::google::protobuf::int32 Response::errcode() const {
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.Response.errCode)
return errcode_;
}
inline void Response::set_errcode(::google::protobuf::int32 value) {
set_has_errcode();
errcode_ = value;
// @@protoc_insertion_point(field_set:Trd_PlaceOrder.Response.errCode)
}
// optional .Trd_PlaceOrder.S2C s2c = 4;
inline bool Response::has_s2c() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Response::set_has_s2c() {
_has_bits_[0] |= 0x00000002u;
}
inline void Response::clear_has_s2c() {
_has_bits_[0] &= ~0x00000002u;
}
inline void Response::clear_s2c() {
if (s2c_ != NULL) s2c_->Clear();
clear_has_s2c();
}
inline const ::Trd_PlaceOrder::S2C& Response::s2c() const {
const ::Trd_PlaceOrder::S2C* p = s2c_;
// @@protoc_insertion_point(field_get:Trd_PlaceOrder.Response.s2c)
return p != NULL ? *p : *reinterpret_cast<const ::Trd_PlaceOrder::S2C*>(
&::Trd_PlaceOrder::_S2C_default_instance_);
}
inline ::Trd_PlaceOrder::S2C* Response::release_s2c() {
// @@protoc_insertion_point(field_release:Trd_PlaceOrder.Response.s2c)
clear_has_s2c();
::Trd_PlaceOrder::S2C* temp = s2c_;
s2c_ = NULL;
return temp;
}
inline ::Trd_PlaceOrder::S2C* Response::mutable_s2c() {
set_has_s2c();
if (s2c_ == NULL) {
s2c_ = new ::Trd_PlaceOrder::S2C;
}
// @@protoc_insertion_point(field_mutable:Trd_PlaceOrder.Response.s2c)
return s2c_;
}
inline void Response::set_allocated_s2c(::Trd_PlaceOrder::S2C* s2c) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete s2c_;
}
if (s2c) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
s2c = ::google::protobuf::internal::GetOwnedMessage(
message_arena, s2c, submessage_arena);
}
set_has_s2c();
} else {
clear_has_s2c();
}
s2c_ = s2c;
// @@protoc_insertion_point(field_set_allocated:Trd_PlaceOrder.Response.s2c)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace Trd_PlaceOrder
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_Trd_5fPlaceOrder_2eproto__INCLUDED