4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5fvelocity_5ftracking_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5fvelocity_5ftracking_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/header.pb.h"
35 #include "gz/msgs/dvl_beam_state.pb.h"
36 #include "gz/msgs/dvl_tracking_target.pb.h"
37 #include "gz/msgs/dvl_kinematic_estimate.pb.h"
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdvl_5fvelocity_5ftracking_2eproto GZ_MSGS_VISIBLE
44 static const ::google::protobuf::internal::ParseTableField entries[];
45 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
46 static const ::google::protobuf::internal::ParseTable schema[1];
47 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
48 static const ::google::protobuf::internal::SerializationTable serialization_table[];
49 static const ::google::protobuf::uint32 offsets[];
55 class DVLVelocityTracking;
56 class DVLVelocityTrackingDefaultTypeInternal;
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::DVLVelocityTracking* Arena::CreateMaybeMessage<::gz::msgs::DVLVelocityTracking>(Arena*);
82 return ::google::protobuf::internal::NameOfEnum(
87 return ::google::protobuf::internal::ParseNamedEnum<DVLVelocityTracking_DVLType>(
106 *
this = ::std::move(from);
109 inline DVLVelocityTracking& operator=(DVLVelocityTracking&& from) noexcept {
110 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
111 if (
this != &from) InternalSwap(&from);
118 static const ::google::protobuf::Descriptor* descriptor();
119 static const DVLVelocityTracking& default_instance();
121 static void InitAsDefaultInstance();
126 static constexpr
int kIndexInFileMessages =
137 return CreateMaybeMessage<DVLVelocityTracking>(NULL);
141 return CreateMaybeMessage<DVLVelocityTracking>(arena);
143 void CopyFrom(const ::google::protobuf::Message& from)
final;
144 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 bool IsInitialized() const final;
150 size_t ByteSizeLong() const final;
151 bool MergePartialFromCodedStream(
152 ::
google::protobuf::io::CodedInputStream* input) final;
153 void SerializeWithCachedSizes(
154 ::
google::protobuf::io::CodedOutputStream* output) const final;
155 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
156 bool deterministic, ::
google::protobuf::uint8* target) const final;
157 int GetCachedSize() const final {
return _cached_size_.Get(); }
162 void SetCachedSize(
int size)
const final;
165 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
168 inline void* MaybeArenaPtr()
const {
173 ::google::protobuf::Metadata GetMetadata() const final;
184 static inline
bool DVLType_IsValid(
int value) {
191 static const int DVLType_ARRAYSIZE =
193 static inline const ::google::protobuf::EnumDescriptor*
208 int beams_size()
const;
210 static const int kBeamsFieldNumber = 5;
212 ::google::protobuf::RepeatedPtrField< ::gz::msgs::DVLBeamState >*
214 const ::gz::msgs::DVLBeamState& beams(
int index)
const;
216 const ::google::protobuf::RepeatedPtrField< ::gz::msgs::DVLBeamState >&
220 bool has_header()
const;
222 static const int kHeaderFieldNumber = 1;
224 const ::gz::msgs::Header& _internal_header()
const;
226 const ::gz::msgs::Header& header()
const;
232 bool has_target()
const;
234 static const int kTargetFieldNumber = 3;
236 const ::gz::msgs::DVLTrackingTarget& _internal_target()
const;
238 const ::gz::msgs::DVLTrackingTarget& target()
const;
244 bool has_velocity()
const;
245 void clear_velocity();
246 static const int kVelocityFieldNumber = 4;
248 const ::gz::msgs::DVLKinematicEstimate& _internal_velocity()
const;
250 const ::gz::msgs::DVLKinematicEstimate& velocity()
const;
257 static const int kTypeFieldNumber = 2;
263 static const int kStatusFieldNumber = 6;
264 ::google::protobuf::int32 status()
const;
265 void set_status(::google::protobuf::int32 value);
270 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
271 ::google::protobuf::RepeatedPtrField< ::gz::msgs::DVLBeamState > beams_;
276 ::google::protobuf::int32 status_;
277 mutable ::google::protobuf::internal::CachedSize _cached_size_;
278 friend struct ::protobuf_gz_2fmsgs_2fdvl_5fvelocity_5ftracking_2eproto::TableStruct;
286 #pragma GCC diagnostic push
287 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
295 inline const ::gz::msgs::Header& DVLVelocityTracking::_internal_header()
const {
299 const ::gz::msgs::Header* p = header_;
313 if (header_ == NULL) {
314 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
321 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
322 if (message_arena == NULL) {
323 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
326 ::google::protobuf::Arena* submessage_arena = NULL;
327 if (message_arena != submessage_arena) {
328 header = ::google::protobuf::internal::GetOwnedMessage(
329 message_arena,
header, submessage_arena);
357 inline const ::gz::msgs::DVLTrackingTarget& DVLVelocityTracking::_internal_target()
const {
361 const ::gz::msgs::DVLTrackingTarget* p = target_;
375 if (target_ == NULL) {
376 auto* p = CreateMaybeMessage<::gz::msgs::DVLTrackingTarget>(GetArenaNoVirtual());
383 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
384 if (message_arena == NULL) {
385 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(target_);
388 ::google::protobuf::Arena* submessage_arena = NULL;
389 if (message_arena != submessage_arena) {
390 target = ::google::protobuf::internal::GetOwnedMessage(
391 message_arena,
target, submessage_arena);
405 inline const ::gz::msgs::DVLKinematicEstimate& DVLVelocityTracking::_internal_velocity()
const {
409 const ::gz::msgs::DVLKinematicEstimate* p = velocity_;
423 if (velocity_ == NULL) {
424 auto* p = CreateMaybeMessage<::gz::msgs::DVLKinematicEstimate>(GetArenaNoVirtual());
431 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
432 if (message_arena == NULL) {
433 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(velocity_);
436 ::google::protobuf::Arena* submessage_arena = NULL;
437 if (message_arena != submessage_arena) {
438 velocity = ::google::protobuf::internal::GetOwnedMessage(
439 message_arena,
velocity, submessage_arena);
451 return beams_.size();
455 return beams_.Mutable(index);
457 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::DVLBeamState >*
464 return beams_.Get(index);
470 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::DVLBeamState >&
491 #pragma GCC diagnostic pop
504 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::DVLVelocityTracking_DVLType>() {
513 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5fvelocity_5ftracking_2eproto