Gazebo Msgs

API Reference

9.5.1
dvl_tracking_target.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/dvl_tracking_target.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
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[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto
51 namespace gz {
52 namespace msgs {
53 class DVLTrackingTarget;
54 class DVLTrackingTargetDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern DVLTrackingTargetDefaultTypeInternal _DVLTrackingTarget_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::DVLTrackingTarget* Arena::CreateMaybeMessage<::gz::msgs::DVLTrackingTarget>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
72 };
73 GZ_MSGS_VISIBLE bool DVLTrackingTarget_TargetType_IsValid(int value);
77 
78 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* DVLTrackingTarget_TargetType_descriptor();
80  return ::google::protobuf::internal::NameOfEnum(
82 }
84  const ::std::string& name, DVLTrackingTarget_TargetType* value) {
85  return ::google::protobuf::internal::ParseNamedEnum<DVLTrackingTarget_TargetType>(
87 }
88 // ===================================================================
89 
90 class GZ_MSGS_VISIBLE DVLTrackingTarget : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.DVLTrackingTarget) */ {
91  public:
93  virtual ~DVLTrackingTarget();
94 
96 
98  CopyFrom(from);
99  return *this;
100  }
101  #if LANG_CXX11
102  DVLTrackingTarget(DVLTrackingTarget&& from) noexcept
103  : DVLTrackingTarget() {
104  *this = ::std::move(from);
105  }
106 
107  inline DVLTrackingTarget& operator=(DVLTrackingTarget&& from) noexcept {
108  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
109  if (this != &from) InternalSwap(&from);
110  } else {
111  CopyFrom(from);
112  }
113  return *this;
114  }
115  #endif
116  static const ::google::protobuf::Descriptor* descriptor();
117  static const DVLTrackingTarget& default_instance();
118 
119  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
121  return reinterpret_cast<const DVLTrackingTarget*>(
123  }
124  static constexpr int kIndexInFileMessages =
125  0;
126 
127  void Swap(DVLTrackingTarget* other);
129  a.Swap(&b);
130  }
131 
132  // implements Message ----------------------------------------------
133 
134  inline DVLTrackingTarget* New() const final {
135  return CreateMaybeMessage<DVLTrackingTarget>(NULL);
136  }
137 
138  DVLTrackingTarget* New(::google::protobuf::Arena* arena) const final {
139  return CreateMaybeMessage<DVLTrackingTarget>(arena);
140  }
141  void CopyFrom(const ::google::protobuf::Message& from) final;
142  void MergeFrom(const ::google::protobuf::Message& from) final;
143  void CopyFrom(const DVLTrackingTarget& from);
144  void MergeFrom(const DVLTrackingTarget& from);
145  void Clear() final;
146  bool IsInitialized() const final;
147 
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(); }
156 
157  private:
158  void SharedCtor();
159  void SharedDtor();
160  void SetCachedSize(int size) const final;
161  void InternalSwap(DVLTrackingTarget* other);
162  private:
163  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
164  return NULL;
165  }
166  inline void* MaybeArenaPtr() const {
167  return NULL;
168  }
169  public:
170 
171  ::google::protobuf::Metadata GetMetadata() const final;
172 
173  // nested types ----------------------------------------------------
174 
176  static const TargetType DVL_TARGET_UNSPECIFIED =
178  static const TargetType DVL_TARGET_BOTTOM =
180  static const TargetType DVL_TARGET_WATER_MASS =
182  static inline bool TargetType_IsValid(int value) {
184  }
185  static const TargetType TargetType_MIN =
187  static const TargetType TargetType_MAX =
189  static const int TargetType_ARRAYSIZE =
191  static inline const ::google::protobuf::EnumDescriptor*
194  }
195  static inline const ::std::string& TargetType_Name(TargetType value) {
196  return DVLTrackingTarget_TargetType_Name(value);
197  }
198  static inline bool TargetType_Parse(const ::std::string& name,
199  TargetType* value) {
200  return DVLTrackingTarget_TargetType_Parse(name, value);
201  }
202 
203  // accessors -------------------------------------------------------
204 
205  // .gz.msgs.DVLRangeEstimate range = 2;
206  bool has_range() const;
207  void clear_range();
208  static const int kRangeFieldNumber = 2;
209  private:
210  const ::gz::msgs::DVLRangeEstimate& _internal_range() const;
211  public:
212  const ::gz::msgs::DVLRangeEstimate& range() const;
213  ::gz::msgs::DVLRangeEstimate* release_range();
214  ::gz::msgs::DVLRangeEstimate* mutable_range();
215  void set_allocated_range(::gz::msgs::DVLRangeEstimate* range);
216 
217  // .gz.msgs.DVLKinematicEstimate position = 3;
218  bool has_position() const;
219  void clear_position();
220  static const int kPositionFieldNumber = 3;
221  private:
222  const ::gz::msgs::DVLKinematicEstimate& _internal_position() const;
223  public:
224  const ::gz::msgs::DVLKinematicEstimate& position() const;
225  ::gz::msgs::DVLKinematicEstimate* release_position();
226  ::gz::msgs::DVLKinematicEstimate* mutable_position();
227  void set_allocated_position(::gz::msgs::DVLKinematicEstimate* position);
228 
229  // .gz.msgs.DVLTrackingTarget.TargetType type = 1;
230  void clear_type();
231  static const int kTypeFieldNumber = 1;
233  void set_type(::gz::msgs::DVLTrackingTarget_TargetType value);
234 
235  // @@protoc_insertion_point(class_scope:gz.msgs.DVLTrackingTarget)
236  private:
237 
238  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
241  int type_;
242  mutable ::google::protobuf::internal::CachedSize _cached_size_;
243  friend struct ::protobuf_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto::TableStruct;
244 };
245 // ===================================================================
246 
247 
248 // ===================================================================
249 
250 #ifdef __GNUC__
251  #pragma GCC diagnostic push
252  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
253 #endif // __GNUC__
254 // DVLTrackingTarget
255 
256 // .gz.msgs.DVLTrackingTarget.TargetType type = 1;
258  type_ = 0;
259 }
261  // @@protoc_insertion_point(field_get:gz.msgs.DVLTrackingTarget.type)
262  return static_cast< ::gz::msgs::DVLTrackingTarget_TargetType >(type_);
263 }
265 
266  type_ = value;
267  // @@protoc_insertion_point(field_set:gz.msgs.DVLTrackingTarget.type)
268 }
269 
270 // .gz.msgs.DVLRangeEstimate range = 2;
271 inline bool DVLTrackingTarget::has_range() const {
272  return this != internal_default_instance() && range_ != NULL;
273 }
274 inline const ::gz::msgs::DVLRangeEstimate& DVLTrackingTarget::_internal_range() const {
275  return *range_;
276 }
277 inline const ::gz::msgs::DVLRangeEstimate& DVLTrackingTarget::range() const {
278  const ::gz::msgs::DVLRangeEstimate* p = range_;
279  // @@protoc_insertion_point(field_get:gz.msgs.DVLTrackingTarget.range)
280  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::DVLRangeEstimate*>(
282 }
283 inline ::gz::msgs::DVLRangeEstimate* DVLTrackingTarget::release_range() {
284  // @@protoc_insertion_point(field_release:gz.msgs.DVLTrackingTarget.range)
285 
286  ::gz::msgs::DVLRangeEstimate* temp = range_;
287  range_ = NULL;
288  return temp;
289 }
290 inline ::gz::msgs::DVLRangeEstimate* DVLTrackingTarget::mutable_range() {
291 
292  if (range_ == NULL) {
293  auto* p = CreateMaybeMessage<::gz::msgs::DVLRangeEstimate>(GetArenaNoVirtual());
294  range_ = p;
295  }
296  // @@protoc_insertion_point(field_mutable:gz.msgs.DVLTrackingTarget.range)
297  return range_;
298 }
300  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
301  if (message_arena == NULL) {
302  delete reinterpret_cast< ::google::protobuf::MessageLite*>(range_);
303  }
304  if (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);
309  }
310 
311  } else {
312 
313  }
314  range_ = range;
315  // @@protoc_insertion_point(field_set_allocated:gz.msgs.DVLTrackingTarget.range)
316 }
317 
318 // .gz.msgs.DVLKinematicEstimate position = 3;
319 inline bool DVLTrackingTarget::has_position() const {
320  return this != internal_default_instance() && position_ != NULL;
321 }
322 inline const ::gz::msgs::DVLKinematicEstimate& DVLTrackingTarget::_internal_position() const {
323  return *position_;
324 }
325 inline const ::gz::msgs::DVLKinematicEstimate& DVLTrackingTarget::position() const {
326  const ::gz::msgs::DVLKinematicEstimate* p = position_;
327  // @@protoc_insertion_point(field_get:gz.msgs.DVLTrackingTarget.position)
328  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::DVLKinematicEstimate*>(
330 }
331 inline ::gz::msgs::DVLKinematicEstimate* DVLTrackingTarget::release_position() {
332  // @@protoc_insertion_point(field_release:gz.msgs.DVLTrackingTarget.position)
333 
334  ::gz::msgs::DVLKinematicEstimate* temp = position_;
335  position_ = NULL;
336  return temp;
337 }
338 inline ::gz::msgs::DVLKinematicEstimate* DVLTrackingTarget::mutable_position() {
339 
340  if (position_ == NULL) {
341  auto* p = CreateMaybeMessage<::gz::msgs::DVLKinematicEstimate>(GetArenaNoVirtual());
342  position_ = p;
343  }
344  // @@protoc_insertion_point(field_mutable:gz.msgs.DVLTrackingTarget.position)
345  return position_;
346 }
348  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
349  if (message_arena == NULL) {
350  delete reinterpret_cast< ::google::protobuf::MessageLite*>(position_);
351  }
352  if (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);
357  }
358 
359  } else {
360 
361  }
362  position_ = position;
363  // @@protoc_insertion_point(field_set_allocated:gz.msgs.DVLTrackingTarget.position)
364 }
365 
366 #ifdef __GNUC__
367  #pragma GCC diagnostic pop
368 #endif // __GNUC__
369 
370 // @@protoc_insertion_point(namespace_scope)
371 
372 } // namespace msgs
373 } // namespace gz
374 
375 namespace google {
376 namespace protobuf {
377 
378 template <> struct is_proto_enum< ::gz::msgs::DVLTrackingTarget_TargetType> : ::std::true_type {};
379 template <>
380 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::DVLTrackingTarget_TargetType>() {
382 }
383 
384 } // namespace protobuf
385 } // namespace google
386 
387 // @@protoc_insertion_point(global_scope)
388 
389 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5ftracking_5ftarget_2eproto