fastinahurry/build/trading.pb.h
2025-07-27 21:38:01 -06:00

1348 lines
47 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: trading.proto
// Protobuf C++ Version: 5.29.2
#ifndef trading_2eproto_2epb_2eh
#define trading_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 5029002
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_trading_2eproto
namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
} // namespace internal
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_trading_2eproto {
static const ::uint32_t offsets[];
};
extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_trading_2eproto;
namespace trading {
class MarketData;
struct MarketDataDefaultTypeInternal;
extern MarketDataDefaultTypeInternal _MarketData_default_instance_;
class MarketRequest;
struct MarketRequestDefaultTypeInternal;
extern MarketRequestDefaultTypeInternal _MarketRequest_default_instance_;
class Order;
struct OrderDefaultTypeInternal;
extern OrderDefaultTypeInternal _Order_default_instance_;
class OrderAck;
struct OrderAckDefaultTypeInternal;
extern OrderAckDefaultTypeInternal _OrderAck_default_instance_;
} // namespace trading
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace trading {
enum Side : int {
SIDE_UNSPECIFIED = 0,
BUY = 1,
SELL = 2,
Side_INT_MIN_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::min(),
Side_INT_MAX_SENTINEL_DO_NOT_USE_ =
std::numeric_limits<::int32_t>::max(),
};
bool Side_IsValid(int value);
extern const uint32_t Side_internal_data_[];
constexpr Side Side_MIN = static_cast<Side>(0);
constexpr Side Side_MAX = static_cast<Side>(2);
constexpr int Side_ARRAYSIZE = 2 + 1;
const ::google::protobuf::EnumDescriptor*
Side_descriptor();
template <typename T>
const std::string& Side_Name(T value) {
static_assert(std::is_same<T, Side>::value ||
std::is_integral<T>::value,
"Incorrect type passed to Side_Name().");
return Side_Name(static_cast<Side>(value));
}
template <>
inline const std::string& Side_Name(Side value) {
return ::google::protobuf::internal::NameOfDenseEnum<Side_descriptor,
0, 2>(
static_cast<int>(value));
}
inline bool Side_Parse(absl::string_view name, Side* value) {
return ::google::protobuf::internal::ParseNamedEnum<Side>(
Side_descriptor(), name, value);
}
// ===================================================================
// -------------------------------------------------------------------
class OrderAck final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:trading.OrderAck) */ {
public:
inline OrderAck() : OrderAck(nullptr) {}
~OrderAck() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(OrderAck* msg, std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(OrderAck));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR OrderAck(
::google::protobuf::internal::ConstantInitialized);
inline OrderAck(const OrderAck& from) : OrderAck(nullptr, from) {}
inline OrderAck(OrderAck&& from) noexcept
: OrderAck(nullptr, std::move(from)) {}
inline OrderAck& operator=(const OrderAck& from) {
CopyFrom(from);
return *this;
}
inline OrderAck& operator=(OrderAck&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const OrderAck& default_instance() {
return *internal_default_instance();
}
static inline const OrderAck* internal_default_instance() {
return reinterpret_cast<const OrderAck*>(
&_OrderAck_default_instance_);
}
static constexpr int kIndexInFileMessages = 1;
friend void swap(OrderAck& a, OrderAck& b) { a.Swap(&b); }
inline void Swap(OrderAck* other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(OrderAck* other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
OrderAck* New(::google::protobuf::Arena* arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<OrderAck>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const OrderAck& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const OrderAck& from) { OrderAck::MergeImpl(*this, from); }
private:
static void MergeImpl(
::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* _InternalSerialize(
const MessageLite& msg, ::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(OrderAck* other);
private:
template <typename T>
friend ::absl::string_view(
::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "trading.OrderAck"; }
protected:
explicit OrderAck(::google::protobuf::Arena* arena);
OrderAck(::google::protobuf::Arena* arena, const OrderAck& from);
OrderAck(::google::protobuf::Arena* arena, OrderAck&& from) noexcept
: OrderAck(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL;
static void* PlacementNew_(const void*, void* mem,
::google::protobuf::Arena* arena);
static constexpr auto InternalNewImpl_();
static const ::google::protobuf::internal::ClassDataFull _class_data_;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kMessageFieldNumber = 2,
kSuccessFieldNumber = 1,
};
// string message = 2;
void clear_message() ;
const std::string& message() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_message(Arg_&& arg, Args_... args);
std::string* mutable_message();
PROTOBUF_NODISCARD std::string* release_message();
void set_allocated_message(std::string* value);
private:
const std::string& _internal_message() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(
const std::string& value);
std::string* _internal_mutable_message();
public:
// bool success = 1;
void clear_success() ;
bool success() const;
void set_success(bool value);
private:
bool _internal_success() const;
void _internal_set_success(bool value);
public:
// @@protoc_insertion_point(class_scope:trading.OrderAck)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
1, 2, 0,
32, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena);
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena, const Impl_& from,
const OrderAck& from_msg);
::google::protobuf::internal::ArenaStringPtr message_;
bool success_;
::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_trading_2eproto;
};
// -------------------------------------------------------------------
class Order final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:trading.Order) */ {
public:
inline Order() : Order(nullptr) {}
~Order() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(Order* msg, std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(Order));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR Order(
::google::protobuf::internal::ConstantInitialized);
inline Order(const Order& from) : Order(nullptr, from) {}
inline Order(Order&& from) noexcept
: Order(nullptr, std::move(from)) {}
inline Order& operator=(const Order& from) {
CopyFrom(from);
return *this;
}
inline Order& operator=(Order&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Order& default_instance() {
return *internal_default_instance();
}
static inline const Order* internal_default_instance() {
return reinterpret_cast<const Order*>(
&_Order_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Order& a, Order& b) { a.Swap(&b); }
inline void Swap(Order* other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Order* other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Order* New(::google::protobuf::Arena* arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<Order>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Order& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const Order& from) { Order::MergeImpl(*this, from); }
private:
static void MergeImpl(
::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* _InternalSerialize(
const MessageLite& msg, ::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(Order* other);
private:
template <typename T>
friend ::absl::string_view(
::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "trading.Order"; }
protected:
explicit Order(::google::protobuf::Arena* arena);
Order(::google::protobuf::Arena* arena, const Order& from);
Order(::google::protobuf::Arena* arena, Order&& from) noexcept
: Order(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL;
static void* PlacementNew_(const void*, void* mem,
::google::protobuf::Arena* arena);
static constexpr auto InternalNewImpl_();
static const ::google::protobuf::internal::ClassDataFull _class_data_;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kSymbolFieldNumber = 1,
kPriceFieldNumber = 3,
kQuantityFieldNumber = 2,
kSideFieldNumber = 4,
};
// string symbol = 1;
void clear_symbol() ;
const std::string& symbol() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_symbol(Arg_&& arg, Args_... args);
std::string* mutable_symbol();
PROTOBUF_NODISCARD std::string* release_symbol();
void set_allocated_symbol(std::string* value);
private:
const std::string& _internal_symbol() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_symbol(
const std::string& value);
std::string* _internal_mutable_symbol();
public:
// double price = 3;
void clear_price() ;
double price() const;
void set_price(double value);
private:
double _internal_price() const;
void _internal_set_price(double value);
public:
// int32 quantity = 2;
void clear_quantity() ;
::int32_t quantity() const;
void set_quantity(::int32_t value);
private:
::int32_t _internal_quantity() const;
void _internal_set_quantity(::int32_t value);
public:
// .trading.Side side = 4;
void clear_side() ;
::trading::Side side() const;
void set_side(::trading::Side value);
private:
::trading::Side _internal_side() const;
void _internal_set_side(::trading::Side value);
public:
// @@protoc_insertion_point(class_scope:trading.Order)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
2, 4, 0,
28, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena);
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena, const Impl_& from,
const Order& from_msg);
::google::protobuf::internal::ArenaStringPtr symbol_;
double price_;
::int32_t quantity_;
int side_;
::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_trading_2eproto;
};
// -------------------------------------------------------------------
class MarketRequest final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:trading.MarketRequest) */ {
public:
inline MarketRequest() : MarketRequest(nullptr) {}
~MarketRequest() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(MarketRequest* msg, std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(MarketRequest));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR MarketRequest(
::google::protobuf::internal::ConstantInitialized);
inline MarketRequest(const MarketRequest& from) : MarketRequest(nullptr, from) {}
inline MarketRequest(MarketRequest&& from) noexcept
: MarketRequest(nullptr, std::move(from)) {}
inline MarketRequest& operator=(const MarketRequest& from) {
CopyFrom(from);
return *this;
}
inline MarketRequest& operator=(MarketRequest&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const MarketRequest& default_instance() {
return *internal_default_instance();
}
static inline const MarketRequest* internal_default_instance() {
return reinterpret_cast<const MarketRequest*>(
&_MarketRequest_default_instance_);
}
static constexpr int kIndexInFileMessages = 2;
friend void swap(MarketRequest& a, MarketRequest& b) { a.Swap(&b); }
inline void Swap(MarketRequest* other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(MarketRequest* other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
MarketRequest* New(::google::protobuf::Arena* arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<MarketRequest>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const MarketRequest& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const MarketRequest& from) { MarketRequest::MergeImpl(*this, from); }
private:
static void MergeImpl(
::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* _InternalSerialize(
const MessageLite& msg, ::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(MarketRequest* other);
private:
template <typename T>
friend ::absl::string_view(
::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "trading.MarketRequest"; }
protected:
explicit MarketRequest(::google::protobuf::Arena* arena);
MarketRequest(::google::protobuf::Arena* arena, const MarketRequest& from);
MarketRequest(::google::protobuf::Arena* arena, MarketRequest&& from) noexcept
: MarketRequest(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL;
static void* PlacementNew_(const void*, void* mem,
::google::protobuf::Arena* arena);
static constexpr auto InternalNewImpl_();
static const ::google::protobuf::internal::ClassDataFull _class_data_;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kSymbolFieldNumber = 1,
};
// string symbol = 1;
void clear_symbol() ;
const std::string& symbol() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_symbol(Arg_&& arg, Args_... args);
std::string* mutable_symbol();
PROTOBUF_NODISCARD std::string* release_symbol();
void set_allocated_symbol(std::string* value);
private:
const std::string& _internal_symbol() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_symbol(
const std::string& value);
std::string* _internal_mutable_symbol();
public:
// @@protoc_insertion_point(class_scope:trading.MarketRequest)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
0, 1, 0,
36, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena);
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena, const Impl_& from,
const MarketRequest& from_msg);
::google::protobuf::internal::ArenaStringPtr symbol_;
::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_trading_2eproto;
};
// -------------------------------------------------------------------
class MarketData final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:trading.MarketData) */ {
public:
inline MarketData() : MarketData(nullptr) {}
~MarketData() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(MarketData* msg, std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(MarketData));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR MarketData(
::google::protobuf::internal::ConstantInitialized);
inline MarketData(const MarketData& from) : MarketData(nullptr, from) {}
inline MarketData(MarketData&& from) noexcept
: MarketData(nullptr, std::move(from)) {}
inline MarketData& operator=(const MarketData& from) {
CopyFrom(from);
return *this;
}
inline MarketData& operator=(MarketData&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const MarketData& default_instance() {
return *internal_default_instance();
}
static inline const MarketData* internal_default_instance() {
return reinterpret_cast<const MarketData*>(
&_MarketData_default_instance_);
}
static constexpr int kIndexInFileMessages = 3;
friend void swap(MarketData& a, MarketData& b) { a.Swap(&b); }
inline void Swap(MarketData* other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(MarketData* other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
MarketData* New(::google::protobuf::Arena* arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<MarketData>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const MarketData& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const MarketData& from) { MarketData::MergeImpl(*this, from); }
private:
static void MergeImpl(
::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* _InternalSerialize(
const MessageLite& msg, ::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(MarketData* other);
private:
template <typename T>
friend ::absl::string_view(
::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "trading.MarketData"; }
protected:
explicit MarketData(::google::protobuf::Arena* arena);
MarketData(::google::protobuf::Arena* arena, const MarketData& from);
MarketData(::google::protobuf::Arena* arena, MarketData&& from) noexcept
: MarketData(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL;
static void* PlacementNew_(const void*, void* mem,
::google::protobuf::Arena* arena);
static constexpr auto InternalNewImpl_();
static const ::google::protobuf::internal::ClassDataFull _class_data_;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kSymbolFieldNumber = 1,
kPriceFieldNumber = 2,
kTimestampFieldNumber = 3,
};
// string symbol = 1;
void clear_symbol() ;
const std::string& symbol() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_symbol(Arg_&& arg, Args_... args);
std::string* mutable_symbol();
PROTOBUF_NODISCARD std::string* release_symbol();
void set_allocated_symbol(std::string* value);
private:
const std::string& _internal_symbol() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_symbol(
const std::string& value);
std::string* _internal_mutable_symbol();
public:
// double price = 2;
void clear_price() ;
double price() const;
void set_price(double value);
private:
double _internal_price() const;
void _internal_set_price(double value);
public:
// int64 timestamp = 3;
void clear_timestamp() ;
::int64_t timestamp() const;
void set_timestamp(::int64_t value);
private:
::int64_t _internal_timestamp() const;
void _internal_set_timestamp(::int64_t value);
public:
// @@protoc_insertion_point(class_scope:trading.MarketData)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
2, 3, 0,
33, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena);
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena, const Impl_& from,
const MarketData& from_msg);
::google::protobuf::internal::ArenaStringPtr symbol_;
double price_;
::int64_t timestamp_;
::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_trading_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Order
// string symbol = 1;
inline void Order::clear_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.ClearToEmpty();
}
inline const std::string& Order::symbol() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:trading.Order.symbol)
return _internal_symbol();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Order::set_symbol(Arg_&& arg,
Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:trading.Order.symbol)
}
inline std::string* Order::mutable_symbol() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_symbol();
// @@protoc_insertion_point(field_mutable:trading.Order.symbol)
return _s;
}
inline const std::string& Order::_internal_symbol() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.symbol_.Get();
}
inline void Order::_internal_set_symbol(const std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.Set(value, GetArena());
}
inline std::string* Order::_internal_mutable_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.symbol_.Mutable( GetArena());
}
inline std::string* Order::release_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:trading.Order.symbol)
return _impl_.symbol_.Release();
}
inline void Order::set_allocated_symbol(std::string* value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.symbol_.IsDefault()) {
_impl_.symbol_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:trading.Order.symbol)
}
// int32 quantity = 2;
inline void Order::clear_quantity() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.quantity_ = 0;
}
inline ::int32_t Order::quantity() const {
// @@protoc_insertion_point(field_get:trading.Order.quantity)
return _internal_quantity();
}
inline void Order::set_quantity(::int32_t value) {
_internal_set_quantity(value);
// @@protoc_insertion_point(field_set:trading.Order.quantity)
}
inline ::int32_t Order::_internal_quantity() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.quantity_;
}
inline void Order::_internal_set_quantity(::int32_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.quantity_ = value;
}
// double price = 3;
inline void Order::clear_price() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.price_ = 0;
}
inline double Order::price() const {
// @@protoc_insertion_point(field_get:trading.Order.price)
return _internal_price();
}
inline void Order::set_price(double value) {
_internal_set_price(value);
// @@protoc_insertion_point(field_set:trading.Order.price)
}
inline double Order::_internal_price() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.price_;
}
inline void Order::_internal_set_price(double value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.price_ = value;
}
// .trading.Side side = 4;
inline void Order::clear_side() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.side_ = 0;
}
inline ::trading::Side Order::side() const {
// @@protoc_insertion_point(field_get:trading.Order.side)
return _internal_side();
}
inline void Order::set_side(::trading::Side value) {
_internal_set_side(value);
// @@protoc_insertion_point(field_set:trading.Order.side)
}
inline ::trading::Side Order::_internal_side() const {
::google::protobuf::internal::TSanRead(&_impl_);
return static_cast<::trading::Side>(_impl_.side_);
}
inline void Order::_internal_set_side(::trading::Side value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.side_ = value;
}
// -------------------------------------------------------------------
// OrderAck
// bool success = 1;
inline void OrderAck::clear_success() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.success_ = false;
}
inline bool OrderAck::success() const {
// @@protoc_insertion_point(field_get:trading.OrderAck.success)
return _internal_success();
}
inline void OrderAck::set_success(bool value) {
_internal_set_success(value);
// @@protoc_insertion_point(field_set:trading.OrderAck.success)
}
inline bool OrderAck::_internal_success() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.success_;
}
inline void OrderAck::_internal_set_success(bool value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.success_ = value;
}
// string message = 2;
inline void OrderAck::clear_message() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.message_.ClearToEmpty();
}
inline const std::string& OrderAck::message() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:trading.OrderAck.message)
return _internal_message();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void OrderAck::set_message(Arg_&& arg,
Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.message_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:trading.OrderAck.message)
}
inline std::string* OrderAck::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_message();
// @@protoc_insertion_point(field_mutable:trading.OrderAck.message)
return _s;
}
inline const std::string& OrderAck::_internal_message() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.message_.Get();
}
inline void OrderAck::_internal_set_message(const std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.message_.Set(value, GetArena());
}
inline std::string* OrderAck::_internal_mutable_message() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.message_.Mutable( GetArena());
}
inline std::string* OrderAck::release_message() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:trading.OrderAck.message)
return _impl_.message_.Release();
}
inline void OrderAck::set_allocated_message(std::string* value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.message_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_.IsDefault()) {
_impl_.message_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:trading.OrderAck.message)
}
// -------------------------------------------------------------------
// MarketRequest
// string symbol = 1;
inline void MarketRequest::clear_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.ClearToEmpty();
}
inline const std::string& MarketRequest::symbol() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:trading.MarketRequest.symbol)
return _internal_symbol();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void MarketRequest::set_symbol(Arg_&& arg,
Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:trading.MarketRequest.symbol)
}
inline std::string* MarketRequest::mutable_symbol() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_symbol();
// @@protoc_insertion_point(field_mutable:trading.MarketRequest.symbol)
return _s;
}
inline const std::string& MarketRequest::_internal_symbol() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.symbol_.Get();
}
inline void MarketRequest::_internal_set_symbol(const std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.Set(value, GetArena());
}
inline std::string* MarketRequest::_internal_mutable_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.symbol_.Mutable( GetArena());
}
inline std::string* MarketRequest::release_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:trading.MarketRequest.symbol)
return _impl_.symbol_.Release();
}
inline void MarketRequest::set_allocated_symbol(std::string* value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.symbol_.IsDefault()) {
_impl_.symbol_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:trading.MarketRequest.symbol)
}
// -------------------------------------------------------------------
// MarketData
// string symbol = 1;
inline void MarketData::clear_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.ClearToEmpty();
}
inline const std::string& MarketData::symbol() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:trading.MarketData.symbol)
return _internal_symbol();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void MarketData::set_symbol(Arg_&& arg,
Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:trading.MarketData.symbol)
}
inline std::string* MarketData::mutable_symbol() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_symbol();
// @@protoc_insertion_point(field_mutable:trading.MarketData.symbol)
return _s;
}
inline const std::string& MarketData::_internal_symbol() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.symbol_.Get();
}
inline void MarketData::_internal_set_symbol(const std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.Set(value, GetArena());
}
inline std::string* MarketData::_internal_mutable_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.symbol_.Mutable( GetArena());
}
inline std::string* MarketData::release_symbol() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:trading.MarketData.symbol)
return _impl_.symbol_.Release();
}
inline void MarketData::set_allocated_symbol(std::string* value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.symbol_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.symbol_.IsDefault()) {
_impl_.symbol_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:trading.MarketData.symbol)
}
// double price = 2;
inline void MarketData::clear_price() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.price_ = 0;
}
inline double MarketData::price() const {
// @@protoc_insertion_point(field_get:trading.MarketData.price)
return _internal_price();
}
inline void MarketData::set_price(double value) {
_internal_set_price(value);
// @@protoc_insertion_point(field_set:trading.MarketData.price)
}
inline double MarketData::_internal_price() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.price_;
}
inline void MarketData::_internal_set_price(double value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.price_ = value;
}
// int64 timestamp = 3;
inline void MarketData::clear_timestamp() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.timestamp_ = ::int64_t{0};
}
inline ::int64_t MarketData::timestamp() const {
// @@protoc_insertion_point(field_get:trading.MarketData.timestamp)
return _internal_timestamp();
}
inline void MarketData::set_timestamp(::int64_t value) {
_internal_set_timestamp(value);
// @@protoc_insertion_point(field_set:trading.MarketData.timestamp)
}
inline ::int64_t MarketData::_internal_timestamp() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.timestamp_;
}
inline void MarketData::_internal_set_timestamp(::int64_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.timestamp_ = value;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace trading
namespace google {
namespace protobuf {
template <>
struct is_proto_enum<::trading::Side> : std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor<::trading::Side>() {
return ::trading::Side_descriptor();
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#endif // trading_2eproto_2epb_2eh