4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/dvl_kinematic_estimate.pb.h"
35 #include "gz/msgs/dvl_range_estimate.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
53 class DVLTrackingTarget;
54 class DVLTrackingTargetDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::DVLTrackingTarget* Arena::CreateMaybeMessage<::gz::msgs::DVLTrackingTarget>(Arena*);
80 return ::google::protobuf::internal::NameOfEnum(
85 return ::google::protobuf::internal::ParseNamedEnum<DVLTrackingTarget_TargetType>(
104 *
this = ::std::move(from);
107 inline DVLTrackingTarget& operator=(DVLTrackingTarget&& from) noexcept {
108 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
109 if (
this != &from) InternalSwap(&from);
116 static const ::google::protobuf::Descriptor* descriptor();
117 static const DVLTrackingTarget& default_instance();
119 static void InitAsDefaultInstance();
124 static constexpr
int kIndexInFileMessages =
135 return CreateMaybeMessage<DVLTrackingTarget>(NULL);
139 return CreateMaybeMessage<DVLTrackingTarget>(arena);
141 void CopyFrom(const ::google::protobuf::Message& from)
final;
142 void MergeFrom(const ::google::protobuf::Message& from)
final;
146 bool IsInitialized() const final;
148 size_t ByteSizeLong() const final;
149 bool MergePartialFromCodedStream(
150 ::
google::protobuf::io::CodedInputStream* input) final;
151 void SerializeWithCachedSizes(
152 ::
google::protobuf::io::CodedOutputStream* output) const final;
153 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
154 bool deterministic, ::
google::protobuf::uint8* target) const final;
155 int GetCachedSize() const final {
return _cached_size_.Get(); }
160 void SetCachedSize(
int size)
const final;
163 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
166 inline void* MaybeArenaPtr()
const {
171 ::google::protobuf::Metadata GetMetadata() const final;
182 static inline
bool TargetType_IsValid(
int value) {
189 static const int TargetType_ARRAYSIZE =
191 static inline const ::google::protobuf::EnumDescriptor*
206 bool has_range()
const;
208 static const int kRangeFieldNumber = 2;
210 const ::gz::msgs::DVLRangeEstimate& _internal_range()
const;
212 const ::gz::msgs::DVLRangeEstimate& range()
const;
218 bool has_position()
const;
219 void clear_position();
220 static const int kPositionFieldNumber = 3;
222 const ::gz::msgs::DVLKinematicEstimate& _internal_position()
const;
224 const ::gz::msgs::DVLKinematicEstimate& position()
const;
231 static const int kTypeFieldNumber = 1;
238 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
242 mutable ::google::protobuf::internal::CachedSize _cached_size_;
243 friend struct ::protobuf_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto::TableStruct;
251 #pragma GCC diagnostic push
252 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
274 inline const ::gz::msgs::DVLRangeEstimate& DVLTrackingTarget::_internal_range()
const {
278 const ::gz::msgs::DVLRangeEstimate* p = range_;
292 if (range_ == NULL) {
293 auto* p = CreateMaybeMessage<::gz::msgs::DVLRangeEstimate>(GetArenaNoVirtual());
300 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
301 if (message_arena == NULL) {
302 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(range_);
305 ::google::protobuf::Arena* submessage_arena = NULL;
306 if (message_arena != submessage_arena) {
307 range = ::google::protobuf::internal::GetOwnedMessage(
308 message_arena,
range, submessage_arena);
322 inline const ::gz::msgs::DVLKinematicEstimate& DVLTrackingTarget::_internal_position()
const {
326 const ::gz::msgs::DVLKinematicEstimate* p = position_;
340 if (position_ == NULL) {
341 auto* p = CreateMaybeMessage<::gz::msgs::DVLKinematicEstimate>(GetArenaNoVirtual());
348 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
349 if (message_arena == NULL) {
350 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(position_);
353 ::google::protobuf::Arena* submessage_arena = NULL;
354 if (message_arena != submessage_arena) {
355 position = ::google::protobuf::internal::GetOwnedMessage(
356 message_arena,
position, submessage_arena);
367 #pragma GCC diagnostic pop
380 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::DVLTrackingTarget_TargetType>() {
389 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto