// 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 #include #include #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 #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include "Identifier.pb.h" #include // @@protoc_insertion_point(includes) #include #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( &_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(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, kOrderPayloadFieldNumber = 3, kOrderTypeFieldNumber = 2, }; // .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(); // .google.protobuf.Any OrderPayload = 3; 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 = 2; 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 friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { ::messages::track::Identifier* orderid_; ::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( ::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) } // uint32 OrderType = 2; 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 = 3; 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( ::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 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Order_2eproto