ADD: added orders and implemented order and moveorder and test for moveorder
This commit is contained in:
586
include/Orders/protos/EngageOrder.pb.h
Normal file
586
include/Orders/protos/EngageOrder.pb.h
Normal file
@@ -0,0 +1,586 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: EngageOrder.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_EngageOrder_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_EngageOrder_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"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_EngageOrder_2eproto
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
namespace internal {
|
||||
class AnyMetadata;
|
||||
} // namespace internal
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct_EngageOrder_2eproto {
|
||||
static const uint32_t offsets[];
|
||||
};
|
||||
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_EngageOrder_2eproto;
|
||||
namespace messages {
|
||||
namespace entity {
|
||||
namespace order {
|
||||
class EngageOrder;
|
||||
struct EngageOrderDefaultTypeInternal;
|
||||
extern EngageOrderDefaultTypeInternal _EngageOrder_default_instance_;
|
||||
} // namespace order
|
||||
} // namespace entity
|
||||
} // namespace messages
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::messages::entity::order::EngageOrder* Arena::CreateMaybeMessage<::messages::entity::order::EngageOrder>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace messages {
|
||||
namespace entity {
|
||||
namespace order {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class EngageOrder final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.entity.order.EngageOrder) */ {
|
||||
public:
|
||||
inline EngageOrder() : EngageOrder(nullptr) {}
|
||||
~EngageOrder() override;
|
||||
explicit PROTOBUF_CONSTEXPR EngageOrder(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
EngageOrder(const EngageOrder& from);
|
||||
EngageOrder(EngageOrder&& from) noexcept
|
||||
: EngageOrder() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline EngageOrder& operator=(const EngageOrder& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline EngageOrder& operator=(EngageOrder&& 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 EngageOrder& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const EngageOrder* internal_default_instance() {
|
||||
return reinterpret_cast<const EngageOrder*>(
|
||||
&_EngageOrder_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(EngageOrder& a, EngageOrder& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(EngageOrder* 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(EngageOrder* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
EngageOrder* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<EngageOrder>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const EngageOrder& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const EngageOrder& from) {
|
||||
EngageOrder::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(EngageOrder* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "messages.entity.order.EngageOrder";
|
||||
}
|
||||
protected:
|
||||
explicit EngageOrder(::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 {
|
||||
kTargetIDFieldNumber = 1,
|
||||
kEffectorIDFieldNumber = 2,
|
||||
kAmunitionIDFieldNumber = 3,
|
||||
kSalvoSizeFieldNumber = 4,
|
||||
};
|
||||
// .messages.track.Identifier TargetID = 1;
|
||||
bool has_targetid() const;
|
||||
private:
|
||||
bool _internal_has_targetid() const;
|
||||
public:
|
||||
void clear_targetid();
|
||||
const ::messages::track::Identifier& targetid() const;
|
||||
PROTOBUF_NODISCARD ::messages::track::Identifier* release_targetid();
|
||||
::messages::track::Identifier* mutable_targetid();
|
||||
void set_allocated_targetid(::messages::track::Identifier* targetid);
|
||||
private:
|
||||
const ::messages::track::Identifier& _internal_targetid() const;
|
||||
::messages::track::Identifier* _internal_mutable_targetid();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_targetid(
|
||||
::messages::track::Identifier* targetid);
|
||||
::messages::track::Identifier* unsafe_arena_release_targetid();
|
||||
|
||||
// .messages.track.Identifier EffectorID = 2;
|
||||
bool has_effectorid() const;
|
||||
private:
|
||||
bool _internal_has_effectorid() const;
|
||||
public:
|
||||
void clear_effectorid();
|
||||
const ::messages::track::Identifier& effectorid() const;
|
||||
PROTOBUF_NODISCARD ::messages::track::Identifier* release_effectorid();
|
||||
::messages::track::Identifier* mutable_effectorid();
|
||||
void set_allocated_effectorid(::messages::track::Identifier* effectorid);
|
||||
private:
|
||||
const ::messages::track::Identifier& _internal_effectorid() const;
|
||||
::messages::track::Identifier* _internal_mutable_effectorid();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_effectorid(
|
||||
::messages::track::Identifier* effectorid);
|
||||
::messages::track::Identifier* unsafe_arena_release_effectorid();
|
||||
|
||||
// optional .messages.track.Identifier AmunitionID = 3;
|
||||
bool has_amunitionid() const;
|
||||
private:
|
||||
bool _internal_has_amunitionid() const;
|
||||
public:
|
||||
void clear_amunitionid();
|
||||
const ::messages::track::Identifier& amunitionid() const;
|
||||
PROTOBUF_NODISCARD ::messages::track::Identifier* release_amunitionid();
|
||||
::messages::track::Identifier* mutable_amunitionid();
|
||||
void set_allocated_amunitionid(::messages::track::Identifier* amunitionid);
|
||||
private:
|
||||
const ::messages::track::Identifier& _internal_amunitionid() const;
|
||||
::messages::track::Identifier* _internal_mutable_amunitionid();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_amunitionid(
|
||||
::messages::track::Identifier* amunitionid);
|
||||
::messages::track::Identifier* unsafe_arena_release_amunitionid();
|
||||
|
||||
// optional uint32 salvoSize = 4;
|
||||
bool has_salvosize() const;
|
||||
private:
|
||||
bool _internal_has_salvosize() const;
|
||||
public:
|
||||
void clear_salvosize();
|
||||
uint32_t salvosize() const;
|
||||
void set_salvosize(uint32_t value);
|
||||
private:
|
||||
uint32_t _internal_salvosize() const;
|
||||
void _internal_set_salvosize(uint32_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:messages.entity.order.EngageOrder)
|
||||
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_;
|
||||
::messages::track::Identifier* targetid_;
|
||||
::messages::track::Identifier* effectorid_;
|
||||
::messages::track::Identifier* amunitionid_;
|
||||
uint32_t salvosize_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_EngageOrder_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// EngageOrder
|
||||
|
||||
// .messages.track.Identifier TargetID = 1;
|
||||
inline bool EngageOrder::_internal_has_targetid() const {
|
||||
return this != internal_default_instance() && _impl_.targetid_ != nullptr;
|
||||
}
|
||||
inline bool EngageOrder::has_targetid() const {
|
||||
return _internal_has_targetid();
|
||||
}
|
||||
inline const ::messages::track::Identifier& EngageOrder::_internal_targetid() const {
|
||||
const ::messages::track::Identifier* p = _impl_.targetid_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(
|
||||
::messages::track::_Identifier_default_instance_);
|
||||
}
|
||||
inline const ::messages::track::Identifier& EngageOrder::targetid() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.EngageOrder.TargetID)
|
||||
return _internal_targetid();
|
||||
}
|
||||
inline void EngageOrder::unsafe_arena_set_allocated_targetid(
|
||||
::messages::track::Identifier* targetid) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.targetid_);
|
||||
}
|
||||
_impl_.targetid_ = targetid;
|
||||
if (targetid) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.EngageOrder.TargetID)
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::release_targetid() {
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.targetid_;
|
||||
_impl_.targetid_ = 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* EngageOrder::unsafe_arena_release_targetid() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.EngageOrder.TargetID)
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.targetid_;
|
||||
_impl_.targetid_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::_internal_mutable_targetid() {
|
||||
|
||||
if (_impl_.targetid_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation());
|
||||
_impl_.targetid_ = p;
|
||||
}
|
||||
return _impl_.targetid_;
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::mutable_targetid() {
|
||||
::messages::track::Identifier* _msg = _internal_mutable_targetid();
|
||||
// @@protoc_insertion_point(field_mutable:messages.entity.order.EngageOrder.TargetID)
|
||||
return _msg;
|
||||
}
|
||||
inline void EngageOrder::set_allocated_targetid(::messages::track::Identifier* targetid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.targetid_);
|
||||
}
|
||||
if (targetid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(targetid));
|
||||
if (message_arena != submessage_arena) {
|
||||
targetid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, targetid, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.targetid_ = targetid;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.EngageOrder.TargetID)
|
||||
}
|
||||
|
||||
// .messages.track.Identifier EffectorID = 2;
|
||||
inline bool EngageOrder::_internal_has_effectorid() const {
|
||||
return this != internal_default_instance() && _impl_.effectorid_ != nullptr;
|
||||
}
|
||||
inline bool EngageOrder::has_effectorid() const {
|
||||
return _internal_has_effectorid();
|
||||
}
|
||||
inline const ::messages::track::Identifier& EngageOrder::_internal_effectorid() const {
|
||||
const ::messages::track::Identifier* p = _impl_.effectorid_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(
|
||||
::messages::track::_Identifier_default_instance_);
|
||||
}
|
||||
inline const ::messages::track::Identifier& EngageOrder::effectorid() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.EngageOrder.EffectorID)
|
||||
return _internal_effectorid();
|
||||
}
|
||||
inline void EngageOrder::unsafe_arena_set_allocated_effectorid(
|
||||
::messages::track::Identifier* effectorid) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.effectorid_);
|
||||
}
|
||||
_impl_.effectorid_ = effectorid;
|
||||
if (effectorid) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.EngageOrder.EffectorID)
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::release_effectorid() {
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.effectorid_;
|
||||
_impl_.effectorid_ = 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* EngageOrder::unsafe_arena_release_effectorid() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.EngageOrder.EffectorID)
|
||||
|
||||
::messages::track::Identifier* temp = _impl_.effectorid_;
|
||||
_impl_.effectorid_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::_internal_mutable_effectorid() {
|
||||
|
||||
if (_impl_.effectorid_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation());
|
||||
_impl_.effectorid_ = p;
|
||||
}
|
||||
return _impl_.effectorid_;
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::mutable_effectorid() {
|
||||
::messages::track::Identifier* _msg = _internal_mutable_effectorid();
|
||||
// @@protoc_insertion_point(field_mutable:messages.entity.order.EngageOrder.EffectorID)
|
||||
return _msg;
|
||||
}
|
||||
inline void EngageOrder::set_allocated_effectorid(::messages::track::Identifier* effectorid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.effectorid_);
|
||||
}
|
||||
if (effectorid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(effectorid));
|
||||
if (message_arena != submessage_arena) {
|
||||
effectorid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, effectorid, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.effectorid_ = effectorid;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.EngageOrder.EffectorID)
|
||||
}
|
||||
|
||||
// optional .messages.track.Identifier AmunitionID = 3;
|
||||
inline bool EngageOrder::_internal_has_amunitionid() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
||||
PROTOBUF_ASSUME(!value || _impl_.amunitionid_ != nullptr);
|
||||
return value;
|
||||
}
|
||||
inline bool EngageOrder::has_amunitionid() const {
|
||||
return _internal_has_amunitionid();
|
||||
}
|
||||
inline const ::messages::track::Identifier& EngageOrder::_internal_amunitionid() const {
|
||||
const ::messages::track::Identifier* p = _impl_.amunitionid_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(
|
||||
::messages::track::_Identifier_default_instance_);
|
||||
}
|
||||
inline const ::messages::track::Identifier& EngageOrder::amunitionid() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.EngageOrder.AmunitionID)
|
||||
return _internal_amunitionid();
|
||||
}
|
||||
inline void EngageOrder::unsafe_arena_set_allocated_amunitionid(
|
||||
::messages::track::Identifier* amunitionid) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.amunitionid_);
|
||||
}
|
||||
_impl_.amunitionid_ = amunitionid;
|
||||
if (amunitionid) {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.EngageOrder.AmunitionID)
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::release_amunitionid() {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
::messages::track::Identifier* temp = _impl_.amunitionid_;
|
||||
_impl_.amunitionid_ = 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* EngageOrder::unsafe_arena_release_amunitionid() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.EngageOrder.AmunitionID)
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
::messages::track::Identifier* temp = _impl_.amunitionid_;
|
||||
_impl_.amunitionid_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::_internal_mutable_amunitionid() {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
if (_impl_.amunitionid_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation());
|
||||
_impl_.amunitionid_ = p;
|
||||
}
|
||||
return _impl_.amunitionid_;
|
||||
}
|
||||
inline ::messages::track::Identifier* EngageOrder::mutable_amunitionid() {
|
||||
::messages::track::Identifier* _msg = _internal_mutable_amunitionid();
|
||||
// @@protoc_insertion_point(field_mutable:messages.entity.order.EngageOrder.AmunitionID)
|
||||
return _msg;
|
||||
}
|
||||
inline void EngageOrder::set_allocated_amunitionid(::messages::track::Identifier* amunitionid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.amunitionid_);
|
||||
}
|
||||
if (amunitionid) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(amunitionid));
|
||||
if (message_arena != submessage_arena) {
|
||||
amunitionid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, amunitionid, submessage_arena);
|
||||
}
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
_impl_.amunitionid_ = amunitionid;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.EngageOrder.AmunitionID)
|
||||
}
|
||||
|
||||
// optional uint32 salvoSize = 4;
|
||||
inline bool EngageOrder::_internal_has_salvosize() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool EngageOrder::has_salvosize() const {
|
||||
return _internal_has_salvosize();
|
||||
}
|
||||
inline void EngageOrder::clear_salvosize() {
|
||||
_impl_.salvosize_ = 0u;
|
||||
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline uint32_t EngageOrder::_internal_salvosize() const {
|
||||
return _impl_.salvosize_;
|
||||
}
|
||||
inline uint32_t EngageOrder::salvosize() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.EngageOrder.salvoSize)
|
||||
return _internal_salvosize();
|
||||
}
|
||||
inline void EngageOrder::_internal_set_salvosize(uint32_t value) {
|
||||
_impl_._has_bits_[0] |= 0x00000002u;
|
||||
_impl_.salvosize_ = value;
|
||||
}
|
||||
inline void EngageOrder::set_salvosize(uint32_t value) {
|
||||
_internal_set_salvosize(value);
|
||||
// @@protoc_insertion_point(field_set:messages.entity.order.EngageOrder.salvoSize)
|
||||
}
|
||||
|
||||
#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_EngageOrder_2eproto
|
||||
Reference in New Issue
Block a user