ADD: added new version of Orders and a first use in the entity base class
This commit is contained in:
@@ -186,8 +186,6 @@ class Order final :
|
||||
|
||||
enum : int {
|
||||
kOrderIDFieldNumber = 1,
|
||||
kOrderingEntityFieldNumber = 2,
|
||||
kOrderedEntityFieldNumber = 3,
|
||||
kOrderPayloadFieldNumber = 5,
|
||||
kOrderTypeFieldNumber = 4,
|
||||
};
|
||||
@@ -209,42 +207,6 @@ class Order final :
|
||||
::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:
|
||||
@@ -281,8 +243,6 @@ class Order final :
|
||||
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_;
|
||||
@@ -386,176 +346,6 @@ inline void Order::set_allocated_orderid(::messages::track::Identifier* 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;
|
||||
|
||||
Reference in New Issue
Block a user