ADD: added orders and implemented order and moveorder and test for moveorder
This commit is contained in:
677
include/Orders/protos/Order.pb.h
Normal file
677
include/Orders/protos/Order.pb.h
Normal file
@@ -0,0 +1,677 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Order.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_Order_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_Order_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 "Identifier.pb.h"
|
||||
#include <google/protobuf/any.pb.h>
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_Order_2eproto
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
namespace internal {
|
||||
class AnyMetadata;
|
||||
} // namespace internal
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct_Order_2eproto {
|
||||
static const uint32_t offsets[];
|
||||
};
|
||||
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Order_2eproto;
|
||||
namespace messages {
|
||||
namespace entity {
|
||||
namespace order {
|
||||
class Order;
|
||||
struct OrderDefaultTypeInternal;
|
||||
extern OrderDefaultTypeInternal _Order_default_instance_;
|
||||
} // namespace order
|
||||
} // namespace entity
|
||||
} // namespace messages
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::messages::entity::order::Order* Arena::CreateMaybeMessage<::messages::entity::order::Order>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace messages {
|
||||
namespace entity {
|
||||
namespace order {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class Order final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.entity.order.Order) */ {
|
||||
public:
|
||||
inline Order() : Order(nullptr) {}
|
||||
~Order() override;
|
||||
explicit PROTOBUF_CONSTEXPR Order(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
Order(const Order& from);
|
||||
Order(Order&& from) noexcept
|
||||
: Order() {
|
||||
*this = ::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 (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 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;
|
||||
#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(Order* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
Order* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<Order>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const Order& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const Order& from) {
|
||||
Order::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(Order* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "messages.entity.order.Order";
|
||||
}
|
||||
protected:
|
||||
explicit Order(::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 {
|
||||
kOrderIDFieldNumber = 1,
|
||||
kOrderingEntityFieldNumber = 2,
|
||||
kOrderedEntityFieldNumber = 3,
|
||||
kOrderPayloadFieldNumber = 5,
|
||||
kOrderTypeFieldNumber = 4,
|
||||
};
|
||||
// .messages.track.Identifier OrderID = 1;
|
||||
bool has_orderid() const;
|
||||
private:
|
||||
bool _internal_has_orderid() const;
|
||||
public:
|
||||
void clear_orderid();
|
||||
const ::messages::track::Identifier& orderid() const;
|
||||
PROTOBUF_NODISCARD ::messages::track::Identifier* release_orderid();
|
||||
::messages::track::Identifier* mutable_orderid();
|
||||
void set_allocated_orderid(::messages::track::Identifier* orderid);
|
||||
private:
|
||||
const ::messages::track::Identifier& _internal_orderid() const;
|
||||
::messages::track::Identifier* _internal_mutable_orderid();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_orderid(
|
||||
::messages::track::Identifier* orderid);
|
||||
::messages::track::Identifier* unsafe_arena_release_orderid();
|
||||
|
||||
// .messages.track.Identifier orderingEntity = 2;
|
||||
bool has_orderingentity() const;
|
||||
private:
|
||||
bool _internal_has_orderingentity() const;
|
||||
public:
|
||||
void clear_orderingentity();
|
||||
const ::messages::track::Identifier& orderingentity() const;
|
||||
PROTOBUF_NODISCARD ::messages::track::Identifier* release_orderingentity();
|
||||
::messages::track::Identifier* mutable_orderingentity();
|
||||
void set_allocated_orderingentity(::messages::track::Identifier* orderingentity);
|
||||
private:
|
||||
const ::messages::track::Identifier& _internal_orderingentity() const;
|
||||
::messages::track::Identifier* _internal_mutable_orderingentity();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_orderingentity(
|
||||
::messages::track::Identifier* orderingentity);
|
||||
::messages::track::Identifier* unsafe_arena_release_orderingentity();
|
||||
|
||||
// .messages.track.Identifier orderedEntity = 3;
|
||||
bool has_orderedentity() const;
|
||||
private:
|
||||
bool _internal_has_orderedentity() const;
|
||||
public:
|
||||
void clear_orderedentity();
|
||||
const ::messages::track::Identifier& orderedentity() const;
|
||||
PROTOBUF_NODISCARD ::messages::track::Identifier* release_orderedentity();
|
||||
::messages::track::Identifier* mutable_orderedentity();
|
||||
void set_allocated_orderedentity(::messages::track::Identifier* orderedentity);
|
||||
private:
|
||||
const ::messages::track::Identifier& _internal_orderedentity() const;
|
||||
::messages::track::Identifier* _internal_mutable_orderedentity();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_orderedentity(
|
||||
::messages::track::Identifier* orderedentity);
|
||||
::messages::track::Identifier* unsafe_arena_release_orderedentity();
|
||||
|
||||
// .google.protobuf.Any OrderPayload = 5;
|
||||
bool has_orderpayload() const;
|
||||
private:
|
||||
bool _internal_has_orderpayload() const;
|
||||
public:
|
||||
void clear_orderpayload();
|
||||
const ::PROTOBUF_NAMESPACE_ID::Any& orderpayload() const;
|
||||
PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_orderpayload();
|
||||
::PROTOBUF_NAMESPACE_ID::Any* mutable_orderpayload();
|
||||
void set_allocated_orderpayload(::PROTOBUF_NAMESPACE_ID::Any* orderpayload);
|
||||
private:
|
||||
const ::PROTOBUF_NAMESPACE_ID::Any& _internal_orderpayload() const;
|
||||
::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_orderpayload();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_orderpayload(
|
||||
::PROTOBUF_NAMESPACE_ID::Any* orderpayload);
|
||||
::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_orderpayload();
|
||||
|
||||
// uint32 OrderType = 4;
|
||||
void clear_ordertype();
|
||||
uint32_t ordertype() const;
|
||||
void set_ordertype(uint32_t value);
|
||||
private:
|
||||
uint32_t _internal_ordertype() const;
|
||||
void _internal_set_ordertype(uint32_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:messages.entity.order.Order)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::messages::track::Identifier* orderid_;
|
||||
::messages::track::Identifier* orderingentity_;
|
||||
::messages::track::Identifier* orderedentity_;
|
||||
::PROTOBUF_NAMESPACE_ID::Any* orderpayload_;
|
||||
uint32_t ordertype_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_Order_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// Order
|
||||
|
||||
// .messages.track.Identifier OrderID = 1;
|
||||
inline bool Order::_internal_has_orderid() const {
|
||||
return this != internal_default_instance() && _impl_.orderid_ != nullptr;
|
||||
}
|
||||
inline bool Order::has_orderid() const {
|
||||
return _internal_has_orderid();
|
||||
}
|
||||
inline const ::messages::track::Identifier& Order::_internal_orderid() const {
|
||||
const ::messages::track::Identifier* p = _impl_.orderid_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(
|
||||
::messages::track::_Identifier_default_instance_);
|
||||
}
|
||||
inline const ::messages::track::Identifier& Order::orderid() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.Order.OrderID)
|
||||
return _internal_orderid();
|
||||
}
|
||||
inline void Order::unsafe_arena_set_allocated_orderid(
|
||||
::messages::track::Identifier* orderid) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orderid_);
|
||||
}
|
||||
_impl_.orderid_ = orderid;
|
||||
if (orderid) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.Order.OrderID)
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::release_orderid() {
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.orderid_;
|
||||
_impl_.orderid_ = 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 ::messages::track::Identifier* Order::unsafe_arena_release_orderid() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.Order.OrderID)
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.orderid_;
|
||||
_impl_.orderid_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::_internal_mutable_orderid() {
|
||||
|
||||
if (_impl_.orderid_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation());
|
||||
_impl_.orderid_ = p;
|
||||
}
|
||||
return _impl_.orderid_;
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::mutable_orderid() {
|
||||
::messages::track::Identifier* _msg = _internal_mutable_orderid();
|
||||
// @@protoc_insertion_point(field_mutable:messages.entity.order.Order.OrderID)
|
||||
return _msg;
|
||||
}
|
||||
inline void Order::set_allocated_orderid(::messages::track::Identifier* orderid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orderid_);
|
||||
}
|
||||
if (orderid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orderid));
|
||||
if (message_arena != submessage_arena) {
|
||||
orderid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, orderid, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.orderid_ = orderid;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.Order.OrderID)
|
||||
}
|
||||
|
||||
// .messages.track.Identifier orderingEntity = 2;
|
||||
inline bool Order::_internal_has_orderingentity() const {
|
||||
return this != internal_default_instance() && _impl_.orderingentity_ != nullptr;
|
||||
}
|
||||
inline bool Order::has_orderingentity() const {
|
||||
return _internal_has_orderingentity();
|
||||
}
|
||||
inline const ::messages::track::Identifier& Order::_internal_orderingentity() const {
|
||||
const ::messages::track::Identifier* p = _impl_.orderingentity_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(
|
||||
::messages::track::_Identifier_default_instance_);
|
||||
}
|
||||
inline const ::messages::track::Identifier& Order::orderingentity() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.Order.orderingEntity)
|
||||
return _internal_orderingentity();
|
||||
}
|
||||
inline void Order::unsafe_arena_set_allocated_orderingentity(
|
||||
::messages::track::Identifier* orderingentity) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orderingentity_);
|
||||
}
|
||||
_impl_.orderingentity_ = orderingentity;
|
||||
if (orderingentity) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.Order.orderingEntity)
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::release_orderingentity() {
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.orderingentity_;
|
||||
_impl_.orderingentity_ = 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 ::messages::track::Identifier* Order::unsafe_arena_release_orderingentity() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.Order.orderingEntity)
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.orderingentity_;
|
||||
_impl_.orderingentity_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::_internal_mutable_orderingentity() {
|
||||
|
||||
if (_impl_.orderingentity_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation());
|
||||
_impl_.orderingentity_ = p;
|
||||
}
|
||||
return _impl_.orderingentity_;
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::mutable_orderingentity() {
|
||||
::messages::track::Identifier* _msg = _internal_mutable_orderingentity();
|
||||
// @@protoc_insertion_point(field_mutable:messages.entity.order.Order.orderingEntity)
|
||||
return _msg;
|
||||
}
|
||||
inline void Order::set_allocated_orderingentity(::messages::track::Identifier* orderingentity) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orderingentity_);
|
||||
}
|
||||
if (orderingentity) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orderingentity));
|
||||
if (message_arena != submessage_arena) {
|
||||
orderingentity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, orderingentity, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.orderingentity_ = orderingentity;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.Order.orderingEntity)
|
||||
}
|
||||
|
||||
// .messages.track.Identifier orderedEntity = 3;
|
||||
inline bool Order::_internal_has_orderedentity() const {
|
||||
return this != internal_default_instance() && _impl_.orderedentity_ != nullptr;
|
||||
}
|
||||
inline bool Order::has_orderedentity() const {
|
||||
return _internal_has_orderedentity();
|
||||
}
|
||||
inline const ::messages::track::Identifier& Order::_internal_orderedentity() const {
|
||||
const ::messages::track::Identifier* p = _impl_.orderedentity_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(
|
||||
::messages::track::_Identifier_default_instance_);
|
||||
}
|
||||
inline const ::messages::track::Identifier& Order::orderedentity() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.Order.orderedEntity)
|
||||
return _internal_orderedentity();
|
||||
}
|
||||
inline void Order::unsafe_arena_set_allocated_orderedentity(
|
||||
::messages::track::Identifier* orderedentity) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orderedentity_);
|
||||
}
|
||||
_impl_.orderedentity_ = orderedentity;
|
||||
if (orderedentity) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.Order.orderedEntity)
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::release_orderedentity() {
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.orderedentity_;
|
||||
_impl_.orderedentity_ = 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 ::messages::track::Identifier* Order::unsafe_arena_release_orderedentity() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.Order.orderedEntity)
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.orderedentity_;
|
||||
_impl_.orderedentity_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::_internal_mutable_orderedentity() {
|
||||
|
||||
if (_impl_.orderedentity_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation());
|
||||
_impl_.orderedentity_ = p;
|
||||
}
|
||||
return _impl_.orderedentity_;
|
||||
}
|
||||
inline ::messages::track::Identifier* Order::mutable_orderedentity() {
|
||||
::messages::track::Identifier* _msg = _internal_mutable_orderedentity();
|
||||
// @@protoc_insertion_point(field_mutable:messages.entity.order.Order.orderedEntity)
|
||||
return _msg;
|
||||
}
|
||||
inline void Order::set_allocated_orderedentity(::messages::track::Identifier* orderedentity) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orderedentity_);
|
||||
}
|
||||
if (orderedentity) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orderedentity));
|
||||
if (message_arena != submessage_arena) {
|
||||
orderedentity = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, orderedentity, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.orderedentity_ = orderedentity;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.Order.orderedEntity)
|
||||
}
|
||||
|
||||
// uint32 OrderType = 4;
|
||||
inline void Order::clear_ordertype() {
|
||||
_impl_.ordertype_ = 0u;
|
||||
}
|
||||
inline uint32_t Order::_internal_ordertype() const {
|
||||
return _impl_.ordertype_;
|
||||
}
|
||||
inline uint32_t Order::ordertype() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.Order.OrderType)
|
||||
return _internal_ordertype();
|
||||
}
|
||||
inline void Order::_internal_set_ordertype(uint32_t value) {
|
||||
|
||||
_impl_.ordertype_ = value;
|
||||
}
|
||||
inline void Order::set_ordertype(uint32_t value) {
|
||||
_internal_set_ordertype(value);
|
||||
// @@protoc_insertion_point(field_set:messages.entity.order.Order.OrderType)
|
||||
}
|
||||
|
||||
// .google.protobuf.Any OrderPayload = 5;
|
||||
inline bool Order::_internal_has_orderpayload() const {
|
||||
return this != internal_default_instance() && _impl_.orderpayload_ != nullptr;
|
||||
}
|
||||
inline bool Order::has_orderpayload() const {
|
||||
return _internal_has_orderpayload();
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::Any& Order::_internal_orderpayload() const {
|
||||
const ::PROTOBUF_NAMESPACE_ID::Any* p = _impl_.orderpayload_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Any&>(
|
||||
::PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::Any& Order::orderpayload() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.Order.OrderPayload)
|
||||
return _internal_orderpayload();
|
||||
}
|
||||
inline void Order::unsafe_arena_set_allocated_orderpayload(
|
||||
::PROTOBUF_NAMESPACE_ID::Any* orderpayload) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orderpayload_);
|
||||
}
|
||||
_impl_.orderpayload_ = orderpayload;
|
||||
if (orderpayload) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.Order.OrderPayload)
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Any* Order::release_orderpayload() {
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.orderpayload_;
|
||||
_impl_.orderpayload_ = 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::Any* Order::unsafe_arena_release_orderpayload() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.Order.OrderPayload)
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.orderpayload_;
|
||||
_impl_.orderpayload_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Any* Order::_internal_mutable_orderpayload() {
|
||||
|
||||
if (_impl_.orderpayload_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Any>(GetArenaForAllocation());
|
||||
_impl_.orderpayload_ = p;
|
||||
}
|
||||
return _impl_.orderpayload_;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Any* Order::mutable_orderpayload() {
|
||||
::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_orderpayload();
|
||||
// @@protoc_insertion_point(field_mutable:messages.entity.order.Order.OrderPayload)
|
||||
return _msg;
|
||||
}
|
||||
inline void Order::set_allocated_orderpayload(::PROTOBUF_NAMESPACE_ID::Any* orderpayload) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.orderpayload_);
|
||||
}
|
||||
if (orderpayload) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(orderpayload));
|
||||
if (message_arena != submessage_arena) {
|
||||
orderpayload = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, orderpayload, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.orderpayload_ = orderpayload;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.Order.OrderPayload)
|
||||
}
|
||||
|
||||
#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_Order_2eproto
|
||||
Reference in New Issue
Block a user