Gazebo Msgs

API Reference

9.5.0
dvl_beam_state.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/dvl_beam_state.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5fbeam_5fstate_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5fbeam_5fstate_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/unknown_field_set.h>
33 #include "gz/msgs/dvl_kinematic_estimate.pb.h"
34 #include "gz/msgs/dvl_range_estimate.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fdvl_5fbeam_5fstate_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fdvl_5fbeam_5fstate_2eproto
50 namespace gz {
51 namespace msgs {
52 class DVLBeamState;
53 class DVLBeamStateDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern DVLBeamStateDefaultTypeInternal _DVLBeamState_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::DVLBeamState* Arena::CreateMaybeMessage<::gz::msgs::DVLBeamState>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE DVLBeamState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.DVLBeamState) */ {
68  public:
69  DVLBeamState();
70  virtual ~DVLBeamState();
71 
72  DVLBeamState(const DVLBeamState& from);
73 
74  inline DVLBeamState& operator=(const DVLBeamState& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  DVLBeamState(DVLBeamState&& from) noexcept
80  : DVLBeamState() {
81  *this = ::std::move(from);
82  }
83 
84  inline DVLBeamState& operator=(DVLBeamState&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const DVLBeamState& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const DVLBeamState* internal_default_instance() {
98  return reinterpret_cast<const DVLBeamState*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(DVLBeamState* other);
105  friend void swap(DVLBeamState& a, DVLBeamState& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline DVLBeamState* New() const final {
112  return CreateMaybeMessage<DVLBeamState>(NULL);
113  }
114 
115  DVLBeamState* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<DVLBeamState>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const DVLBeamState& from);
121  void MergeFrom(const DVLBeamState& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(DVLBeamState* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // .gz.msgs.DVLKinematicEstimate velocity = 2;
155  bool has_velocity() const;
156  void clear_velocity();
157  static const int kVelocityFieldNumber = 2;
158  private:
159  const ::gz::msgs::DVLKinematicEstimate& _internal_velocity() const;
160  public:
161  const ::gz::msgs::DVLKinematicEstimate& velocity() const;
162  ::gz::msgs::DVLKinematicEstimate* release_velocity();
163  ::gz::msgs::DVLKinematicEstimate* mutable_velocity();
164  void set_allocated_velocity(::gz::msgs::DVLKinematicEstimate* velocity);
165 
166  // .gz.msgs.DVLRangeEstimate range = 3;
167  bool has_range() const;
168  void clear_range();
169  static const int kRangeFieldNumber = 3;
170  private:
171  const ::gz::msgs::DVLRangeEstimate& _internal_range() const;
172  public:
173  const ::gz::msgs::DVLRangeEstimate& range() const;
174  ::gz::msgs::DVLRangeEstimate* release_range();
175  ::gz::msgs::DVLRangeEstimate* mutable_range();
176  void set_allocated_range(::gz::msgs::DVLRangeEstimate* range);
177 
178  // int32 id = 1;
179  void clear_id();
180  static const int kIdFieldNumber = 1;
181  ::google::protobuf::int32 id() const;
182  void set_id(::google::protobuf::int32 value);
183 
184  // bool locked = 6;
185  void clear_locked();
186  static const int kLockedFieldNumber = 6;
187  bool locked() const;
188  void set_locked(bool value);
189 
190  // double rssi = 4;
191  void clear_rssi();
192  static const int kRssiFieldNumber = 4;
193  double rssi() const;
194  void set_rssi(double value);
195 
196  // double nsd = 5;
197  void clear_nsd();
198  static const int kNsdFieldNumber = 5;
199  double nsd() const;
200  void set_nsd(double value);
201 
202  // @@protoc_insertion_point(class_scope:gz.msgs.DVLBeamState)
203  private:
204 
205  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206  ::gz::msgs::DVLKinematicEstimate* velocity_;
207  ::gz::msgs::DVLRangeEstimate* range_;
208  ::google::protobuf::int32 id_;
209  bool locked_;
210  double rssi_;
211  double nsd_;
212  mutable ::google::protobuf::internal::CachedSize _cached_size_;
214 };
215 // ===================================================================
216 
217 
218 // ===================================================================
219 
220 #ifdef __GNUC__
221  #pragma GCC diagnostic push
222  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
223 #endif // __GNUC__
224 // DVLBeamState
225 
226 // int32 id = 1;
227 inline void DVLBeamState::clear_id() {
228  id_ = 0;
229 }
230 inline ::google::protobuf::int32 DVLBeamState::id() const {
231  // @@protoc_insertion_point(field_get:gz.msgs.DVLBeamState.id)
232  return id_;
233 }
234 inline void DVLBeamState::set_id(::google::protobuf::int32 value) {
235 
236  id_ = value;
237  // @@protoc_insertion_point(field_set:gz.msgs.DVLBeamState.id)
238 }
239 
240 // .gz.msgs.DVLKinematicEstimate velocity = 2;
241 inline bool DVLBeamState::has_velocity() const {
242  return this != internal_default_instance() && velocity_ != NULL;
243 }
244 inline const ::gz::msgs::DVLKinematicEstimate& DVLBeamState::_internal_velocity() const {
245  return *velocity_;
246 }
247 inline const ::gz::msgs::DVLKinematicEstimate& DVLBeamState::velocity() const {
248  const ::gz::msgs::DVLKinematicEstimate* p = velocity_;
249  // @@protoc_insertion_point(field_get:gz.msgs.DVLBeamState.velocity)
250  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::DVLKinematicEstimate*>(
252 }
253 inline ::gz::msgs::DVLKinematicEstimate* DVLBeamState::release_velocity() {
254  // @@protoc_insertion_point(field_release:gz.msgs.DVLBeamState.velocity)
255 
256  ::gz::msgs::DVLKinematicEstimate* temp = velocity_;
257  velocity_ = NULL;
258  return temp;
259 }
260 inline ::gz::msgs::DVLKinematicEstimate* DVLBeamState::mutable_velocity() {
261 
262  if (velocity_ == NULL) {
263  auto* p = CreateMaybeMessage<::gz::msgs::DVLKinematicEstimate>(GetArenaNoVirtual());
264  velocity_ = p;
265  }
266  // @@protoc_insertion_point(field_mutable:gz.msgs.DVLBeamState.velocity)
267  return velocity_;
268 }
270  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
271  if (message_arena == NULL) {
272  delete reinterpret_cast< ::google::protobuf::MessageLite*>(velocity_);
273  }
274  if (velocity) {
275  ::google::protobuf::Arena* submessage_arena = NULL;
276  if (message_arena != submessage_arena) {
277  velocity = ::google::protobuf::internal::GetOwnedMessage(
278  message_arena, velocity, submessage_arena);
279  }
280 
281  } else {
282 
283  }
284  velocity_ = velocity;
285  // @@protoc_insertion_point(field_set_allocated:gz.msgs.DVLBeamState.velocity)
286 }
287 
288 // .gz.msgs.DVLRangeEstimate range = 3;
289 inline bool DVLBeamState::has_range() const {
290  return this != internal_default_instance() && range_ != NULL;
291 }
292 inline const ::gz::msgs::DVLRangeEstimate& DVLBeamState::_internal_range() const {
293  return *range_;
294 }
295 inline const ::gz::msgs::DVLRangeEstimate& DVLBeamState::range() const {
296  const ::gz::msgs::DVLRangeEstimate* p = range_;
297  // @@protoc_insertion_point(field_get:gz.msgs.DVLBeamState.range)
298  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::DVLRangeEstimate*>(
300 }
301 inline ::gz::msgs::DVLRangeEstimate* DVLBeamState::release_range() {
302  // @@protoc_insertion_point(field_release:gz.msgs.DVLBeamState.range)
303 
304  ::gz::msgs::DVLRangeEstimate* temp = range_;
305  range_ = NULL;
306  return temp;
307 }
308 inline ::gz::msgs::DVLRangeEstimate* DVLBeamState::mutable_range() {
309 
310  if (range_ == NULL) {
311  auto* p = CreateMaybeMessage<::gz::msgs::DVLRangeEstimate>(GetArenaNoVirtual());
312  range_ = p;
313  }
314  // @@protoc_insertion_point(field_mutable:gz.msgs.DVLBeamState.range)
315  return range_;
316 }
318  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
319  if (message_arena == NULL) {
320  delete reinterpret_cast< ::google::protobuf::MessageLite*>(range_);
321  }
322  if (range) {
323  ::google::protobuf::Arena* submessage_arena = NULL;
324  if (message_arena != submessage_arena) {
325  range = ::google::protobuf::internal::GetOwnedMessage(
326  message_arena, range, submessage_arena);
327  }
328 
329  } else {
330 
331  }
332  range_ = range;
333  // @@protoc_insertion_point(field_set_allocated:gz.msgs.DVLBeamState.range)
334 }
335 
336 // double rssi = 4;
338  rssi_ = 0;
339 }
340 inline double DVLBeamState::rssi() const {
341  // @@protoc_insertion_point(field_get:gz.msgs.DVLBeamState.rssi)
342  return rssi_;
343 }
344 inline void DVLBeamState::set_rssi(double value) {
345 
346  rssi_ = value;
347  // @@protoc_insertion_point(field_set:gz.msgs.DVLBeamState.rssi)
348 }
349 
350 // double nsd = 5;
351 inline void DVLBeamState::clear_nsd() {
352  nsd_ = 0;
353 }
354 inline double DVLBeamState::nsd() const {
355  // @@protoc_insertion_point(field_get:gz.msgs.DVLBeamState.nsd)
356  return nsd_;
357 }
358 inline void DVLBeamState::set_nsd(double value) {
359 
360  nsd_ = value;
361  // @@protoc_insertion_point(field_set:gz.msgs.DVLBeamState.nsd)
362 }
363 
364 // bool locked = 6;
366  locked_ = false;
367 }
368 inline bool DVLBeamState::locked() const {
369  // @@protoc_insertion_point(field_get:gz.msgs.DVLBeamState.locked)
370  return locked_;
371 }
372 inline void DVLBeamState::set_locked(bool value) {
373 
374  locked_ = value;
375  // @@protoc_insertion_point(field_set:gz.msgs.DVLBeamState.locked)
376 }
377 
378 #ifdef __GNUC__
379  #pragma GCC diagnostic pop
380 #endif // __GNUC__
381 
382 // @@protoc_insertion_point(namespace_scope)
383 
384 } // namespace msgs
385 } // namespace gz
386 
387 // @@protoc_insertion_point(global_scope)
388 
389 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fdvl_5fbeam_5fstate_2eproto