ADD: added orders and implemented order and moveorder and test for moveorder
This commit is contained in:
333
include/Orders/protos/HoldOrder.pb.h
Normal file
333
include/Orders/protos/HoldOrder.pb.h
Normal file
@@ -0,0 +1,333 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: HoldOrder.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_HoldOrder_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_HoldOrder_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3021000
|
||||
#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 3021012 < 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/port_undef.inc>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/arena.h>
|
||||
#include <google/protobuf/arenastring.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/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
#include <google/protobuf/timestamp.pb.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_HoldOrder_2eproto
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
namespace internal {
|
||||
class AnyMetadata;
|
||||
} // namespace internal
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct_HoldOrder_2eproto {
|
||||
static const uint32_t offsets[];
|
||||
};
|
||||
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_HoldOrder_2eproto;
|
||||
namespace messages {
|
||||
namespace entity {
|
||||
namespace order {
|
||||
class HoldOrder;
|
||||
struct HoldOrderDefaultTypeInternal;
|
||||
extern HoldOrderDefaultTypeInternal _HoldOrder_default_instance_;
|
||||
} // namespace order
|
||||
} // namespace entity
|
||||
} // namespace messages
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::messages::entity::order::HoldOrder* Arena::CreateMaybeMessage<::messages::entity::order::HoldOrder>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace messages {
|
||||
namespace entity {
|
||||
namespace order {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class HoldOrder final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.entity.order.HoldOrder) */ {
|
||||
public:
|
||||
inline HoldOrder() : HoldOrder(nullptr) {}
|
||||
~HoldOrder() override;
|
||||
explicit PROTOBUF_CONSTEXPR HoldOrder(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
HoldOrder(const HoldOrder& from);
|
||||
HoldOrder(HoldOrder&& from) noexcept
|
||||
: HoldOrder() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline HoldOrder& operator=(const HoldOrder& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline HoldOrder& operator=(HoldOrder&& from) noexcept {
|
||||
if (this == &from) return *this;
|
||||
if (GetOwningArena() == from.GetOwningArena()
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
&& GetOwningArena() != nullptr
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
||||
) {
|
||||
InternalSwap(&from);
|
||||
} else {
|
||||
CopyFrom(from);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
||||
return GetDescriptor();
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
||||
return default_instance().GetMetadata().descriptor;
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
||||
return default_instance().GetMetadata().reflection;
|
||||
}
|
||||
static const HoldOrder& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const HoldOrder* internal_default_instance() {
|
||||
return reinterpret_cast<const HoldOrder*>(
|
||||
&_HoldOrder_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(HoldOrder& a, HoldOrder& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(HoldOrder* other) {
|
||||
if (other == this) return;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
if (GetOwningArena() != nullptr &&
|
||||
GetOwningArena() == other->GetOwningArena()) {
|
||||
#else // PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
if (GetOwningArena() == other->GetOwningArena()) {
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
||||
}
|
||||
}
|
||||
void UnsafeArenaSwap(HoldOrder* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
HoldOrder* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<HoldOrder>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const HoldOrder& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const HoldOrder& from) {
|
||||
HoldOrder::MergeImpl(*this, from);
|
||||
}
|
||||
private:
|
||||
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
|
||||
public:
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
||||
uint8_t* _InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
||||
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const final;
|
||||
void InternalSwap(HoldOrder* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "messages.entity.order.HoldOrder";
|
||||
}
|
||||
protected:
|
||||
explicit HoldOrder(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
public:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kEndingTimeFieldNumber = 1,
|
||||
};
|
||||
// optional .google.protobuf.Timestamp endingTime = 1;
|
||||
bool has_endingtime() const;
|
||||
private:
|
||||
bool _internal_has_endingtime() const;
|
||||
public:
|
||||
void clear_endingtime();
|
||||
const ::PROTOBUF_NAMESPACE_ID::Timestamp& endingtime() const;
|
||||
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_endingtime();
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_endingtime();
|
||||
void set_allocated_endingtime(::PROTOBUF_NAMESPACE_ID::Timestamp* endingtime);
|
||||
private:
|
||||
const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_endingtime() const;
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_endingtime();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_endingtime(
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* endingtime);
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_endingtime();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:messages.entity.order.HoldOrder)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* endingtime_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_HoldOrder_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// HoldOrder
|
||||
|
||||
// optional .google.protobuf.Timestamp endingTime = 1;
|
||||
inline bool HoldOrder::_internal_has_endingtime() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
||||
PROTOBUF_ASSUME(!value || _impl_.endingtime_ != nullptr);
|
||||
return value;
|
||||
}
|
||||
inline bool HoldOrder::has_endingtime() const {
|
||||
return _internal_has_endingtime();
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& HoldOrder::_internal_endingtime() const {
|
||||
const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.endingtime_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Timestamp&>(
|
||||
::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& HoldOrder::endingtime() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.HoldOrder.endingTime)
|
||||
return _internal_endingtime();
|
||||
}
|
||||
inline void HoldOrder::unsafe_arena_set_allocated_endingtime(
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* endingtime) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.endingtime_);
|
||||
}
|
||||
_impl_.endingtime_ = endingtime;
|
||||
if (endingtime) {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.HoldOrder.endingTime)
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Timestamp* HoldOrder::release_endingtime() {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.endingtime_;
|
||||
_impl_.endingtime_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Timestamp* HoldOrder::unsafe_arena_release_endingtime() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.HoldOrder.endingTime)
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.endingtime_;
|
||||
_impl_.endingtime_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Timestamp* HoldOrder::_internal_mutable_endingtime() {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
if (_impl_.endingtime_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation());
|
||||
_impl_.endingtime_ = p;
|
||||
}
|
||||
return _impl_.endingtime_;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Timestamp* HoldOrder::mutable_endingtime() {
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_endingtime();
|
||||
// @@protoc_insertion_point(field_mutable:messages.entity.order.HoldOrder.endingTime)
|
||||
return _msg;
|
||||
}
|
||||
inline void HoldOrder::set_allocated_endingtime(::PROTOBUF_NAMESPACE_ID::Timestamp* endingtime) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.endingtime_);
|
||||
}
|
||||
if (endingtime) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(endingtime));
|
||||
if (message_arena != submessage_arena) {
|
||||
endingtime = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, endingtime, submessage_arena);
|
||||
}
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
_impl_.endingtime_ = endingtime;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.HoldOrder.endingTime)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace order
|
||||
} // namespace entity
|
||||
} // namespace messages
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_HoldOrder_2eproto
|
||||
Reference in New Issue
Block a user