Gazebo Msgs

API Reference

9.5.1
magnetometer_sensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/magnetometer_sensor.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fmagnetometer_5fsensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fmagnetometer_5fsensor_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/header.pb.h"
34 #include "gz/msgs/sensor_noise.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fmagnetometer_5fsensor_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_2fmagnetometer_5fsensor_2eproto
50 namespace gz {
51 namespace msgs {
52 class MagnetometerSensor;
53 class MagnetometerSensorDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern MagnetometerSensorDefaultTypeInternal _MagnetometerSensor_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::MagnetometerSensor* Arena::CreateMaybeMessage<::gz::msgs::MagnetometerSensor>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE MagnetometerSensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.MagnetometerSensor) */ {
68  public:
70  virtual ~MagnetometerSensor();
71 
73 
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  MagnetometerSensor(MagnetometerSensor&& from) noexcept
80  : MagnetometerSensor() {
81  *this = ::std::move(from);
82  }
83 
84  inline MagnetometerSensor& operator=(MagnetometerSensor&& 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 MagnetometerSensor& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  return reinterpret_cast<const MagnetometerSensor*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(MagnetometerSensor* other);
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline MagnetometerSensor* New() const final {
112  return CreateMaybeMessage<MagnetometerSensor>(NULL);
113  }
114 
115  MagnetometerSensor* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<MagnetometerSensor>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const MagnetometerSensor& from);
121  void MergeFrom(const MagnetometerSensor& 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(MagnetometerSensor* 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.Header header = 1;
155  bool has_header() const;
156  void clear_header();
157  static const int kHeaderFieldNumber = 1;
158  private:
159  const ::gz::msgs::Header& _internal_header() const;
160  public:
161  const ::gz::msgs::Header& header() const;
162  ::gz::msgs::Header* release_header();
163  ::gz::msgs::Header* mutable_header();
164  void set_allocated_header(::gz::msgs::Header* header);
165 
166  // .gz.msgs.SensorNoise x_noise = 2;
167  bool has_x_noise() const;
168  void clear_x_noise();
169  static const int kXNoiseFieldNumber = 2;
170  private:
171  const ::gz::msgs::SensorNoise& _internal_x_noise() const;
172  public:
173  const ::gz::msgs::SensorNoise& x_noise() const;
174  ::gz::msgs::SensorNoise* release_x_noise();
175  ::gz::msgs::SensorNoise* mutable_x_noise();
176  void set_allocated_x_noise(::gz::msgs::SensorNoise* x_noise);
177 
178  // .gz.msgs.SensorNoise y_noise = 3;
179  bool has_y_noise() const;
180  void clear_y_noise();
181  static const int kYNoiseFieldNumber = 3;
182  private:
183  const ::gz::msgs::SensorNoise& _internal_y_noise() const;
184  public:
185  const ::gz::msgs::SensorNoise& y_noise() const;
186  ::gz::msgs::SensorNoise* release_y_noise();
187  ::gz::msgs::SensorNoise* mutable_y_noise();
188  void set_allocated_y_noise(::gz::msgs::SensorNoise* y_noise);
189 
190  // .gz.msgs.SensorNoise z_noise = 4;
191  bool has_z_noise() const;
192  void clear_z_noise();
193  static const int kZNoiseFieldNumber = 4;
194  private:
195  const ::gz::msgs::SensorNoise& _internal_z_noise() const;
196  public:
197  const ::gz::msgs::SensorNoise& z_noise() const;
198  ::gz::msgs::SensorNoise* release_z_noise();
199  ::gz::msgs::SensorNoise* mutable_z_noise();
200  void set_allocated_z_noise(::gz::msgs::SensorNoise* z_noise);
201 
202  // @@protoc_insertion_point(class_scope:gz.msgs.MagnetometerSensor)
203  private:
204 
205  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206  ::gz::msgs::Header* header_;
207  ::gz::msgs::SensorNoise* x_noise_;
208  ::gz::msgs::SensorNoise* y_noise_;
209  ::gz::msgs::SensorNoise* z_noise_;
210  mutable ::google::protobuf::internal::CachedSize _cached_size_;
212 };
213 // ===================================================================
214 
215 
216 // ===================================================================
217 
218 #ifdef __GNUC__
219  #pragma GCC diagnostic push
220  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
221 #endif // __GNUC__
222 // MagnetometerSensor
223 
224 // .gz.msgs.Header header = 1;
225 inline bool MagnetometerSensor::has_header() const {
226  return this != internal_default_instance() && header_ != NULL;
227 }
228 inline const ::gz::msgs::Header& MagnetometerSensor::_internal_header() const {
229  return *header_;
230 }
231 inline const ::gz::msgs::Header& MagnetometerSensor::header() const {
232  const ::gz::msgs::Header* p = header_;
233  // @@protoc_insertion_point(field_get:gz.msgs.MagnetometerSensor.header)
234  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
236 }
237 inline ::gz::msgs::Header* MagnetometerSensor::release_header() {
238  // @@protoc_insertion_point(field_release:gz.msgs.MagnetometerSensor.header)
239 
240  ::gz::msgs::Header* temp = header_;
241  header_ = NULL;
242  return temp;
243 }
244 inline ::gz::msgs::Header* MagnetometerSensor::mutable_header() {
245 
246  if (header_ == NULL) {
247  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
248  header_ = p;
249  }
250  // @@protoc_insertion_point(field_mutable:gz.msgs.MagnetometerSensor.header)
251  return header_;
252 }
254  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
255  if (message_arena == NULL) {
256  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
257  }
258  if (header) {
259  ::google::protobuf::Arena* submessage_arena = NULL;
260  if (message_arena != submessage_arena) {
261  header = ::google::protobuf::internal::GetOwnedMessage(
262  message_arena, header, submessage_arena);
263  }
264 
265  } else {
266 
267  }
268  header_ = header;
269  // @@protoc_insertion_point(field_set_allocated:gz.msgs.MagnetometerSensor.header)
270 }
271 
272 // .gz.msgs.SensorNoise x_noise = 2;
273 inline bool MagnetometerSensor::has_x_noise() const {
274  return this != internal_default_instance() && x_noise_ != NULL;
275 }
276 inline const ::gz::msgs::SensorNoise& MagnetometerSensor::_internal_x_noise() const {
277  return *x_noise_;
278 }
279 inline const ::gz::msgs::SensorNoise& MagnetometerSensor::x_noise() const {
280  const ::gz::msgs::SensorNoise* p = x_noise_;
281  // @@protoc_insertion_point(field_get:gz.msgs.MagnetometerSensor.x_noise)
282  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SensorNoise*>(
284 }
285 inline ::gz::msgs::SensorNoise* MagnetometerSensor::release_x_noise() {
286  // @@protoc_insertion_point(field_release:gz.msgs.MagnetometerSensor.x_noise)
287 
288  ::gz::msgs::SensorNoise* temp = x_noise_;
289  x_noise_ = NULL;
290  return temp;
291 }
292 inline ::gz::msgs::SensorNoise* MagnetometerSensor::mutable_x_noise() {
293 
294  if (x_noise_ == NULL) {
295  auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
296  x_noise_ = p;
297  }
298  // @@protoc_insertion_point(field_mutable:gz.msgs.MagnetometerSensor.x_noise)
299  return x_noise_;
300 }
302  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
303  if (message_arena == NULL) {
304  delete reinterpret_cast< ::google::protobuf::MessageLite*>(x_noise_);
305  }
306  if (x_noise) {
307  ::google::protobuf::Arena* submessage_arena = NULL;
308  if (message_arena != submessage_arena) {
309  x_noise = ::google::protobuf::internal::GetOwnedMessage(
310  message_arena, x_noise, submessage_arena);
311  }
312 
313  } else {
314 
315  }
316  x_noise_ = x_noise;
317  // @@protoc_insertion_point(field_set_allocated:gz.msgs.MagnetometerSensor.x_noise)
318 }
319 
320 // .gz.msgs.SensorNoise y_noise = 3;
321 inline bool MagnetometerSensor::has_y_noise() const {
322  return this != internal_default_instance() && y_noise_ != NULL;
323 }
324 inline const ::gz::msgs::SensorNoise& MagnetometerSensor::_internal_y_noise() const {
325  return *y_noise_;
326 }
327 inline const ::gz::msgs::SensorNoise& MagnetometerSensor::y_noise() const {
328  const ::gz::msgs::SensorNoise* p = y_noise_;
329  // @@protoc_insertion_point(field_get:gz.msgs.MagnetometerSensor.y_noise)
330  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SensorNoise*>(
332 }
333 inline ::gz::msgs::SensorNoise* MagnetometerSensor::release_y_noise() {
334  // @@protoc_insertion_point(field_release:gz.msgs.MagnetometerSensor.y_noise)
335 
336  ::gz::msgs::SensorNoise* temp = y_noise_;
337  y_noise_ = NULL;
338  return temp;
339 }
340 inline ::gz::msgs::SensorNoise* MagnetometerSensor::mutable_y_noise() {
341 
342  if (y_noise_ == NULL) {
343  auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
344  y_noise_ = p;
345  }
346  // @@protoc_insertion_point(field_mutable:gz.msgs.MagnetometerSensor.y_noise)
347  return y_noise_;
348 }
350  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
351  if (message_arena == NULL) {
352  delete reinterpret_cast< ::google::protobuf::MessageLite*>(y_noise_);
353  }
354  if (y_noise) {
355  ::google::protobuf::Arena* submessage_arena = NULL;
356  if (message_arena != submessage_arena) {
357  y_noise = ::google::protobuf::internal::GetOwnedMessage(
358  message_arena, y_noise, submessage_arena);
359  }
360 
361  } else {
362 
363  }
364  y_noise_ = y_noise;
365  // @@protoc_insertion_point(field_set_allocated:gz.msgs.MagnetometerSensor.y_noise)
366 }
367 
368 // .gz.msgs.SensorNoise z_noise = 4;
369 inline bool MagnetometerSensor::has_z_noise() const {
370  return this != internal_default_instance() && z_noise_ != NULL;
371 }
372 inline const ::gz::msgs::SensorNoise& MagnetometerSensor::_internal_z_noise() const {
373  return *z_noise_;
374 }
375 inline const ::gz::msgs::SensorNoise& MagnetometerSensor::z_noise() const {
376  const ::gz::msgs::SensorNoise* p = z_noise_;
377  // @@protoc_insertion_point(field_get:gz.msgs.MagnetometerSensor.z_noise)
378  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SensorNoise*>(
380 }
381 inline ::gz::msgs::SensorNoise* MagnetometerSensor::release_z_noise() {
382  // @@protoc_insertion_point(field_release:gz.msgs.MagnetometerSensor.z_noise)
383 
384  ::gz::msgs::SensorNoise* temp = z_noise_;
385  z_noise_ = NULL;
386  return temp;
387 }
388 inline ::gz::msgs::SensorNoise* MagnetometerSensor::mutable_z_noise() {
389 
390  if (z_noise_ == NULL) {
391  auto* p = CreateMaybeMessage<::gz::msgs::SensorNoise>(GetArenaNoVirtual());
392  z_noise_ = p;
393  }
394  // @@protoc_insertion_point(field_mutable:gz.msgs.MagnetometerSensor.z_noise)
395  return z_noise_;
396 }
398  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
399  if (message_arena == NULL) {
400  delete reinterpret_cast< ::google::protobuf::MessageLite*>(z_noise_);
401  }
402  if (z_noise) {
403  ::google::protobuf::Arena* submessage_arena = NULL;
404  if (message_arena != submessage_arena) {
405  z_noise = ::google::protobuf::internal::GetOwnedMessage(
406  message_arena, z_noise, submessage_arena);
407  }
408 
409  } else {
410 
411  }
412  z_noise_ = z_noise;
413  // @@protoc_insertion_point(field_set_allocated:gz.msgs.MagnetometerSensor.z_noise)
414 }
415 
416 #ifdef __GNUC__
417  #pragma GCC diagnostic pop
418 #endif // __GNUC__
419 
420 // @@protoc_insertion_point(namespace_scope)
421 
422 } // namespace msgs
423 } // namespace gz
424 
425 // @@protoc_insertion_point(global_scope)
426 
427 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fmagnetometer_5fsensor_2eproto