Gazebo Msgs

API Reference

9.5.1
raysensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/raysensor.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fraysensor_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fraysensor_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 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fraysensor_2eproto GZ_MSGS_VISIBLE
36 
38 // Internal implementation detail -- do not use these members.
39 struct GZ_MSGS_VISIBLE TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void GZ_MSGS_VISIBLE AddDescriptors();
48 } // namespace protobuf_gz_2fmsgs_2fraysensor_2eproto
49 namespace gz {
50 namespace msgs {
51 class RaySensor;
52 class RaySensorDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern RaySensorDefaultTypeInternal _RaySensor_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::RaySensor* Arena::CreateMaybeMessage<::gz::msgs::RaySensor>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE RaySensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.RaySensor) */ {
67  public:
68  RaySensor();
69  virtual ~RaySensor();
70 
71  RaySensor(const RaySensor& from);
72 
73  inline RaySensor& operator=(const RaySensor& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  RaySensor(RaySensor&& from) noexcept
79  : RaySensor() {
80  *this = ::std::move(from);
81  }
82 
83  inline RaySensor& operator=(RaySensor&& from) noexcept {
84  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85  if (this != &from) InternalSwap(&from);
86  } else {
87  CopyFrom(from);
88  }
89  return *this;
90  }
91  #endif
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const RaySensor& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const RaySensor* internal_default_instance() {
97  return reinterpret_cast<const RaySensor*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(RaySensor* other);
104  friend void swap(RaySensor& a, RaySensor& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline RaySensor* New() const final {
111  return CreateMaybeMessage<RaySensor>(NULL);
112  }
113 
114  RaySensor* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<RaySensor>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const RaySensor& from);
120  void MergeFrom(const RaySensor& from);
121  void Clear() final;
122  bool IsInitialized() const final;
123 
124  size_t ByteSizeLong() const final;
125  bool MergePartialFromCodedStream(
126  ::google::protobuf::io::CodedInputStream* input) final;
127  void SerializeWithCachedSizes(
128  ::google::protobuf::io::CodedOutputStream* output) const final;
129  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130  bool deterministic, ::google::protobuf::uint8* target) const final;
131  int GetCachedSize() const final { return _cached_size_.Get(); }
132 
133  private:
134  void SharedCtor();
135  void SharedDtor();
136  void SetCachedSize(int size) const final;
137  void InternalSwap(RaySensor* other);
138  private:
139  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
140  return NULL;
141  }
142  inline void* MaybeArenaPtr() const {
143  return NULL;
144  }
145  public:
146 
147  ::google::protobuf::Metadata GetMetadata() const final;
148 
149  // nested types ----------------------------------------------------
150 
151  // accessors -------------------------------------------------------
152 
153  // .gz.msgs.Header header = 1;
154  bool has_header() const;
155  void clear_header();
156  static const int kHeaderFieldNumber = 1;
157  private:
158  const ::gz::msgs::Header& _internal_header() const;
159  public:
160  const ::gz::msgs::Header& header() const;
161  ::gz::msgs::Header* release_header();
162  ::gz::msgs::Header* mutable_header();
163  void set_allocated_header(::gz::msgs::Header* header);
164 
165  // bool display_scan = 2;
166  void clear_display_scan();
167  static const int kDisplayScanFieldNumber = 2;
168  bool display_scan() const;
169  void set_display_scan(bool value);
170 
171  // int32 horizontal_samples = 3;
172  void clear_horizontal_samples();
173  static const int kHorizontalSamplesFieldNumber = 3;
174  ::google::protobuf::int32 horizontal_samples() const;
175  void set_horizontal_samples(::google::protobuf::int32 value);
176 
177  // double horizontal_resolution = 4;
178  void clear_horizontal_resolution();
179  static const int kHorizontalResolutionFieldNumber = 4;
180  double horizontal_resolution() const;
181  void set_horizontal_resolution(double value);
182 
183  // double horizontal_min_angle = 5;
184  void clear_horizontal_min_angle();
185  static const int kHorizontalMinAngleFieldNumber = 5;
186  double horizontal_min_angle() const;
187  void set_horizontal_min_angle(double value);
188 
189  // double horizontal_max_angle = 6;
190  void clear_horizontal_max_angle();
191  static const int kHorizontalMaxAngleFieldNumber = 6;
192  double horizontal_max_angle() const;
193  void set_horizontal_max_angle(double value);
194 
195  // double vertical_resolution = 8;
196  void clear_vertical_resolution();
197  static const int kVerticalResolutionFieldNumber = 8;
198  double vertical_resolution() const;
199  void set_vertical_resolution(double value);
200 
201  // double vertical_min_angle = 9;
202  void clear_vertical_min_angle();
203  static const int kVerticalMinAngleFieldNumber = 9;
204  double vertical_min_angle() const;
205  void set_vertical_min_angle(double value);
206 
207  // double vertical_max_angle = 10;
208  void clear_vertical_max_angle();
209  static const int kVerticalMaxAngleFieldNumber = 10;
210  double vertical_max_angle() const;
211  void set_vertical_max_angle(double value);
212 
213  // double range_min = 11;
214  void clear_range_min();
215  static const int kRangeMinFieldNumber = 11;
216  double range_min() const;
217  void set_range_min(double value);
218 
219  // double range_max = 12;
220  void clear_range_max();
221  static const int kRangeMaxFieldNumber = 12;
222  double range_max() const;
223  void set_range_max(double value);
224 
225  // double range_resolution = 13;
226  void clear_range_resolution();
227  static const int kRangeResolutionFieldNumber = 13;
228  double range_resolution() const;
229  void set_range_resolution(double value);
230 
231  // int32 vertical_samples = 7;
232  void clear_vertical_samples();
233  static const int kVerticalSamplesFieldNumber = 7;
234  ::google::protobuf::int32 vertical_samples() const;
235  void set_vertical_samples(::google::protobuf::int32 value);
236 
237  // @@protoc_insertion_point(class_scope:gz.msgs.RaySensor)
238  private:
239 
240  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
241  ::gz::msgs::Header* header_;
242  bool display_scan_;
243  ::google::protobuf::int32 horizontal_samples_;
244  double horizontal_resolution_;
245  double horizontal_min_angle_;
246  double horizontal_max_angle_;
247  double vertical_resolution_;
248  double vertical_min_angle_;
249  double vertical_max_angle_;
250  double range_min_;
251  double range_max_;
252  double range_resolution_;
253  ::google::protobuf::int32 vertical_samples_;
254  mutable ::google::protobuf::internal::CachedSize _cached_size_;
255  friend struct ::protobuf_gz_2fmsgs_2fraysensor_2eproto::TableStruct;
256 };
257 // ===================================================================
258 
259 
260 // ===================================================================
261 
262 #ifdef __GNUC__
263  #pragma GCC diagnostic push
264  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
265 #endif // __GNUC__
266 // RaySensor
267 
268 // .gz.msgs.Header header = 1;
269 inline bool RaySensor::has_header() const {
270  return this != internal_default_instance() && header_ != NULL;
271 }
272 inline const ::gz::msgs::Header& RaySensor::_internal_header() const {
273  return *header_;
274 }
275 inline const ::gz::msgs::Header& RaySensor::header() const {
276  const ::gz::msgs::Header* p = header_;
277  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.header)
278  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
280 }
281 inline ::gz::msgs::Header* RaySensor::release_header() {
282  // @@protoc_insertion_point(field_release:gz.msgs.RaySensor.header)
283 
284  ::gz::msgs::Header* temp = header_;
285  header_ = NULL;
286  return temp;
287 }
288 inline ::gz::msgs::Header* RaySensor::mutable_header() {
289 
290  if (header_ == NULL) {
291  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
292  header_ = p;
293  }
294  // @@protoc_insertion_point(field_mutable:gz.msgs.RaySensor.header)
295  return header_;
296 }
298  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
299  if (message_arena == NULL) {
300  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
301  }
302  if (header) {
303  ::google::protobuf::Arena* submessage_arena = NULL;
304  if (message_arena != submessage_arena) {
305  header = ::google::protobuf::internal::GetOwnedMessage(
306  message_arena, header, submessage_arena);
307  }
308 
309  } else {
310 
311  }
312  header_ = header;
313  // @@protoc_insertion_point(field_set_allocated:gz.msgs.RaySensor.header)
314 }
315 
316 // bool display_scan = 2;
318  display_scan_ = false;
319 }
320 inline bool RaySensor::display_scan() const {
321  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.display_scan)
322  return display_scan_;
323 }
324 inline void RaySensor::set_display_scan(bool value) {
325 
326  display_scan_ = value;
327  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.display_scan)
328 }
329 
330 // int32 horizontal_samples = 3;
332  horizontal_samples_ = 0;
333 }
334 inline ::google::protobuf::int32 RaySensor::horizontal_samples() const {
335  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.horizontal_samples)
336  return horizontal_samples_;
337 }
338 inline void RaySensor::set_horizontal_samples(::google::protobuf::int32 value) {
339 
340  horizontal_samples_ = value;
341  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.horizontal_samples)
342 }
343 
344 // double horizontal_resolution = 4;
346  horizontal_resolution_ = 0;
347 }
348 inline double RaySensor::horizontal_resolution() const {
349  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.horizontal_resolution)
350  return horizontal_resolution_;
351 }
352 inline void RaySensor::set_horizontal_resolution(double value) {
353 
354  horizontal_resolution_ = value;
355  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.horizontal_resolution)
356 }
357 
358 // double horizontal_min_angle = 5;
360  horizontal_min_angle_ = 0;
361 }
362 inline double RaySensor::horizontal_min_angle() const {
363  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.horizontal_min_angle)
364  return horizontal_min_angle_;
365 }
366 inline void RaySensor::set_horizontal_min_angle(double value) {
367 
368  horizontal_min_angle_ = value;
369  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.horizontal_min_angle)
370 }
371 
372 // double horizontal_max_angle = 6;
374  horizontal_max_angle_ = 0;
375 }
376 inline double RaySensor::horizontal_max_angle() const {
377  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.horizontal_max_angle)
378  return horizontal_max_angle_;
379 }
380 inline void RaySensor::set_horizontal_max_angle(double value) {
381 
382  horizontal_max_angle_ = value;
383  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.horizontal_max_angle)
384 }
385 
386 // int32 vertical_samples = 7;
388  vertical_samples_ = 0;
389 }
390 inline ::google::protobuf::int32 RaySensor::vertical_samples() const {
391  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.vertical_samples)
392  return vertical_samples_;
393 }
394 inline void RaySensor::set_vertical_samples(::google::protobuf::int32 value) {
395 
396  vertical_samples_ = value;
397  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.vertical_samples)
398 }
399 
400 // double vertical_resolution = 8;
402  vertical_resolution_ = 0;
403 }
404 inline double RaySensor::vertical_resolution() const {
405  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.vertical_resolution)
406  return vertical_resolution_;
407 }
408 inline void RaySensor::set_vertical_resolution(double value) {
409 
410  vertical_resolution_ = value;
411  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.vertical_resolution)
412 }
413 
414 // double vertical_min_angle = 9;
416  vertical_min_angle_ = 0;
417 }
418 inline double RaySensor::vertical_min_angle() const {
419  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.vertical_min_angle)
420  return vertical_min_angle_;
421 }
422 inline void RaySensor::set_vertical_min_angle(double value) {
423 
424  vertical_min_angle_ = value;
425  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.vertical_min_angle)
426 }
427 
428 // double vertical_max_angle = 10;
430  vertical_max_angle_ = 0;
431 }
432 inline double RaySensor::vertical_max_angle() const {
433  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.vertical_max_angle)
434  return vertical_max_angle_;
435 }
436 inline void RaySensor::set_vertical_max_angle(double value) {
437 
438  vertical_max_angle_ = value;
439  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.vertical_max_angle)
440 }
441 
442 // double range_min = 11;
444  range_min_ = 0;
445 }
446 inline double RaySensor::range_min() const {
447  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.range_min)
448  return range_min_;
449 }
450 inline void RaySensor::set_range_min(double value) {
451 
452  range_min_ = value;
453  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.range_min)
454 }
455 
456 // double range_max = 12;
458  range_max_ = 0;
459 }
460 inline double RaySensor::range_max() const {
461  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.range_max)
462  return range_max_;
463 }
464 inline void RaySensor::set_range_max(double value) {
465 
466  range_max_ = value;
467  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.range_max)
468 }
469 
470 // double range_resolution = 13;
472  range_resolution_ = 0;
473 }
474 inline double RaySensor::range_resolution() const {
475  // @@protoc_insertion_point(field_get:gz.msgs.RaySensor.range_resolution)
476  return range_resolution_;
477 }
478 inline void RaySensor::set_range_resolution(double value) {
479 
480  range_resolution_ = value;
481  // @@protoc_insertion_point(field_set:gz.msgs.RaySensor.range_resolution)
482 }
483 
484 #ifdef __GNUC__
485  #pragma GCC diagnostic pop
486 #endif // __GNUC__
487 
488 // @@protoc_insertion_point(namespace_scope)
489 
490 } // namespace msgs
491 } // namespace gz
492 
493 // @@protoc_insertion_point(global_scope)
494 
495 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fraysensor_2eproto