ADD: added new version of Orders and a first use in the entity base class
This commit is contained in:
@@ -186,10 +186,11 @@ class MoveOrder final :
|
||||
|
||||
enum : int {
|
||||
kGeocentricPositionFieldNumber = 1,
|
||||
kStartingTimeFieldNumber = 3,
|
||||
kStartingTimeFieldNumber = 4,
|
||||
kSpeedFieldNumber = 2,
|
||||
kCourseFieldNumber = 3,
|
||||
};
|
||||
// .messages.track.EntityGeocentricPosition GeocentricPosition = 1;
|
||||
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 1;
|
||||
bool has_geocentricposition() const;
|
||||
private:
|
||||
bool _internal_has_geocentricposition() const;
|
||||
@@ -207,7 +208,7 @@ class MoveOrder final :
|
||||
::messages::track::EntityGeocentricPosition* geocentricposition);
|
||||
::messages::track::EntityGeocentricPosition* unsafe_arena_release_geocentricposition();
|
||||
|
||||
// optional .google.protobuf.Timestamp startingTime = 3;
|
||||
// optional .google.protobuf.Timestamp startingTime = 4;
|
||||
bool has_startingtime() const;
|
||||
private:
|
||||
bool _internal_has_startingtime() const;
|
||||
@@ -238,6 +239,19 @@ class MoveOrder final :
|
||||
void _internal_set_speed(double value);
|
||||
public:
|
||||
|
||||
// optional double course = 3;
|
||||
bool has_course() const;
|
||||
private:
|
||||
bool _internal_has_course() const;
|
||||
public:
|
||||
void clear_course();
|
||||
double course() const;
|
||||
void set_course(double value);
|
||||
private:
|
||||
double _internal_course() const;
|
||||
void _internal_set_course(double value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:messages.entity.order.MoveOrder)
|
||||
private:
|
||||
class _Internal;
|
||||
@@ -251,6 +265,7 @@ class MoveOrder final :
|
||||
::messages::track::EntityGeocentricPosition* geocentricposition_;
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* startingtime_;
|
||||
double speed_;
|
||||
double course_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_MoveOrder_2eproto;
|
||||
@@ -266,9 +281,11 @@ class MoveOrder final :
|
||||
#endif // __GNUC__
|
||||
// MoveOrder
|
||||
|
||||
// .messages.track.EntityGeocentricPosition GeocentricPosition = 1;
|
||||
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 1;
|
||||
inline bool MoveOrder::_internal_has_geocentricposition() const {
|
||||
return this != internal_default_instance() && _impl_.geocentricposition_ != nullptr;
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
||||
PROTOBUF_ASSUME(!value || _impl_.geocentricposition_ != nullptr);
|
||||
return value;
|
||||
}
|
||||
inline bool MoveOrder::has_geocentricposition() const {
|
||||
return _internal_has_geocentricposition();
|
||||
@@ -289,14 +306,14 @@ inline void MoveOrder::unsafe_arena_set_allocated_geocentricposition(
|
||||
}
|
||||
_impl_.geocentricposition_ = geocentricposition;
|
||||
if (geocentricposition) {
|
||||
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.MoveOrder.GeocentricPosition)
|
||||
}
|
||||
inline ::messages::track::EntityGeocentricPosition* MoveOrder::release_geocentricposition() {
|
||||
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
::messages::track::EntityGeocentricPosition* temp = _impl_.geocentricposition_;
|
||||
_impl_.geocentricposition_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
@@ -312,13 +329,13 @@ inline ::messages::track::EntityGeocentricPosition* MoveOrder::release_geocentri
|
||||
}
|
||||
inline ::messages::track::EntityGeocentricPosition* MoveOrder::unsafe_arena_release_geocentricposition() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.MoveOrder.GeocentricPosition)
|
||||
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
::messages::track::EntityGeocentricPosition* temp = _impl_.geocentricposition_;
|
||||
_impl_.geocentricposition_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::messages::track::EntityGeocentricPosition* MoveOrder::_internal_mutable_geocentricposition() {
|
||||
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
if (_impl_.geocentricposition_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::messages::track::EntityGeocentricPosition>(GetArenaForAllocation());
|
||||
_impl_.geocentricposition_ = p;
|
||||
@@ -343,9 +360,9 @@ inline void MoveOrder::set_allocated_geocentricposition(::messages::track::Entit
|
||||
geocentricposition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, geocentricposition, submessage_arena);
|
||||
}
|
||||
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
_impl_.geocentricposition_ = geocentricposition;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.MoveOrder.GeocentricPosition)
|
||||
@@ -353,7 +370,7 @@ inline void MoveOrder::set_allocated_geocentricposition(::messages::track::Entit
|
||||
|
||||
// optional double speed = 2;
|
||||
inline bool MoveOrder::_internal_has_speed() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool MoveOrder::has_speed() const {
|
||||
@@ -361,7 +378,7 @@ inline bool MoveOrder::has_speed() const {
|
||||
}
|
||||
inline void MoveOrder::clear_speed() {
|
||||
_impl_.speed_ = 0;
|
||||
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||
_impl_._has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline double MoveOrder::_internal_speed() const {
|
||||
return _impl_.speed_;
|
||||
@@ -371,7 +388,7 @@ inline double MoveOrder::speed() const {
|
||||
return _internal_speed();
|
||||
}
|
||||
inline void MoveOrder::_internal_set_speed(double value) {
|
||||
_impl_._has_bits_[0] |= 0x00000002u;
|
||||
_impl_._has_bits_[0] |= 0x00000004u;
|
||||
_impl_.speed_ = value;
|
||||
}
|
||||
inline void MoveOrder::set_speed(double value) {
|
||||
@@ -379,9 +396,37 @@ inline void MoveOrder::set_speed(double value) {
|
||||
// @@protoc_insertion_point(field_set:messages.entity.order.MoveOrder.speed)
|
||||
}
|
||||
|
||||
// optional .google.protobuf.Timestamp startingTime = 3;
|
||||
// optional double course = 3;
|
||||
inline bool MoveOrder::_internal_has_course() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool MoveOrder::has_course() const {
|
||||
return _internal_has_course();
|
||||
}
|
||||
inline void MoveOrder::clear_course() {
|
||||
_impl_.course_ = 0;
|
||||
_impl_._has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline double MoveOrder::_internal_course() const {
|
||||
return _impl_.course_;
|
||||
}
|
||||
inline double MoveOrder::course() const {
|
||||
// @@protoc_insertion_point(field_get:messages.entity.order.MoveOrder.course)
|
||||
return _internal_course();
|
||||
}
|
||||
inline void MoveOrder::_internal_set_course(double value) {
|
||||
_impl_._has_bits_[0] |= 0x00000008u;
|
||||
_impl_.course_ = value;
|
||||
}
|
||||
inline void MoveOrder::set_course(double value) {
|
||||
_internal_set_course(value);
|
||||
// @@protoc_insertion_point(field_set:messages.entity.order.MoveOrder.course)
|
||||
}
|
||||
|
||||
// optional .google.protobuf.Timestamp startingTime = 4;
|
||||
inline bool MoveOrder::_internal_has_startingtime() const {
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
||||
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
||||
PROTOBUF_ASSUME(!value || _impl_.startingtime_ != nullptr);
|
||||
return value;
|
||||
}
|
||||
@@ -404,14 +449,14 @@ inline void MoveOrder::unsafe_arena_set_allocated_startingtime(
|
||||
}
|
||||
_impl_.startingtime_ = startingtime;
|
||||
if (startingtime) {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
_impl_._has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.entity.order.MoveOrder.startingTime)
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MoveOrder::release_startingtime() {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.startingtime_;
|
||||
_impl_.startingtime_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
@@ -427,13 +472,13 @@ inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MoveOrder::release_startingtime() {
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MoveOrder::unsafe_arena_release_startingtime() {
|
||||
// @@protoc_insertion_point(field_release:messages.entity.order.MoveOrder.startingTime)
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||
::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.startingtime_;
|
||||
_impl_.startingtime_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MoveOrder::_internal_mutable_startingtime() {
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
_impl_._has_bits_[0] |= 0x00000002u;
|
||||
if (_impl_.startingtime_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation());
|
||||
_impl_.startingtime_ = p;
|
||||
@@ -458,9 +503,9 @@ inline void MoveOrder::set_allocated_startingtime(::PROTOBUF_NAMESPACE_ID::Times
|
||||
startingtime = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, startingtime, submessage_arena);
|
||||
}
|
||||
_impl_._has_bits_[0] |= 0x00000001u;
|
||||
_impl_._has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
_impl_._has_bits_[0] &= ~0x00000001u;
|
||||
_impl_._has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
_impl_.startingtime_ = startingtime;
|
||||
// @@protoc_insertion_point(field_set_allocated:messages.entity.order.MoveOrder.startingTime)
|
||||
|
||||
Reference in New Issue
Block a user